text
stringlengths
8
267k
meta
dict
Q: Internet Explorer submits the wrong button I have an HTML form with two buttons as follows: <input type="submit" name="confirm" value="Yes, Delete" /> <button name="confirm" type="button" onclick="history.back()" value="No, Go Back">No, Go Back</button> Now, when I click on either in Firefox, the behavior is as ex...
{ "language": "en", "url": "https://stackoverflow.com/questions/368114", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Deallocation doesn't free memory in Windows/C++ Application My Windows/C++ application allocates ~1Gb of data in memory with the operator new and processes this data. After processing the data is deleted. I noticed that if I run the processing again without exiting the application, the second call to the operatornew...
{ "language": "en", "url": "https://stackoverflow.com/questions/368117", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Why is error handling important? I was given a task of write the coding guidelines for my team, and it was going great until my manager asked me to write an explanation of Why Error Handling is Important. I know it instinctively, but how do I express this in words? I tried to google it first but came up empty, so I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/368139", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: ASP.NET MVC Routes to Mimic Object Graph Traversal? I'm new to ASP.NET MVC and all tutorials, samples, and the like I seem to find are very basic. Is it possible (and if yes, a good design) to have routes like so: .../Organization/10/User/5/Edit .../Organization/10/User/List In other words; can the urls mirror your ...
{ "language": "en", "url": "https://stackoverflow.com/questions/368143", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: In a MVC-model, whose responsibility is it to sanitize input? A simple question: I have a Model-View-Controller setup, with Models accessing a SQL database. In which part should I sanitize/check for malformed incoming data? A: I'd say the Controller should sanitize input. The model should at most decline to store i...
{ "language": "en", "url": "https://stackoverflow.com/questions/368146", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: I require a MSI Custom action that copies a file from the MSI source directory I'm creating a installer for a c# windows project using VS 2008. I'm trying to write a custom action that copies a settings file from the source directory of the MSI file stored on a file server (e.g. \server\fileshare\myappinstaller\myse...
{ "language": "en", "url": "https://stackoverflow.com/questions/368154", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: C# Apply Interface to a Form Class How can I apply an Interface to a form class partial class Form1 : Form, InterfaceA Is this correct? Basically I would like to implement an Interface on a form. How To .... A: A Form is just a class (that subclasses System.Windows.Forms.Form), so yes - standard syntax is fine, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/368156", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Loop through PivotItems: runtime error 91 I have a dataset in a worksheet that can be different every time. I am creating a pivottable from that data, but it is possible that one of the PivotItems is not there. For example: .PivotItems("Administratie").Visible = False If that specific value is not in my dataset, th...
{ "language": "en", "url": "https://stackoverflow.com/questions/368160", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Changeing the ID of a MVC Router from an integer to a string in vb.net i'm looking at some pages, and i've noticed that by default for ID in the routing for controller/action/ID is an integer and not a string. How can I change it so it is a string? A: Purely by creating an action like this: Public Function MyAction...
{ "language": "en", "url": "https://stackoverflow.com/questions/368167", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Conditional Logic in ASP.net page I have some code that prints out databse values into a repeater control on an asp.net page. However, some of the values returned are null/blank - and this makes the result look ugly when there are blank spaces. How do you do conditional logic in asp.net controls i.e. print out a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/368169", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Finding an XmlNode by attribute in ASP.net I'm trying to write some code to find a specific XmlNode object based on the URL in the XML sitemap but can't get it to find anything. The sitemap is the standard ASP.net sitemap and contains: <siteMapNode url="~/lev/index.aspx" title="Live-Eye-Views"> --- Child Items --- <...
{ "language": "en", "url": "https://stackoverflow.com/questions/368170", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Finding difference less than the average in an unsorted array? I need to find 2 elements in an unsorted array such that the difference between them is less than or equal to (Maximum - Minimum)/(number of elements in the array). In O(n). I know the max and min values. Can anyone think of something? Thank you! A: Ste...
{ "language": "en", "url": "https://stackoverflow.com/questions/368176", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there a way to prevent Reflector from being able to reflect my source code? Is there a way (reliable and preferably not commercial) to prevent from Reflector to reflect my source code??? Thanks, Adi A: No. Reflector looks at your assembly just like the .NET runtime would in order to generate native code to execu...
{ "language": "en", "url": "https://stackoverflow.com/questions/368180", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Does it make sense to catch exceptions in the main(...)? I found some code in a project which looks like that : int main(int argc, char *argv[]) { // some stuff try { theApp.Run(); } catch (std::exception& exc) { cerr << exc.what() << std::endl; exit(EXIT_FAILURE); } return (EXIT_SUCCESS); } I don't u...
{ "language": "en", "url": "https://stackoverflow.com/questions/368184", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: javascript function not behaving correctly I have this little function function makewindows(){ child1 = window.open ("about:blank"); child1.document.write("<?php echo htmlspecialchars(json_encode($row2['ARTICLE_DESC']), ENT_QUOTES); ?>"); child1.document.close(); } Which whatever I try, simply outputs the php code...
{ "language": "en", "url": "https://stackoverflow.com/questions/368192", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to create a reference to an existing record go easy on me, it's my first question :) I've been working with linqToSql for about a month, and there is just this one thing that is bothering me... Lets say I have an Entity Object called "Customer" and another called "CustomerType", Customer as a reference to Custom...
{ "language": "en", "url": "https://stackoverflow.com/questions/368193", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Java JFrame: howto parse recursively through componets (i.e. if using JScrollPane) I'm using TableLayout for my swing GUI. Initially only some basic labels, buttons and text fields where required which I could later on access by: public Component getComponent(String componentName) { return getComponent(component...
{ "language": "en", "url": "https://stackoverflow.com/questions/368194", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Changing async call implementation using a ManualResetEvent to one using a combination of Thread methods I'm looking for a design pattern to switch from using a ManualResetEvent to using Thread methods like Thread.Join. Right now I'm making an async call and then using a ManualResetEvent to wait till the async call ...
{ "language": "en", "url": "https://stackoverflow.com/questions/368199", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Disabling text selection in DocumentViewer Simple question. How do you disable the text selection of DocumentViewer in WPF? This is the feature where an XPS document is displayed by the viewer and then text can be highlighted via mouse. The highlighted text can also be copied but I have already disabled this. I just...
{ "language": "en", "url": "https://stackoverflow.com/questions/368200", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Querying a table to get values based on no of digits of a parameter? Considering the following table I have a large table from which I can query to get the following table type no of times type occurs 101 450 102 562 103 245 111 25 112 28 113 21...
{ "language": "en", "url": "https://stackoverflow.com/questions/368215", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Javascript - onchange within I have a relatively simple form which asks a variety of questions. One of those questions is answered via a Select Box. What I would like to do is if the person selects a particular option, they are prompted for more information. With the help of a few online tutorials, I've managed to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/368219", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: How to check if NSTimer has been already invalidated I have a NSTimer object that I need to invalidate if a user taps on a button or if they exit a view. So I have: [myNSTimer invalidate]; inside my button handler and inside viewWillDisappear. If user taps on a button and then exists a view the app throws an except...
{ "language": "en", "url": "https://stackoverflow.com/questions/368253", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: what does it mean when a bug doesn't crash the program Sometimes Eclipse comes up saying "hey you should debug this line!!!" but doesn't actually close the program. I can then continue to play big two, and even go through the same events that caused the error the first time and get another error box to pop up! The b...
{ "language": "en", "url": "https://stackoverflow.com/questions/368260", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Function call jumps to the wrong function I am compiling a c++ static library in vs2008, and in the solution i also have a startup project that uses the lib, and that works fine. But when using the lib in another solution i get an run-time check failure. "The value of ESP was not properly saved across a functioncal...
{ "language": "en", "url": "https://stackoverflow.com/questions/368262", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: A simple event bus for .NET I want to make a very simple event bus which will allow any client to subscribe to a particular type of event and when any publisher pushes an event on the bus using EventBus.PushEvent() method only the clients that subscribed to that particular event type will get the event. I am using C...
{ "language": "en", "url": "https://stackoverflow.com/questions/368265", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "23" }
Q: How can I sort an mbox file by date? I would like to know how to modify the below code to strip =20 characters at the end of many lines, and mainly to sort the messages chronologically from first received or sent to last. I am not sure if this would be an internal Perl routine or not. #!/usr/bin/perl use warnings; ...
{ "language": "en", "url": "https://stackoverflow.com/questions/368271", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: JavaScript hashmap equivalent As made clear in update 3 on this answer, this notation: var hash = {}; hash[X] does not actually hash the object X; it actually just converts X to a string (via .toString() if it's an object, or some other built-in conversions for various primitive types) and then looks that string up...
{ "language": "en", "url": "https://stackoverflow.com/questions/368280", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "411" }
Q: SVN - Not a working copy error I'm pulling my hair out on this one. I have a site which is version controlled using Subversion. I use aptana (eclipse, subclipse) to do the svn. I have been checking in and out files, updating etc and everything is fine. However the system we have been building has been adding its own...
{ "language": "en", "url": "https://stackoverflow.com/questions/368281", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "26" }
Q: Find match in subkey values I'm having trouble with the following two items: * *How to retrieve all of the subkey values in ClassesRoot\Typelib, and; *How to find a match for a known value (path/dll name) in the array of subkey values. As background info, I'm trying to find a way to check if a DLL has been reg...
{ "language": "en", "url": "https://stackoverflow.com/questions/368288", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to get real string height in Java? I'm using FontMetrics.getHeight() to get the height of the string, but it gives me a wrong value, cutting off the descenders of string characters. Is there a better function I can use? A: FontMetrics.getAscent() and FontMetrics.getDescent() might do the trick. A: I recently w...
{ "language": "en", "url": "https://stackoverflow.com/questions/368295", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: Why does com.mysql.jdbc.Driver take forever to open in MATLAB? I'm having an issue with com.mysql.jdbc.Driver in MATLAB and I'm hoping someone else has run into it and can help me out. Basically, my problem is that on one machine, every time I call database('mysql.jdbc.Driver', ...), that call takes approximately 3...
{ "language": "en", "url": "https://stackoverflow.com/questions/368300", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Making a C#-based Excel add-in run out-of-proc with minimal pain I have developed a prototype C# Excel 2003 add-in in VS2005 that supports an object with some simple calls, plus a separate RTD class, all sitting atop a large existing in-house C# stack. It all works fine as-is, but... I'm told that in order to avoid ...
{ "language": "en", "url": "https://stackoverflow.com/questions/368311", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Can i restrict this c# extension method definition with a WHERE keyword? i'm trying to do the following extension method -> converting an int to a enum, when you provide the enum :- public static T ToEnum<T>(this int value) { return (T)Enum.ToObject(typeof(T), value); } Now, i was hoping to make it so that you ...
{ "language": "en", "url": "https://stackoverflow.com/questions/368312", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: PHP filter() function - why? Why would I want to use PHP's filter library? Why wouldn't I? It seems to try and do a bit of clean-up (it's awful when you have to work with regular expressions), but on the other hand function naming and parameter constants seem to be a disaster, if you ask me. It must have been includ...
{ "language": "en", "url": "https://stackoverflow.com/questions/368313", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Differences between System V and Posix semaphores What are the trade-offs between using a System V and a Posix semaphore? A: From O'Reilly: * *One marked difference between the System V and POSIX semaphore implementations is that in System V you can control how much the semaphore count can be increased...
{ "language": "en", "url": "https://stackoverflow.com/questions/368322", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "33" }
Q: How can this Linq2Sql create an enum in the select clause? i've got the following linq2sql query, and i'm setting the result to a POCO. One of my POCO properties is an enumeration. public IQueryable<Models.Achievement> GetAchievements() { return from a in _sqlDatabase.Achievements select new Models.Achie...
{ "language": "en", "url": "https://stackoverflow.com/questions/368323", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why should I use $_GET and $_POST instead of $_REQUEST? Besides the fact that $_REQUEST reads from cookies, are there any reasons why I should use $_GET and $_POST instead of $_REQUEST? What are theoretical and practical reasons for doing so? A: Besides the fact that $_REQUEST reads from cookies Besides the fact ...
{ "language": "en", "url": "https://stackoverflow.com/questions/368329", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Can I pass a cursor in a procedure? can I pass a cursor in a procedure? CURSOR BLT_CURSOR IS SELECT BLT.sol_id, BLT.bill_id, BLT.bank_id FROM BLT; Is my cursor. Procedure abc(i want to pass the cursor here) How do I do it. A: I am assuming you are using Oracle (it would appear so). You can do th...
{ "language": "en", "url": "https://stackoverflow.com/questions/368338", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: How to do this in ADO.NET Entities Framework I have a table called BlogPost which has a 1-to-many relationship with the Comment table. (In Comment, there's a foreign key BlogPostId.) Now I want to retrieve all posts as well as the latest comments of each post. I've tried with s/t like below but it doesn't work. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/368347", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Internal hyperlinks in a MMS Is it possible to put an internal hypertext link (or anchor) inside a MMS. I wan't to offer a user of a MMS service to choose between several links and make his way inside the MMS. Any idea how it is possible ? A: how are you composing your MMS? are you using some kind of API or gatewa...
{ "language": "en", "url": "https://stackoverflow.com/questions/368348", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Associate arbitrary data with ejb call context I've got a bunch of stateless ejb 3.0 beans calling each other in chain. Consider, BeanA.do(message) -> BeanB.do() -> BeanC.do() -> BeanD.do(). Now i'd like to access message data from BeanD.do(). Obvious solution is to pass message as a parameter to all that do() cal...
{ "language": "en", "url": "https://stackoverflow.com/questions/368350", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What's the best way to select the minimum value from several columns? Given the following table in SQL Server 2005: ID Col1 Col2 Col3 -- ---- ---- ---- 1 3 34 76 2 32 976 24 3 7 235 3 4 245 1 792 What is the best way to write the query that yields th...
{ "language": "en", "url": "https://stackoverflow.com/questions/368351", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "108" }
Q: Why is caching answers taking LONGER in MATLAB? I have a long running function in MATLAB that I tried to speed up by adding caching and wound up slowing down my performance significantly. My code is basically searching for continuous "horizontal" lines in an edge detected image and the original code looks something...
{ "language": "en", "url": "https://stackoverflow.com/questions/368359", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Extract comma separated portion of string with a RegEx in C# Sample data: !!Part|123456,ABCDEF,ABC132!! The comma delimited list can be any number of any combination of alphas and numbers I want a regex to match the entries in the comma separated list: What I have is: !!PART\|(\w+)(?:,{1}(\w+))*!! Which seems to do...
{ "language": "en", "url": "https://stackoverflow.com/questions/368362", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to implement a custom rating system (with a declining date relevance) I'm working on a site similar to digg in the respect that users can submit "stories". I keep track of how many "votes" and "similar adds" each item got. Similar adds are defined as two users adding the same "link". Here is part of the algori...
{ "language": "en", "url": "https://stackoverflow.com/questions/368369", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Performance comparison of Winforms and WPF Since XAML gets compiled, there should be no difference in execution of code like this. Winforms (code like): Form formPeter = new Form(); Textbox textbox = new Textbox(); Label l1 = new Label1(); Xaml does not get parsed at runtime, as I thought... :-) But what about ren...
{ "language": "en", "url": "https://stackoverflow.com/questions/368371", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: select list usage in asp.net mvc I am working on an MVC site that is the first my company has done, one of the things I find myself doing a lot is creating selectlists in a controller, putting them in viewdata and reading them when creating a html.DropDownList. theer are a few things that strike me as smelly about t...
{ "language": "en", "url": "https://stackoverflow.com/questions/368377", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Are there any commercial add on programming controls for Mac and iOS Cocoa/Objective C? If developing for the Windows .NET APIs I can augment my efforts with 100's of commerically available add-on controls, graphing APIs and other usefull stuff. Can anyone point me in the direction of similar commerical software fo...
{ "language": "en", "url": "https://stackoverflow.com/questions/368383", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: When release dlls don't work but debug dlls do After deploying our huge distributed system to one of our clients we experience an unexpected error. During the investigation we replace the assembly causing the error with one where we have added some diagnostic code. The dll we use is built in debug mode. And suddenly...
{ "language": "en", "url": "https://stackoverflow.com/questions/368384", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: Implementing RAII in pure C? Is it possible to implement RAII in pure C? I assume it isn't possible in any sane way, but perhaps is it possible using some kind of dirty trick. Overloading the standard free function comes to mind or perhaps overwriting the return address on the stack so that when the function return...
{ "language": "en", "url": "https://stackoverflow.com/questions/368385", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "82" }
Q: Storing credentials in SSRS 2005 When I try to create a a new snapshot in SQL Server Reporting Services 2005, i get the message: "report history may not be created because the credentials used to run the report are not stored, the report is using user-defined parameter values, default report parameter values are mis...
{ "language": "en", "url": "https://stackoverflow.com/questions/368409", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Grant Select on a view not base table when base table is in a different database I have a view which is selecting rows from a table in a different database. I'd like to grant select access to the view, but not direct access to the base table. The view has a where clause restricting the number of rows. Can I grant ...
{ "language": "en", "url": "https://stackoverflow.com/questions/368414", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "23" }
Q: Reference manual for Apache Pig Latin Pig is a dataflow programming environment for processing very large files. Pig's language is called Pig Latin. Does anyone know of a good reference manual for PigLatin? I'm looking for something that includes all the syntax and commands descriptions for the language. Unfortunate...
{ "language": "en", "url": "https://stackoverflow.com/questions/368425", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: How can I get this request structure via .asmx web service? I am working on creating a .asmx webservice to meet the specific needs of an integration environment and for the life of me I cannot figure out how to get one section of it to work. The key is that the request WSDL needs to be something like the following....
{ "language": "en", "url": "https://stackoverflow.com/questions/368430", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Setting the Line End Styles for Canvas.LineTo Is there any way to set the style for the lineends for the TCanvas.LineTo method? It seems to default to rounded ends, which looks very bad for several lines in a row of different colours when Pen.Width is set to a large value (e.g. 9). It looks like this (rounded ends):...
{ "language": "en", "url": "https://stackoverflow.com/questions/368432", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Need an good introductory tutorials on TFS build process We are slowly rolling out team foundation, and I have to get up to speed on setting up a Build process on TFS. What are some good starting points TFS builds? From what it seems, there is no GUI for TFS build right? It is just about learning MSBuild? A: Team ...
{ "language": "en", "url": "https://stackoverflow.com/questions/368433", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: Best way of checking content of Generic List I have to work on some code that's using generic lists to store a collection of custom objects. Then it does something like the following to check if a given object's in the collection and do something if so: List<CustomObject> customObjects; //fill up the list List<Custo...
{ "language": "en", "url": "https://stackoverflow.com/questions/368438", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: XmlTextAttribute and CDATA We have a part of our application where our users can create objects containing HTML, JavaScript and CSS through custom made Wysiwyg components. Those objects are at some point serialized and later deserialized. However, since our users/clients are located all over the globe, they sometime...
{ "language": "en", "url": "https://stackoverflow.com/questions/368442", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Tool to show processes writing to the hard drive? Is there a tool that will show me what applications are writing to the hard drive in real time? I'm thinking something like Task Manager but for I/O. I've got a number of background processes running, and can never tell when Visual Studio is holding everything up, or...
{ "language": "en", "url": "https://stackoverflow.com/questions/368450", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Email sent in english is displayed to the end user with picture alphabet (Chinese, japanese, etc) and random characters I have code that sends HTML emails to users. To accommodate users who dont have/ want HTML email, the email contains 2 alternate views, View(0) is HTML, View(1) is Plain text. The HTML view has a ...
{ "language": "en", "url": "https://stackoverflow.com/questions/368456", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: SQL Help: Select statement Concatenate a One to Many relationship For example I have two tables. The first table is student while the second table are the courses that the a student is taking. How can I use a select statement so that I can see two columns student and courses so that the courses are separated by comm...
{ "language": "en", "url": "https://stackoverflow.com/questions/368459", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How to design and implement a simple WCF service relay? We are in the process of designing a simple service-oriented architecture using WCF as the implementation framework. There are a handful of services that a few applications use. These services are mostly used internally, so a basic authentication and authorizat...
{ "language": "en", "url": "https://stackoverflow.com/questions/368463", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Removing already registered types from UnityContainer at runtime? i wonder if there is a simple way to remove already registered types from a unity container or at least replace existing Interface/Type mappings with another one. is it enough to just map another class type to an interface and the old one is overwritt...
{ "language": "en", "url": "https://stackoverflow.com/questions/368468", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Linux benchmarking tools I've been asked to evaluate a new vendor's computing system and management has requested that I do NOT use any of our existing software to evaluate the platform (believe it or not, they have some valid reasons). Anyways, I've started trying to read up on meaningful benchmark programs for ser...
{ "language": "en", "url": "https://stackoverflow.com/questions/368472", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Removing scrollbars from Content Editor/Page Viewer Webpart I am trying to display an HTML page inside another SharePoint webpart page. I used the Out-of-the-box page viewer webpart, but the page viewer webpart displays a disabled scrollbar inside it. I also tried using a content editor webpart with an IFRAME tag in...
{ "language": "en", "url": "https://stackoverflow.com/questions/368480", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How can I log *all* ColdFusion scripts and CFCs used? I am looking to determine from a large code base, what files are actually being used over a period of time. I need to know about CFM pages and CFCs as well as any included CFM files etc. I know I can get some of this info using logging in application.cfm, or by ...
{ "language": "en", "url": "https://stackoverflow.com/questions/368490", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is it possible to generate partial stubs with Rhino Mocks? I am new to unittesting and mocking in general and am trying to set up tests for one of my classes where I want to make sure that a particular method is called from another method within the same class. I would therefore like to use the concrete implementati...
{ "language": "en", "url": "https://stackoverflow.com/questions/368493", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: WCF The request failed with HTTP status 405: Method Not Allowed I have a WCF service that has been hosted on a Windows Service and uses the BasicHttp endpoint to serve Windows Mobile devices that has been connected to it. The problem is that with the Device Emulator. I can connect to the service and using it without...
{ "language": "en", "url": "https://stackoverflow.com/questions/368494", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Is it possible to select sql server data using column ordinal position Is it possible to select column data using the ordinal_position for a table column? I know using ordinal positions is a bad practice but for a one-off data import process I need to be able to use the ordinal position to get the column data. So fo...
{ "language": "en", "url": "https://stackoverflow.com/questions/368505", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "38" }
Q: blackberry development, is it as userfriendly as smartphone dev? I have played around with smart phone development (windows ce), and it seemed pretty straight forward using vs.net and having a nice emulator etc. How is blackberry development? Seeing as it uses JavaME I am guessing learning the SDK/syntax for a .net...
{ "language": "en", "url": "https://stackoverflow.com/questions/368514", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ColdFusion web application level query caching We have a number of web servers, each running one version of ColdFusion. The cluster has a load balancer on front of it. Obviously each of these servers has its own CF application running and this implements query caching at the CF application level. However, since all...
{ "language": "en", "url": "https://stackoverflow.com/questions/368516", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: API Design: Expose XML or Objects We're embarking on a new middle tier service that will allow internal client systems to create and update and query records in some underlying data stores. The service will aggregate as many as 3 seperate underlying datastores. For the purposes of this question assume: Data store ...
{ "language": "en", "url": "https://stackoverflow.com/questions/368521", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What .NET functions should be better supported in Mono? I'm trying to implement a Visual Studio Addin to support cross-platform development. The addon currently only warns developer when using unsupported functions but I also want to implement a feature that informs him about functions that are implemented but produ...
{ "language": "en", "url": "https://stackoverflow.com/questions/368540", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Implementing shortcut keys in a webpage I was thinking of implementing shortcut keys in a pet web application, I am developing for me. I am using c# and asp.net. I have seen very few web-sites( frankly I remember only g-mail), which have shortcut keys. Has anyone ever implemented shortcut keys for a web applicatio...
{ "language": "en", "url": "https://stackoverflow.com/questions/368542", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: How can I stop a While loop? I wrote a while loop in a function, but don't know how to stop it. When it doesn't meet its final condition, the loop just go for ever. How can I stop it? def determine_period(universe_array): period=0 tmp=universe_array while True: tmp=apply_rules(tmp)#aplly_rules is...
{ "language": "en", "url": "https://stackoverflow.com/questions/368545", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Comma "izing" a list of items Given a list of strings, what is the best method for concatenating these strings into a comma separated list with no comma at the end. (VB.NET or C#) (Using either StringBuilder or String Concat.) Dim strResult As String = "" Dim lstItems As New List(Of String) lstItems.Add("Hello") lst...
{ "language": "en", "url": "https://stackoverflow.com/questions/368551", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: How can I handle a file with multiple encodings in it? I have a small program to order and sort email messages, outputting to a textfile using $msg->decoded->string. The perl program outputs to stdout, and I redirect it to a txt file. However, gedit is unable to open this text file because of a character set problem...
{ "language": "en", "url": "https://stackoverflow.com/questions/368557", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Search engines and browser accept-language I'm building a web portal where language content will generally depend on the "accept-language" sent by the browser. The same content-URI will thus serve different content to different users depending on their browser setting. I'm very curious to know how this will affect s...
{ "language": "en", "url": "https://stackoverflow.com/questions/368570", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Sending HTML emails that renders correctly in Notes 7 Does anyone here has any experience on how to send HTML emails that renders correctly on a Lotus Notes Client 7? My email has a couple of complex CSS files and I tried embedding them on <style> tags, but it doesn't seem to work. The thing is that the email render...
{ "language": "en", "url": "https://stackoverflow.com/questions/368587", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Convert String from ASCII to EBCDIC in Java? I need to write a 'simple' util to convert from ASCII to EBCDIC? The Ascii is coming from Java, Web and going to an AS400. I've had a google around, can't seem to find a easy solution (maybe coz there isn't one :( ). I was hoping for an opensource util or paid for util t...
{ "language": "en", "url": "https://stackoverflow.com/questions/368603", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: Can I detect errors while using a .Net WebBrowser control? I have an .Net Froms application that displays web pages through a WebBrowser control. Is there anyway that I can detect if the control shows a 'Page not found' or 'Cannot display webpage' error? There doesn't seem to be any error event handlers. A: The Web...
{ "language": "en", "url": "https://stackoverflow.com/questions/368612", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Is it possible for two ExecutorServices to share a thread pool? I've got a collection of records to process, and the processing can be parallelized, so I've created an ExecutorService (via Executors#newCachedThreadPool()). The processing of an individual record is, itself, composed of parallelizable steps, so I'd li...
{ "language": "en", "url": "https://stackoverflow.com/questions/368613", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: What is the difference between holding object of a class and aggregating them? I can not distinguish the difference between aggregating and holding. What does it mean in terms of, let`s say, C++? I suppose when the object of class A holds (or instantiates) objects of class B, it uses it to perform some functions by ...
{ "language": "en", "url": "https://stackoverflow.com/questions/368618", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to deal with long running Unit Tests? I've got about 100 unit tests and with a coverage of %20, which I'm trying to increase the coverage and also this is a project in development so keep adding new tests. Currently running my tests after every build is not feasible they takes about 2 moments. Test Includes: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/368622", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: source control when away from office I sometimes code when i'm away from the office. I would like to continue to use the benifits of source control when not connected to the company network. My ideal system would allow me to checkin revisions to a repository on my laptop that would then sync with our main SVN reposi...
{ "language": "en", "url": "https://stackoverflow.com/questions/368624", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Questions about Setuptools and alternatives I've seen a good bit of setuptools bashing on the internets lately. Most recently, I read James Bennett's On packaging post on why no one should be using setuptools. From my time in #python on Freenode, I know that there are a few souls there who absolutely detest it. I wo...
{ "language": "en", "url": "https://stackoverflow.com/questions/368636", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "22" }
Q: Procedure expects parameter which was not supplied I'm getting the error when accessing a Stored Procedure in SQL Server Server Error in '/' Application. Procedure or function 'ColumnSeek' expects parameter '@template', which was not supplied. This is happening when I call a Stored Procedure with a parameter throu...
{ "language": "en", "url": "https://stackoverflow.com/questions/368642", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "123" }
Q: Are there any complete, free, keyboard TrueType fonts out there? I need a font that shows letters and function keys on a keyboard, so that I can show Ctrl+Alt+S as 3 separate keys on a keyboard, not as the text. I've looked at two, and one of them had lots of missing keys (among other things, the Win key), the other...
{ "language": "en", "url": "https://stackoverflow.com/questions/368647", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Detecting multiple logged on users via win32 Using the standard win32 api, what's the best way to detect more than one user is logged on? I have an upgrade to our software product that can't be run when more than one user is logged in. (I know this is something to be avoided because of its annoyance factor, but th...
{ "language": "en", "url": "https://stackoverflow.com/questions/368651", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Ruby Regex match unless escaped with \ Using Ruby I'm trying to split the following text with a Regex ~foo\~\=bar =cheese~monkey Where ~ or = denotes the beginning of match unless it is escaped with \ So it should match ~foo\~\=bar then =cheese then ~monkey I thought the following would work, but it doesn't. ([~...
{ "language": "en", "url": "https://stackoverflow.com/questions/368652", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to differ sessions in browser-tabs? In a web-application implemented in java using JSP and Servlets; if I store information in the user session, this information is shared from all the tabs from the same browser. How to differ sessions in the browser-tabs? In this example: <%@page language="java"%> <% String u...
{ "language": "en", "url": "https://stackoverflow.com/questions/368653", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "140" }
Q: What is the best way to work with file paths in java? I believe it's the File class but I heard that is very expensive in memory. Is there a better way to work with file paths? A: It's hard to say without knowing what you want to do, but please do not prematurely optimize. I doubt the memory use of a File object wi...
{ "language": "en", "url": "https://stackoverflow.com/questions/368658", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Can I Re-Assign TFS Work Items to Checked-In Code? Is it possible to go back and tie work items to code that's already been checked into TFS? For example . . . A developer picks the wrong work item, or forgets to pick a work item? I can see work item details for ChangeSets, but the work item page is read-only. A: I...
{ "language": "en", "url": "https://stackoverflow.com/questions/368664", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: How to get tag name of root element in an XML document w/ XSLT? I'm interested in assigning the tag name of the root element in an xml document to an xslt variable. For instance, if the document looked like (minus the DTD): <foo xmlns="http://....."> <bar>1</bar> </foo> and I wanted to assign the string 'foo' ...
{ "language": "en", "url": "https://stackoverflow.com/questions/368668", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "29" }
Q: Best practices, building trunk against trunk? We have many projects that use a common base of shared components (dlls). Currently the development build for each project links against dlls built from the trunk of the components. (ie trunk builds use the dlls from other trunk builds) When we do a release build, we ha...
{ "language": "en", "url": "https://stackoverflow.com/questions/368669", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: File -> Make... menu option is disabled in VB6 IDE VB6 IDE can get into a state when the Make XXXX menu option under the File Menu is disabled. A: Found my own solution that did not require re-installing VB6. In VB6, Right click on the toolbar, goto Customize and reset toolbars. Aftewards, the Make XXXX menu under...
{ "language": "en", "url": "https://stackoverflow.com/questions/368684", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: ASP.NET AJAX No update of screen on partial postback We have an issue on our page whereby the first time a button posts back (we have ASP.NET ajax to enable partial updates) nothing happens, then on every subsequent click, the information is updated as if the previous event fired. Here's the code for the page. The e...
{ "language": "en", "url": "https://stackoverflow.com/questions/368687", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Team Foundation Server Automated Release Notes generation What would be the best method of automatically generating a Release Notes text file from a Team Foundation Server 2008 nightly build? A: We created a TFS report that lists all Work Items associated with a specified Iteration (version). In addition we added ...
{ "language": "en", "url": "https://stackoverflow.com/questions/368707", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Factoring out nulls in bill-of-materials style relations Given the schema PERSON { name, spouse } where PERSON.spouse is a foreign key to PERSON.name, NULLs will be necessary when a person is unmarried or we don't have any info. Going with the argument against nulls, how do you avoid them in this case? I have an a...
{ "language": "en", "url": "https://stackoverflow.com/questions/368725", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: P/Invoke to correct version of Win32 DLL? I've got some P/Invoke code that invokes DBGHELP.DLL. I'll add the signatures to pinvoke.net later. The version of DBGHELP.DLL that ships with Windows 2003 is too old, and my code requires the version of DBGHELP.DLL that shipped with "Debugging Tools for Windows" version 6.9...
{ "language": "en", "url": "https://stackoverflow.com/questions/368726", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }