text
stringlengths
8
267k
meta
dict
Q: Back Button with iFrames I'm using an iframe to display content that has links. When the user clicks around in the iFrame and hits "back," it goes back in the iFrame. This behavior is OK. However, once they're back to the first page of the iFrame and they hit "back" again, the entire window is taken back to the p...
{ "language": "en", "url": "https://stackoverflow.com/questions/402250", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: std::wstring VS std::string I am not able to understand the differences between std::string and std::wstring. I know wstring supports wide characters such as Unicode characters. I have got the following questions: * *When should I use std::wstring over std::string? *Can std::string hold the entire ASCII characte...
{ "language": "en", "url": "https://stackoverflow.com/questions/402283", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "882" }
Q: ASP.NET Resource Reference Best Practices I'm relatively new to ASP.NET and was wondering if anyone could shed some light on when I should use relative references (e.g. ../images/banner_tinga.jpg) versus the tilde (e.g. ~/images/banner_tinga.jpg). Depending on the situation you can accomplish the same goal using eit...
{ "language": "en", "url": "https://stackoverflow.com/questions/402299", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: struts2: s:checkbox doesn't go on the same row with s:checkbox Here's the .jsp code: <table> <s:iterator value="allAgents"> <tr> <td><s:property value="firstName" /></td> <td><s:property value="middleName" /></td> <td><s:property value="lastName" />...
{ "language": "en", "url": "https://stackoverflow.com/questions/402302", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: ActiveRecord has_n association I was wondering what the best way to model a relationship where an object is associated with exactly n objects of another class. I want to extend the has_one relationship to a specific value of n. For example, a TopFiveMoviesList would belong to user and have exactly five movies. I wo...
{ "language": "en", "url": "https://stackoverflow.com/questions/402307", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Visual Studio 2008 doesn't recognize Lambda Expression Syntax I recently upgraded a Web Application Project (as well as some dependent projects) from .net 2.0 to .net 3.5 using the built in conversion tool. Everything works well such as using MS AJAX 3.5 vs. the external MS AJAX libraries in 2.0. My problem occurs w...
{ "language": "en", "url": "https://stackoverflow.com/questions/402313", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do you identify (and get access to) modules/debug symbols to use when provided a windows .dmp or .minidmp In a way following on from reading a windows *.dmp file Having received a dump file from random customer, running the debug session to see the crash, you often find it is in a MS or other third party library...
{ "language": "en", "url": "https://stackoverflow.com/questions/402314", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Learning Algorithm and Saving Data in Software I'm coming from a web-development background and I am wondering how I would make a learning algorithm in Java/C++. Not so much the algorithm part, but making the program "remember" what it learned from the previous day. I would think something like saving a file, but I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/402316", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is it possible to "add" to classpath dynamically in java? java -classpath ../classes;../jar;. parserTester How can i get the functionality in the above command programmatically? Like, is it possible to run as: java parserTester and get the same result? I tried using URLClassLoader but it modifies the classpath and...
{ "language": "en", "url": "https://stackoverflow.com/questions/402330", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "23" }
Q: NHibernate and Spring.NET Combination really helpful in the enterprise level application! What are the opinions of the software developers who have used Spring.NET and NHibernate in their projects? In couple of our projects in the company where I work, we have used these third party tools very extensively and we hav...
{ "language": "en", "url": "https://stackoverflow.com/questions/402334", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: using #IEroot for ie-targeted styling? Has anyone been able to succesfully use the IE CSS hack #IEroot? I stumbled upon it from this article but it doesn't seem to work for me. I'm trying to fix/hack the inline styling bug to produce li inline blocks #featured li { margin:0px; padding:0px; width:317px; ...
{ "language": "en", "url": "https://stackoverflow.com/questions/402337", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Getting Justified Text in UITextField How do I get justified text with UTTextField. It does have an textAlignment property. But the UITextAlignment constant only has left, right, and center justification. What I am seeking is the Justified text common in word processing app with text flush with both left and right ...
{ "language": "en", "url": "https://stackoverflow.com/questions/402339", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How do I detect whether a given IP is in a given subnet in Javascript? I'd like to write a function in Javascript along the lines of: in_subnet(ip, network, slash) { ... } in_subnet('1.2.3.4', '1.2.0.0', 16) # True, since it's in 1.2.0.0/16 in_subnet('1.2.3.4', '1.2.0.0', 24) # False, since it's not in 1.2.0.0/...
{ "language": "en", "url": "https://stackoverflow.com/questions/402341", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Adding First and Last buttons in Navigation Bar This is what i'm trying to achieve: Home (Table View) > (Click on row) > Move to 2nd View (Table View) > (Click on row) > Move to 3rd View (Table View) - SAVE or DONE button in navigation bar should take the user to Home (Table View). A sample code will be very helpful...
{ "language": "en", "url": "https://stackoverflow.com/questions/402345", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Getting setting cookies on different domains, with JavaScript or other I need to set/get the cookies stored at first.example while browsing second.example, I have full access of first.example but I only have JavaScript access (can manipulate the DOM as I want) on second.example. My first approach was to create an if...
{ "language": "en", "url": "https://stackoverflow.com/questions/402348", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "22" }
Q: Connect to remote MySQL database with Visual C# I am trying to connect to a remote MySQL database using Visual C# 2008 Express Edition. Is there a way to connect using the editor, or do I have to code the connection manually? The editor has a clear and easy-to-follow wizard for connecting to Microsoft SQL Server and...
{ "language": "en", "url": "https://stackoverflow.com/questions/402355", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Locked Serial Port on Vista I'm working on an App that talks to a serial port, and on my development machine, I'm running Vista, and that serial port is a Bluetooth connection. Occasionally, the serial port gets caught in a state where my App can no longer connect to it. In .net I get an IOException with a message...
{ "language": "en", "url": "https://stackoverflow.com/questions/402356", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do you uninstall a python package that was installed using distutils? Can you simply delete the directory from your python installation, or are there any lingering files that you must delete? A: Yes, it is safe to simply delete anything that distutils installed. That goes for installed folders or .egg files. Na...
{ "language": "en", "url": "https://stackoverflow.com/questions/402359", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "95" }
Q: Help--Function Pointers in Python My idea of program: I have a dictionary: options = { 'string' : select_fun(function pointer), 'float' : select_fun(function pointer), 'double' : select_fun(function pointer) } whatever type comes single function select_fun(function pointer) gets called. Inside select_fun(function p...
{ "language": "en", "url": "https://stackoverflow.com/questions/402364", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Delete a table referenced by a foreign keys What is the best way to delete a table referenced by a foreign keys? A: Is the intended goal to orphan those records and never use the foreign key again? If so the method mentioned before about disabling the key is fine, otherwise you may want to instead delete the recor...
{ "language": "en", "url": "https://stackoverflow.com/questions/402375", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Using getopts to process long and short command line options I wish to have long and short forms of command line options invoked using my shell script. I know that getopts can be used, but like in Perl, I have not been able to do the same with shell. Any ideas on how this can be done, so that I can use options like:...
{ "language": "en", "url": "https://stackoverflow.com/questions/402377", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "510" }
Q: Automated testing for iPhone I know this one is going to be a long-shot, but I thought I'd try. Does anyone know of any automated test anything for the iPhone simulator? I'd love it if there was something like Selenium but for the iPhone simulator. I don't need anything fancy like assertions, just something that ...
{ "language": "en", "url": "https://stackoverflow.com/questions/402389", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "72" }
Q: Show a list of words repeated in haskell I need to be able to write a function that shows repeated words from a string and return a list of strings in order of its occurrence and ignore non-letters e.g at hugs prompt repetitions :: String -> [String] repetitions > "My bag is is action packed packed." output> ["is",...
{ "language": "en", "url": "https://stackoverflow.com/questions/402391", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Beginner Assistance - Where does this code belong? I'm trying to develop a firefox extension that inserts additional HTTP header fields into outgoing HTTP requests (to interface with an apache extension i'm concurrently developing). While I understand the individual components of an extension and understand the basi...
{ "language": "en", "url": "https://stackoverflow.com/questions/402403", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Usefulness of JNI I've been a java developer for a couple years and have heard that you can do some pretty useful and powerful things with JNI. I don't know if I just haven't needed to use it or if it isn't terribly relevant to me; but I have not had to touch it at all. I am wondering what the usefulness of this as...
{ "language": "en", "url": "https://stackoverflow.com/questions/402408", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: flexunit addAsync chaining For some reason, addAsync chaining in a flexunit test as described in this article utterly fails to work when I try to do it. public function testWhatever():void { var cont:EventDispatcher = new EventDispatcher(); cont.addEventListener("continue", addAsync(verifyFirst, 1000)); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/402415", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Using Shoes and download over https gives ssl errors In a shoes application am trying to download stuff from some internal websites. I get this error Error in /tmp/selfgz14214/ruby/lib/net/protocol.rb line 66 undefined method 'closed?' for #<OpenSSL::SSL::SSLSocket:0xb6af94f0> I got the above error for this code. T...
{ "language": "en", "url": "https://stackoverflow.com/questions/402427", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: C++ Returning and Inserting a 2D array object I am trying to return an array Data Member from one smaller 2D Array Object, and trying to insert the array into a larger 2D array object. But when attempting this, I came into two problems. First problem is that I want to return the name of the 2D array, but I do not kn...
{ "language": "en", "url": "https://stackoverflow.com/questions/402432", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Memcached Settings for stopping key expiration I want to know is there any way for Memcached to stop its LRU collection of keys so that i can find at what point the given memory allocated for memcached gets full. I dont want memcached to flush the old keys when it goes out of space. A: Use the -M switch, and memcac...
{ "language": "en", "url": "https://stackoverflow.com/questions/402438", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: About "AUTOMATIC TEXT SUMMARIZER (lingustic based)" I am having "AUTOMATIC TEXT SUMMARIZER (linguistic approach)" as my final year project. I have collected enough research papers and gone through them. Still I am not very clear about the 'how-to-go-for-it' thing. Basically I found "AUTOMATIC TEXT SUMMARIZER (statis...
{ "language": "en", "url": "https://stackoverflow.com/questions/402440", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Access Div Contents using Up and Down Arrow Keys using javascript I have a Div Tag which contains 4 child Div Tags <Div id="Parent"> <div id="childOne">ChildOne &lt/div> <div id="childOne">ChildTwo &lt/div> <div id="childOne">ChildThree &lt/div> <div id="childOne">ChildFour &lt/div> &lt/D...
{ "language": "en", "url": "https://stackoverflow.com/questions/402448", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: HTML Editor for CBuilder/Delphi I need to find basic WYSIWYG HTML editor component for C++Builder 5 to let users to create some simple text that I will paste into existing HTML page template. Just a simple support to create links, add images, use headers/bold/italic. A: You can drop a TWebBrowser on a form and enab...
{ "language": "en", "url": "https://stackoverflow.com/questions/402455", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: where can i find Java JMF tutorial I'd like to know about basic classes for playing video from webcam I'd also like to play with video buffers pixels where can i find a Java JMF tutorial that will help me achieve that? A: I liked the Program multimedia with JMF 2-part (second part here) series a lot when first expe...
{ "language": "en", "url": "https://stackoverflow.com/questions/402459", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Possible to generate an iPhone application automatically from another iPhone application? As title; is there any function that can achieve this? A: Officially, no. Official apps must be compiled and signed on an OS X machine. In practice, sort of - if you don't mind jailbreaking. For jailbroken phones, gcc and sign...
{ "language": "en", "url": "https://stackoverflow.com/questions/402470", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Django, Rails Routing...Point? I'm a student of web development (and college), so my apologies if this comes off sounding naive and offensive, I certainly don't mean it that way. My experience has been with PHP and with a smallish project on the horizon (a glorified shift calendar) I hoped to learn one of the highe...
{ "language": "en", "url": "https://stackoverflow.com/questions/402474", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Pragmatism and Accessibility At what point does accessibility become non-pragmatic? and what is that shady gray area dictated by? A: My guess is that as legislatures catch up, we are not far from having legally mandated accessibility requirements in the same way that physical buildings, workplaces, and the like hav...
{ "language": "en", "url": "https://stackoverflow.com/questions/402478", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: ASP.NET :Show background process status to User I have a web page where it will input an excel/CSV file from the user and read the data from it and import to DB.While inserting each record.I just want to show the details about the record being inserted to the user.(Ex : Client Details of A is adding...) A: Try this...
{ "language": "en", "url": "https://stackoverflow.com/questions/402481", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Caching result of setUp() using Python unittest I currently have a unittest.TestCase that looks like.. class test_appletrailer(unittest.TestCase): def setup(self): self.all_trailers = Trailers(res = "720", verbose = True) def test_has_trailers(self): self.failUnless(len(self.all_trailers) > ...
{ "language": "en", "url": "https://stackoverflow.com/questions/402483", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: IBM.Data.DB2 "Connect processing failed; a valid product license was not found" I made a small desktop app in .NET C# using IBM.Data.DB2 provider connecting to IMB DB2 on z/OS. When I deployed this app on a machine I faced issues for runtime for IBM DB Connect then I found that I had to install the DB2 Run-Time Clie...
{ "language": "en", "url": "https://stackoverflow.com/questions/402484", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do I recognize a drag-select with autoit I'm writing an automation script with autoit: http://www.autoitscript.com/autoit3/index.shtml. In the process I need to take a screenshot of a user selected area. How can I recognize the mouse-drag select operation with Autoit 3? I basically need some way to get the coord...
{ "language": "en", "url": "https://stackoverflow.com/questions/402486", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Returning data is not working in jQuery using Ajax I have developed code with Ajax and jQuery. I have got a response from my.php, and I have tried to extract the values of the response. Here the code (HTML): My.php ?php echo '<div id="title">My Title </div>'; echo '<div id="message"> My message </div>'; ?> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/402503", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to determine a Python variable's type? How do I see the type of a variable? (e.g. unsigned 32 bit) A: You should use the type() function. Like so: my_variable = 5 print(type(my_variable)) # Would print out <class 'int'> This function will view the type of any variable, whether it's a list or a class. Check th...
{ "language": "en", "url": "https://stackoverflow.com/questions/402504", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2084" }
Q: Why might one also use a blank constructor? I was reading some Java recently and came across something (an idiom?) new to me: in the program, classes with multiple constructors would also always include a blank constructor. For example: public class Genotype { private boolean bits[]; private int rating; priva...
{ "language": "en", "url": "https://stackoverflow.com/questions/402514", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Is there a better way to test for an integer in C# than Double.TryParse? Double.TryParse returns a value, and I don't need a value. I need to be able to tell if a string is numeric and just return a bool. is there a way to do this? A: Well, you could use a regular expression, but why not just discard the value fro...
{ "language": "en", "url": "https://stackoverflow.com/questions/402517", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: JavaScript tools for Visual Studio 2005 I need to find if there are any tools targeting both Visual Studio 2005 and JavaScript. I'm interested in plugins which will increase the quality of work done in VS2005 with JavaScript oriented development. A: I think you'll be hard pressed to find anything specific for VS200...
{ "language": "en", "url": "https://stackoverflow.com/questions/402521", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is there a metadata exclusion filter for the SVN DIFF command? I use SVN as the source control system, and I wonder how to compare directories while ignoring any metadata differences. Is there a way to tell svn diff to compare only the actual content and ignore any metadata? I mean metadata like SVN properties, etc...
{ "language": "en", "url": "https://stackoverflow.com/questions/402522", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "27" }
Q: Weird bit-shift behavior I'm in the process of porting some ANSI C++ code to C#... and this is killing me right now. Both tests have value = 6844268. Test code: value >> 12 value & 0x00000FFF C++ returns 18273 and 29497, whereas C# returns 1670 and 3948. I've tried every possible combination of types in C# (int, ui...
{ "language": "en", "url": "https://stackoverflow.com/questions/402536", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Convention for prototype inheritance in JavaScript I see a lot of code like this: function Base() {} function Sub() {} Sub.prototype = new Base(); However, if you do: s = new Sub(); print(s.constructor == Sub); This is false. This seems confusing to me, since s's constructor is, indeed, Sub. Is it conventional/bet...
{ "language": "en", "url": "https://stackoverflow.com/questions/402538", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Customizable player avatar in a 2D Game How can I have that functionality in my game through which the players can change their hairstyle, look, style of clothes, etc., and so whenever they wear a different item of clothing their avatar is updated with it. Should I: * *Have my designer create all possible combina...
{ "language": "en", "url": "https://stackoverflow.com/questions/402541", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: What is the simplest way to parse binary files in Cocoa Touch? Say I have a binary file (generated with Java) containing a 32 bit int value. I'm currently using the following Objective-C code for parsing it: NSString *path = [[NSBundle mainBundle] pathForResource:@"foo" ofType:@"dat"]; NSFileHandle *file = [NSFileHa...
{ "language": "en", "url": "https://stackoverflow.com/questions/402555", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: creating a substring on Linux IA-32 assembler (gas) I wanna create a substring (ministring) of 3 asciz chars out of my original (thestring). The thing ain't printing when being run so I don't know what the hell I'm I doing. Why it ain't printing? Am I creating the ministring correctly? .section .data thestring: .a...
{ "language": "en", "url": "https://stackoverflow.com/questions/402579", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: mscorlib.dll & System.dll Why did MS originally make the decision to maintain these two separate core libs? Maybe they had some scalability issue in mind, but nowadays I never see an application, of any type, that doesn't need both. Does anyone have any inside information on this? It's not really important, but been...
{ "language": "en", "url": "https://stackoverflow.com/questions/402582", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "57" }
Q: Debugging C++ lib with eclipse I am working on project in Linux which involves 1) Static Lib in C++ 2) GUI developed in C++/QT which uses static lib. Now both the lib and gui are build from command prompt using makefiles. I am trying to debug both like when I hit one button, call should go from GUI to lib. Is it pos...
{ "language": "en", "url": "https://stackoverflow.com/questions/402598", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Create an ActionLink with HTML elements in the link text In an ASP.NET MVC view I'd like to include a link of the form: <a href="blah">Link text <span>with further descriptive text</span></a> Trying to include the <span> element in the linkText field of a call to Html.ActionLink() ends up with it being encoded (as ...
{ "language": "en", "url": "https://stackoverflow.com/questions/402605", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "34" }
Q: How to restrict SSH users to a predefined set of commands after login? This is a idea for a security. Our employees shall have access to some commands on a linux server but not all. They shall e.g. have the possibility to access a log file (less logfile) or start different commands (shutdown.sh / run.sh). Background...
{ "language": "en", "url": "https://stackoverflow.com/questions/402615", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "100" }
Q: Casting a char to an unsigned short: what happens behind the scenes? Given this field: char lookup_ext[8192] = {0}; // Gets filled later And this statement: unsigned short *slt = (unsigned short*) lookup_ext; What happens behind the scenes? lookup_ext[1669] returns 67 = 0100 0011 (C), lookup_ext[1670] returns 78 =...
{ "language": "en", "url": "https://stackoverflow.com/questions/402616", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Batching in ADO.NET without DataAdapters Is it possible to implement batching of multiple stored procedure calls (doing updates/deletes) in ADO.NET without resorting to DataAdapters? A: You could try using System.Data.SqlClient.SqlCommandSet. It's actually internal, but Ayende made a wrapper to make it public. Code...
{ "language": "en", "url": "https://stackoverflow.com/questions/402630", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: SVN, TeamCity virtualisation / hardware requirement I am trying to put a requirement together for a new environment to consist of TeamCity running of Sql Server, a couple of build agents (for now) and an SVN repository. There are 6 developers and there will be 5 active solutions partaking in the CI process for now ...
{ "language": "en", "url": "https://stackoverflow.com/questions/402633", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: c# - error compiling targeting Compact Net Framework 3.5 - No overload for method 'GetString' takes '1' arguments I actually have two questions regarding the same problem but I think it is better to separate them since I don't think they are related. Background: I am writing a Windows Mobile software in VB.NET whic...
{ "language": "en", "url": "https://stackoverflow.com/questions/402648", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to use JMS Message Transformation in ActiveMQ with Stomp/JSON I am sending messages in JSON format to an ActiveMQ server. I am trying to use JMS Transformation to transform the JSON encoded object into a true Java Object in hopes of being able to use selectors on the data inside. Here is a link to the documentat...
{ "language": "en", "url": "https://stackoverflow.com/questions/402651", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Adjusting interface when keyboard appears for UITextField or UITextView I have a table with each cell containing a label and a text field. Problem is that when i go to edit the last row, keyboard hides the lower portion of the table, and i can't see what is being typed. How can i move my interface above the keyboard...
{ "language": "en", "url": "https://stackoverflow.com/questions/402658", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Randomize a string in C I'm trying to generate random permutations of an 80-character fixed string in C. Much to my dismay, the system I'm working on lacks strfry(). What's the best way for me to generate a random permutation of this string? Since this will be looped over approx. 100,000 times, performance is an ...
{ "language": "en", "url": "https://stackoverflow.com/questions/402674", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Good sites/blogs for FPGA development projects I'm looking for interesting online resources on FPGA development - sites, blogs, that sort of thing. What I'm after is examples of fun (and hopefully not too expensive) projects that one can try out and learn from. A: have you tried fpga4fun.com or fpga-forum.com? Also...
{ "language": "en", "url": "https://stackoverflow.com/questions/402677", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Mixing multiple values for the same key and file uploads using cURL and PHP I’ve run into a limitation in the cURL bindings for PHP. It appears there is no easy way to send the same multiple values for the same key for postfields. Most of the workarounds I have come across for this have involved creating the URL enc...
{ "language": "en", "url": "https://stackoverflow.com/questions/402679", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: How do I get just the jar URL from a jar: URL containing a "!" and a specific file in the jar? I get a jar file url at runtime as: jar:file:///C:/proj/parser/jar/parser.jar!/test.xml How can this be converted to a valid path as: C:/proj/parser/jar/parser.jar. I have already tried using File(URI), getPath(), getFil...
{ "language": "en", "url": "https://stackoverflow.com/questions/402683", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: Automatically copying new articles from a website I am building a website, one section of which will display public notices from a different website. (The notices are public, no copyright violation) What I need to do is to automatically update my site whenever there is a new notice on the target site. I am using Jo...
{ "language": "en", "url": "https://stackoverflow.com/questions/402685", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Preferred development platform for cross-platform desktop GUI? The answers to this related question of mine lead me to choose Java for most of my backend services (it's a multi-component system). Now, I'm not sure whether that would be a good choice for cross-platform desktop GUI apps, as well. The Java desktop appl...
{ "language": "en", "url": "https://stackoverflow.com/questions/402688", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Security Testing Types What are the different types of Security Testing? A: We have a fairly full list which is discussed over on Security Stack Exchange here and here. Discovery The purpose of this stage is to identify systems within scope and the services in use. It is not intended to discover vulnerabilities, b...
{ "language": "en", "url": "https://stackoverflow.com/questions/402705", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: WPF - How to write a trigger for mouse over of grid? I see that Button object has a IsMouseOVer property. But how do create an effect for the mouse over of a grid or other element that does not have IsMouseOver?? Thanks Malcolm Edit: i figured it out. I was using the wrong method for setting the trigger. A: I reali...
{ "language": "en", "url": "https://stackoverflow.com/questions/402736", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: Delphi code formatter Are there any utilities that reformat Delphi code ? EDIT I am using Delphi 2006 Some feedback Thanks to all that answered this question I have been using the JCF code formatter - it works well and my code is been formated to Object Pascal Style Guide A: I found this: JEDI Code Format A: le...
{ "language": "en", "url": "https://stackoverflow.com/questions/402737", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "27" }
Q: How can I read a custom defined pattern from a file in Perl? Advance New Year Wishes to All. I have an error log file with the contents in a pattern parameter, result and stderr (stderr can be in multiple lines). $cat error_log <parameter>:test_tot_count <result>:1 <stderr>:Expected "test_tot_count=2" and the actua...
{ "language": "en", "url": "https://stackoverflow.com/questions/402763", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Play QuickTime Video in WPF Is it possible to play a QuickTime Video in WPF? If yes, can anyone provide me the resources. A: Quicktime is a tricky thing on Windows. The APIs pretty much don't exist for any language except C++. Here's some documentation from the Apple developer website; Quicktime Development For W...
{ "language": "en", "url": "https://stackoverflow.com/questions/402772", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Debugging .NET assemblies built outside of Dev Studio I have a .NET project which references another assembly that is built outside of the solution. I have all of the source code to the other assembly - but I can only add it as a ".DLL" reference rather than adding the actual project as a dependency. The problem is ...
{ "language": "en", "url": "https://stackoverflow.com/questions/402773", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Using Git in a Company? At my workplace we have one large Subversion repository which holds about 100 projects. Some projects use each other through svn:externals. Usually all people have read+write access to everything, but sometimes external people and interns have only restricted read/write access to some custom ...
{ "language": "en", "url": "https://stackoverflow.com/questions/402780", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Typeahead / Incremental Search in java we've got a list of search-result mappings, e.g. a simple url mapping might look like "stackoverflow" -> "www.stackoverflow.com" "joel" -> "www.joelonsoftware.com" so searching for the exact phrases is working fine. Now we're looking for an incremental search / typeahead, e.g....
{ "language": "en", "url": "https://stackoverflow.com/questions/402785", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Combining fields in Awk is there an easy away to combine fields in awk? Specifically, I have lines like this: 1,2,some text 3,4,some text, but it has commas in it, annoyingly I want to extract the two numbers as the first two fields, but then I want all of the text (commas and all) to be the third field. Is there a...
{ "language": "en", "url": "https://stackoverflow.com/questions/402792", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Easiest way to move Outlook 2007 emails to GMail? I've decided to move completely away from my old POP3 email accounts and into GMail. I have a lot of archived mail in a Outlook 2007 .pst file. I know I could just forward them from Outlook, but then I would receive them as only one email with a lot of attachments in...
{ "language": "en", "url": "https://stackoverflow.com/questions/402800", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Camellia Ruby Computer Vision Library on OS X Has anyone had any luck getting the Camellia computer vision library to install on OS X? I've been banging my head against a wall trying to get it to install. There is only one reference I can find online and it is a bit dated. I've followed the instructions to the T wit...
{ "language": "en", "url": "https://stackoverflow.com/questions/402810", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Putting tables side-by-side if there is enough room on the screen I have two HTML tables which would ideally be placed side by side on the screen. Widescreen monitors will cope with this fine, but the tables are too wide to be side by side on most old-fashioned monitors. So I want to use css (or even just HTML, if p...
{ "language": "en", "url": "https://stackoverflow.com/questions/402817", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Automatic generation of function stubs Is there any Visual Studio add-on (or windows/unix stand-alone program) that creates stub implementations in the cpp file for the functions (including class member functions) that are defined in the header file? A: I have the same problem before and now I am using trial versio...
{ "language": "en", "url": "https://stackoverflow.com/questions/402824", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Avoiding "(Not Responding)" label in windows while processing lots of data in one lump I occasionally need to process a large amount of data from one package off the network, which takes sufficiently long that when the user tries to interact with the application windows adds the "(Not Responding)" string to the wind...
{ "language": "en", "url": "https://stackoverflow.com/questions/402832", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Java: Is there a tool available that can allow me input, store, and evaluate math formulas? Even something very rudimentary is fine. Like entering and evaluating something like x+1, where x is a variable I get to specify. I was thinking of writing my own using Strings for each formula, regex for parsing them, etc.,...
{ "language": "en", "url": "https://stackoverflow.com/questions/402833", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How does Django serve media files? I have set up a Django application that uses images. I think I have set up the media settings MEDIA_ROOT and MEDIA_URL correctly. However the images don't show up. Do you know what can be the problem? Let consider this example: The image files are under /home/www/media/app/photos a...
{ "language": "en", "url": "https://stackoverflow.com/questions/402841", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: ASCX controls ASP.NET - Cannot find Visible method In a particular page i have a ascx control which contains a table. Now I want to set this control visible/invisible but the visible method is not detected by the intellisense. The only methods are 1)Equals and 2) ReferenceEquals Main Page <VPM:VotingPolls Runat="ser...
{ "language": "en", "url": "https://stackoverflow.com/questions/402846", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Learning Ruby: recommended blogs to read? I'm about to start learning Ruby and would like a bit of reading material to help me into it. I'm looking for your top 5 blogs, news and any (active) bulletin boards (I can handle newsgroups fine, but I prefer reading in a BB) on Ruby. Thanks, A: Reading blogs isn't the way...
{ "language": "en", "url": "https://stackoverflow.com/questions/402847", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: WPF Window Real-Time Preview I have a window in WPF which shows some media contents. This content contains WPF animations, videos, images etc. My need is to create a real-time preview for this window. Can I create this using WPF? Look at below image, my requirement is to show preview of Window2 in preview area in Wi...
{ "language": "en", "url": "https://stackoverflow.com/questions/402872", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is the reset button really required? On a web contact form, is the reset button really required? Is it really used by anyone? If I don't put it in a page, is there an usability fail? 10x! A: Well, it's very useful to erase that textarea your customer just took the time to write, because they press the wrong button...
{ "language": "en", "url": "https://stackoverflow.com/questions/402881", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "22" }
Q: On Ubuntu does Shoes require Ruby1.8 or Ruby1.9? I have only installed Ruby1.9 on my machine. Have some kind of problems with the programs I am trying to write using Shoes. Am wondering if this is a version issue. I am trying to do some stuff over ssl. A: Shoes comes with its own Ruby version embedded in the script...
{ "language": "en", "url": "https://stackoverflow.com/questions/402905", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: asp.net mvc + activerecord saving object graph I'm using asp.net mvc and I'm trying to create a new Employee, in my form I use the Html.DropDown(...) to display a list of Departments to select from. Ideally I would like MVC to just figure out which Department was selected (Id property is the value in dropdown), fet...
{ "language": "en", "url": "https://stackoverflow.com/questions/402909", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: NSURLConnection downloading poor quality JPEGs on 3G I am downloading a JPEG image from a server and assigning it to an image object in my iPhone app using an NSURLConnection. All works fine when I'm on a Wifi connection, but as soon as I switch to 3G, the quality of the JPEG downloaded reduces dramatically. Has any...
{ "language": "en", "url": "https://stackoverflow.com/questions/402911", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Hibernate inner join mapping - string where id I'd like to map the following sql in NHibernate. Will I need to make a separate entity object i.e RoomTypeVO mapped to tb_tags to do this? Any help much appreciated. SELECT dbo.tb_rooms.id, dbo.tb_rooms.name, dbo.tb_tags.name AS 'roomType' FROM dbo.tb_rooms ...
{ "language": "en", "url": "https://stackoverflow.com/questions/402917", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Unable to create temporary files while compiling I find increasingly now when I am building a large project, I get the following error. fatal error C1083: Cannot open compiler intermediate file: 'C:\Temp\SYS\a03132ex': Permission denied It occurs in Visual Studio 2003 and VC6, and I have investigated the p...
{ "language": "en", "url": "https://stackoverflow.com/questions/402923", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Bugs versus vulnerabilities? What, if any, is the difference between a software bug and a software vulnerability? A: The two can sometimes overlap, but I'd say a "bug" is a mistake, while a "vulnerability" is, like the name suggests, a weakness. A: A bug is when a system isn't behaving as it's designed to behave. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/402936", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: Anyone developed an App with a Flex UI and Rails backend? i am looking into the possibilities of doing some work for a client on Flex with a Rails backend. It ain't rocket science however i was wondering if anyone out there had some experiences with these two AWESOME technologies? Thanks in advance.... A: Peter A...
{ "language": "en", "url": "https://stackoverflow.com/questions/402955", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What are some techniques for troubleshooting very intermittent Access Violation on a Windows Mobile Device? I have a large Compact Frameworks V2.0 application that in most cases works very well. On certain devices about once a day, a user receives a Native Error 0xC0000005 that is not caught with the standard manag...
{ "language": "en", "url": "https://stackoverflow.com/questions/402957", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Tool to generate change reports from Subversion logs Is there a good tool to generate change reports from Subversion logs. We have big team and many commits every day. I'm looking for some tool to show changes in all files. We are using Subversion, so I'm looking some tool that can read Subversion logs. A: I use S...
{ "language": "en", "url": "https://stackoverflow.com/questions/402964", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: What makes the Java compiler so fast? I was wondering about what makes the primary Java compiler (javac by sun) so fast at compilation? ..as well as the C# .NET compiler from Microsoft. I am comparing them with C++ compilers (such as G++), so maybe my question should have been, what makes C++ compilers so slow :) A...
{ "language": "en", "url": "https://stackoverflow.com/questions/402969", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Visual Studio Upgrade Advice 2008 / 2010 Currently thinking about pitching the argument for us migration from vs 2005 (winforms) to vs 2008 (wpf). My main point being the new UI design features. I am slightly worried that we will put loads of work into upgrading everything only for us to have to do the same when 20...
{ "language": "en", "url": "https://stackoverflow.com/questions/402978", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How to find the next record after a specified one in SQL? I'd like to use a single SQL query (in MySQL) to find the record which comes after one that I specify. I.e., if the table has: id, fruit -- ----- 1 apples 2 pears 3 oranges I'd like to be able to do a query like: SELECT * FROM table where previous_rec...
{ "language": "en", "url": "https://stackoverflow.com/questions/402980", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "22" }
Q: Main concepts in OOP I was once asked in an interview 'What are the 3 main concepts of OOP?'. I answered by saying that in my opinion there were 4 which are as follows: * *Inheritance *Encapsulation *Abstraction *Polymorphism Was I correct? A: The four pillars are as your correctly state * *Encapsulation...
{ "language": "en", "url": "https://stackoverflow.com/questions/402984", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "28" }