text
stringlengths
8
267k
meta
dict
Q: Whats ResolveAll do In IOC's what does ResolveAll do?? I know that the offical answer is "Resolve all valid components that match this type." Does that mean that it will return any class that implements a given interface? A: With Unity, ResolveAll resolves each registered mapping for an interface except for the def...
{ "language": "en", "url": "https://stackoverflow.com/questions/343085", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: NSTextView not updating in a loop while writing to a USB device I am writing an Objective-C application which communicates with a USB device. The application writes certain data to the device continuously and displays the status of the write operation in a textView, which is an object of NSTextView. I call the -[NST...
{ "language": "en", "url": "https://stackoverflow.com/questions/343088", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Thread deadlock when using ReadDirectoryChangesW asynchronously I want to monitor in real-time the changes of several directories in one thread, so I decided to use ReadDirectoryChangesW() method asynchronously with GetQueuedCompletionStatus. Here is my code: static DWORD WINAPI Routine( LPVOID lParam ) { FileSy...
{ "language": "en", "url": "https://stackoverflow.com/questions/343099", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to get .NET version (1.1, 2.0, 3.0 etc.) under which an Assembly was built? I have an assembly. Is there a way to detect which version of .NET was used to build that assembly? A: You could possibly use Assembly.ImageRuntimeVersion. According to the MSDN docs, by default this is set to the version of the CLR us...
{ "language": "en", "url": "https://stackoverflow.com/questions/343100", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Double Spacing Complex Sed Output Let me start off by saying that I know there is probably a much simpler way to do this. But this is what i have and yes hopefully I can make some improvements and/or simplifications at the end. Goal as of this moment To double space the output stored in the $tmp variable below and i...
{ "language": "en", "url": "https://stackoverflow.com/questions/343101", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: 3D surface Reconstruction algorithm I have a 3D surface ( such as a cone). It is projected to a 2D plan in the form of contour, meaning that different Z will have different lines on 2D plan. The problem is from the contour, how to recover the 3D surface by using interpolation? We only know about the z difference b...
{ "language": "en", "url": "https://stackoverflow.com/questions/343108", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to trim string in ClientValidationFunction I am writing a client-side validation function for CustomValidator and I need to check length of entered string. But before, to counteract cheaters a little, I want to remove all leading and trailing spaces from the string. What is the easiest way to do it in this scena...
{ "language": "en", "url": "https://stackoverflow.com/questions/343111", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: regexp for finding everything between and tags I'm trying to find a way to make a list of everything between <a> and </a> tags. So I have a list of links and I want to get the names of the links (not where the links go, but what they're called on the page). Would be really helpful to me. Currently I have this: $li...
{ "language": "en", "url": "https://stackoverflow.com/questions/343115", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: can I set the constraints for a variable once and generate a few times in specman? I have a variable that I want to generate a few times in the same function, each time with the same set of constraints. Can I set the constraints once and the just gen it many times? That is, instead of this: var a:uint; gen a keepi...
{ "language": "en", "url": "https://stackoverflow.com/questions/343126", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Timesheets: Retrieve data using SQL, LINQ or class? My problem is that I want a grid that is populated with a set of times spent on tasks. It needs to have the days of the week at the top (these would preferably be fixed - i.e. Sun, Mon... Sat) and task names down the left column. The contents of the grid will hav...
{ "language": "en", "url": "https://stackoverflow.com/questions/343133", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Retrieving Comments from a PostgreSQL DB I'm running a project on a Postgres database and need to retrieve the comments on columns within the DB to be used as table headings and such. I have seen that there are a couple of built in functions (pg_description and col_description) but i haven't been able to find exampl...
{ "language": "en", "url": "https://stackoverflow.com/questions/343138", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "63" }
Q: Does getElementById work on elements created by javascript? I've created two functions to load expanded views of a month in the archive section of my blog when it's link is clicked: // Load open view of a month in the Archive section function loadMonth(date) { // Remove other open month removeMonth(); // H...
{ "language": "en", "url": "https://stackoverflow.com/questions/343145", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Can MVC (or MVP) co-exist with SOA? I think that business logic should exist in a model when using an MVC or MVP design pattern, but should be hidden behind a service in a service-oriented architecture. Can a software system use the MVC or MVP design pattern within a service-oriented architecture? If so, where does ...
{ "language": "en", "url": "https://stackoverflow.com/questions/343150", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: automatic error reporting - recommendations? Can anyone recommend a library/SDK/etc. that is free or for purchase that I can integrate into my C++ application that enables the application to perform automatic error reporting? I have something now that I am using but it does not catch all exceptions. I'm looking for ...
{ "language": "en", "url": "https://stackoverflow.com/questions/343151", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: ViewState decoding failure when client connects via multiple IP's per request We have a semi-weird issue for our site. Consistently, from 1 anonymous* user the following error occurs: Exception type: System.FormatException Exception message: Invalid length for a Base-64 char array. After some investigation, it app...
{ "language": "en", "url": "https://stackoverflow.com/questions/343153", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Converting Integer value into AnsiString in Delphi 2009 IntToStr() function returns string which is Unicode now. I want to convert to AnsiString. Can I use AnsiString(IntToStr(I)) safely? A: Sure. Or you can use IntToAnsiString (written by Dr. Bob): function IntToAnsiStr(X: Integer; Width: Integer = 0): AnsiString;...
{ "language": "en", "url": "https://stackoverflow.com/questions/343164", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to convert .cs file to a PowerShell cmdlet? Can anyone help me to convert a C# .NET program to PowerShell cmdlet? I am very new to this area. Please help me to get out of this checkpoint! Regards, Arun A: First of all, you should convert your .cs file into a DLL using PowerShell template. Then by using pssnapin...
{ "language": "en", "url": "https://stackoverflow.com/questions/343182", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Time estimation for a user story How do you estimate the time needed to implement a user story? If it's something you had done before you know how long it'll take. But what about if it's completely new to you? How much time do you reserve for "surprises"? A: A great technique for this is to break the story down to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/343187", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Why does the javascript onchange event not fire if autocomplete is on? I have a textbox with an onchange event. Why does this event not fire when the user uses the autocomplete feature to populate the textbox? I am working with Internet Explorer. Is there a standard and relatively simple solution to workaround this ...
{ "language": "en", "url": "https://stackoverflow.com/questions/343192", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "30" }
Q: Extract Icon from Windows .lnk (shortcut) file I need to extract the icon from a windows shortcut (.lnk) file (or find the icon file, if it's just pointed to by the shortcut). I'm not asking about extracting icons from exe's, dll's, etc. The shortcut in question is created when I run a installation program. And th...
{ "language": "en", "url": "https://stackoverflow.com/questions/343200", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: How to speed up sharepoint development in Virtual PC? I am developing sharepoint (MOSS) project in Virtual PC. Unfortunately virtual PC can utilize only one core of my quad core machine. Are there any tips & tricks which can speed my development process? A: Things that we used to do before we moved to Hyper-V... Do...
{ "language": "en", "url": "https://stackoverflow.com/questions/343201", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to build Fluent NHibernate? I want to take a look on Fluent NHibernate but unfortunately I cannot find any information on how to build it from the sources. Maybe someone can help me? What tools I need for building it? A: The Build.bat file only contains one command, and that is "rake" which is Ruby Make. This r...
{ "language": "en", "url": "https://stackoverflow.com/questions/343203", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Problem regarding 3.0's "hashlib" module I've been working on getting a 2.5 module ported to 3.0, mostly for my own education, when I've gotten stuck. The class "Builder" has as its init: def __init__(self, **options): self._verifyOptions(options) self._options = options self._initDigest() self._init...
{ "language": "en", "url": "https://stackoverflow.com/questions/343204", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Frameworks for JavaScript UI Widgets? I'm trying to put together a list of JavaScript UI widget frameworks for consideration in a project. Ideally it would be a library that has a range of ready made ui widgets, no dependencies on dom/js extention/manipulation frameworks like JQuery or Prototype, minimal additional ...
{ "language": "en", "url": "https://stackoverflow.com/questions/343209", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: What happened to the python bindings for CGAL? I found the Computational Geometry Algorithms Library in my search for an algorithm to decompose a concave polygon into the minimum number of convex components. Links off the site and numerous google results indicate there are python bindings for it, which would be rea...
{ "language": "en", "url": "https://stackoverflow.com/questions/343210", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Blank String Default Value in Entity Framework Designer Is it possible to assign a blank string (i.e. "") as a Default Value in the Entity Framework's EDMX designer? The only technique I've found is to edit the edmx file manually using a text editor A: What I did was to create a default constructor in a partial cla...
{ "language": "en", "url": "https://stackoverflow.com/questions/343211", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Is it possible to use signal inside a C++ class? I am doing something like this: #include <signal.h> class myClass { public: void myFunction () { signal(SIGIO,myHandler); } void myHandler (int signum) { /** * Handling code */ } } I am working on Ubuntu, u...
{ "language": "en", "url": "https://stackoverflow.com/questions/343219", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "37" }
Q: How to remove html tags from database text field How do I remove html elements in a text field from SQL Server? A: I assume you mean removing html tags from a field stored in a database. If so, and if you can code the solution in .NET, I would have used the HTML agility pack to traverse the html contents, and save ...
{ "language": "en", "url": "https://stackoverflow.com/questions/343220", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: MS-SQL Server 2005: non convergent data after replication We have a merge replication topology including one publisher, multiple publications and multiple subscriptions. It has been running for at least 8 months without problems. A few days ago I was informed that my PO codes were being "changed" without any reasons...
{ "language": "en", "url": "https://stackoverflow.com/questions/343224", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Where to look for database samples/schema? I found http://www.databaseanswers.org/data_models/ very useful. Any other suggestions? A: If you're just looking for data models, I recommend the following books: * *The Data Model Resource Book, Vol. 1: A Library of Universal Data Models for All Enterprises *The Data...
{ "language": "en", "url": "https://stackoverflow.com/questions/343230", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How do I convert an audio stream to MP3 using Java? Is it possible using Java to convert a real time audio stream from the mixer to MP3? * *It has to be converted chunk by chunk otherwise the memory will be exhausted. *I already know how to record but only to lossless formats such as wav and aiff. *I need c...
{ "language": "en", "url": "https://stackoverflow.com/questions/343240", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Is scrum fit for small organisation? is it possible to convert their method to scrum in a small concern A: You can even do scrum alone, it's called "Solo Scrum". A: Scrum can be used at all levels, as others have pointed out, it can be done alone as a scrum of 1. Likewise, you can have "scrum of scrums" which is ...
{ "language": "en", "url": "https://stackoverflow.com/questions/343254", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: DirectShow, video zoom and image capture for Windows Mobile I am currently developing an application for live video streaming (www.livecliq.net) and I would like to add the feature for image capture and video zoom. I've been looking around for the tutorials and resources about DirectShow but so far I have found only...
{ "language": "en", "url": "https://stackoverflow.com/questions/343257", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to integrate OpenId feature in .net looking tutorials for integrating OpenId feature in .net A: I have a feeling that this Google Code Project will be a great place to start. I just started looking at it myself a while back, I haven't had much time to dig in, but it looks promising for those not wanting to sp...
{ "language": "en", "url": "https://stackoverflow.com/questions/343259", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to print barcode with running number ZPL-II? I have a simple program print barcodes. The label format is in a preloaded form. The value the barcode is passed by a parameter as follow. ^XA ^XFR:FORM.ZPL ^FN999^FDH654321+Y0001+OABC+^FS ^PQ2,0,1,N And it print two barcodes H654321+Y0001+OABC+ H654321+Y0001+OABC+ ...
{ "language": "en", "url": "https://stackoverflow.com/questions/343271", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Tools for Data Capturing from Scanned Images What are best tools available for Data Capturing from Scanned Images? Doesn't matter they are free or paid. They should be able to convert scanned images to data (text, image, tables etc.). Most importantly they should have API to integrate with .NET 2.0 for automation. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/343274", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Change mirror of update sites of eclipse plugins I'm using ganymede but I can't find the option to change mirror for the update sites. Is there a way to change this? A: The all notion of mirrors is no more a first class citizen of eclipse Ganymede update mechanism, but rather a simple property of a repositories (f...
{ "language": "en", "url": "https://stackoverflow.com/questions/343275", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: How do I suppress window mouse wheel scrolling...? I'm working on a canvas app embedded in a page. I have it so you can zoom into the drawing with the mousewheel but unfortunately this scrolls the page as it is part of an article. Is it possible to prevent mousewheel scrolling on the window when I'm mousewheeling on...
{ "language": "en", "url": "https://stackoverflow.com/questions/343277", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Center one of two sibling divs In the following, I'd like to alter the CSS such that the right-sibling is truly centered in the container div. (Edit: without using absolute positioning). <html> <head> <style type='text/css'> #container { width: 500px; } #left-sibling { float:...
{ "language": "en", "url": "https://stackoverflow.com/questions/343282", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: What am I not understanding about REST? I'm building a framework and want developers who build with it to have the ability to allow parts of it to both share data with other sites and allow other sites to add/edit/delete data. For example, if someone makes a site that has book reviews, authors, quotes, code examples...
{ "language": "en", "url": "https://stackoverflow.com/questions/343288", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: Bulk Insert to Oracle using .NET What is the fastest way to do Bulk insert to Oracle using .NET? I need to transfer about 160K records using .NET to Oracle. Currently, I'm using insert statement and execute it 160K times.It takes about 25 minutes to complete. The source data is stored in a DataTable, as a result of ...
{ "language": "en", "url": "https://stackoverflow.com/questions/343299", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "31" }
Q: How to fix the "421 RP-001 The mail server IP connecting to Windows Live Hotmail server has exceeded the rate limit" problem? We run a large online community in the Netherlands. Because of that we send a lot of mail to the hotmail email addresses of our members. Recently we have noticed that not all mail is reaching...
{ "language": "en", "url": "https://stackoverflow.com/questions/343300", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: ASP.NET Data Cache - Does Overwriting Imply Removal And Re-Addition? If I add an item to the cache named "foo", and then add another item named "foo" to the cache before the first expires, will this trigger the CacheItemRemoved event? A: Nope, it just overwrites the item. The item-removed callback is not invoked.
{ "language": "en", "url": "https://stackoverflow.com/questions/343311", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: CSS set width to fill % of remaining area Sorry for the slightly rubbish title. I could not think how to describe this one better. I am trying to implement the Google Friend Connect members gadget on my site, (just got into the scheme and want to put it in without a major redesign, at least for testing sake). My pr...
{ "language": "en", "url": "https://stackoverflow.com/questions/343313", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "84" }
Q: Export tables to excel, including a macro For statistical reasons, I want an extensive analysis from a dataset. I already have a function that exports the data to Excel, but I have raw data that way; 500 lines, 35 columns, heaps of text sometimes... Is it possible to include a macro into a function so that the exce...
{ "language": "en", "url": "https://stackoverflow.com/questions/343314", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to configure ubuntu to make GBK complie avaliable in eclipse? I couldn't complie java file using GBK encoding in eclipse. there is no "GBK" option in properties of project,even though I have typed the "GBK" in "Text file encoding". my eclipse is installed in ubuntu, maybe the default file-encoding of my ubuntu i...
{ "language": "en", "url": "https://stackoverflow.com/questions/343343", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Network Drive label I'm trying to get the label of some network resources mapped as drives. When I use DriveInfo.GetDrives(), local volumes have the VolumeLabel filled parameter as expected, but in network drives it is an empty string. How can I get those labels? A: You can use WMI for this - not sure of the exact ...
{ "language": "en", "url": "https://stackoverflow.com/questions/343346", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I run multiple versions of IE with different sessions I'm developing a web application that is targeted at IE and during testing would like to log in as a number of different users and test their interactions with each other. At present I have to log in and out to switch users; Opening another window just ov...
{ "language": "en", "url": "https://stackoverflow.com/questions/343356", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: string to binary[] I have a string I need to feed to a com object that has a LoadFromStream method accepting "object Data". I'm guessing this should be a byte[]. Rather basic question: I got my MemoryStream all filled and ready to go. What's the best way to convert it to binary[]? Should I manually read it into the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/343357", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: C# How to set a flexible base for altering controls from assembly later? I'm still new with C#, and I'm working on a project where we also use WPF, and the WPF DataGrid Toolkit (See at CodePlex), which hasn't yet been released into the framework. Due to the nature of the project, it's 100% sure we will be altering s...
{ "language": "en", "url": "https://stackoverflow.com/questions/343358", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Web application database concurrency I have a web application (ASP.net 2.0) that has a database (SQL Server) at the background. I'm considering ways how to handle database concurrency if two users insert the same data to the same table at the same time. Are there any way to handle this case? Thanks in advance. Jimmy...
{ "language": "en", "url": "https://stackoverflow.com/questions/343362", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What is the maximum password length in Subversion? If I am storing the Subversion user names and passwords for repository access in a text file in the conf folder, what is the maximum length of the passwords I can use? That is to say, how long can the secrets in the following file be? [users] harry = harryssecret sa...
{ "language": "en", "url": "https://stackoverflow.com/questions/343366", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: error LNK2005: _DllMain@12 already defined in MSVCRT.lib I am getting this linker error. mfcs80.lib(dllmodul.obj) : error LNK2005: _DllMain@12 already defined in MSVCRT.lib(dllmain.obj) Please tell me the correct way of eliminating this bug. I read solution on microsoft support site about this bug but it didnt hel...
{ "language": "en", "url": "https://stackoverflow.com/questions/343368", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "39" }
Q: Unable to parse XML file using DocumentBuilder I have this code: if (file.exists()) { Document doc = builder.parse(file); NodeList list = doc.getElementsByTagName("property"); System.out.println("XML Elements: "); for (int ii = 0; ii < list.getLength(); ii++) { line 2 gives following exception E:\workspace...
{ "language": "en", "url": "https://stackoverflow.com/questions/343383", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Detect a file in transit? I'm writing an application that monitors a directory for new input files by polling the directory every few seconds. New files may often be several megabytes, and so take some time to fully arrive in the input directory (eg: on copy from a remote share). Is there a simple way to detect whet...
{ "language": "en", "url": "https://stackoverflow.com/questions/343391", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Thanking donors in Flash after successful credit card payment An example of what I'm talking about is on some political candidate websites, like BJ Lawson or Ron Paul's old site. When you donate, it shows your name in Flash as a recent donor. It might also show a "goal" and how far along you are. Just curious if y...
{ "language": "en", "url": "https://stackoverflow.com/questions/343393", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Getting a value from the update query prompt When we run a update query we get prompt saying that 'these many records are going to be updated. do you want to continue' is it possible to capture the value in the prompt message to a variable i.e the number of records going to be updated. A: If you run the query from ...
{ "language": "en", "url": "https://stackoverflow.com/questions/343396", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Is there any correlation between versioning and milestones? A lot of OS projects I know (I am PHP developer) uses versions as milestones, but is this the best way? Should milestones mean something in process of project iterations (meaningfull names)? Are there any rules? Or maybe its totally subjective? A: Like the...
{ "language": "en", "url": "https://stackoverflow.com/questions/343401", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Getting around MySQL "Can't reopen table" error I'm currently busy implementing a filter of sorts for which I need to generate an INNER JOIN clausse for every "tag" to filter on. The problem is that after a whole bunch of SQL, I have a table that contains all the information I need to make my selection, but I need i...
{ "language": "en", "url": "https://stackoverflow.com/questions/343402", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "110" }
Q: HTML table to overlap parent div dynamically How can i make the inner table to overlap the parent div with 5 px while resizing? my current solution: <div id="crop"> <table style="width:105%; height:105%;"> //table cells </table> </div> problem is that it gets smaller when resizing... how can I make it c...
{ "language": "en", "url": "https://stackoverflow.com/questions/343422", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What is this java.awt.event error? ANSWER: If you ever see these lines and are mistified like I was, here's what they mean. Thread[AWT-EventQueue-0] (Suspended (exception NullPointerException)) EventDispatchTread.run() line: not available [local variables unavailable] It's not that the variables are unavailable beca...
{ "language": "en", "url": "https://stackoverflow.com/questions/343435", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Memcached client for Windows in C or C++? I need a portable C/C++ solution, so I'm looking for a C/C++ client library for Memcached that work on both Windows and Unix. Any suggestions? A: There's libmemcached in C. Should be most portable :) A: http://people.freebsd.org/~seanc/libmemcache/ HTH
{ "language": "en", "url": "https://stackoverflow.com/questions/343437", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Converting string from memorystream to binary[] contains leading crap --Edit with more bgnd information-- A (black box) COM object returns me a string. A 2nd COM object expects this same string as byte[] as input and returns a byte[] with the processed data. This will be fed to a browser as downloadable, non-human-r...
{ "language": "en", "url": "https://stackoverflow.com/questions/343457", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Does dot net have an interface like IEnumerable with a Count property? Does dot net have an interface like IEnumerable with a count property? I know about interfaces such as IList and ICollection which do offer a Count property but it seems like these interfaces were designed for mutable data structures first and us...
{ "language": "en", "url": "https://stackoverflow.com/questions/343466", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Richtextbox wpf binding To do DataBinding of the Document in a WPF RichtextBox, I saw 2 solutions so far, which are to derive from the RichtextBox and add a DependencyProperty, and also the solution with a "proxy". Neither the first or the second are satisfactory. Does somebody know another solution, or instead, a c...
{ "language": "en", "url": "https://stackoverflow.com/questions/343468", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "86" }
Q: Can I access the string returned from a Delphi CreateProcess command? I'm using the Win32 CreateProcess function to perform a call to an external executable. The executable returns a string. Is there a way I can capture and interrogate the returned string after calling the executable? Failing that, I might have to...
{ "language": "en", "url": "https://stackoverflow.com/questions/343476", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Effective usage of Workspaces in Visual Studio? I am wondering what is the best way to use workspaces in visual studio. We have 150+ webservices that are all part of the same team project $/MyTeamProject without being related at all. The reason for them all being part of the same team project as they are all maintai...
{ "language": "en", "url": "https://stackoverflow.com/questions/343479", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Signing data with smartcards on Mac in C++ is there any support in Mac OS X for signing data using smartcards? I have looked through the system headers and found only vauge references to smart card support (in SecKeychain.h), which didn't really take me anywhere. If there's no built-in support, which are my options ...
{ "language": "en", "url": "https://stackoverflow.com/questions/343488", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Java synchronisation poll Here's some code I saw once. Can you see what's wrong with it? [updated] public class ResourceManager1 { private final String mutex = ""; Object resource = null; public Object getResource() { synchronized (mutex) { if (resource == null) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/343491", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What can Pygame do in terms of graphics that wxPython can't? I want to develop a very simple 2D game in Python. Pygame is the most popular library for game development in Python, but I'm already quite familiar with wxPython and feel comfortable using it. I've even written a Tetris clone in it, and it was pretty smoo...
{ "language": "en", "url": "https://stackoverflow.com/questions/343505", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: sysprocess in SQL Server Some naive questions the numbers in sysprocesses. What I conclude by looking at the numbers cpu, physical_io, memusage Do any of these numbers sum to a finite amount? Also, I notice that when I run a query, that the status beomes 'runnable'. When the query stops it becomes 'sleeping'. Howeve...
{ "language": "en", "url": "https://stackoverflow.com/questions/343513", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: SQL Server Reporting Services - Report Maintenance Tools It seems very easy to deploy new reports to a reporting server directly from visual studio, however when these are to be pushed into our web farm (where developers have no access), this either needs to be done manually, report by report, through microsoft's we...
{ "language": "en", "url": "https://stackoverflow.com/questions/343514", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do I work with multiple git branches of a python module? I want to use git to allow me to work on several features in a module I'm writing concurrently. I'm currently using SVN, with only one workspace, so I just have the workspace on my PYTHONPATH. I'm realizing this is less than ideal, so I was wondering if an...
{ "language": "en", "url": "https://stackoverflow.com/questions/343517", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Finding out the file name of the running batch file Inside a windows batch file I'd like to figure out what the fully qualified path name of this batch file is. I have tried %0 but this does only gave me the typed command (e.g. just the file name without path or extension). A: %CD% gives the current directory. %~dp...
{ "language": "en", "url": "https://stackoverflow.com/questions/343518", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "28" }
Q: Using NUnit-2.5 RequiresSTAAttribute with TeamCity 4 Using TeamCity, I'm trying to get a (TestAutomationFX) test that requires an STA thread to run . It works via a custom app.config that configures NUnit 2.4.x (8) (as referred to by Gishu, thanks, described at http://madcoderspeak.blogspot.com/2008/12/getting-nunit...
{ "language": "en", "url": "https://stackoverflow.com/questions/343521", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How can I extract all quotations in a text? I'm looking for a SimpleGrepSedPerlOrPythonOneLiner that outputs all quotations in a text. Example 1: echo “HAL,” noted Frank, “said that everything was going extremely well.” | SimpleGrepSedPerlOrPythonOneLiner stdout: "HAL," "said that everything was going extremely we...
{ "language": "en", "url": "https://stackoverflow.com/questions/343528", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Algorithm 2D Referential traduction I am trying to build a function grapher, The user enters xmin, xmax, ymin, ymax, function. I got the x, y for all points. Now i want to translate this initial referential to a Canvas starting at 0,0 up to 250,250. Is there a short way or should i just check if x < 0 new x = (x ...
{ "language": "en", "url": "https://stackoverflow.com/questions/343533", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Access rdlc elements from code behind file can you please give any sample code for accessing the rdlc elements from code behind file. I have a text box in the rdlc file, i have to set the value for that from code behind file. Please help me Thanks P S Marimuthu A: You can just load the RDLC code as XML using XDocu...
{ "language": "en", "url": "https://stackoverflow.com/questions/343540", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to prevent Delphi ADO from loading the entire table into memory? I am not a Delphi programmer, but I I got an old Delphi 7 application that I need to fix and it is using ADO. The database table (MS Accesss) contains +100,000 rows and when I set the ADOTable.Active=true it starts to load the entire table into RAM...
{ "language": "en", "url": "https://stackoverflow.com/questions/343553", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Sharing a dedicated IP I have 10 websites on an IP. I would like to share the IP among all the websites.How do I achieve this without having to run these websites on different port numbers? A: You use the "name-based virtual hosts" feature of the apache webserver: http://httpd.apache.org/docs/1.3/vhosts/ Other web...
{ "language": "en", "url": "https://stackoverflow.com/questions/343556", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to distinguish command-line and web-server invocation? Is there a way to distinguish if a script was invoked from the command line or by the web server? (See What is the canonical way to determine commandline vs. http execution of a PHP script? for best answer and more detailed discussion - didn't find that one...
{ "language": "en", "url": "https://stackoverflow.com/questions/343557", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "60" }
Q: Failed to load viewstate when dynamically loading different controls I have an aspx page which is loading some controls dynamically on postback (ie when a click event happens) and adding them to a placeholder. Depending on what is clicked a different set of controls needs to be loaded. This works perfectly the firs...
{ "language": "en", "url": "https://stackoverflow.com/questions/343558", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: jQuery Selector I want to achieve going to the parent element then to the prev element get the atrribute id of the element which has class: classname. <div> <span><span id="190" class="classname">blabla</span></span> <span><a href="#" class="button">blabla</a></span> </div> Pseudo code: $('.button').click(functi...
{ "language": "en", "url": "https://stackoverflow.com/questions/343561", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What is the correct/ fastest way to update/insert a record in sql (Firebird/MySql) I need some SQL to update a record in a database if it exists and insert it when it does not, looking around there looks to be several solutions for this, but I don't know what are the correct/ accepted ways to do this. I would ideall...
{ "language": "en", "url": "https://stackoverflow.com/questions/343562", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Produce a simple Video - uncompressed, frame by frame I need to an algorithm, to write frames (Pictures) into a file, which can be read by some Video-Cutting/Producing-Software to work with. So I got frames, and I want to give them a input into a function/Method. Let's do i in Java. How can I do this? Is there a sim...
{ "language": "en", "url": "https://stackoverflow.com/questions/343571", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Meta-Database Views / Data Integration Is there a (free) tool or framework which allows defining views over multiple data backends (preferably for java and based on objects)? For example I have 2 databases: One database provides a table or class (doesn't matter much) PersonX(name, address), and the other one provide...
{ "language": "en", "url": "https://stackoverflow.com/questions/343573", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Unit tests fail to run when NOT in Debug mode I have just branched our Common Business Layer projects from the main to a new branch, and included them in a new solution. Everything compiles but when I run the unit tests I get the following error for every single test... Unit Test Adapter threw exception: Unable to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/343576", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How do I get whole and fractional parts from double in JSP/Java? How do I get whole and fractional parts from double in JSP/Java ? If the value is 3.25 then I want to get fractional =.25, whole = 3 How can we do this in Java? A: The original question asked for the exponent and mantissa, rather than the fractional a...
{ "language": "en", "url": "https://stackoverflow.com/questions/343584", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "113" }
Q: Software protection for small vendors This is a problem we all have to consider at some point. After many years and many approaches I tend to agree in general with the staterment: "For any protected software used by more than a few hundred people, you can find a cracked version. So far, every protection scheme can ...
{ "language": "en", "url": "https://stackoverflow.com/questions/343586", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: Why does passing ClientID to a javascript function pass the whole control? If I pass a ClientID to a javascript function as a parameter without including the single quotes around it, it gets passed as a reference to the control itself which can then be used without first calling getElementByID. I can't find this beh...
{ "language": "en", "url": "https://stackoverflow.com/questions/343588", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do you validate an object's internal state? I'm interested in hearing what technique(s) you're using to validate the internal state of an object during an operation that, from it's own point of view, only can fail because of bad internal state or invariant breach. My primary focus is on C++, since in C# the offi...
{ "language": "en", "url": "https://stackoverflow.com/questions/343605", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Struts 1.3: How to set a default Locale in a web app? I have two or three i18n files in my struts application. I am able to switch between these by setting the Global.LOCALE_KEY variable in the session. Is there a way to set a default locale for the application (probably in the struts-config.xml file, I guess) ? Is ...
{ "language": "en", "url": "https://stackoverflow.com/questions/343609", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I submit a form given only the HTML source? I would like to be able to submit a form in an HTML source (string). In other words I need at least the ability to generate POST parameters from a string containing HTML source of the form. This is needed in unit tests for a Django project. I would like a solution t...
{ "language": "en", "url": "https://stackoverflow.com/questions/343622", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: MVC Routing - Parameter names question I'm looking for some information on Routing in MVC with C#. I'm currently very aware of the basics of routing in MVC, but what i'm looking for is somewhat difficult to find. Effectively, what I want to find is a way of defining a single route that takes a single parameter. The...
{ "language": "en", "url": "https://stackoverflow.com/questions/343638", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Lowest level of detail for functional specifications in order to be useful Where I work, people don't like to write specs. (Boy, does anyone?) So they don't do it, unless forced by their bosses. If they are forced to write them, they make them as short as possible. (By the way, they also includes me.) This results i...
{ "language": "en", "url": "https://stackoverflow.com/questions/343642", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Ignoring directories in Git repositories on Windows How can I ignore directories or folders in Git using msysgit on Windows? A: I've had some problems getting Git to pick up the .gitignore file on Windows. The $GIT_DIR/info/exclude file always seems to work though. The downside of this approach, however, is that th...
{ "language": "en", "url": "https://stackoverflow.com/questions/343646", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1473" }
Q: How to estimate times when working on a new technology? I have been working on Flex for last couple of months and as this was the first time I had to actually do Flex I ended up underestimating the project tasks which resulted in a delay. So how does one estimate the project timings when working on a new technology?...
{ "language": "en", "url": "https://stackoverflow.com/questions/343652", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: C data structure to mimic C#'s List>? I am looking to refactor a c# method into a c function in an attempt to gain some speed, and then call the c dll in c# to allow my program to use the functionality. Currently the c# method takes a list of integers and returns a list of lists of integers. The method calculated t...
{ "language": "en", "url": "https://stackoverflow.com/questions/343654", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Moss 2007 SSP Error "Search application '{0}' is not ready." I'm trying to fix a broken SSP on a MOSS 2007 site. The problem I am running into manifests itself as follows... In the SSP "Search Settings" page I get this message: The search service is currently offline. Visit the Services on Server page in SharePoint ...
{ "language": "en", "url": "https://stackoverflow.com/questions/343656", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Efficient algorithm for comparing XML nodes I want to determine whether two different child nodes within an XML document are equal or not. Two nodes should be considered equal if they have the same set of attributes and child notes and all child notes are equal, too (i.e. the whole sub tree should be equal). The inp...
{ "language": "en", "url": "https://stackoverflow.com/questions/343667", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }