text
string
meta
dict
Q: How do I increase information in ASP.NET Trace I've made some performance improvements to my application's backend, and to show the benefit to the end users of the GUI, we've been using the Trace.axd page to take timings. (The frontend is .Net 1.1 and the backend is Java, connected via Web services.) However, these ...
{ "language": "en", "url": "https://stackoverflow.com/questions/204412", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Failed to get separate instances of a class under mod_python I'm trying to run some python code under Apache 2.2 / mod_python 3.2.8. Eventually the code does os.fork() and spawns 2 separate long-run processes. Each of those processes has to create a separate instance of a class in order to avoid any possible collisi...
{ "language": "en", "url": "https://stackoverflow.com/questions/204427", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Are there any tools to transform SVG data to Canvas friendly input? Are there any tools to transform SVG (XML) data to Canvas friendly input? A: Take a look at canvg. It is a JavaScript library that will parse SVG and render into a specified canvas element: http://code.google.com/p/canvg/ There's also an Ajaxian a...
{ "language": "en", "url": "https://stackoverflow.com/questions/204431", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do I automatically re-establish a duplex channel if it gets faulted? I'm developing a client/server application in .Net 3.5 using WCF. Basically, a long running client service (on several machines) establish a duplex connection to the server over a netTcpBinding. The server then uses the callback contract of the...
{ "language": "en", "url": "https://stackoverflow.com/questions/204437", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: How can I redirect the parent page from an ajax call in CakePHP? Does anybody know how to redirect parent page from an ajax call? I made an ajax call to the server and from the controller function that handles the call, I want to go to another page. Usually this function updates an element from current page, but in ...
{ "language": "en", "url": "https://stackoverflow.com/questions/204438", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Encrypt on iSeries What tools are available to encrypt or password-protect a file stored on the IFS? *integrated file-system, accessible from Windows A: * *You could setup object security so only certain users can view the file. *There are encryption tools available for purchase. There is also some built-in APIs ...
{ "language": "en", "url": "https://stackoverflow.com/questions/204440", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Destructuring assignment in JavaScript As can be seen in the Mozilla changlog for JavaScript 1.7 they have added destructuring assignment. Sadly I'm not very fond of the syntax (why write a and b twice?): var a, b; [a, b] = f(); Something like this would have been a lot better: var [a, b] = f(); That would still...
{ "language": "en", "url": "https://stackoverflow.com/questions/204444", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: What is a good collaboration website for developers? We have a number of developers located around the world which we need to collaborate with. Our functionality required is: * *Some sort of white board, which multiple users can view, and update. *A private wiki. *A ticket system for managing workload. *A so...
{ "language": "en", "url": "https://stackoverflow.com/questions/204449", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: git: squash/fixup earlier commit Suppose you have: A-B-C Now your build/test fails. The fix should be merged in A. My current work-flow is like this: $ git commit -m "fixA" A-B-C-fixA $ git rebase -i A~1 And squash fixA in A, result in: A'-B-C Is there a command to do something like: A-B-C + (index with fix f...
{ "language": "en", "url": "https://stackoverflow.com/questions/204461", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "26" }
Q: What is special about a code signing certificate? Is it different from any other certificate I can generate via makecert or buy from some authority? A: As mentioned by Mile L and Boot to the Head the Extended Key Usage is what determines the purpose that the key can be used for. Most commercial certificate authorit...
{ "language": "en", "url": "https://stackoverflow.com/questions/204463", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Improving FOR XML Explicit Perfomance Although using SQL FOR XML EXPLICIT is cumbersome, I find myself using it often. Since it allows full control over the generated XML document. My problem is with perfomance, sometimes it would take more than 5 minutes to generate an XML document describing some financial data (i...
{ "language": "en", "url": "https://stackoverflow.com/questions/204464", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to access SOAP services from iPhone I'm planning to develop an app for the iPhone and that app would have to access a couple of SOAP services. While doing some basic checking in the iPhone SDK I was not able to find any support for accessing SOAP services, a bit of Googling lead to the conclusion that there is n...
{ "language": "en", "url": "https://stackoverflow.com/questions/204465", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "225" }
Q: Is there a Perl function to turn a string into a regexp to use that string as pattern? I have trouble using Perl grep() with a string that may contain chars that are interpreted as regular expressions quantifiers. I got the following error when the grep pattern is "g++" because the '+' symbols are interpreted as qu...
{ "language": "en", "url": "https://stackoverflow.com/questions/204467", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Invoking a method using reflection on a singleton object So I have the following: public class Singleton { private Singleton(){} public static readonly Singleton instance = new Singleton(); public string DoSomething(){ ... } public string DoSomethingElse(){ ... } } Using reflection how can I invoke the...
{ "language": "en", "url": "https://stackoverflow.com/questions/204468", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Version control "in the clouds" I'm a developer who works on both individual and group projects using Microsoft Visual Studio. I could setup one of several different source control packages, such as VSS, SourceGear Vault or SVN on a server of my own and access them remotely; however, I don't want to deal with the h...
{ "language": "en", "url": "https://stackoverflow.com/questions/204470", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: What should main() return in C and C++? What is the correct (most efficient) way to define the main() function in C and C++ — int main() or void main() — and why? And how about the arguments? If int main() then return 1 or return 0? There are numerous duplicates of this question, including: * *What are the valid ...
{ "language": "en", "url": "https://stackoverflow.com/questions/204476", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "813" }
Q: How to retrieve a list of tasks and bugs from TFS in a batch file? I would like to access the work items in our TFS programmatically. Shouldn't there be an obvious command line tool to extract such information? Or a WebService I can just call? I already have checked into using Excel - this is neat, but I want more h...
{ "language": "en", "url": "https://stackoverflow.com/questions/204484", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: DetailsView does not appear despite visible = true, and how to bind to an empty hashtable? I am trying to bind a hashtable to a detailsview in my ASP.NET web app. When I do this, the detailsview does not appear on the webpage when I do a debug. I have checked ALL the properties for the control and ensured that the v...
{ "language": "en", "url": "https://stackoverflow.com/questions/204485", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Creation of Dynamic Entities in MS CRM 4.0 I am trying to create a new contact using Dynamic Entity. The sample i found in CRM SDK had this code. // Set the properties of the contact using property objects. StringProperty firstname = new StringProperty(); firstname.Name = "firstname"; firstna...
{ "language": "en", "url": "https://stackoverflow.com/questions/204488", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Preserving order with LINQ I use LINQ to Objects instructions on an ordered array. Which operations shouldn't I do to be sure the order of the array is not changed? A: If you are working on an array, it sounds like you are using LINQ-to-Objects, not SQL; can you confirm? Most LINQ operations don't re-order anythi...
{ "language": "en", "url": "https://stackoverflow.com/questions/204505", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "403" }
Q: How to manage non-English-speaking customers? What are the best practices when managing a software project involving a non-English-speaking client? What communication issues are relevant? Would you maintain documentation in both languages (especially updating the specifications regularly)? A: The basic risk in such...
{ "language": "en", "url": "https://stackoverflow.com/questions/204506", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Windows networking name resolution This is not yet particularly programing related but, I am very interested in how Vista and XP resolve network names in a home LAN situation. With Windows 2000, network name resolution was either done via the netbeui protocol - tcp/ip networks needes a wins server. XP and Vista no l...
{ "language": "en", "url": "https://stackoverflow.com/questions/204513", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Java Lucene integration with .Net I've got nutch and lucene setup to crawl and index some sites and I'd like to use a .net website instead of the JSP site that comes with nutch. Can anyone recommend some solutions? I've seen solutions where there was an app running on the index server which the .Net site used remoti...
{ "language": "en", "url": "https://stackoverflow.com/questions/204519", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Is there a way to replace the diff utility, with another, non-Tcl/Tk diff utility? I'm using TkCVS as the GUI front-end for a CYGWIN CVS client, on a Windows XP machine. It's a good compromise, since on my Linux machine I'm also running TkCVS (the same machine running the CVS server, BTW...). I'm interested in repla...
{ "language": "en", "url": "https://stackoverflow.com/questions/204529", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Listbox values are persisting across postbacks I am having a listbox in ASP.net. I am populating the listbox values from another listbox in a page dynamically. During postbacks the values of output listbox are not persisted. (while going to another page and come back to this page). Please suggest some good answer. E...
{ "language": "en", "url": "https://stackoverflow.com/questions/204538", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Change overview ruler color in Eclipse How to change overview rule background color in Eclipse 3.4.0.I20080617-2000 (vertical bar on right of editing window with some annotations) ? General > Editors > Text Editors > Annotations allows only to change colors of marks itself not background of whole bar. It looks like...
{ "language": "en", "url": "https://stackoverflow.com/questions/204548", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: What is the syntax for inserting data into a timestamp(6) type field in Oracle I need to insert some data into a table in Oracle. The only problem is one of the fields is a timestamp(6) type and it is required data. I don't care about what actually goes in here I just need to get the right syntax for an entry so th...
{ "language": "en", "url": "https://stackoverflow.com/questions/204549", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: last-modified header and linux file system im using httpclient and last-modified header in order to retrieve the last updated date of an html file however when i try this on a linux box it returns yesterdays date but when i use a windows machine it returns todays date. is anyone aware of issues using this header fi...
{ "language": "en", "url": "https://stackoverflow.com/questions/204553", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Nested transactions in postgresql 8.2? I'm working on scripts that apply database schema updates. I've setup all my SQL update scripts using start transaction/commit. I pass these scripts to psql on the command line. I now need to apply multiple scripts at the same time, and in one transaction. So far the only solut...
{ "language": "en", "url": "https://stackoverflow.com/questions/204557", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: is there a clean way to play an mp3 sound in the compact framework 3.5 I use the p/invoke method to play wav sounds. There are ways of calling windows media player to play an mp3 sound, but its slow & cumbersome. Is there an easy way to play a short mp3 file? This is primarily for application prompting and audible...
{ "language": "en", "url": "https://stackoverflow.com/questions/204562", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Get the CustomAttributes of a specific member Is there any way to get the custom attributes of a specific object I am receiving in a method? I do not want nor can to iterate over Type.GetMembers() and search for my member. I have the object, which is also a member, that has the attribute. How do I get the attribute?...
{ "language": "en", "url": "https://stackoverflow.com/questions/204564", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Any experience with the Deliverance system? My new boss went to a speech where Deliverance, a kind of proxy allowing to add skin to any html output on the fly, was presented. He decided to use it right after that, no matter how young it is. More here : http://www.openplans.org/projects/deliverance/introduction In th...
{ "language": "en", "url": "https://stackoverflow.com/questions/204570", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can a software agency deliver quality software/win projects? I currently work for a bespoke software agency. Does anyone have any experience of how to win well priced work? It seems there is so much competition from offshore/bedroom programming teams, that cost is extremely competetive these days. I feel that it...
{ "language": "en", "url": "https://stackoverflow.com/questions/204572", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "26" }
Q: Splitting a already split pane (MFC) In my MFC program I am using a splitter to create two panes. I now want to split one of these panes in half again and put in another view, can someone talk me through how to do it or point me in the direction of some code? I would prefer to code it myself so I am not interested i...
{ "language": "en", "url": "https://stackoverflow.com/questions/204576", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Deploy time Webservice location In my Visual Studio Web application project I am adding a reference to a web service. When I add a web reference the following list of files gets generated. * *Reference.map *Reference.vb *Reference.disco *Reference.wsdl All these files contains the url pointing to the web se...
{ "language": "en", "url": "https://stackoverflow.com/questions/204580", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Stopping installer inbetween I want to stop my installer in progress programmatically through my installer class. I want to do this in before install event handler.However when I call Rollback(),I do not know the IDictionary SavedState to pass as parameter.I am passing it as null due to which the rollback is throwin...
{ "language": "en", "url": "https://stackoverflow.com/questions/204587", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Nightly Builds: Why should I do it? Why should I do Nightly Builds? A: You don't actually, what you should be wanting is Continuous Integration and automatic testing (which is a step further than nightly builds). If you are in any doubt you should read this article by Martin Fowler about Continuous Integration. To...
{ "language": "en", "url": "https://stackoverflow.com/questions/204603", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "49" }
Q: Undefined behavior when exceed 64 bits In my current 32-bit application, I check (very occasionally) for overflow by doing operations on 64-bit integers. However, on 64-bit systems there does not seem to be a standard 128-bit integer. Is there a simple way of checking for overflow, or a way of getting 128-bit intege...
{ "language": "en", "url": "https://stackoverflow.com/questions/204606", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: JSMX ajax API not passing form variables to page with ie7 I have a couple of pages working with Firefox but JSMX isn't passing the form variables through when using IE7. Has anybody experienced this? A: * *I did a search, here at SO, for "JSMX". This is the only question that was found. *The JSMX website lists...
{ "language": "en", "url": "https://stackoverflow.com/questions/204608", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Crystal Report Datasource remap I am working with Crystal Reports and MS SQL Server. I need to remap the crystal report to point to a different database on the same SQL Server. Is there an automated way of doing this, or do I have to remap for every single report? I am currently doing this by adding a new data conne...
{ "language": "en", "url": "https://stackoverflow.com/questions/204611", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to use CodeIgniter/MVC Views Inside jQuery/AJAX Tabs? Trying to make a form wizard with jQuery tabs. Is it possible to have each step of the form in separate views, then load each via jQuery/AJAX tabs option? When I AJAX load the partial form, it has no way to access the js, css, etc.; as there are is no 'header...
{ "language": "en", "url": "https://stackoverflow.com/questions/204612", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Streaming log(txt) viewer Anybody in the know of a viewer (or Notepad++ plugin) that can read txt files in a streaming way? I would like to see for example the last 10 lines of a txt file that gets appended continiously. A: The Notepad++ plugin you're looking for is Document Monitor. However, if you notice that Not...
{ "language": "en", "url": "https://stackoverflow.com/questions/204614", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "44" }
Q: How to migrate all URLs in svn:externals properties across a repository? We are in the process of moving our SVN repositories from one machine to another one, and with it will come a new domain name for the new repo. The problem is, that within the repository, there are lots of svn:externals references to other pro...
{ "language": "en", "url": "https://stackoverflow.com/questions/204616", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: LINQ to SQL error message: 'Where' not found I'm trying to start using LINQ and specifically LINQ to SQL but I'm having some difficulties I've tried this with SqlMetal and now using the database table designer in Visual Studio and I keep getting similar errors, like in this code, using the data context I created wit...
{ "language": "en", "url": "https://stackoverflow.com/questions/204627", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How does Google Maps work? What is the name of the technology behind Google Maps which allows the server to send only the part of the map requested from the user to enhance the performance, and is there any library to handle this? A: The technology could generically be described as a map server. The map server gene...
{ "language": "en", "url": "https://stackoverflow.com/questions/204644", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "41" }
Q: How to validate that a string doesn't contain HTML using C# Does anyone have a simple, efficient way of checking that a string doesn't contain HTML? Basically, I want to check that certain fields only contain plain text. I thought about looking for the < character, but that can easily be used in plain text. Anoth...
{ "language": "en", "url": "https://stackoverflow.com/questions/204646", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "34" }
Q: When should a web service not be used? Using a web service is often an excellent architectural approach. And, with the advent of WCF in .Net, it's getting even better. But, in my experience, some people seem to think that web services should always be used in the data access layer for calls to the database. I don't ...
{ "language": "en", "url": "https://stackoverflow.com/questions/204653", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "35" }
Q: Best way for retrieving single record results in LINQ to SQL If I query a table with a condition on the key field as in: var user = from u in dc.Users where u.UserName == usn select u; I know that I will either get zero results or one result. Should I still go ahead and...
{ "language": "en", "url": "https://stackoverflow.com/questions/204670", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "44" }
Q: How to manage license banners in source files of Eclipse projects I'm about to release a set of Eclipse plug-ins as Open Source and noticed that most source code released under the LGPL/EPL contains a header banner in each file that refers to the license or contains the license itself. Since adding these banners to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/204676", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: Word count in a Notes Text Field I want to limit the number of words a person can enter in a text field. How can I track the number of words (by using a second field) in that field as each word is entered? A: use this js (using jquery): $('#newKeywords').bind('change', function() { $('#wordsLong').text($('#new...
{ "language": "en", "url": "https://stackoverflow.com/questions/204682", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I input 4-byte UTF-8 characters? I am writing a small app which I need to test with utf-8 characters of different number of byte lengths. I can input unicode characters to test that are encoded in utf-8 with 1,2 and 3 bytes just fine by doing, for example: string in = "pi = \u3a0"; But how do I get a unicode...
{ "language": "en", "url": "https://stackoverflow.com/questions/204683", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Easy way to translate from DTO to Entity and Entity to DTO? I have worked on several distributed client/server projects recently, and one pain point that we always run into is translating the DTO objects into our entities and vice-versa. I was wondering if anyone has a "simple" solution to this time sink? One thing...
{ "language": "en", "url": "https://stackoverflow.com/questions/204694", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Storing values in the web.config - appSettings or configSection - which is more efficient? I'm writing a page that can use a couple of different themes, and I'm going to store some information about each theme in the web.config. Is it more efficient to create a new sectionGroup and store everything together, or ju...
{ "language": "en", "url": "https://stackoverflow.com/questions/204695", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Does field size affect query time? My question is in regards to MySQL, but I also wonder how this affects other databases. I have several fields that are varchar(255) but my coworker insists if they were varchar(30) -- or any smaller size -- then queries would run faster. I'm not so sure, but if it's so I'll admit...
{ "language": "en", "url": "https://stackoverflow.com/questions/204696", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: How can I disable horizontal scrollbars in Flex components? I have a few GridItem components that gets filled with dynamic data. Sometimes this data longer than the GridItem's fixed width, causing the GridItem to get a horizontal scrollbar. How can I disable this (I'm assuming you can...) Is there a general style th...
{ "language": "en", "url": "https://stackoverflow.com/questions/204698", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: How do I add ajax calls to Mootools class I have modified (very slightly) the Mootools class noobSlide (http://www.efectorelativo.net/laboratory/noobSlide/) to create a flickr style photostream. Here is the modified html (note you can see the original on the above page) print("code sample");<h2>Sample 2</h2> <div cl...
{ "language": "en", "url": "https://stackoverflow.com/questions/204702", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is Mono robust enough for serious enterprise development? It's been a few years since I've taken a deep look at Mono. When I last took a look, it wasnt quite there as far as BCL implementation and the tools available were limited. I have a specific need now to do some cross platform development, and was wondering wh...
{ "language": "en", "url": "https://stackoverflow.com/questions/204709", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: How should I check if a flag is set in a flags enum? Of the two methods below, which do you prefer to read? Is there another (better?) way to check if a flag is set? bool CheckFlag(FooFlag fooFlag) { return fooFlag == (this.Foo & fooFlag); } And bool CheckFlag(FooFlag fooFlag) { return (this.Foo & ...
{ "language": "en", "url": "https://stackoverflow.com/questions/204711", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How do you add arguments to an ASP button PostBackUrl? I am constructing a search page with a textbox and a button for now, and probably a dropdown to filter results later on. I have my button's PostBackUrl set to my search page (~/search.aspx). Is there an easy way to pass the value in the text box to the search ...
{ "language": "en", "url": "https://stackoverflow.com/questions/204733", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to read out/resolve properties from Castle Windsor config I have a lot of castle xml configs where properties like connectionstring are also held under .Net configuration sections. I'd like to be able to read out the properties using the container but can't see a mechanism to do it. ie <castle> <configuration...
{ "language": "en", "url": "https://stackoverflow.com/questions/204737", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: What is the C# equivalent of friend? Possible Duplicate: Why does C# not provide the C++ style ‘friend’ keyword? I'd like the private member variables of a class to be accessible to a Tester class without exposing them to other classes. In C++ I'd just declare the Tester class as a friend, how do I do this in C#...
{ "language": "en", "url": "https://stackoverflow.com/questions/204739", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "221" }
Q: What is the best way to reduce cyclomatic complexity when validating data? Right now I'm working on a web application that receives a significant amount of data from a database that has a potential to return null results. When going through the cyclomatic complexity for the application a number of functions are weig...
{ "language": "en", "url": "https://stackoverflow.com/questions/204742", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Regex for SQL WHERE clause For a web application, I want to build a WHERE clause AND submit it to the server. There I will append it to a query. The clause will be something like LASTNAME LIKE 'Pep%' AND (DOB BETWEEN '19600101' AND '19601231 OR SALARY<35000) Can you propose a regular expression to validate the clau...
{ "language": "en", "url": "https://stackoverflow.com/questions/204746", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Find a Control in Asp.net Listview Inside the Selected Item Template I'm converting functionality from an asp.net Gridview to a Listview. In the gridview when the selected item changed I would grab a value from a label in the selected row and write it to a different label outside of the gridview. Protected Sub grdM...
{ "language": "en", "url": "https://stackoverflow.com/questions/204747", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Performance impact of using Workflow Foundation I realize this is a quite general question, but I am wondering about the performance impact of implementing business logic with WF contra imperative code in fairly large enterprise system. I would like to hear others experiences in this regard. A: You can check Perfor...
{ "language": "en", "url": "https://stackoverflow.com/questions/204754", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: HTTP GET in VBS Is there a way to perform an HTTP GET request within a Visual Basic script? I need to get the contents of the response from a particular URL for processing. A: Dim o Set o = CreateObject("MSXML2.XMLHTTP") o.open "GET", "http://www.example.com", False o.send ' o.responseText now holds the response a...
{ "language": "en", "url": "https://stackoverflow.com/questions/204759", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "42" }
Q: Elegant way to search for UTF-8 files with BOM? For debugging purposes, I need to recursively search a directory for all files which start with a UTF-8 byte order mark (BOM). My current solution is a simple shell script: find -type f | while read file do if [ "`head -c 3 -- "$file"`" == $'\xef\xbb\xbf' ] the...
{ "language": "en", "url": "https://stackoverflow.com/questions/204765", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "105" }
Q: WPF Binding My.Settings collection to Combobox items I'm VERY new to WPF, and still trying to wrap my head around binding in XAML. I'd like to populate a combobox with the values of a string collection in my.settings. I can do it in code like this: Me.ComboBox1.ItemsSource = My.Settings.MyCollectionOfStrings ...and ...
{ "language": "en", "url": "https://stackoverflow.com/questions/204779", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: How to construct a relative path in Java from two absolute paths (or URLs)? Given two absolute paths, e.g. /var/data/stuff/xyz.dat /var/data How can one create a relative path that uses the second path as its base? In the example above, the result should be: ./stuff/xyz.dat A: Here is a solution other library free...
{ "language": "en", "url": "https://stackoverflow.com/questions/204784", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "313" }
Q: Two PHPBB questions I was wondering if i could get some help with two questions I have: Firstly, is is possible, assuming I have a random variable to load up two different registration screens? Ie. one with and without the captcha? or one with and without some other stuff i would like to use? Secondly, is it possibl...
{ "language": "en", "url": "https://stackoverflow.com/questions/204787", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do you export a selection of files from the Synchronize view in Eclipse? Sometimes I have made some local changes and for whatever reason don't want to commit them to the source repository. In this case I like to zip up and save off my changes on my local file system until I am ready to commit them at a later d...
{ "language": "en", "url": "https://stackoverflow.com/questions/204799", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: How to declare lambda event handlers in VB.Net? I believe the following VB.Net code is the equivalent of the proceeding C# code; however the VB.Net test fails - the event handling Lambda is never called. What is going on? VB.Net version - fails: <TestFixture()> _ Public Class TestClass <Test()> _ Public Sub ...
{ "language": "en", "url": "https://stackoverflow.com/questions/204801", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "22" }
Q: What would you recommend for a high traffic ajax intensive website? For a website like reddit with lots of up/down votes and lots of comments per topic what should I go with? Lighttpd/Php or Lighttpd/CherryPy/Genshi/SQLAlchemy? and for database what would scale better / be fastest MySQL ( 4.1 or 5 ? ) or PostgreSQL?...
{ "language": "en", "url": "https://stackoverflow.com/questions/204802", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Which sorting algorithm is used by .net in IComparer Do any one know which sorting algorithm is used by .net when we implement IComparer in our class? A: The current documentation says it uses a type of Introsort, a hybrid sorting algoritm: Is works like this: * *If the partition size is fewer than 16 elements, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/204805", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Can someone explain the benefits of using a Primary Interop Assembly in .Net? This concept is new to me, and a colleague suggested it. Sadly, I had no idea what he was talking about. Can someone enlighten me? A: A primary interop assembly will wrap the COM interfaces into .NET compatible types. It doesn't give you...
{ "language": "en", "url": "https://stackoverflow.com/questions/204806", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Collapsible Side Panel Control I am looking for a way to create or implement a collapsible side panel inside of a form. Similar in the way a ToolStripContainer works I would like the same general concept except using panels that I can fill with controls. Does anyone know of a simple way to do this with the provided ...
{ "language": "en", "url": "https://stackoverflow.com/questions/204807", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Does it still make sense to use HTML comments on blocks of JavaScript? In the past people used to wrap HTML comment tags around blocks of JavaScript in order to prevent "older" browsers from displaying the script. Even Lynx is smart enough to ignore JavaScript, so why do some people keep doing this? Are there any va...
{ "language": "en", "url": "https://stackoverflow.com/questions/204813", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "69" }
Q: Is there any valid reason to ever ignore a caught exception Wow, I just got back a huge project in C# from outsourced developers and while going through my code review my analysis tool revealed bunches of what it considered bad stuff. One of the more discouraging messages was: Exceptions.DontSwallowErrorsCatchingNo...
{ "language": "en", "url": "https://stackoverflow.com/questions/204814", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "51" }
Q: How to compare two source trees for differences/changes on win32? There are two directories with source trees. What is the best software to reveal changes in them. The should be not only file names but also some file-comparison viewer. It could be better if it is free tool. A: WinMerge, While not quite up to Beyond...
{ "language": "en", "url": "https://stackoverflow.com/questions/204818", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Automatically discovering C dependencies I'm required to write documentation for my current project that lists all .c files and for each one lists every .h file which is directly or indirectly included by that file. This is a large project, and although we have Makefiles which theoretically have this information, th...
{ "language": "en", "url": "https://stackoverflow.com/questions/204823", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Capture the contents of a regex and delete them, efficiently Situation: * *text: a string *R: a regex that matches part of the string. This might be expensive to calculate. I want to both delete the R-matches from the text, and see what they actually contain. Currently, I do this like: import re ab_re = ...
{ "language": "en", "url": "https://stackoverflow.com/questions/204829", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: How can I try a new language or framework without installing it? With so many languages and frameworks that exist, and with new ones appearing all the time, I don't have the time to download, install, and configure each one to evaluate it. In the past I've run across webapps that allow one to write or paste code int...
{ "language": "en", "url": "https://stackoverflow.com/questions/204831", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "26" }
Q: Is there any good resources for T4 (Text Templating framework from Microsoft)? Anything would be good. Exemples, best practices, samples, etc. A: Hanselman just blogged on this yesterday, he has a huge list of links: http://www.hanselman.com/blog/T4TextTemplateTransformationToolkitCodeGenerationBestKeptVisualStudio...
{ "language": "en", "url": "https://stackoverflow.com/questions/204836", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Are threads reused between requests in ASP.Net? I'm just wondering if the same thread is used for each session, or if its dangerous to count on a particular thread between requests. What I'm getting at, is can I use thread static storage? A: What I'm getting at, is can I use thread static storage? No. Use the App...
{ "language": "en", "url": "https://stackoverflow.com/questions/204840", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Where can I look at the C++ standard Possible Duplicate: Where do I find the current C or C++ standard documents? I want to use STL with the current program I'm working on and the vendor doesn't support what I feel is a reasonable STL, working is not my idea of reasonable. I have been unable to find a C++ Standa...
{ "language": "en", "url": "https://stackoverflow.com/questions/204841", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Xsd and inheritance I have an xsd like this <xsd:complexType name="A"> <xsd:complexContent> <xsd:sequence> <xsd:element name="options"> <xsd:complexType> <xsd:sequence> <xsd:element name="Day"> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/204852", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "29" }
Q: Best Server-side .NET PDF editing library What's the best .NET PDF editing library available, and why? It needs to be used on an IIS web-server. Specifically, I need to edit a PDF which was generated by reporting services. Factors I'm interested in: * *Speed *Memory Consumption *Price *Quality of documentation...
{ "language": "en", "url": "https://stackoverflow.com/questions/204860", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "37" }
Q: VB.NET := Operator What does the following mean? Class.Function(variable := 1 + 1) What is this operator called, and what does it do? A: It is used to assign optional variables, without assigning the previous ones. sub test(optional a as string = "", optional b as string = "") msgbox(a & b) end sub you can n...
{ "language": "en", "url": "https://stackoverflow.com/questions/204877", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: can i use "http header" to check if a dynamic page has been changed you can request the http header to check if a web page has been edited by looking at its date but how about dynamic pages such as - php, aspx- which grabs its data from a database? A: Even though you might think it's outdated I've always found Simo...
{ "language": "en", "url": "https://stackoverflow.com/questions/204886", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Finding out-of-date or missing dependencies or output files in a Visual C++ solution (or: Why does VS insist on rebuilding projects without changes?) I've got a solution containing multiple projects. I'm only changing the code in one of them, but every time I hit Ctrl+Shift+B, Visual Studio rebuilds all of the other...
{ "language": "en", "url": "https://stackoverflow.com/questions/204901", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Events and Delegates with ASP.NET master pages How do you catch a custom event raised by a master page? On my master page I have a custom event and delegate: public event SignOutHandler SignOut; public delegate void SignOutHandler(); This is raised when a link button on the master page is clicked. if (SignOut != nu...
{ "language": "en", "url": "https://stackoverflow.com/questions/204906", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Tool for parsing SMTP logs that finds bounces Our web application sends e-mails. We have lots of users, and we get lots of bounces. For example, user changes company and his company e-mail is no longer valid. To find bounces, I parse SMTP log file with log parser. The logs come from Microsoft SMTP server. Some bounc...
{ "language": "en", "url": "https://stackoverflow.com/questions/204910", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: YUI Uploader 2.6.0 example I'm trying to simply use some of the examples and instructions regarding the YUI-Uploader, and I'm being frustrated by a number of issues. * *The "YUI Library: Uploader" cheat sheet's simple use case doesn't work for me because all the listed methods except addListener() do not exist on...
{ "language": "en", "url": "https://stackoverflow.com/questions/204914", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Does SQLAlchemy support caching? Does SQLAlchemy support some kind of caching so if I repeatedly run the same query it returns the response from cache instead of querying the database? Is this cache automatically cleared when the DB is updated? Or what's the best way to implement this on a CherryPy + SQLAlchemy setu...
{ "language": "en", "url": "https://stackoverflow.com/questions/204918", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "38" }
Q: How do you dynamically load a CSS file into a Flex application? I know that you can apply CSS in order to style objects in Flex using the StyleManager: http://livedocs.adobe.com/flex/3/html/help.html?content=styles_07.html You can also load compiled CSS files (SWFs) dynamically: http://livedocs.adobe.com/flex/3/htm...
{ "language": "en", "url": "https://stackoverflow.com/questions/204924", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: What profilers and analyzers are there for Erlang/OTP? Are there any good code profilers/analyzers for Erlang? I need something that can build a call graph (eg gprof) for my code. A: The 'fprof' module includes profiling features. From the fprof module documentation: fprof:apply(foo, create_file_slow, [junk, 1024])...
{ "language": "en", "url": "https://stackoverflow.com/questions/204926", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: Using temporary table in c# I read an excel sheet into a datagrid.From there , I have managed to read the grid's rows into a DataTable object.The DataTable object has data because when I make equal a grid's datasource to that table object , the grid is populated. My Problem : I want to use the table object and manip...
{ "language": "en", "url": "https://stackoverflow.com/questions/204933", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Set time programmatically using C# What is the best way to set the time on a remote machine remotely? The machine is running Windows XP and is receiving the new time through a web service call. The goal is to keep the remote machines in synch with the server. The system is locked down so that our web service is t...
{ "language": "en", "url": "https://stackoverflow.com/questions/204936", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Determine the LocalSystem account name using C# We have an application that installs SQL Server Express from the command line and specifies the service account as the LocalSystem account via the parameter SQLACCOUNT="NT AUTHORITY\SYSTEM". This doesn't work with different languages because the account name for LocalS...
{ "language": "en", "url": "https://stackoverflow.com/questions/204942", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Krypton Form not showing up in Visual Studio Professional 2008 I have just installed the Krypton Toolkit 3.0.6 from component Factory. I find that in the create new Project Dialog Box , Krypton Form does not show up as an option. I am sure it used to show up ( and I have actually used it in an earlier version of kry...
{ "language": "en", "url": "https://stackoverflow.com/questions/204950", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }