text
stringlengths
8
267k
meta
dict
Q: Calling C# events from outside the owning class? Is it possible under any set of circumstances to be able to accomplish this? My current circumstances are this: public class CustomForm : Form { public class CustomGUIElement { ... public event MouseEventHandler Click; // etc, and so forth....
{ "language": "en", "url": "https://stackoverflow.com/questions/107972", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: Toad unicode input problem In toad, I can see unicode characters that are coming from oracle db. But when I click one of the fields in the data grid into the edit mode, the unicode characters are converted to meaningless symbols, but this is not the big issue. While editing this field, the unicode characters are dis...
{ "language": "en", "url": "https://stackoverflow.com/questions/107984", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do you recursively unzip archives in a directory and its subdirectories from the Unix command-line? The unzip command doesn't have an option for recursively unzipping archives. If I have the following directory structure and archives: /Mother/Loving.zip /Scurvy/Sea Dogs.zip /Scurvy/Cures/Limes.zip And I want t...
{ "language": "en", "url": "https://stackoverflow.com/questions/107995", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "92" }
Q: Optimal multiplayer maze generation algorithm I'm working on a simple multiplayer game in which 2-4 players are placed at separate entrypoints in a maze and need to reach a goal point. Generating a maze in general is very easy, but in this case the goal of the game is to reach the goal before everyone else and I do...
{ "language": "en", "url": "https://stackoverflow.com/questions/108000", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How can I get the filetype icon that Windows Explorer shows? first question here. I'm developing a program in C# (.NET 3.5) that displays files in a listview. I'd like to have the "large icon" view display the icon that Windows Explorer uses for that filetype, otherwise I'll have to use some existing code like this:...
{ "language": "en", "url": "https://stackoverflow.com/questions/108005", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: PLY: Token shifting problem in C parser I'm writing a C parser using PLY, and recently ran into a problem. This code: typedef int my_type; my_type x; Is correct C code, because my_type is defined as a type previously to being used as such. I handle it by filling a type symbol table in the parser that gets used by t...
{ "language": "en", "url": "https://stackoverflow.com/questions/108009", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Parse multiple XML files with ASP.NET (C#) and return those with particular element Greetings. I'm looking for a way to parse a number of XML files in a particular directory with ASP.NET (C#). I'd like to be able to return content from particular elements, but before that, need to find those that have a certain valu...
{ "language": "en", "url": "https://stackoverflow.com/questions/108010", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Weather web service for Europe? We are looking for a reliable "current weather" web service for Europe, with city resolution. We only need the current weather. Since it is for a commercial web site, we don't mind paying a reasonable fee for the service. What are our options? What service would you recommend or avoi...
{ "language": "en", "url": "https://stackoverflow.com/questions/108025", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: What is Cloud computing? Could anybody explain in plain words how Cloud computing works? I have read the Wikipedia article, but still not sure that I understand how cloud actually works. A: The term is so new that there's no accepted definition, particularly since Dell (!) failed to trademark the term. Essentially ...
{ "language": "en", "url": "https://stackoverflow.com/questions/108037", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "48" }
Q: Closing/cleaning up "mixed" file descriptors / sockets When I create a socket using accept() and make a FILE out of it using fdopen(), what do I have to do to clean everything up? Do I need to do fclose() on the FILE, shutdown() and close() on the socket, or only the shutdown() and or close() or fclose()? If I don't...
{ "language": "en", "url": "https://stackoverflow.com/questions/108043", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Whats the best Ribbon UI control to retro fit to a legacy MFC application build with VC2005? What experience have you had with introducing a Ribbon style control to legacy MFC applications? I know it exists in the new VC2008 Feature Pack, but changing compilers from VC2005 is a big deal for our source base and inte...
{ "language": "en", "url": "https://stackoverflow.com/questions/108047", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: MOSS 2007: BDC permisson problem - no BDC application is listed in the web part's configuration menu I'm actually working at MOSS 2007 project where I have to import data from an external data source (WebService) via an application in the Business Data Catalog. The application definition was created with BDC Meta Ma...
{ "language": "en", "url": "https://stackoverflow.com/questions/108051", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do you diagnose a leak in C memory caused by a Java program? I'm working on a large application (300K LOC) that is causing a memory leak in the Sun 1.6 JVM (1.6_05). Profiling the Java shows no leak. Are there any diagnostics available from the JVM that might detect the cause of the leak? I haven't been able to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/108057", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: struts action controller - multithreaded? when they say the action controller in the struts framework is multi threaded, does it mean that there are multiple instances of the servlet taking the request and forwarding it to the model. OR does it mean that there is one single instance taking all the requests? Any visu...
{ "language": "en", "url": "https://stackoverflow.com/questions/108059", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Are there any High Level, easy to install GUI libraries for Common Lisp? Are there any good, cross platform (SBCL and CLISP at the very least) easy to install GUI libraries? A: clg is a binding of GTK for Common Lisp. Both complete and lispish. If you want to design graphical interfaces in CL, you might want to tak...
{ "language": "en", "url": "https://stackoverflow.com/questions/108081", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "36" }
Q: Best practices for detecting DOS (denial of service) attacks? I am looking for best practices for detecting and preventing DOS in the service implementation (not external network monitoring). The service handles queries for user, group and attribute information. What is your favorite source of information on deali...
{ "language": "en", "url": "https://stackoverflow.com/questions/108088", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: Flex - best strategy for keeping client data in synch with backend database? In an Adobe flex applicaiton using BlazeDS AMF remoting, what is the best stategy for keeping the local data fresh and in synch with the backend database? In a typical web application, web pages refresh the view each time they are loaded,...
{ "language": "en", "url": "https://stackoverflow.com/questions/108089", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Disabling single line copy in Visual Studio Is there anyway to disable the rather annoying feature that Visual Studio (2008 in my case) has of copying the line (with text on it) the cursor is on when CTRL-C is pressed and no selection is made? I know of the option to disable copying blank lines. But this is driving ...
{ "language": "en", "url": "https://stackoverflow.com/questions/108094", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "37" }
Q: How does VxWorks deal with priority inheritance? We have 3 tasks running at different priorities: A (120), B (110), C (100). A takes a mutex semaphore with the Inversion Safe flag. Task B does a semTake, which causes Task A's priority to be elevated to 110. Later, task C does a semTake. Task A's priority is now 100....
{ "language": "en", "url": "https://stackoverflow.com/questions/108098", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do I convert a System.Type to its nullable version? Once again one of those: "Is there an easier built-in way of doing things instead of my helper method?" So it's easy to get the underlying type from a nullable type, but how do I get the nullable version of a .NET type? So I have typeof(int) typeof(DateTime) Sy...
{ "language": "en", "url": "https://stackoverflow.com/questions/108104", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "83" }
Q: MEF (Managed Extensibility Framework) vs IoC/DI What problems does MEF (Managed Extensibility Framework) solves that cannot be solved by existing IoC/DI containers? A: The principle purpose of MEF is extensibility; to serve as a 'plug-in' framework for when the author of the application and the author of the plug-i...
{ "language": "en", "url": "https://stackoverflow.com/questions/108116", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "56" }
Q: How to apply bold style to a specific word in Excel file using Python? I am using pyexcelerator Python module to generate Excel files. I want to apply bold style to part of cell text, but not to the whole cell. How to do it? A: This is an example from Excel documentation: With Worksheets("Sheet1").Range("B1") ...
{ "language": "en", "url": "https://stackoverflow.com/questions/108134", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: InstallShield: FilterProperty column of ISComponentExtended table? Anybody has an idea what this custom table is used for and what is the meaning of this column in particular? Documentation is silent about it and the info on the Net is scarce. A: I'm trying to do the same with my InstallShield project. Have you bee...
{ "language": "en", "url": "https://stackoverflow.com/questions/108135", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: What is the best way to replace the file browse button in html? I know that it's possible to replace the browse button, which is generated in html, when you use input tag with type="file. I'm not sure what is the best way, so if someone has experience with this please contribute. A: Browsers don't really like you ...
{ "language": "en", "url": "https://stackoverflow.com/questions/108149", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: How do I take a slice of a list (A sublist) in scheme? Given a list, how would I select a new list, containing a slice of the original list (Given offset and number of elements) ? EDIT: Good suggestions so far. Isn't there something specified in one of the SRFI's? This appears to be a very fundamental thing, so I'm ...
{ "language": "en", "url": "https://stackoverflow.com/questions/108169", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: Hibernate 3: unable to query PostgreSQL database I am setting up a project using Hibernate 3.3.1 GA and PostgreSQL 8.3. I've just created a database, the first table, added one row there and now configuring Hibernate. However, even the simplest query: Criteria criteria = session.createCriteria(Place.class); List res...
{ "language": "en", "url": "https://stackoverflow.com/questions/108171", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to prevent SIGPIPEs (or handle them properly) I have a small server program that accepts connections on a TCP or local UNIX socket, reads a simple command and (depending on the command) sends a reply. The problem is that the client may have no interest in the answer and sometimes exits early. So writing to that...
{ "language": "en", "url": "https://stackoverflow.com/questions/108183", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "293" }
Q: Union and Intersect in Django class Tag(models.Model): name = models.CharField(maxlength=100) class Blog(models.Model): name = models.CharField(maxlength=100) tags = models.ManyToManyField(Tag) Simple models just to ask my question. I wonder how can i query blogs using tags in two different ways. * *Blog...
{ "language": "en", "url": "https://stackoverflow.com/questions/108193", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "34" }
Q: Best way to extract a timezone from a mail Date header in Java? I need to store the timezone an email was sent from. Which is the best way to extract it from the email's 'Date:' header (an RFC822 date)? And what is the recommended format to store it in the database (I'm using hibernate)? A: Probably easiest to pars...
{ "language": "en", "url": "https://stackoverflow.com/questions/108200", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How do I make an HTML text box show a hint when empty? I want the search box on my web page to display the word "Search" in gray italics. When the box receives focus, it should look just like an empty text box. If there is already text in it, it should display the text normally (black, non-italics). This will help m...
{ "language": "en", "url": "https://stackoverflow.com/questions/108207", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "231" }
Q: Add a column to existing table and uniquely number them on MS SQL Server I want to add a column to an existing legacy database and write a procedure by which I can assign each record a different value. Something like adding a column and autogenerate the data for it. Like, if I add a new column called "ID" (number) I...
{ "language": "en", "url": "https://stackoverflow.com/questions/108211", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "131" }
Q: What could be the causes of "permission denied" for tty1? On my VPS server (Fedora 9), mingetty keeps respawning itself because of a "permission denied" error on tty[1-6], even though: root# ls -la /dev/tty1 crw------- 1 root root 4, 1 Sep 19 14:22 /dev/tty1 Even weirder, this doesn't work: root# cat </dev/tty1 b...
{ "language": "en", "url": "https://stackoverflow.com/questions/108251", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Subclassed form not behaving properly in Designer view (VS 2008) I have subclassed Form to include some extra functionality, which boils down to a List<Image> which displays in a set of predefined spots on the form. I have the following: public class ButtonForm : Form { public class TitleButton { pu...
{ "language": "en", "url": "https://stackoverflow.com/questions/108270", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Should a novice programmer spend time learning to write "desktop" applications these days, or is the web where it's at? As a novice, I've spent time learning a smattering of C and a fair bit of PHP. I've looked at writing desktop applications for Windows, but there seems to be a fair barrier to entry due to complexi...
{ "language": "en", "url": "https://stackoverflow.com/questions/108272", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: How to play a sound in Actionscript 3 that is not in the same directory as the SWF? I have a project with a bunch of external sounds to a SWF. I want to play them, but any time I attempt load a new URL into the sound object it fails with either, Error #2068: Invalid Sound or raises an ioError with Error #2032 S...
{ "language": "en", "url": "https://stackoverflow.com/questions/108276", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Can I refactor my MySQL queries into one query based on number of results? I have a table y Which has two columns a and b Entries are: a b 1 2 1 3 1 4 0 5 0 2 0 4 I want to get 2,3,4 if I search column a for 1, and 5,2,4 if I search column a. So, if I search A for something that is in A, (1) I g...
{ "language": "en", "url": "https://stackoverflow.com/questions/108281", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to send clean email messages from your application? When developing an application that sends out notification email messages, what are the best practices for * *not getting flagged as a spammer by your hosting company. (Cover any of:) * *best technique for not flooding a mail server *best mail server p...
{ "language": "en", "url": "https://stackoverflow.com/questions/108292", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: GWT or DOJO or something else? I come from the Microsoft world (and I come in peace). I want to rapidly prototype a web app and if it works out, take it live - and I don't want to use ASP.Net. I am not sure which web application toolkit to use though. Should I use GWT, DOJO...other recommendations? I am open to any...
{ "language": "en", "url": "https://stackoverflow.com/questions/108294", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Is "do not load this page directly" really necessary in PHP? I was going to ask what the best way to do this is, but then decided I should ask whether or not it is even necessary. I have never seen it done in JSP development, but it appears to be common practice in PHP. What is the reasoning behind this, and if I do...
{ "language": "en", "url": "https://stackoverflow.com/questions/108301", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I test whether a number is a power of 2? I need a function like this: // return true if 'n' is a power of 2, e.g. // is_power_of_2(16) => true // is_power_of_2(3) => false bool is_power_of_2(int n); Can anyone suggest how I could write this? A: A power of two will have just one bit set (for unsigned numb...
{ "language": "en", "url": "https://stackoverflow.com/questions/108318", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "106" }
Q: Code behind in ASP.NET MVC What is the purpose of the code behind view file in ASP.NET MVC besides setting of the generic parameter of ViewPage ? A: Ultimately, the question you ask yourself is this: Does this code A) Process, store, retrieve, perform operations on or analyze the data, or B) Help to display the dat...
{ "language": "en", "url": "https://stackoverflow.com/questions/108320", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: What Fortran compilers are there? What Fortran compilers are there in this day and age, and which would you recommend? Please list the version of Fortran it supports, the platform it works on (e.g. *nix / Windows), and whether it cost money. (Standard OS one per answer etc.) A: GFortran - part of GCC is free and wo...
{ "language": "en", "url": "https://stackoverflow.com/questions/108327", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Checking for external dependances in vb.net Something i've never really done before, but what is the best way to make sure that any external assemblies/dll's that my application uses are available, and possibly the correct version. I wrote an app that relies on the System.Data.SQLite.dll, i went to test it on a mach...
{ "language": "en", "url": "https://stackoverflow.com/questions/108346", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: best way to get started in setting up Mono for ASP.NET on Mac I have recently gained access to a Mac. I am wondering if anyone has any tips/advice for setting up Mono on a mac for development and execution of ASP.NET? Most resources point to Linux implementations which tend to differ a lot from the way Mac's do thin...
{ "language": "en", "url": "https://stackoverflow.com/questions/108380", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Apache and IIS side by side (both listening to port 80) on windows2003 What are some good ways to do this? Is it even possible to do cleanly? Ideally I'd like to use packet headers to decide which server should handle requests. However, if there is an easier/better way let me know. A: You need at least mod_proxy a...
{ "language": "en", "url": "https://stackoverflow.com/questions/108387", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "47" }
Q: Is it a good (correct) way to encapsulate a collection? class MyContainedClass { }; class MyClass { public: MyContainedClass * getElement() { // ... std::list<MyContainedClass>::iterator it = ... // retrieve somehow return &(*it); } // other methods private: std::list<MyContainedClass> m_contain...
{ "language": "en", "url": "https://stackoverflow.com/questions/108389", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Fluent NHibernate Many-to-Many I am using Fluent NHibernate and having some issues getting a many to many relationship setup with one of my classes. It's probably a stupid mistake but I've been stuck for a little bit trying to get it working. Anyways, I have a couple classes that have Many-Many relationships. publi...
{ "language": "en", "url": "https://stackoverflow.com/questions/108396", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "22" }
Q: What embedded database with Isolated Storage support can you recommend? I'm looking for embedded database engine supporting isolating storage. Currently I'm aware of VistaDB. What else you can recommend? Requirements are pretty simple: * *xcopy deployment *support for isolated storage *preferably free Note ...
{ "language": "en", "url": "https://stackoverflow.com/questions/108399", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Solutions for INSERT OR UPDATE on SQL Server Assume a table structure of MyTable(KEY, datafield1, datafield2...). Often I want to either update an existing record, or insert a new record if it doesn't exist. Essentially: IF (key exists) run update command ELSE run insert command What's the best performing way t...
{ "language": "en", "url": "https://stackoverflow.com/questions/108403", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "715" }
Q: How can I compile Asp.Net Aspx Pages before loading them with a webserver? It's really annoying that visual studio hides typos in aspx pages (not the code behind). If the compiler would compile them, I would get a compile error. A: Resharper will catch errors in code ofASPX pages, all without compiling. works well...
{ "language": "en", "url": "https://stackoverflow.com/questions/108405", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "35" }
Q: Does anyone know of a good MAML editor At work we use Sandcastle for creation of help files. I have been using SandCastleGUI for some time and I'm looking for a way to create additional pages in the help file. These pages are written in XML format called MAML. The only problem is that I couldn't find any decent ed...
{ "language": "en", "url": "https://stackoverflow.com/questions/108429", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Can IIS7 be installed on XP? I'm pretty sure I know the answer to this, but short of a virtual Vista installation, is there a way to install IIS 7 on XP? A: No. Which means I'm moving to vista this week as I have to use IIS7. EDIT: Ha - voted up! I assume it's a sympathy vote. :-) A: I think it would be better ...
{ "language": "en", "url": "https://stackoverflow.com/questions/108432", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Persistent Binary Tree / Hash table in .Net I need a pure .Net persistent hashtable/binarytree, functionally similar to berkeley-db Java edition. Functionally it should opperate in a similar maner to a DHT such memcached and velocity etc but it doesn't have to be distributed. In essence I am looking for a persisten...
{ "language": "en", "url": "https://stackoverflow.com/questions/108435", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How do I get the result of a command in a variable in windows? I'm looking to get the result of a command as a variable in a Windows batch script (see how to get the result of a command in bash for the bash scripting equivalent). A solution that will work in a .bat file is preferred, but other common windows script...
{ "language": "en", "url": "https://stackoverflow.com/questions/108439", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "173" }
Q: The ideal multi-server LAMP environment There's alot of information out there on setting up LAMP stacks on a single box, or perhaps moving MySQL onto it's own box, but growing beyond that doesn't seem to be very well documented. My current web environment is having capacity issues, and so I'm looking for best-practi...
{ "language": "en", "url": "https://stackoverflow.com/questions/108440", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Data structure for assembly code? [research] I'm planning to create a data structure optimized to hold assembly code. That way I can be totally responsible for the optimization algorithms that will be working on this structure. If I can compile while running. It will be kind of dynamic execution. Is this possible? H...
{ "language": "en", "url": "https://stackoverflow.com/questions/108443", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Will having multiple filegroups help speed up my database? Currently, I am developing a product that does fairly intensive calculations using MS SQL Server 2005. At a high level, the architecture of my product is based on the concept of "runs" where each time I do some analytics it gets stored in a series of run ta...
{ "language": "en", "url": "https://stackoverflow.com/questions/108445", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Multi-Format File Viewer for .Net Development Is anyone aware of a multi-format file viewer, capable of displaying common image formats, as well as MS Office document formats (at least Word and Excel), and PDFs? I've seen several image viewers available, but none besides Outside In from Oracle. I'm looking for view...
{ "language": "en", "url": "https://stackoverflow.com/questions/108459", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do I pop up an image in a separate div on mouse-over using CSS only? I have a small gallery of thumbnails. When I place my mouse pointer over a thumbnail image I'd like to have a full size image pop up in a div in the top right of the screen. I've seen this done using just CSS and I'd like to go down that route ...
{ "language": "en", "url": "https://stackoverflow.com/questions/108461", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How do I get started reverse engineering z80 machine code? I have a .z80 memory dump. How do I reverse engineer it? What do I need to know? How can I minimize manual labour? A: It depends on what operating system your in, there are a lot of good tools here: http://www.z80.info/z80sdt.htm The first program I ever wr...
{ "language": "en", "url": "https://stackoverflow.com/questions/108485", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Can I check if a SOAP web service supports a certain WebMethod? Our web services are distributed across different servers for various reasons (such as decreasing latency to the client), and they're not always all up-to-date. Rather than throwing an exception when a method doesn't exist because the particular web ser...
{ "language": "en", "url": "https://stackoverflow.com/questions/108499", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: MySQL: Advisable number of rows Consider an indexed MySQL table with 7 columns, being constantly queried and written to. What is the advisable number of rows that this table should be allowed to contain before the performance would be improved by splitting the data off into other tables? A: There's no magic number,...
{ "language": "en", "url": "https://stackoverflow.com/questions/108503", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: DataGridViewCell Bordercolor Does anyone know how to change the Bordercolor for a Datagridviewcell in c#? Here's a picture of what I mean: Datagridviewstyle http://www.zivillian.de/datagridview.png Picture Backgroundcolor, Textcolor and Images are no Problem, but I don't know how to realise the Borders. EDIT: I wan...
{ "language": "en", "url": "https://stackoverflow.com/questions/108505", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: RSA encryption library for C++ I am developing a Win32 application and I would like to use an RSA encryption library. Which library would you recommend? A: I use the following library: http://www.efgh.com/software/rsa.htm It's public domain, compact, self contained, and does the work well. A: As an alternative, co...
{ "language": "en", "url": "https://stackoverflow.com/questions/108518", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "36" }
Q: Sharepoint calculated field's formula for created by i have a sharepoint list with 2 users for examole (user A and user B) i need a calculated field in the list items such that if user "A" created the item the field vaule will be "X" and if user "B" created the item fields value would be "Y" but i couldnt use [...
{ "language": "en", "url": "https://stackoverflow.com/questions/108521", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How should I best emulate and/or avoid enum's in Python? I've been using a small class to emulate Enums in some Python projects. Is there a better way or does this make the most sense for some situations? Class code here: class Enum(object): '''Simple Enum Class Example Usage: >>> codes = Enum('FOO BAR BAZ') # codes...
{ "language": "en", "url": "https://stackoverflow.com/questions/108523", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: What are the main differences between CLTL2 and ANSI CL? Any online links / resources? A: Bill Clementson has http://bc.tech.coop/cltl2-ansi.htm which is a repost of http://groups.google.com/group/comp.lang.lisp/msg/0e9aced3bf023d86 I also found http://web.archive.org/web/20060111013153/http://www.ntlug.org/~cbbrow...
{ "language": "en", "url": "https://stackoverflow.com/questions/108537", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Cookies and subdomains Can a cookie be shared between two sites on the same top level domain? Say www.example.com and secure.example.com ? We are looking into implementing a cache for non-secure content, and need to segregate secure content to another domain. What parameters does the cookie need? I'm using asp.net ...
{ "language": "en", "url": "https://stackoverflow.com/questions/108558", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: Moving Directories with History I have a SVN structure like this: /Projects /Project1 /Project2 /someFolder /Project3 /Project4 I would like to move all the projects into the /Projects folder, which means I want to move Projects 3 and 4 from /someFolder into the /projects folder. The caveat: I'd lik...
{ "language": "en", "url": "https://stackoverflow.com/questions/108567", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "70" }
Q: Topological sort, recursive, using generators Data: a dependency list, already verified to be acyclic. So here, 'a' depends on 'b','c' (c depends on d), etc... A = { 'a' : dict(b=1, c=1), 'c' : dict(d=1), 'd' : dict(e=1,f=1,g=1), 'h' : dict(j=1) } I'd like to have a top-down, recursive solution...
{ "language": "en", "url": "https://stackoverflow.com/questions/108586", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: MalformedInputException while using Shrinksafe with IBM JRE While trying to use Shrinksafe custom_rhino.jar to build Dojo I get MalformedInputException. The problem occurs when build reaches custom widgets/templates which contain french letters stored in UTF-8. The AIX machine has LANG=en_US which should be correct,...
{ "language": "en", "url": "https://stackoverflow.com/questions/108593", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Entity Framework: how to return a base type from L2E Considering the following architecture: * *a base object 'Entity' *a derived object 'Entry:Base' *and a further derived object 'CancelledEntry:Entry' In EntitySQL I can write the following: [...] where it is of (only MyEntities.Entry) [...] to return only...
{ "language": "en", "url": "https://stackoverflow.com/questions/108598", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What factor determines the cost of a software project? If you have $100 in your hand right now. And have to bet on one of these options. That would you bet it on? The question is: What is the most important factor, that determents the cost of a project. * *Typing speed of the programmers. *The total amount of c...
{ "language": "en", "url": "https://stackoverflow.com/questions/108604", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Script.aculo.us Autocompleter problem in IE I'm struggling with a problem with the Script.aculo.us Autocompleter control in IE (I've tried it in IE6 & 7). The suggestions fail to appear for the first character is entered into the text box after the page has been loaded. After that initial failure, the control works ...
{ "language": "en", "url": "https://stackoverflow.com/questions/108650", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: What is the reasoning behind the recommended layout for Subversion repositories? Version Control with Subversion recommends the following layout for (single-project) repositories (complemented by this question): /trunk /tags /rel.1 (approximately) ... /branches /rel1fixes What are the relative merits of this ...
{ "language": "en", "url": "https://stackoverflow.com/questions/108682", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: Issues creating a box using CSS I want to create a box shape and I am having trouble. I want the box to have a background color, and then different color inside the box. The box will then have a list of items using ul and li, and each list item will have a background of white, and the list item's background color is...
{ "language": "en", "url": "https://stackoverflow.com/questions/108687", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Custom Text Wrapping in WPF Is there a way of wrapping text in a non-rectangular container in WPF? Here is how it is done in photoshop A: Unfortunately there isn't a straightforward way without making a complete implementation of a TextFormatter. MSDN article on the basics of an Advanced TextFormatter: The text l...
{ "language": "en", "url": "https://stackoverflow.com/questions/108689", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Is there a Java unit-test framework that auto-tests getters and setters? There is a well-known debate in Java (and other communities, I'm sure) whether or not trivial getter/setter methods should be tested. Usually, this is with respect to code coverage. Let's agree that this is an open debate, and not try to answe...
{ "language": "en", "url": "https://stackoverflow.com/questions/108692", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "43" }
Q: Good PHP ORM Library? Is there a good object-relational-mapping library for PHP? I know of PDO/ADO, but they seem to only provide abstraction of differences between database vendors not an actual mapping between the domain model and the relational model. I'm looking for a PHP library that functions similarly to the...
{ "language": "en", "url": "https://stackoverflow.com/questions/108699", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "267" }
Q: VS2005 VB.NET XML Comments ''' - stopped working I'm using VS2005 in a solution with a mix of VB and C# in different projects. I use this solution on several different computers and XML comments with both /// (c#) and ''' (VB) have been fine for months. all of a sudden, on my main development machine, they've stoppe...
{ "language": "en", "url": "https://stackoverflow.com/questions/108717", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: Suggestions for implementation of a command line interface I am redesigning a command line application and am looking for a way to make its use more intuitive. Are there any conventions for the format of parameters passed into a command line application? Or any other method that people have found useful? A: One t...
{ "language": "en", "url": "https://stackoverflow.com/questions/108728", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "37" }
Q: Needless pointer-casts in C I got a comment to my answer on this thread: Malloc inside a function call appears to be getting freed on return? In short I had code like this: int * somefunc (void) { int * temp = (int*) malloc (sizeof (int)); temp[0] = 0; return temp; } I got this comment: Can I just say, pleas...
{ "language": "en", "url": "https://stackoverflow.com/questions/108768", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: DatagridView virtual model with comboboxColumn is it possible to have different items in different rows within a comboboxcolumn in a datagridview. This would be using virtual mode. Code samples would be great. A: I think what you're looking for is here. The technique involves handling the EditingControlShowing ev...
{ "language": "en", "url": "https://stackoverflow.com/questions/108777", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is EJB still alive? Do you still use session or entity EJBs in your project? Why? A: We're working with EJB here and it works quite well with JBoss Seam and JSF, Faclets and MyFaces Trinidad. Good UI, Templating, AJAX and stable production 24/7 running on JBoss 4.2. It's a good stack for business processes, workflo...
{ "language": "en", "url": "https://stackoverflow.com/questions/108782", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Generally define the process of testing How would you define testing? In the interest of full disclosure, I'm posting this because I already have some answers I like. A: “Testing is the process of comparing the invisible to the ambiguous, so as to avoid the unthinkable happening to the anonymous.”– James Bach It s...
{ "language": "en", "url": "https://stackoverflow.com/questions/108798", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Convert timestamp to alphanum I have an application where a user has to remember and insert an unix timestamp like 1221931027. In order to make it easier to remember the key I like to reduce the number of characters to insert through allowing the characters [a-z]. So I'm searching for an algorithm to convert the tim...
{ "language": "en", "url": "https://stackoverflow.com/questions/108807", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: 404 Http error handler in Asp.Net MVC (RC 5) How can I Handler 404 errors without the framework throwing an Exception 500 error code? A: You can also override HandleUnknownAction within your controller in the cases where a request does match a controller, but doesn't match an action. The default implementation does...
{ "language": "en", "url": "https://stackoverflow.com/questions/108813", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: Best way to randomize an array with .NET What is the best way to randomize an array of strings with .NET? My array contains about 500 strings and I'd like to create a new Array with the same strings but in a random order. Please include a C# example in your answer. A: This algorithm is simple but not efficient, O(N...
{ "language": "en", "url": "https://stackoverflow.com/questions/108819", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "182" }
Q: Delete all data for a kind in Google App Engine I would like to wipe out all data for a specific kind in Google App Engine. What is the best way to do this? I wrote a delete script (hack), but since there is so much data is timeout's out after a few hundred records. A: Try using App Engine Console then you dont ev...
{ "language": "en", "url": "https://stackoverflow.com/questions/108822", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "47" }
Q: How Do You Clone A VM Using VMware Fusion? Is it possible to clone a virtual machine using VMware Fusion on Mac OS X? I'm trying the 30 day evaluation version but there doesn't appear to be a clone feature. I tried using the Finder to copy a VM's package structure but the copy didn't appear in the Virtual Machine Li...
{ "language": "en", "url": "https://stackoverflow.com/questions/108832", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: Running code in the context of a java WAR from the command line How would I go about writing some code to allow access to a Java class in my webapp from the command line. E.g. I have a java class with command line interface, that can runs code in the context of the webapp, with access to the DB etc. I want to log on...
{ "language": "en", "url": "https://stackoverflow.com/questions/108838", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Python Music Library? I'm looking at writing a little drum machine in Python for fun. I've googled some and found the python pages on music and basic audio as well as a StackOverflow question on generating audio files, but what I'm looking for is a decent library for music creation. Has anyone on here tried to do ...
{ "language": "en", "url": "https://stackoverflow.com/questions/108848", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "41" }
Q: Relative urls for Javascript files I have some code in a javascript file that needs to send queries back to the server. The question is, how do I find the url for the script that I am in, so I can build a proper request url for ajax. I.e., the same script is included on /, /help, /whatever, and so on, while it will ...
{ "language": "en", "url": "https://stackoverflow.com/questions/108853", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: Is there memset() that accepts integers larger than char? Is there a version of memset() which sets a value that is larger than 1 byte (char)? For example, let's say we have a memset32() function, so using it we can do the following: int32_t array[10]; memset32(array, 0xDEADBEEF, sizeof(array)); This will set the v...
{ "language": "en", "url": "https://stackoverflow.com/questions/108866", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "35" }
Q: Objectively, what are the pros and cons of Cairngorm over PureMVC? There are so many reasons why using an MVC framework in Flex rocks, but picking the right one seems tricky. I am interested in what you all think from your experiences of implementing either of these (or another). Sam A: The question has already be...
{ "language": "en", "url": "https://stackoverflow.com/questions/108889", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is there something like 'autotest' for Python unittests? Basically, growl notifications (or other callbacks) when tests break or pass. Does anything like this exist? If not, it should be pretty easy to write.. Easiest way would be to.. * *run python-autotest myfile1.py myfile2.py etc.py * *Check if files-to-be...
{ "language": "en", "url": "https://stackoverflow.com/questions/108892", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "44" }
Q: Programmatically updating FILEVERSION in a MFC app w/SVN revision number How do I go about programmatically updating the FILEVERSION string in an MFC app? I have a build process that I use to generate a header file which contains the SVN rev for a given release. I'm using SvnRev from http://www.compuphase.com/svnrev...
{ "language": "en", "url": "https://stackoverflow.com/questions/108900", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Where can I find good tutorials on XSL-FO (Formatting/ed Objects), the stuff one feeds to fop and get PDF's? On a company that I've worked, me and my colleagues, implemented a tailored document distribution system on top of XSL-FO. My task was to get the script to deliver the documents and configure the CUPS print s...
{ "language": "en", "url": "https://stackoverflow.com/questions/108926", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Application Context in Rails Rails comes with a handy session hash into which we can cram stuff to our heart's content. I would, however, like something like ASP's application context, which instead of sharing data only within a single session, will share it with all sessions in the same application. I'm writing a s...
{ "language": "en", "url": "https://stackoverflow.com/questions/108938", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How do I use (require :PACKAGE) in clisp under Ubuntu Hardy? I am trying to evaluate the answer provided here, and am getting the error: "A file with name ASDF-INSTALL does not exist" when using clisp: dsm@localhost:~$ clisp -q [1]> (require :asdf-install) *** - LOAD: A file with name ASDF-INSTALL does not exist Th...
{ "language": "en", "url": "https://stackoverflow.com/questions/108940", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }