text
string
meta
dict
Q: How to extracts additional info from SSL certificate to allow access to WebService client on WAS For explaining my situation, I will start with an example. Let's say there are two WS(WebService) clients A & B with trusted certificates. Now in normal excecution when both A & B make a call to WAS(Websphere application...
{ "language": "en", "url": "https://stackoverflow.com/questions/232839", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Implementing claims-based security (WCF/ASP.NET) After researching on the topic of claims-Based security (or a federated security model). I've been coming across many examples that use CardSpace as an example. The main article that I read that gave a really great explanation of the subject was a PDF by Microsoft on ...
{ "language": "en", "url": "https://stackoverflow.com/questions/232842", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: aspnet_regIIS.exe -i does not add aspx to scriptmaps After installing asp.net (and aspnet_regIIS.exe -i) the site doesn't accept my default.aspx page. When trying to access it I get a 404. When hitting directly to my mvc pages (/search.mvc for example) it works like a charm. We checked the website configuration and ...
{ "language": "en", "url": "https://stackoverflow.com/questions/232846", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Wrapping StopWatch timing with a delegate or lambda? I'm writing code like this, doing a little quick and dirty timing: var sw = new Stopwatch(); sw.Start(); for (int i = 0; i < 1000; i++) { b = DoStuff(s); } sw.Stop(); Console.WriteLine(sw.ElapsedMilliseconds); Surely there's a way to call this bit of timing c...
{ "language": "en", "url": "https://stackoverflow.com/questions/232848", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "98" }
Q: Exporting reports - Quest's Spotlight on SQL Server I'm setting up some monitoring on a few SQL Servers. Currently our environment uses Hobbit Monitoring System, but we are probably migrating to Nagios pretty soon. One of the DBAs recommended Spotlight to me, and it seems like a great piece of software, but here's w...
{ "language": "en", "url": "https://stackoverflow.com/questions/232849", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Fibonacci Code Golf Generate the Fibonacci sequence in the fewest amount of characters possible. Any language is OK, except for one that you define with one operator, f, which prints the Fibonacci numbers. Starting point: 25 14 characters in Haskell: f=0:1:zipWith(+)f(tail f) f=0:scanl(+)1f A: J, 27 characters f...
{ "language": "en", "url": "https://stackoverflow.com/questions/232861", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "27" }
Q: C# Event Handlers How can I check in C# if button.Click event has any handlers associated? If (button.Click != null) throws compile error. A: You can't. Events just expose "add a handler" and "remove a handler" - that's all. (In fact in the CLR you can also have metadata to associate a method with "fire the event" ...
{ "language": "en", "url": "https://stackoverflow.com/questions/232863", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Really useful VB6 source code This isn't a question but I thought I'd start a thread where links to exceptionally useful (and widely applicable) vb6 code could be placed. My choice is by someone called John Korejwa and is located on planet sourcecode at http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtC...
{ "language": "en", "url": "https://stackoverflow.com/questions/232864", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: How to set up a computing cloud and how it works? Is it possible to have all the computing capacity of all the hardware nodes allocated to one instance (for eg. one basic linux installation)? How to manage the cloud? A: I think you're confusing cloud computing and grid computing here. Although they do have similari...
{ "language": "en", "url": "https://stackoverflow.com/questions/232866", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Trying to Add Radio Inputs (+Labels) To An Example Form <style type="text/css"> body { font-family:Helvetica, sans-serif; font-size:12px; } p, h1, form, button { border: 0; margin: 0; padding: 0; } .spacer { clear: both; height: 1px; } /* ----------- My Form ----------- */ .myform { margin: 0 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/232869", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to set a default configuration in a Visual Studio Solution File? In VS2005 and up, is it possible to specify which configuration should be selected by default? I have several configurations in my solution but one of them should be used in most cases. Hence I'd like to make sure that devs who pull it out of Sourc...
{ "language": "en", "url": "https://stackoverflow.com/questions/232881", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: Aspect Oriented Programming vs. Object-Oriented Programming Like most developers here and in the entire world, I have been developing software systems using object-oriented programming (OOP) techniques for many years. So when I read that aspect-oriented programming (AOP) addresses many of the problems that tradition...
{ "language": "en", "url": "https://stackoverflow.com/questions/232884", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "227" }
Q: How can I intercept video or image streams from a webcam and modify them? Is there a generic API call I can make to get a handle of the image or video feed coming from a webcam and replace it with an image or video of my own so that applications interfacing to the cam (e.g. MSN/Skype/Yahoo IM) will see my image inst...
{ "language": "en", "url": "https://stackoverflow.com/questions/232893", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: JDBC Thin layer encryption in Application Servers Data Sources I came across an interesting article which shows how we can transparently encrypt jdbc connections using java thin client. http://javasight.wordpress.com/2008/08/29/network-data-encryption-and-integrity-for-thin-jdbc-clients/ However I want to know how ...
{ "language": "en", "url": "https://stackoverflow.com/questions/232895", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Interiting from asp:Image or asp:ImageButton? I got this logic in a control to create a correct url for an image. My control basically needs to diplay an image, but the src is actually a complex string based on different parameters pointing at an image-server. So we decided to to create a control MyImage derived fro...
{ "language": "en", "url": "https://stackoverflow.com/questions/232905", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to make consistent dll binaries across VS versions? For instance, winsock libs works great across all versions of the visual studio. But I am having real trouble to provide a consistent binary across all the versions. The dll compiled with VS 2005 won't work when linked to an application written in 2008. I upgra...
{ "language": "en", "url": "https://stackoverflow.com/questions/232926", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: How do I sum up weighted arrays in PHP? How do I multiply the values of a multi-dimensional array with weights and sum up the results into a new array in PHP or in general? The boring way looks like this: $weights = array(0.25, 0.4, 0.2, 0.15); $values = array ( array(5,10,15), ...
{ "language": "en", "url": "https://stackoverflow.com/questions/232933", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Subclassing DropDownList in ASP.NET I want to subclass the built-in DropDownList in ASP.NET so that I can add functionality to it and use it in my pages. I tried doing this with a UserControl but found that it doesn't expose the internal DropDownList (logically, I guess). I've googled for the answer but can't find a...
{ "language": "en", "url": "https://stackoverflow.com/questions/232934", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: SQL Query Where Field DOES NOT Contain $x I want to find an SQL query to find rows where field1 does not contain $x. How can I do this? A: What kind of field is this? The IN operator cannot be used with a single field, but is meant to be used in subqueries or with predefined lists: -- subquery SELECT a FROM x WHERE...
{ "language": "en", "url": "https://stackoverflow.com/questions/232935", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "196" }
Q: RCDATA terminator I have a .rc file which is used to include some text data in my executable, like this: 1234 RCDATA myfile.txt This works fine: the content of the 'myfile.txt' is included in my executable. The problem is that no 0-terminator is added to the string, and I cannot add it to the file. Is there any way...
{ "language": "en", "url": "https://stackoverflow.com/questions/232938", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Binding xml document to gridview doesn't work I have an XML document which looks like this: <xconnect> <type>OK</type> <response/> <report> <id>suppressionlist_get</id> <name>Suppression List Get</name> <timestamp>24 Oct 08 @ 10:16AM</timestamp> <records type=\"user\"/> <records type=\"client\"/>...
{ "language": "en", "url": "https://stackoverflow.com/questions/232945", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to specify default file extension for Oracle's Pro*COBOL precompiler Is it possible to configure the default file extension that Oracle's Pro*COBOL precompiler assumes for EXEC SQL INCLUDE filename END-EXEC statements in which there is no filename specified for the include file? The docs seem specify that in t...
{ "language": "en", "url": "https://stackoverflow.com/questions/232961", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to find out about the accepted coding styles Where to read up on (the best-practice in) source code formatting, for individual languages i.e. what are the conventions for naming variables etc., for indentation and where to place braces, how and where to include comments, etc. For example for C Kernighan and Rit...
{ "language": "en", "url": "https://stackoverflow.com/questions/232975", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: using c# how can I extract information about the hard drives present on the local machine I'm looking to get data such as Size/Capacity, Serial No, Model No, Heads Sectors, Manufacturer and possibly SMART data. A: You can use WMI Calls to access info about the hard disks. //Requires using System.Management; & Syste...
{ "language": "en", "url": "https://stackoverflow.com/questions/232979", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Erlang syntax - Building an Intellij IDEA language support plugin for Erlang I'm looking to create an Intellij IDEA language support plugin for Erlang. The first and biggest problem I've had is in making the JFlex Erlang syntax definition. Does anyone know where can I get the EBNF or BNF for Erlang? A: Why not go s...
{ "language": "en", "url": "https://stackoverflow.com/questions/232982", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: What is the purpose of zones in sharepoint? (web application zones or authentication zones or how do they call it) I can't understand the concept and, first of all, where it belongs. Is it solely a Shrepoint concept or more general like of ASP.NET or IIS level? Does it only affect authentication and if so how does i...
{ "language": "en", "url": "https://stackoverflow.com/questions/232983", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "25" }
Q: XAML : Binding textbox maxlength to Class constant I am attempting to bind a WPF textbox's Maxlength property to a known constant deep within a class. I am using c#. The class has a structure not too dissimilar to the following: namespace Blah { public partial class One { public partial class Two ...
{ "language": "en", "url": "https://stackoverflow.com/questions/232986", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: removing password for multiple PDF files so I have a huge collection of PDF files that I need to extract text from. The files are encrypted, but I know the password for them. I'm looking for a way to automate the process of extracting the text. I can manually open the file in Acrobat professional, remove security by...
{ "language": "en", "url": "https://stackoverflow.com/questions/232990", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: what is the fastest way to generate a unique set in .net 2 I have what is essentially a jagged array of name value pairs - i need to generate a set of unique name values from this. the jagged array is approx 86,000 x 11 values. It does not matter to me what way I have to store a name value pair (a single string "nam...
{ "language": "en", "url": "https://stackoverflow.com/questions/232997", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Confused with aggregates in T-SQL Ok: This is some of my table structure that matters here CaseStudyID int Title nvarchar(50) OverrideTitle nvarchar(50) Part of my procedure Declare @Temp table(CaseStudyID int, Title nvarchar(50)) Insert Into @Temp SELECT CaseStudyID,Title FROM CaseStudy WHERE Visib...
{ "language": "en", "url": "https://stackoverflow.com/questions/233009", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How does your favorite language handle deep recursion? I recently started learning Python and I was rather surprised to find a 1000 deep recursion limit (by default). If you set it high enough, about 30000, it crashes with a segmentation fault just like C. Although, C seems to go quite a lot higher. (The Python fo...
{ "language": "en", "url": "https://stackoverflow.com/questions/233013", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "23" }
Q: How to run a loop of queries in access? I have a database with a table which is full of conditions and error messages for checking another database. I want to run a loop such that each of these conditions is checked against all the tables in the second database and generae a report which gives the errors. Is this po...
{ "language": "en", "url": "https://stackoverflow.com/questions/233026", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to set the Turbo C path in windows? How to set the turbo c path in windows globally so that i can compile and run my C programs (which are in other drives) using command prompt in windows XP? Can any one tell me how to get commands at every drive in the command prompt just by typing in c:\tcc in command p...
{ "language": "en", "url": "https://stackoverflow.com/questions/233027", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What are underscored symbols in a VB DLL? I have a C++ app in VS2005 and import a VB DLL. IntelliSense shows me all the symbols in the DLL as expected but it also shows all (or nearly all) of them again with an underscore prefix (no @s in them though). Why is this? What are the differences between the underscored it...
{ "language": "en", "url": "https://stackoverflow.com/questions/233035", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Javascript World Timezone Difference to GMT Calculator I was hoping someone could send me in the direction of a regularily updating time zone database. I have found one, but apologies i cant remember where it was from, however with the current GMT clock change fast approaching, i fear all my data will be incorrect, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/233041", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to read the database table name of a Model instance? Given a model's instance object, how can I get the database table's name? I don't want to specify names explicitly in the Meta class. A: Found the answer myself: the _meta attribute of an instance has the information: model_instance._meta.db_table
{ "language": "en", "url": "https://stackoverflow.com/questions/233045", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "116" }
Q: Can any body tell me what is list file and map file in c? I am Manoj again here to ask you my doubts. I heard that in turbo c when we are doing projects with more than one source file then we can generate list file and map file . What are they? what do they contain? And how to generate them using the commands at MS-...
{ "language": "en", "url": "https://stackoverflow.com/questions/233047", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to include the assembly code in my C code in Turbo C? How to include any assembly code lines into my C program ? In turbo c is there a possibility to add an assembly code file (.asm) to a project of few .c files? A: One way to include assembly code is to add a wrapper function and write the assembly code in the...
{ "language": "en", "url": "https://stackoverflow.com/questions/233072", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Group by two fields in Crystal Reports How can I group by two different fields in a Crystal Report? Foe example : val1|val2|val3|val6 val1|val12|val3|val7 val11|val2|val3|val8 val11|val12|val3|val9 I want the report to look like val1 : ======= val2 ---- val3|val6 val12 ------- val3|val7 val11 : ========= val2 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/233073", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Regex token find and replace Please could someone help me with writing a regex expression to replace 0044 token which will be at the start of the string with a 0. Please note that I do not want to replace all 0044 tokens with 0, only those that appear at the start of the string. Thanks a lot A: In perl: s/^0044/0/...
{ "language": "en", "url": "https://stackoverflow.com/questions/233074", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What's the 'obj' directory for in .NET? What exactly is the purpose of the 'obj' directory in .NET? A: The "obj" folder is used to store temporary object files and other files used in order to create the final binary during the compilation process. The "bin" folder is the output folder for complete binaries (assemb...
{ "language": "en", "url": "https://stackoverflow.com/questions/233081", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "70" }
Q: Does anyone have any T4 example Templates that can be used to generate a Webservice? Does anyone have any T4 example Templates (or links to same) that can be used to generate a Webservice? I'm thinking of the fact that I guess the Webservice is not just the Vb or Cs field but also requires an appropriate asmx file. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/233082", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Convert calories to weight The fundamental equation of weight loss/gain is: weight_change = convert_to_weight_diff(calories_consumed - calories_burnt); I'm going on a health kick, and like a good nerd I thought I'd start keeping track of these things and write some software to process my data. I'm not attentive and...
{ "language": "en", "url": "https://stackoverflow.com/questions/233088", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there a name meaning "not a singleton"? Is there a name meaning "not a singleton"? A: Prototype. It is used as a scope in Spring framework to identify dependency which will always be new instance when injected. A: When someone asks me if a class is a Singleton (and it isn't), I just say no, it's a regular class...
{ "language": "en", "url": "https://stackoverflow.com/questions/233107", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "33" }
Q: .NET: How to check the type within a generic typed class? How do I get the type of a generic typed class within the class? An example: I build a generic typed collection implementing ICollection< T>. Within I have methods like public void Add(T item){ ... } public void Add(IEnumerable<T> enumIt...
{ "language": "en", "url": "https://stackoverflow.com/questions/233113", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: AWT TextArea seems to count cr-lf sequence as one character I have this problem: The text "ABCD\r\nEFGHJ" loaded from a file is matched with java regex "EFGH". Matcher object of course says start of the matched string is in position 6. The matcher counts \r \n as two positions. I put the original text in a AWT TextA...
{ "language": "en", "url": "https://stackoverflow.com/questions/233119", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can several suites of the same version of Visual Studio be installed Side by Side? I would like to know if I can install say Visual Studio 2008 Pro and Visual Studio 2008 standard on the same machine. I have tried to install the pro (trial edition available on MSDN) after the express, and it seems to require them to...
{ "language": "en", "url": "https://stackoverflow.com/questions/233123", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I propagate exceptions between threads? We have a function which a single thread calls into (we name this the main thread). Within the body of the function we spawn multiple worker threads to do CPU intensive work, wait for all threads to finish, then return the result on the main thread. The result is that ...
{ "language": "en", "url": "https://stackoverflow.com/questions/233127", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "122" }
Q: Regular expression to replace empty comma-delimited fields with "NA" I have a comma separated list of strings like the one below. a,b ,c ,d, , , , ,e, f,g,h . I want to write a regular expression that will replace the empty values i.e., strings that contain only white spaces to 'NA'. So the result should be...
{ "language": "en", "url": "https://stackoverflow.com/questions/233141", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Visual studio 2008 - Find in files : lists everything twice In VS2008, I have a web-site project. When I use find in files and search for a string, the find results window will list every occurence twice. What could be causing this? [EDIT] Below is the screen capture from VS. I was searching for the work CommissionB...
{ "language": "en", "url": "https://stackoverflow.com/questions/233147", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Accessing array values via pointer arithmetic vs. subscripting in C I keep reading that, in C, using pointer arithmetic is generally faster than subscripting for array access. Is this true even with modern (supposedly-optimizing) compilers? If so, is this still the case as I begin to move away from learning C into O...
{ "language": "en", "url": "https://stackoverflow.com/questions/233148", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "39" }
Q: MySQL update error when special characters are used I was wondering if anyone had come across this one before. I have a customer who uses special characters in their product description field. Updating to a MySQL database works fine if we use their HTML equivalents but it fails if the character itself is used (copie...
{ "language": "en", "url": "https://stackoverflow.com/questions/233165", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What is the best way to do GUIs in Clojure? What is the best way to do GUIs in Clojure? Is there an example of some functional Swing or SWT wrapper? Or some integration with JavaFX declarative GUI description which could be easily wrapped to s-expressions using some macrology? Any tutorials? A: There is a wrapper f...
{ "language": "en", "url": "https://stackoverflow.com/questions/233171", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "154" }
Q: Are there conflicts between SQL Server 2005 and SQL Server 2008? I am told that SQL Server 2005 installation with BI tools and SQL Server 2008 with BI tools can't work together on the same computer. Apparently "some" things stop working. This was told to me by one of my team members. Since I'm new to SQL BI, I cant ...
{ "language": "en", "url": "https://stackoverflow.com/questions/233182", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: What is different with window and div widths between firefox and IE I have a web page that uses a scrolling div to display table information. When the window is resized (and also on page load), the display is centered and the div's scrollbar positioned to the right of the page by setting its width. For some reason, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/233188", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Eclipse: Relocating a git repo from project to workspace I've been working on an Eclipse plug-in project for a while now, and I've run into a situation where I need to split the project up to seperate the test cases from the plug-in package. I'm using git as version control. To describe this simply, I'm versioning t...
{ "language": "en", "url": "https://stackoverflow.com/questions/233189", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Detecting 'stealth' web-crawlers What options are there to detect web-crawlers that do not want to be detected? (I know that listing detection techniques will allow the smart stealth-crawler programmer to make a better spider, but I do not think that we will ever be able to block smart stealth-crawlers anyway, only ...
{ "language": "en", "url": "https://stackoverflow.com/questions/233192", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "112" }
Q: RemoteObject - Cross Domain Issue I am trying to get data from my server, used RemoteObject to accomplish it. When I run the application on my localhost it works great but when iam using it on my server i get a Channel.Security.Error(Security Error accessing URL). On the server side logs there is a mention about cro...
{ "language": "en", "url": "https://stackoverflow.com/questions/233199", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: always try-catch external resource calls? Should I always wrap external resource calls in a try-catch? (ie. calls to a database or file system) Is there a best practice for error handling when calling external resources? A: Catch only exceptions that you can handle. So for example when using external resources, t...
{ "language": "en", "url": "https://stackoverflow.com/questions/233207", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Detect .NET Framework 3.5 SP1 Dependency (cmp. 3.5 w/o SP1) I'm using 3.5 SP1 on my machine, while our customers currently use 3.5 without SP1. I don't know any way in VS2008 to target the solution or project to 3.5 without SP1, only the 3.5 with SP1 I have installed. If we use functions or constructors not availabl...
{ "language": "en", "url": "https://stackoverflow.com/questions/233211", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Generics and Type inference I have an abstract generic class BLL<T> where T : BusinessObject. I need to open an assembly that contains a set of concrete BLL classes, and return the tuples (businessObjectType, concreteBLLType) inside a Dictionary. There is the part of the method I could do until now, but I'm having p...
{ "language": "en", "url": "https://stackoverflow.com/questions/233216", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to pass the password to su/sudo/ssh without overriding the TTY? I'm writing a C Shell program that will be doing su or sudo or ssh. They all want their passwords in console input (the TTY) rather than stdin or the command line. Does anybody know a solution? Setting up password-less sudo is not an option. expect ...
{ "language": "en", "url": "https://stackoverflow.com/questions/233217", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "156" }
Q: Eclipse: Hide paths in the "Open resource" dialog Is there any way to define what the "Open Resource" dialog in Eclipse should show? If you work with svn you don't want the *.svn files to show up. (I know there is a fix out for this one but does there exist a more general one?) A: You could mark the files as 'deriv...
{ "language": "en", "url": "https://stackoverflow.com/questions/233220", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: jQuery Element Swap I have 3 divs where only one is visible by default, they each contain information about a product. Below this divs is a list of 3 images which are images of the products. By default of course the 1st list item is selected and has class="selected". When a different product image is clicks then cla...
{ "language": "en", "url": "https://stackoverflow.com/questions/233222", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is the impact of virtualisation on cryptographically strong random number generators? /dev/random and /dev/urandom use environmental noise to generate randomness. With a virtualised server there can be multiple instances of an Operating System on one hardware configuration. These operating systems will all be ...
{ "language": "en", "url": "https://stackoverflow.com/questions/233240", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: RS232 Communication - Can I use it to create a steady state signal? In all honesty, I think the answer is "no;" however, I want to get a second opinion. Basically, I need one micro-controller device to send a steady signal to another one, but the communicate between them is using RS232. So I think that I have to cre...
{ "language": "en", "url": "https://stackoverflow.com/questions/233242", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to check that a string is a palindrome using regular expressions? That was an interview question that I was unable to answer: How to check that a string is a palindrome using regular expressions? p.s. There is already a question "How to check if the given string is palindrome?" and it gives a lot of answers in d...
{ "language": "en", "url": "https://stackoverflow.com/questions/233243", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "107" }
Q: How can I create a menu in HTML without using Javascript? Since many years a GUI-standard are the menu-bars of applications with menus popping up, if you click or hover an entry in the menu-bar. Some websites implement this feature too, but they are using Javascript, as far as I can see. For different reasons Javas...
{ "language": "en", "url": "https://stackoverflow.com/questions/233251", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How does SetUnhandledExceptionFilter work in .NET WinForms applications? I am working on a project to enhance our production debugging capabilities. Our goal is to reliably produce a minidump on any unhandled exception, whether the exception is managed or unmanaged, and whether it occurs on a managed or unmanaged t...
{ "language": "en", "url": "https://stackoverflow.com/questions/233255", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Is there an acceptable limit for memory leaks? I've just started experimenting with SDL in C++, and I thought checking for memory leaks regularly may be a good habit to form early on. With this in mind, I've been running my 'Hello world' programs through Valgrind to catch any leaks, and although I've removed everyt...
{ "language": "en", "url": "https://stackoverflow.com/questions/233258", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: I'm looking for recomendations for ActiveX Components for processing emails I'm looking for ActiveX components that can easily: * *get and send emails via SMTP and POP3 *strip out and save attachments. *Convert RTF (Outlook emails) to HTML *Sanitize HTML. What components would you recommend? What components...
{ "language": "en", "url": "https://stackoverflow.com/questions/233259", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Pass Viewdata as member from other viewdata to RenderPartial makes the first null The strongly typed SearchViewData has a field called Colors that in it's turn is a ColorViewData. In my /Colors.mvc/search I populate this viewData.Model.Colors based on the given search criteria. Then, based on several factors, I rend...
{ "language": "en", "url": "https://stackoverflow.com/questions/233261", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Nant : change file permission I have an ASP.NET application. Basically the delivery process is this one : * *Nant builds the application and creates a zip file on the developer's computer with the application files without SVN folders and useless files. This file is delivered with a Nant script. *The zip and nan...
{ "language": "en", "url": "https://stackoverflow.com/questions/233264", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Splash page in Wordpress I'm starting a Wordpress Blog that will have adult content on it, so I'll need a first-time-only splash page in Wordpress. The first-time-only issue, I can fix with a cookie (although I am aware that not everyone has cookies enabled) What I could do is, create a script that loads another pa...
{ "language": "en", "url": "https://stackoverflow.com/questions/233283", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Calling .NET methods from VB6 via COM visible DLL I have created a .NET DLL which makes some methods COM visible. One method is problematic. It looks like this: bool Foo(byte[] a, ref byte[] b, string c, ref string d) VB6 gives a compile error when I attempt to call the method: Function or interface marked as re...
{ "language": "en", "url": "https://stackoverflow.com/questions/233284", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Generic contraints on derived classes I have class A: public class ClassA<T> Class B derives from A: public class ClassB : ClassA<ClassB> Class C derives from class B: public class ClassC : ClassB Now I have a generic method with constraints public static T Method<T>() where T : ClassA<T> OK, now I want to call:...
{ "language": "en", "url": "https://stackoverflow.com/questions/233288", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Cannot import SQLite with Python 2.6 I'm running Python 2.6 on Unix and when I run the interactive prompt (SQLite is supposed to be preinstalled) I get: [root@idev htdocs]# python Python 2.6 (r26:66714, Oct 23 2008, 16:25:34) [GCC 3.2.2 20030222 (Red Hat Linux 3.2.2-5)] on linux2 Type "help", "copyright", "credits" ...
{ "language": "en", "url": "https://stackoverflow.com/questions/233320", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: How do I print the full value of a long string in gdb? I want to print the full length of a C-string in GDB. By default it's being abbreviated, how do I force GDB to print the whole string? A: set print elements 0 From the GDB manual: set print elements number-of-elements Set a limit on how many elements of an ...
{ "language": "en", "url": "https://stackoverflow.com/questions/233328", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "445" }
Q: What is the best way to develop a shopping site, that others can use I'd like to develop an ecommerce site where I could allow others to sell items, things like pictures, videos, flash, etc. I want to be able to keep a percentage, and pay the rest back to the seller. Is there anything available, DotNetNuke, etc. tha...
{ "language": "en", "url": "https://stackoverflow.com/questions/233351", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: ELF file headers A quick question about elf file headers, I can't seem to find anything useful on how to add/change fields in the elf header. I'd like to be able to change the magic numbers and to add a build date to the header, and probably a few other things. As I understand it the linker creates the header info...
{ "language": "en", "url": "https://stackoverflow.com/questions/233358", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: How much a tester should know about internal details of code? How useful, if at all, is for the testers on a product team to know about the internal code details of a product. This does not mean they need to know every line of code but a good idea of how the code is structured, what is the object model, how the vari...
{ "language": "en", "url": "https://stackoverflow.com/questions/233360", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to get daily commit count and the number of modified paths from svn repository? So what is the easiest way to accomplish this? A: We use StatSVN and set up a scheduled task to create nightly reports. A: Path of least resistance is to download Tortoise, which supports this out of the box. From their features p...
{ "language": "en", "url": "https://stackoverflow.com/questions/233369", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What's the neatest way to stop a Winforms window being moved around We have a WinForms application which runs on a touch-screen on a bit of industrial equipment. For historical reasons which are not up for changing today, the displayed form has a normal Windows title bar. We would like to stop people using the mou...
{ "language": "en", "url": "https://stackoverflow.com/questions/233379", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Overriding Controls property of a panel in C# I have to override Add method of "Controls" property of myControl that is extended from a Panel control of windows. For that i extended ControlCollection class into MyControlCollection where i overriden its Add method. Now i declared a Controls property of MyControlColle...
{ "language": "en", "url": "https://stackoverflow.com/questions/233382", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: JSP XALAN Example What I am is trying to do is the following. Pass two parameters to a URL * *type *doc_id Once they are passed to the JSP via the URL I want to apply a the type template to the doc_id xml. So if the type is 001 then the 001.xsl is applied to doc_id.xml. The output of this I don't want stored i...
{ "language": "en", "url": "https://stackoverflow.com/questions/233383", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I enable a second monitor in C#? Is it possible to enable a second monitor programatically and extend the Windows Desktop onto it in C#? It needs to do the equivalent of turning on the checkbox in the image below. A: I don't have the full answer here but I am almost sure that you will have to call out of .N...
{ "language": "en", "url": "https://stackoverflow.com/questions/233411", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: Hosting Git Repository in Windows Is there currently a way to host a shared Git repository in Windows? I understand that you can configure the Git service in Linux with: git daemon Is there a native Windows option, short of sharing folders, to host a Git service? EDIT: I am currently using the cygwin install of gi...
{ "language": "en", "url": "https://stackoverflow.com/questions/233421", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "110" }
Q: Is it possible to use relative paths for SSIS packages dtsConfig files? I am trying to make our SQL Server Integration Services packages as portable as possible and the one thing that is preventing that is that the path to the config is always an absolute path, which makes testing and deployment a headache. Are ther...
{ "language": "en", "url": "https://stackoverflow.com/questions/233434", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "23" }
Q: SVN: How do I maintain my local config.blah file? On the SVN server, there is a file called config.conf. I have a local version called the same thing (in the same place). How can I make sure that my local config does not get overwritten, nor checked in? While I'm here, is the answer different for a directory? I'm u...
{ "language": "en", "url": "https://stackoverflow.com/questions/233441", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: What's the best way to display a small embedded animated image with Flex? I need to display a small (15x15 pixel) animation in a Flex app. I have it FLV format, but it could be converted to somthing else. I'd prefer to have the file embedded in the app (it's only 8k in size). I've seen posts about displaying anim...
{ "language": "en", "url": "https://stackoverflow.com/questions/233443", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Monitor battery charge with Win32 API I'm trying to write a small app that monitors how much power is left in a notebook battery and I'd like to know which Win32 function I could use to accomplish that. A: For Vista and up you can use RegisterPowerSettingNotification For earlier functions see the Power Management F...
{ "language": "en", "url": "https://stackoverflow.com/questions/233446", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Webcam usage in C# I am making a program in C# to connect to a webcam and do some image manipulation with it. I have a working application that uses win32 api (avicap32.dll) to connect to the webcam and send messages to it that sends it to the clipboard. The problem is that, while accessible from paint, reading it f...
{ "language": "en", "url": "https://stackoverflow.com/questions/233455", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "22" }
Q: What's the best way to open new browser window? I know that most links should be left up to the end-user to decide how to open, but we can't deny that there are times you almost 'have to' force into a new window (for example to maintain data in a form on the current page). What I'd like to know is what the consensus...
{ "language": "en", "url": "https://stackoverflow.com/questions/233467", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "36" }
Q: How to define default "TagPrefix" for custom controls I have a number of custom controls that I am trying to enable designer support for. The signature looks something like the following: [ToolboxData("<{0}:MyDropDownList runat=\"server\" CustomProp="123"></{0}:MyDropDownList>")] public class MyDropDownList: DropDow...
{ "language": "en", "url": "https://stackoverflow.com/questions/233468", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: How to mock classes instantiated as local variables I'm writing tests for a business method that invokes some DAO classes to perform operations over a database. This method, firstly retrieves a JDBC connection from a DataSource object, The same connection is passed to all DAO instances, so I can use it to control th...
{ "language": "en", "url": "https://stackoverflow.com/questions/233475", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: ASP.NET 2.0 Application on IIS 5 Resulting in Error (aspnet_wp.exe (PID: XXXX) stopped unexpectedly.) After hosting an ASP.NET 2.0 web application on a windows 2000 server(IIS 5). I was unable to browse the web site. The following error message was displayed on the browser and three Event Log entries were added... E...
{ "language": "en", "url": "https://stackoverflow.com/questions/233478", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Need to Impersonate user forAccessing Network resource, Asp.Net Account I need to access a network resource on which only a given Domain Account has access. I am using the LogonUser call, but get a "User does not have required priviliege" exception, as the web application is running with the asp.net account and it d...
{ "language": "en", "url": "https://stackoverflow.com/questions/233490", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Java L&F customization: How do I use synth to customize BorderFactory borders? Specifically, I currently have a JPanel with a TitledBorder. I want to customize the look of the border. In my app's current state, the title is drawn, but not the line border itself. If I bind an imagePainter to the panelBorder method fo...
{ "language": "en", "url": "https://stackoverflow.com/questions/233491", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: It the use of multiple languages in ASP.NET code behind pages acceptable? For the purposes of this question, the code base is an ASP.NET website that has multiple pages written in both C# and Visual Basic .NET. The primary language is C# and the Visual Basic .NET webpages where forked into the project as the same fu...
{ "language": "en", "url": "https://stackoverflow.com/questions/233501", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Write dpi metadata to a jpeg image in Java I am trying to programatically set the dpi metadata of an jpeg image in Java. The source of the image is a scanner, so I get the horizontal/vertical resolution from TWAIN, along with the image raw data. I'd like to save this info for better print results. Here's the code I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/233504", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }