text
stringlengths
8
267k
meta
dict
Q: .NET Interop: Find All instances of of a running COM object with C# Background I am automating some Office application (Word and PowerPoint) via command-line tool. One thing my tool needs to do is locate all the running instances of Word. I know how to get a reference to one of the instances... Object running_obj = ...
{ "language": "en", "url": "https://stackoverflow.com/questions/393167", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Embeddable FileOpenDialog I am looking for a control to be able to embed the functionality of the FileOpenDialog without the idea of using a modal dialog. Does something like this exist already? (ideally within .Net 2.0 framework, C#). A: I haven't come across one, but I had to do something quite like what you'r...
{ "language": "en", "url": "https://stackoverflow.com/questions/393168", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Setting up a development environment with multiple workstations and Visual Studio 2008 I currently have a small laptop and a desktop (+ gaming rig) that I use for development. I prefer to use the workstation at home because of the multiple large displays and performance and the laptop for it's mobility. When I nee...
{ "language": "en", "url": "https://stackoverflow.com/questions/393169", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Monitor a set of files for changes and execute a command on them when they do The (command line) interface I have in mind is like so: watching FILE+ do COMMAND [ARGS] (and COMMAND [ARGS])* Where any occurrence of "{}" in COMMAND is replaced with the name of the file that changed. And note that "do" and "and" are k...
{ "language": "en", "url": "https://stackoverflow.com/questions/393176", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Which Unit test framework and how to get started (for asp.net mvc) I'v never done unit testing before, but now I am willing to give it a try. What framework is best for starters? Pros and Cons what should i read before i begin any coding? Books/Articles/Code/Blogs is there any opensource "sample projects"? I will ...
{ "language": "en", "url": "https://stackoverflow.com/questions/393184", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Can Spotlight index a MacFUSE filesystem? Spotlight indexes at the file level, so a file containing a complicated data structure may need to be split into a set of files for Spotlight to index it in a useful way. Can you use MacFUSE to achieve this more dynamically? Will Spotlight index a MacFUSE volume? Can MacFUSE...
{ "language": "en", "url": "https://stackoverflow.com/questions/393191", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Background music in delphi application Any ideas of how to make it? I think the Background Music Component For Delphi is a excellent choice, but damn, I can't find it anywhere to download, even a trial.. the homepage is down and all the download sites are using the original download link (homepage). A: You can crea...
{ "language": "en", "url": "https://stackoverflow.com/questions/393194", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Using parent variables in a extended class in PHP I have 2 classes, main and extended. I need to use main vars in extended class. <?php class Main { public $vars = array(); } $main = new Main; $main->vars['key'] = 'value'; class Extended extends Main { } $other = new Extended; var_dump($other->vars); ?> Who...
{ "language": "en", "url": "https://stackoverflow.com/questions/393204", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: What is the best command-line tool to clean up code? When I'm writing C - code I solely use an editor and gcc. I was wondering if anyone could suggest a good and simple tool that will find unused variables, function declarations and possibly make some optimisations. Does anybody know a good tool? A: If you run gcc ...
{ "language": "en", "url": "https://stackoverflow.com/questions/393208", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "33" }
Q: Why don't HTML ids work like namespaces? It would seem natural to me that HTML would support this: <div id="comment1"> <div id="helpText">...</div> </div> <div id="comment2"> <div id="helpText">...</div> </div> <div id="comment3"> <div id="helpText">...</div> </div> #comment1#helpText #comment2#helpTe...
{ "language": "en", "url": "https://stackoverflow.com/questions/393212", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Tools for a lone developer setup? I'm a lone developer who would like to get some structure to my projects. My hardware setup is a laptop running windows XP and a desktop running Ubuntu that acts as a storage server. I currently use Mercurial as my source control system with my working copy of the repository stored...
{ "language": "en", "url": "https://stackoverflow.com/questions/393223", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: How to handle JSON encoded strings using jQuery I am currently using Django to construct JSON encoded objects which a retrieved using jQuery.getJSON(). The standard simplejson encoder encodes strings according to the JSON "standard", i.e. any string containing a '/' is translated to '/'. Therefore if one of my par...
{ "language": "en", "url": "https://stackoverflow.com/questions/393224", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Ruby Amazon book search Does anybody have a good Ruby script for finding books (or other products) on Amazon using their API? A: I've been using Amazon/ECS with great success. One important point is that it's not GPLed (whereas Ruby/AWS seems to be), so if it's important in your case, take care. Here is a sample: r...
{ "language": "en", "url": "https://stackoverflow.com/questions/393234", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Read\write boost::binary_oarchive to pipe I am continue to build two simple processes throwing class objects one to another (see my previous post) through simple (anonymous) pipes. Now I revealed for myself boost::serialization (thanks answered people) and have tried to make some class be serialized through ::WriteF...
{ "language": "en", "url": "https://stackoverflow.com/questions/393241", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Counting the number of occurrences of words in a textfile How could I go about keeping track of the number of times a word appears in a textfile? I would like to do this for every word. For example, if the input is something like: "the man said hi to the boy." Each of "man said hi to boy" would have an occurrence of...
{ "language": "en", "url": "https://stackoverflow.com/questions/393248", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Converting a generic argument to an int in java, provided that it is a number Here's what I've been trying to do, in a nutshell: class example <T extends Number> { private int function(T number) { int x = (int) number; ... } ... } Basically, I'm trying to make it so that T is a numbe...
{ "language": "en", "url": "https://stackoverflow.com/questions/393252", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: jQuery fading in and out I have three divs: A, B and C. A is currently visible and I wish for B to replace it. I could easily do this with the following: $('#A').hide(); $('#B').show(); However, that will cause the change to be quite abrupt. If I however I swap "hide" for "fadeOut" and "show" for "fadeIn" then A is...
{ "language": "en", "url": "https://stackoverflow.com/questions/393254", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What good alternatives to Poedit are there? I'm looking for a .po/.mo editor. I am using gettext for the translation files but don't really like Poedit. It has to run on Windows Vista and it would be even better if it was built into Visual Studio 2008 so I could develop and translate. I really want something that he...
{ "language": "en", "url": "https://stackoverflow.com/questions/393267", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "51" }
Q: Socket with recv-timeout: What is wrong with this code? I'm trying to implement a socket with a recv timeout of 1 Second: int sockfd; struct sockaddr_in self; struct sockaddr_in client_addr; int addrlen=sizeof(client_addr); ssize_t nBytes; sockfd = socket(AF_INET, SOCK_STREAM, 0); self.sin_family = AF_INET; self....
{ "language": "en", "url": "https://stackoverflow.com/questions/393276", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Java cast error trying to create a generic array of custom made class This is what I'm trying to do: import java.lang.reflect.*; class exampleOuter <T extends Number> { private exampleInner<T>[] elements; public exampleOuter(Class<T> type, int size) { elements = (exampleInner<T>[]) Array.newIns...
{ "language": "en", "url": "https://stackoverflow.com/questions/393286", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: NHibernate: Best way to map to DateTime a value stored in a non-standard way I am just getting started with NHibernate (for the 15th time it would seem) and am having the following problem. The following table: Table Facility Column FACILITY_ID integer Column NAME varchar2(50) Column MONTH varchar2(5) For whatever ...
{ "language": "en", "url": "https://stackoverflow.com/questions/393306", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Projecting a 3d sphere into a 2d circle on the screen What are some rasterization algorithms that can just project a 3d sphere into a pixel grid? I want to avoid ray casting. Essentially, given a 3d coordinate and a radius, is there a quick way to just create a 2d circle/ellipse on a pixel grid? For example: circle...
{ "language": "en", "url": "https://stackoverflow.com/questions/393307", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: C#, If Statement, Min and Max Good evening; I am writing a bit of code that solves the following equation. X is size of device Y is quantity of device A is the denominator Z is the total diversified value (X * Y)/A = Z Here is the part I don't know how to accomplish. The value of A is found by the amount of Y. If Y...
{ "language": "en", "url": "https://stackoverflow.com/questions/393316", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-4" }
Q: WPF animation slow when the mouse is in the window I'm trying create a moving rectangle (rect). This is the relevant code: let timer = new Threading.DispatcherTimer(); timer.Tick.Add(fun _ -> Canvas.SetLeft(rect, Canvas.GetLeft(rect)+0.01) |> ignore) timer.Start() The problem is that the animation is slower if I mo...
{ "language": "en", "url": "https://stackoverflow.com/questions/393318", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Java - UserInput.* doesn't work on my Mac I do most of programming work on the Windows terminals in my university. However, my computer is a Mac and, for some reason, the javac command throws up an error when I use UserInput methods. Is there anything to install or an alternative command to use to make this compile ...
{ "language": "en", "url": "https://stackoverflow.com/questions/393322", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Recursively calling the same method twice In the Fibonacci sequence, I have seen conventional implementations which recursively call the same method twice: public void fibonacci(int i) { fibonacci(1) + fibonacci(2); } Now this method is not the exact copy of what I have seen or the right way of solving the problem,...
{ "language": "en", "url": "https://stackoverflow.com/questions/393346", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Matching rounds I have some text with the following structure: Round 1 some multiline text ... Round 2 some multiline text ... ... Round N some multiline text ... I'd like to match rounds with their multiline text. None of the expressions produces correct result: (Round\s\d+)((?!Round).*?) (Round\s\d+)(.*?) C...
{ "language": "en", "url": "https://stackoverflow.com/questions/393363", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Java doesn't seem to be comparing Doubles right I created a Linked List, with insert, search and remove functions. I also created a iterator for it. Now, suppose I do this: myList<Integer> test = new myList(); test.insert(30); test.insert(20); test.insert(10); myList.iterator it = test.search(20); if(it.hasNext()) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/393366", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What are the Facebook app FBML 'profile.setFBML' arguments? Okay so I've read the documentation, and I'm not quite sure what the arguments being passed are. I'm looking at the the listed example request: $facebook->api_client->profile_setFBML(NULL, 128009, 'profile', NULL, 'mobile_profile', 'profile_main'); and thin...
{ "language": "en", "url": "https://stackoverflow.com/questions/393376", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Starting a threadpool in a servlet container I have a servlet S which handles callbacks from a 3rd party site. The callback invocations happen in a specific order. Thus, I need to queue them. I propose to use an in-memory queue like java.util.ConcurrentLinkedQueue So the logic looks like this: * *Servlet S re...
{ "language": "en", "url": "https://stackoverflow.com/questions/393378", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Recommendations on using SQL Server GUID from MS Access I'm upsizing an existing MS Access backend to SQL Server 2008 and, because we want to use SQL Server Merge replication, I'll have to change all current primary keys (currently standard autoincrement integers) to GUID. So here are the questions: * *Any recomm...
{ "language": "en", "url": "https://stackoverflow.com/questions/393381", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Scale div vertically until all content is shown? I have a div with a set height of 200, and sometimes there's enough content inside to have to scroll. Is there any way to be able to scale/grow the div until there's no overflow in Scriptaculous? Edit: I looked at the wiki, especially at Effect.Scale (which seems like...
{ "language": "en", "url": "https://stackoverflow.com/questions/393385", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to call expire_fragment from Rails Observer/Model? I've pretty much tried everything, but it seems impossible to use expire_fragment from models? I know you're not supposed to and it's non-MVC, but surely there much be some way to do it. I created a module in lib/cache_helper.rb with all my expire helpers, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/393395", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "29" }
Q: Caching Frameworks for .NET other than Velocity What other caching frameworks are available for .NET besides the project codenamed Velocity. What are the ALT.NET options? A: There's always Oracle Coherence. Many of the caching technologies mentioned here also have .Net libraries (eg memcached. A: Distributed cac...
{ "language": "en", "url": "https://stackoverflow.com/questions/393406", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why HTTP protocol is designed in plain text way? Yesterday, I have a discussion with my colleagues about HTTP. It is asked why HTTP is designed in plain text way. Surely, it can be designed in binary way just like TCP protocol, using flags to represents different kinds of method(POST, GET) and variables (HTTP header...
{ "language": "en", "url": "https://stackoverflow.com/questions/393407", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "37" }
Q: Auto accepting contacts using phpmsnclass I'm currently using phpmsnclass to send messages to contacts on the MSN network. But to get the nickname on my "bot" to work I have to accept the "friend-request" my contacts has sent me. From the debuginfo I have found that around line 1672 in the file msn.clas.php it's a k...
{ "language": "en", "url": "https://stackoverflow.com/questions/393410", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: What are the strengths of Lua over CSharpCodeProvider in C# for dynamic code execution? In my scenario I want to interpret a script file and execute methods from assemblies. What advantages would Lua offer me? If you have used both Lua and the CSharpCodeProvider please contrast your experience with both. A: The m...
{ "language": "en", "url": "https://stackoverflow.com/questions/393422", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: WPF changing button background color when the window is disabled I have a button with a transparent background on a wpf window. Problem is, when I open up another window with a .showdialog the form becomes disabled as does the button, causing the button to go white (and stick out like a sore thumb); the same happens...
{ "language": "en", "url": "https://stackoverflow.com/questions/393428", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is an Open Channel Needed for Duplex Communication? Short Version: When I've created a Channel using ChannelFactory on a client which uses duplex communication, do I need to keep the channel open in order to receive the callback or can I call ChannelFactory.Close()? Long Version: I'm developing my first WCF service ...
{ "language": "en", "url": "https://stackoverflow.com/questions/393432", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Abuse of Adobe Flash Lots of websites in the wild seem to abuse their visitors by automatically starting flash based advertisements / trailers and the like. What are the defenses modern browsers offer, for example, * *Disallow automatic playing for a specific URL / site/ domain *Disallow speaker use [flash does...
{ "language": "en", "url": "https://stackoverflow.com/questions/393438", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Retrieve Contacts from Microsoft Exchange Server 2003 How to retrieve contacts from Microsoft Exchange Server 2003 using .net? A: One way to access Exchange 2000-2003 is with webdav. Here are a couple articles * *http://blogs.technet.com/kclemson/archive/2004/01/23/62247.aspx *http://www.msexchange.org/articl...
{ "language": "en", "url": "https://stackoverflow.com/questions/393468", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Best way to transfer an array between PHP and Javascript So I have an array of records retreived from a database. The array is in the format; $rows[0]['id']=1; $rows[0]['title']='Abc'; $rows[0]['time_left']=200; $rows[1]['id']=2; $rows[1]['title']='XYZ'; $rows[1]['time_left']=300; //And so on upto 10-20 rows What...
{ "language": "en", "url": "https://stackoverflow.com/questions/393479", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '-[UIViewController loadView] loaded the nib but no view was set From what I understand of the SDK, this exception is raised when the bindings in IB are not proper. But in my case, the view is loaded fine for the first two times. I...
{ "language": "en", "url": "https://stackoverflow.com/questions/393483", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Where can I find a good FFT sample implementation/tutorial? I've been looking everywhere for a sample Fast Fourier Transform implementation/tutorial in (preferably) C#. However, every one I've found has been poor at explaining what's going on, and/or poorly commented; or they assume that you already know the FFT alg...
{ "language": "en", "url": "https://stackoverflow.com/questions/393490", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Any real world experience debugging a production functional program? I'm interested in what tools and methods are used for diagnosing flaws in large scale functional programs. What tools are useful? My current understanding is that 'printf' debugging (e.g. add logging and redeploy) is what is typically used. If ...
{ "language": "en", "url": "https://stackoverflow.com/questions/393492", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: How to remove (?) while we convert our byte content from unicode to ansi character I need to convert the unicode characters to ansi characters byte[] encode = Encoding.Convert(Encoding.Unicode, Encoding.Default, report); I use this piece of code. While I am viewing this I found that extra ? character is added in t...
{ "language": "en", "url": "https://stackoverflow.com/questions/393495", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Stackoverflow's Related Questions Just wondering how you would go about implementing something similar to stackoverflow'd related questions. Would you simply match the tags, match similar words in the titles, or words in the entire question? Particular interested in a linqtosql method. Cheers! A: In Stackoverflow's...
{ "language": "en", "url": "https://stackoverflow.com/questions/393505", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Usage of CoTaskMemAlloc? When is it appropriate to use CoTaskMemAlloc? Can someone give an example? A: This MSDN article compares a few of the various allocators exposed by Win32, including CoTaskMemAlloc. It's mainly used in COM programming--most specifically when the implementation of a COM server needs to allo...
{ "language": "en", "url": "https://stackoverflow.com/questions/393509", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: Would you recommend Java/Glassfish/Metro for brand-new project? I developed in ASP.NET 2.0 for some time, and for slightly less time in Java/Spring/Hibernate. Right now I start developing new web-service and am confused with the choice of: .NET WCF 3.5 versus Java/Metro. From one side, WCF seems like a brilliantly d...
{ "language": "en", "url": "https://stackoverflow.com/questions/393510", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Unable to add a Service Reference to any WCF Service I'm using Visual Studio 2008 SP1 on .NET 3.5 SP1 on Vista Any time I try to add a Service Reference to any WCF service I get an error that says "Could not load type 'System.ServiceModel.FaultImportOptions' from assembly 'System.ServiceModel,Version=3.0.0.0, Cultur...
{ "language": "en", "url": "https://stackoverflow.com/questions/393524", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Good tools/frameworks to develop a game server in Java? I am making a game server for a turn based game. Not a web based server, but a process-based one. I want it to be scalable and I want the development process to go as smoothly as possible. I haven't used Java in forever and I need to brush up on my skills, so I...
{ "language": "en", "url": "https://stackoverflow.com/questions/393528", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Google Chrome: JavaScript Error Message When using Google Chrome, I receive the following error message: Error: Uncaught SyntaxError: Unexpected token < It occurs directly after my doctype declaration at the top of my HTML page <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xh...
{ "language": "en", "url": "https://stackoverflow.com/questions/393529", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: extension file "curl" is must be loaded Using XAMPP 1.6.7 I installed the community version of Magento. But there seems to be a problem. I am getting the error message 'extension file "curl" is must be loaded'. In another computer, everything seems fine. (the other computer) intel(R) Pentium(R) Dual CPU, E2140 @ 1.6...
{ "language": "en", "url": "https://stackoverflow.com/questions/393532", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Robots.txt to disallow everything and allow only specific parts of the site/pages. Is "allow" supported by crawlers like Ultraseek and FAST? Just wanted to know if it is possible to disallow the whole site for crawlers and allow only specific webpages or sections? Is "allow" supported by crawlers like FAST and Ultra...
{ "language": "en", "url": "https://stackoverflow.com/questions/393539", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How Can I add additional functions to Visual Studio's Server Explorer? I am trying to write simple Visual Studio Add-In for code generation. In my solution explorer window there is a database connection an I want to get table names from this active connection.How can I do this? A: Example This looks to be what you ...
{ "language": "en", "url": "https://stackoverflow.com/questions/393544", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Get the total amount price from gridview rows Am having a gridview (C#) ,which contains product name,product price,product code...... At the time of page load i need to get the sum of n rows product price to a label... (no sql database here)... Could any one help me out.... Thank you... A: You have to loop through ...
{ "language": "en", "url": "https://stackoverflow.com/questions/393552", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Python sqlite3 and concurrency I have a Python program that uses the "threading" module. Once every second, my program starts a new thread that fetches some data from the web, and stores this data to my hard drive. I would like to use sqlite3 to store these results, but I can't get it to work. The issue seems to be ...
{ "language": "en", "url": "https://stackoverflow.com/questions/393554", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "101" }
Q: When to use a linked list over an array/array list? I use a lot of lists and arrays but I have yet to come across a scenario in which the array list couldn't be used just as easily as, if not easier than, the linked list. I was hoping someone could give me some examples of when the linked list is notably better. A...
{ "language": "en", "url": "https://stackoverflow.com/questions/393556", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "241" }
Q: WCF Authentication WITHOUT SSL Is there a way to setup authentication (ala "Basic Authentication") without actually setting up an SSL Certificate? I'd also like to do this in REST or regular SOAP WCF Services, preferably in REST, but would like to be able to mix the services. In other words, "I want to be able to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/393580", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: How to set a list of integers while preparing SQL queries in Java I have a query like this - select * from tbl where ... and colname in (2,3,4) When I prepare the query (... ' colname in (?)' ) using a PreparedStatement in Java, what setter method should I call to set these integers ? The integers are available in ...
{ "language": "en", "url": "https://stackoverflow.com/questions/393595", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: PHP UML Generator How do I generate UML diagram based on existing classes in PHP? A: Have you tried Autodia yet? Last time I tried it it wasn't perfect, but it was good enough. A: There's also php2xmi. You have to do a bit of manual work, but it generates all the classes, so all you have to do is to drag them into...
{ "language": "en", "url": "https://stackoverflow.com/questions/393603", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "117" }
Q: Javascript dropdown I did a dropdown using JavaScript where on mouseover the dropdown opens. Now since i am using it in a side menu, i would like that when i go over the dropdown, instead of the dropdown items get over the items underneath, i would like that the items underneath move lower to make space. I managed t...
{ "language": "en", "url": "https://stackoverflow.com/questions/393616", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: RSpec vs Cucumber (RSpec stories) When should I use specs for Rails application and when Cucumber (former rspec-stories)? I know how both work and actively use specs, of course. But it still feels weird to use Cucumber. My current view on this, is that it's convenient to use Cucumber when you're implementing applica...
{ "language": "en", "url": "https://stackoverflow.com/questions/393622", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "136" }
Q: The server didn't send back a proper XML response I'm using FCKEditor in that when "Browse Server" button is clicked the following error is thrown. The server didn't send back a proper XML response. Please contact your system administrator. XML Request error: Not Found(404) Requested URL: /fckeditor/editor/fil...
{ "language": "en", "url": "https://stackoverflow.com/questions/393623", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How can I quickly find the user's terminal PID in Perl? The following snippet of code is used to find the PID of a user's terminal, by using ptree and grabbing the third PID from the results it returns. All terminal PID's are stored in a hash with the user's login as the key. ## If process is a TEMINAL. ## Th...
{ "language": "en", "url": "https://stackoverflow.com/questions/393627", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: What values to use for FastCGI maxrequests, maxspare, minspare, maxchildren? I'm running a Django app using FastCGI and lighttpd. Can somebody explain me what I should consider when deciding what value to use for maxrequests, maxspare, minspare, maxchildren? These options are not too well documented, but seem quite ...
{ "language": "en", "url": "https://stackoverflow.com/questions/393629", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: For iphone development, how to flip a UIImageView? I want to flip an imageView (left/right), but I can not find a UIView (or UIImageView) method to do that? any idea? thanks! A: I think the only thing you're looking for is: UIView's + (void)setAnimationTransition:(UIViewAnimationTransition)transition forView:(UIVie...
{ "language": "en", "url": "https://stackoverflow.com/questions/393633", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Does Flex support the data uri scheme? I wish to pass many small PNG files as base64 encoded URIs within an XML response, but there seems to be no way to make flex present these images. I was thinking of the data uri scheme, but it appears not to be supported. Proposed solutions * *Use Loader.LoadBytes Tried it...
{ "language": "en", "url": "https://stackoverflow.com/questions/393635", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Django + FastCGI - randomly raising OperationalError I'm running a Django application. Had it under Apache + mod_python before, and it was all OK. Switched to Lighttpd + FastCGI. Now I randomly get the following exception (neither the place nor the time where it appears seem to be predictable). Since it's random, an...
{ "language": "en", "url": "https://stackoverflow.com/questions/393637", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Flex XML elements vs. code It's possible within a Flex application, to declare elements, for example a HTTPService elements, both in XML and also in code. That is, either: ... or in code: var hs : HTTPService = ... My question is when should I prefer which alternative? What are the advantages of having stuff in XML ...
{ "language": "en", "url": "https://stackoverflow.com/questions/393638", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: 2 Column Mysql Date Range Search in PHP MySQL column > sdate, edate ( its 2 column). sdate is start date for project starting and edate is end date for project ending. so i need to make search between them.. <strong>Search</strong><br /> <form method="post" action="search.php"> Start Report Date : <input type="tex...
{ "language": "en", "url": "https://stackoverflow.com/questions/393639", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Has anyone experience with porting a D2007 + TntControls application to D2009? I have a rather large (freeware) project written with Delphi 2007 which is using both the TntUnicodeControls and the TntLXControls library and I'm planning to move to Delphi 2009. Unfortunately I'm using those libraries everywhere in my p...
{ "language": "en", "url": "https://stackoverflow.com/questions/393641", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: SQL query or sub-query? I've got a table of student information in MySQL that looks like this (simplified): | age : int | city : text | name : text | ----------------------------------------------------- | | | | I wish to select all student names and ages wi...
{ "language": "en", "url": "https://stackoverflow.com/questions/393644", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Delphi for PHP - location of source I just installed Delphi for PHP to get an idea on how it works and have created a simple app with a button that puts a text into a listbox when it is clicked. The app works if I copy all required files to my webserver and run it from there. It also works if I save the project in t...
{ "language": "en", "url": "https://stackoverflow.com/questions/393646", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Response Content type as CSV I need to send a CSV file in HTTP response. How can I set the output response as CSV format? This is not working: Response.ContentType = "application/CSV"; A: Use text/csv as the content type. A: Using text/csv is the most appropriate type. You should also consider adding a Content-Di...
{ "language": "en", "url": "https://stackoverflow.com/questions/393647", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "388" }
Q: Getting the list of shares connected to a machine Consider that i have connected to multiple shares of a remote machine( \\machineA\share1, \\machineA\share2....) along with shares on other remote machines. Now my question is how to find only those shares which are connected to a particular machine. For eg, only tho...
{ "language": "en", "url": "https://stackoverflow.com/questions/393654", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: AddExtensionObject - Performance .NET XSLT engine allows passing objects to the XSLT processing engine through the AddExtensionObject method. Can someone comment on the performance of using this to retrieve localized strings to be used in the XSLT? A: Extension objects can be used to improve performance if a part o...
{ "language": "en", "url": "https://stackoverflow.com/questions/393661", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Does using lists of structs make sense in cocoa? This question has spawned out of this one. Working with lists of structs in cocoa is not simple. Either use NSArray and encode/decode, or use a C type array and lose the commodities of NSArray. Structs are supposed to be simple, but when a list is needed, one would te...
{ "language": "en", "url": "https://stackoverflow.com/questions/393662", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: ASP.Net Ajax: How to add a custom control to the asp.net 2.0 toolbox from its DLL I have a MS AJAX toolkit DLL which I want to add to the toolbox items as a tab. How do I go about in doing this? A: * *Open the toolbox on the left-hand side of the IDE and find the Ajax Controls Tab *Right Click in the Tab, and se...
{ "language": "en", "url": "https://stackoverflow.com/questions/393663", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Disabling or overriding the excel and pdf export function in Reporting Services Is there a way to disable or override the excel and pdf export function in SQL Server Reporting Services. I want to my own custom excel export. A: To disable them, you can edit the ReportServer RSReportServer.Config file. Remove the Ex...
{ "language": "en", "url": "https://stackoverflow.com/questions/393669", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Using return statements to great effect! When I am making methods with return values, I usually try and set things up so that there is never a case when the method is called in such a way that it would have to return some default value. When I started I would often write methods that did something, and would either ...
{ "language": "en", "url": "https://stackoverflow.com/questions/393675", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Storing Dates in Oracle via Hibernate I'm storing a simple java.util.date in an Oracle XE database via hibernate. When testing with JUnit if I can retrieve the correct value, I get an error like this: junit.framework.AssertionFailedError: expected:<Sun Dec 28 11:20:27 CET 2008> but was:<2008-12-28 11:20:27.0> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/393678", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Converting an Oracle merge query into mysql mySQL query MERGE INTO PAGEEDITCONTROL A USING (SELECT '1585' AS PAGEID ,'admin' AS EDITUSER ,sysdate AS EDITDATE FROM DUAL) B ON (A.PAGEID = B.PAGEID) WHEN MATCHED THEN UPDATE SET A.EDITUSER = B.EDITU...
{ "language": "en", "url": "https://stackoverflow.com/questions/393679", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Windows CE Emulator related error when using VS.NET 2005 and 2008 I have a situation where i need to debug a Windows CE application in both Vs.NET 2008 as well as VS.NET 2005. After I switch between the emulators in these 2 environments a few times, i get the error: A fatal error has occurred and debugging needs to...
{ "language": "en", "url": "https://stackoverflow.com/questions/393681", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Change ReportViewer Currency Format? I was wondering how can I change currency format from US ($) to EURO (€) for a specific TextBox in Microsoft ReportViewer? Because it always displays a dollar sign in front and the format is ##,###.## and as for euro it must be like ##.###,## A: To add to the options already st...
{ "language": "en", "url": "https://stackoverflow.com/questions/393686", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How can I add my attributes to Code-Generated Linq2Sql classes properties? I would like to add attributes to Linq 2 Sql classes properties. Such as this Column is browsable in the UI or ReadOnly in the UI and so far. I've thought about using templates, anybody knows how to use it? or something different? Generally s...
{ "language": "en", "url": "https://stackoverflow.com/questions/393687", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "23" }
Q: What is the best way to use MicrosoftReportView control in ASP.NET MVC framework? Exactly same as the title of my question, What is the best way to use MicrosoftReportView control in ASP.NET MVC framework? I need to use report viewer control in asp.net mvc application, but I am so confused that how to use that contr...
{ "language": "en", "url": "https://stackoverflow.com/questions/393698", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Why C# compiler doesn't call implicit cast operator? Suppose we have following type: struct MyNullable<T> where T : struct { T Value; public bool HasValue; public MyNullable(T value) { this.Value = value; this.HasValue = true; } public static implicit operator T(MyNullable<...
{ "language": "en", "url": "https://stackoverflow.com/questions/393701", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How to link / group overloads in C# XML comments? In XML documentaiton comments for C#, is there a way to mark two or more functions to be overloads of each other, so that they reference each other automatically? Ideally, they'd also be grouped in the sandcastle-generated documentation somehow. Purpose: Often, I wan...
{ "language": "en", "url": "https://stackoverflow.com/questions/393707", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Missing file from Vista ProgramData folder I have a legacy VB6 program which installs an Access file in a sub-directory of the common data folder (CSIDL_COMMON_APPDATA). I have now installed this program on a 64-bit Vista system, and the program works fine and accesses the file at C:\ProgramData\Wow\WowCat.mdb, but ...
{ "language": "en", "url": "https://stackoverflow.com/questions/393708", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Difference between Oracle ATG and Struts? What is the difference between Oracle ATG and Struts? A: The main difference in the UK is that as an ATG contractor you can get £500 per day, but as a general Struts guy you're lucky to get £350. Not that I'm bitter at all. A: Struts is a framework for using within a J2EE...
{ "language": "en", "url": "https://stackoverflow.com/questions/393723", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: How to add CMS to an existing website I have an existing ASP.NET website which I would like to painlessly add CMS functionality to. The site is a estate agent's property website and is backed by a database etc. however some pages like 'About Us' etc. I would like the user to be able to edit using a simple CMS. I wo...
{ "language": "en", "url": "https://stackoverflow.com/questions/393725", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: How is the best way to write a SOAP 1.2 Client with Delphi Win32 So far, no Delphi version supports SOAP 1.2 clients or server. I have tried for weeks to make it works, but every time a new problem, with VS/C# I could do the same, and make works in 3 days, but I need to do with Delphi 2009. "I write a new version us...
{ "language": "en", "url": "https://stackoverflow.com/questions/393727", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Generic conversion function doesn't seem to work with Guids I have the following code: public static T ParameterFetchValue<T>(string parameterKey) { Parameter result = null; result = ParameterRepository.FetchParameter(parameterKey); return (T)Convert.ChangeType(result.CurrentValue, typeof(T), CultureIn...
{ "language": "en", "url": "https://stackoverflow.com/questions/393731", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "50" }
Q: How to prepopulate model objects with test data from file? I have some model objects I'm using in my Java client application. Later these model objects will be populated / retrieved from remote services (e.g. SOAP). Now I want to do manual / automatic testing of the frontend before implementing these services. The m...
{ "language": "en", "url": "https://stackoverflow.com/questions/393733", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to create Facebook style fixed Status bar? I want to create fixed status bar in by web form to display various status/messages/notification to user , i can used fixed CSS property but i want to implement in i.e 6/7 and in Firefox. and all the browsers. A: Here's a quick and easy solution on how to fix element/b...
{ "language": "en", "url": "https://stackoverflow.com/questions/393736", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Programmatic Form Submit I want to scrape the contents of a webpage. The contents are produced after a form on that site has been filled in and submitted. I've read on how to scrape the end result content/webpage - but how to I programmatically submit the form? I'm using python and have read that I might need to g...
{ "language": "en", "url": "https://stackoverflow.com/questions/393738", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Delphi Windows Services command line arguments I have a Deplhi based Windows Service that, on installation, parses some command line arguments. I want those arguments to be added to the services command line (ImagePath value on the registry) so that the service is always started with them. How can I accomplish this?...
{ "language": "en", "url": "https://stackoverflow.com/questions/393742", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Possibilities of two Web application under a single URL! I have two web applications developed using ASP.Net. I like to provide a link in Application A to access the aspx page in Application B. By this i can access this both application using the single URL. Is it possible? if it is possible then how should i procee...
{ "language": "en", "url": "https://stackoverflow.com/questions/393751", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why is C# a functional programmming language? It has been said that C# can be regarded as a functional programming language, even though it is widely recognized as a OO programming language. So, what feature set makes C# a functional programming language? I can only think of: * *delegates (even without anonymous ...
{ "language": "en", "url": "https://stackoverflow.com/questions/393757", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "34" }