text
stringlengths
8
267k
meta
dict
Q: Comparing VB6.exes We're going through a massive migration project at the minute and trying to validate the code that is deployed to the live estate matches the code we have in source control. Obviously the .net code is easy to compare because we can disassemble. I don't believe this is possible in vb6 exes because ...
{ "language": "en", "url": "https://stackoverflow.com/questions/174706", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Linux users and groups for a LAMP server What is the best practice for setting up a LAMP server in terms of linux users and groups? If there are multiple sites hosted on the same server, is it best to have a single user that owns all site source files (and uploads) that is in the same group as apache - or to have a...
{ "language": "en", "url": "https://stackoverflow.com/questions/174715", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Best way to keep config files under SVN? What is the best way to keep your configuration files (e.g httpd.conf, my.cnf, .bashrc ...) under version control? In adition to the versioning benefit, I want the solution to work as backup as well, so that I can bring a brand new server and checkout (or export) the config f...
{ "language": "en", "url": "https://stackoverflow.com/questions/174719", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Discover what process/query is using oracle temp tablespace Oracle FAQ defines temp table space as follows: Temporary tablespaces are used to manage space for database sort operations and for storing global temporary tables. For example, if you join two large tables, and Oracle cannot do the sort in memor...
{ "language": "en", "url": "https://stackoverflow.com/questions/174727", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: What is the best way to validate a credit card in PHP? Given a credit card number and no additional information, what is the best way in PHP to determine whether or not it is a valid number? Right now I need something that will work with American Express, Discover, MasterCard, and Visa, but it might be helpful if it...
{ "language": "en", "url": "https://stackoverflow.com/questions/174730", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "73" }
Q: How do I integrate VSS 6 so that VB 6 automatically checks out when editing? I'm using Visual Studio 6.0 and Visual Basic 6.0. I have them integrated but when I check out a Project and then try to edit a module in that project it's locked and I have to manually right-click on it and do a Check Out to unlock it. I th...
{ "language": "en", "url": "https://stackoverflow.com/questions/174733", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Adding Text to Clipboard on Click of ListView Column Header - C# Is there a an event for ListViews that are activated when one of the column headers are clicked on? The plan was to add some text to the user's clipboard when they click on the column header. Is there any easy way to do this? A: See link below for t...
{ "language": "en", "url": "https://stackoverflow.com/questions/174745", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Hibernate mappings with a discriminator I have a table with one field that can point to a foreign key in one of 3 other tables based on what the descriminator value is (Project, TimeKeep, or CostCenter. Usually this is implemented with subclasses, and I am wondering if what I have below will work. Note the subclas...
{ "language": "en", "url": "https://stackoverflow.com/questions/174748", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Netbeans Error: "Could not add one or more tag libraries" I am using Netbeans 6.1 and Tomcat 6.0.1.6. I made some very minor changes to a project that had been working and now I am getting the following error: com.sun.rave.web.ui.appbase.ApplicationException: org.apache.jasper.JasperException: Could not add one or m...
{ "language": "en", "url": "https://stackoverflow.com/questions/174749", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Checking to see if a DOM element has focus I've got a lightbox textbox that is displayed using an AJAX call from an ASP.NET UpdatePanel. When the lightbox is displayed, I use the focus() method of a textbox that is in the lightbox to bring focus to the textbox right away. When in Firefox, the text box gains focus wi...
{ "language": "en", "url": "https://stackoverflow.com/questions/174752", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: customized pages in TFS 2008 Can we extend the Team Site to host our own pages. i.e. Does TFS allows you to add pages/web parts that are developed by us. I have found few clues in Google but no one could elaborate properly. A: Yup - a TFS Sharepoint site is pretty much a standard WSS site. You can in fact point TF...
{ "language": "en", "url": "https://stackoverflow.com/questions/174755", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: I need help styling FormItem components in Flex I have a form that I would like to style. specifcally I would like to chnage the background color of the form item's label. (the backgorundColor attribute changes both the label and the inputs background color) i.e. <mx:Form> <mx:FormItem label="username:"> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/174762", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to move a ClickOnce deployment package I have a collection of ClickOnce packages in a publish folder on a network drive and need to move them all to another server (our DR machine). After copy/pasting the whole directory and running the setups on the new machine I get an error message stating that it cannot fi...
{ "language": "en", "url": "https://stackoverflow.com/questions/174764", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: What URL should I use to connect to an SVN repository? I have TurtoiseSVN and ankhSVN installed. I created a repository on my computer: C:\Documents and Settings\user1\My Documents\Subversion\Repository\. I am trying to connect to this repository from my co-worker's computer. What should this URL be? A: file:///\\...
{ "language": "en", "url": "https://stackoverflow.com/questions/174773", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Java: Are concurrent reads and writes possible on a blocking SocketChannel via Object(In|Out)putStreams? I created an ObjectInputSteam and ObjectOutputStream on a blocking SocketChannel and am trying to read and write concurrently. My code is something like this: socketChannel = SocketChannel.open(destNode); object...
{ "language": "en", "url": "https://stackoverflow.com/questions/174774", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Any PHP -> jQuery libraries out there? Have any bridge libraries been developed for PHP that provide access to the jQuery framework? Ideally it would be nice to have something fairly extensible so that creating jQuery-based content using PHP code would be fairly easy and customizeable. Does such a thing exist yet? ...
{ "language": "en", "url": "https://stackoverflow.com/questions/174777", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: LINQ - which layer should LINQ typically fall into, DAL? just wanted to gather different ideas and perspectives as to which layer should (and why) LINQ fall into? A: LINQ = Language INtegrated Queries. This is the query extensions that allows you to query anything from databases to lists/collections to XML. The que...
{ "language": "en", "url": "https://stackoverflow.com/questions/174780", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: What are your favorite LogParser Scripts? What are you favorite LogParser 2.2 Scripts to run against IIS logs and Event logs? I am putting a list of scripts together to run against our production environment to proactively look for issues and to help when isolating performance problems. Do you have a certain list of...
{ "language": "en", "url": "https://stackoverflow.com/questions/174784", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Watermarked Textbox for Compact Framework Does anyone know if anyone makes a watermarked textbox control for the compact framework? I already loked at the following and didn't see one. Component One Mobile Pocket PC Controls Resco Mobile Forms Toolkit A: Daniel Moth has a pretty good blog post about how to do this ...
{ "language": "en", "url": "https://stackoverflow.com/questions/174796", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I convert HTML to Textile? I'm scraping a static html site and moving the content into a database-backed CMS. I'd like to use Textile in the CMS. Is there a tool out there that converts HTML into Textile, so I can scrape the existing site, convert the HTML to Textile, and insert that data into the databas...
{ "language": "en", "url": "https://stackoverflow.com/questions/174800", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: What LogParser UI do you use? I just started using Log Parser Lizard to examine my IIS and Event logs. What UI tool do you use on top of LogParser 2.2 to view your log files on production? A: Microsoft Exchange team just releases a new tool, http://blogs.technet.com/b/exchange/archive/2012/03/07/introducing-log-pa...
{ "language": "en", "url": "https://stackoverflow.com/questions/174803", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: using subversion with a really really big site I'm a big subversion fan and am just about to take over a big site (200mb approx.) I've trimmed down the main site from an original size of 500MB!! I'm about to check this site into a new subversion repository. The problem is, my subversion repository is remotely hosted...
{ "language": "en", "url": "https://stackoverflow.com/questions/174806", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Clone Debian/Ubuntu installation Is there an easy way of cloning entire installed debian/ubuntu system? I want to have identical installation in terms of installed packages and as much as possible of settings. I've looked into options of aptitude, apt-get, synaptic but have found nothing. A: This guide should ans...
{ "language": "en", "url": "https://stackoverflow.com/questions/174839", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: WPF Data Binding and IValueConverter Why is it that when I use a converter in my binding expression in WPF, the value is not updated when the data is updated. I have a simple Person data model: class Person : INotifyPropertyChanged { public string FirstName { get; set; } public string LastName { get; set; } ...
{ "language": "en", "url": "https://stackoverflow.com/questions/174841", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Syntax Highlighting VS Addins What tools are out there that compete with this product? CodeKana I know ReSharper has improved syntax highlighting. Is it comparable to this? A: Both CodeRush and ReSharper do way mode than just syntax highlighting, but if that's what you're looking for, go for it they are both excel...
{ "language": "en", "url": "https://stackoverflow.com/questions/174847", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: ASP.NET Routing with Web Forms I've read ASP.NET Routing… Goodbye URL rewriting? and Using Routing With WebForms which are great articles, but limited to simple, illustrative, "hello world"-complexity examples. Is anyone out there using ASP.NET routing with web forms in a non-trivial way? Any gotchas to be aware of?...
{ "language": "en", "url": "https://stackoverflow.com/questions/174849", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "17" }
Q: What is the best way to run multiple subprocesses via fork()? A python script need to spawn multiple sub-processes via fork(). All of those child processes should run simultaneously and the parent process should be waiting for all of them to finish. Having an ability to set some timeout on a "slow" child would be n...
{ "language": "en", "url": "https://stackoverflow.com/questions/174853", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Printing from the web with few steps I need to add functionality to my J2EE-based wep application: 1) Take some page, probably with form controls, convert it to some printer friendly format. 2) Print this rendered format a) without showing it and b) without a print dialog. I'm not too worried about 1, but have no id...
{ "language": "en", "url": "https://stackoverflow.com/questions/174856", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to turn off warning for no xml comment in VS 2005 At some point in time I turned on a setting in Visual Studio 2005 that produces a warning when methods/classes don't have an xml comment associated with them. I would like to turn this off, but can't seem to find the setting again. Anyone know where this is? ...
{ "language": "en", "url": "https://stackoverflow.com/questions/174863", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Disable the scroll bar in MDI Parent It is possible to prevent scroll bars from appearing when you drag a Mdichild outside the bounds of the Mdiparent in vb.net? I would prefer the solution to not involve checking the posistion of the child form as there are too many forms to alter. Obviously autoscroll is set to f...
{ "language": "en", "url": "https://stackoverflow.com/questions/174869", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Ratio of time spent on coding versus unit testing What is a typical estimate for coding unit tests given an estimate for coding new functionality? Is this different for estimates to maintain code? A: i'd say i spend about 50% of the time coding unit tests. it's hard to measure it's gain except from personal experie...
{ "language": "en", "url": "https://stackoverflow.com/questions/174880", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: How to mock the InitialContext class with jmockit? I'm using jmockit with my tests and with one class I wish to test, uses InitialContext directly. So I have the following: public class MyClass { public void myMethod() { InitialContext ic = new InitialContext(); javax.mail.Session mailSession = ic.lookup("...
{ "language": "en", "url": "https://stackoverflow.com/questions/174881", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do I concatenate two multi-dimensional arrays in VB? I've got this code: rs1 = getResults(sSQL1) rs2 = getResults(sSQL2) rs1 and rs2 and 2D arrays. The first index represents the number of columns (static) and the second index represents the number of rows (dynamic). I need to join the two arrays and store the...
{ "language": "en", "url": "https://stackoverflow.com/questions/174885", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ASP.NET/IIS6: How to search the server's mime map? i want to find the mime-type for a given file extension on an IIS ASP.NET web-server from the code-behind file. i want to search the same list that the server itself uses when serving up a file. This means that any mime types a web-server administrator has added to...
{ "language": "en", "url": "https://stackoverflow.com/questions/174888", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: How to output CDATA using ElementTree I've discovered that cElementTree is about 30 times faster than xml.dom.minidom and I'm rewriting my XML encoding/decoding code. However, I need to output XML that contains CDATA sections and there doesn't seem to be a way to do that with ElementTree. Can it be done? A: Solutio...
{ "language": "en", "url": "https://stackoverflow.com/questions/174890", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "47" }
Q: Get a handle on event listening in JavaScript Last week we released Omniture's analytics code onto a large volume of web sites after tinkering and testing for the last week or so. On almost all of our site templates, it works just fine. In a few scattered, unpredictable situations, there is a crippling, browser-cras...
{ "language": "en", "url": "https://stackoverflow.com/questions/174891", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Unique vs Distinct keyword in Oracle I am a bit confused about the uses of these words. I have a table with he following columns: SITE, LAT, LONG, NAME, ...... I want results with unique (or is it distinct) LAT, LONG. How do I achieve this? A: select unique colA, colB from atable select distinct colA, colB from at...
{ "language": "en", "url": "https://stackoverflow.com/questions/174912", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Upgrade to Quartz 1.6 on JBoss 4.2.x Is there a recommended way to upgrade Quartz in JBoss 4.2.x? JBoss bundles quartz 1.5.2, but I have encountered issues (QUARTZ-399, QUARTZ-520) that I want to avoid. I would not want to patch quartz.jar in JBoss just to resolve the errors, but instead provide a new quartz.jar (pl...
{ "language": "en", "url": "https://stackoverflow.com/questions/174914", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What PHP / MySQL drivers or Database Abstraction Layers Support Prepared Statements? I am working on a project that is built on an extended version of the default PDO and PDOStatement classes and as such it uses PDO style named parameters instead of the "?" placeholder for variables. However, the client is now requ...
{ "language": "en", "url": "https://stackoverflow.com/questions/174915", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do you specify your Content Type in ASP.NET WebForms? I'm specifying my doctype as xhtml strict, but it's being sent over the wire as a content type of text/html. I'd like to specify that the content type is application/xhtml+xm, but I can't figure out where, or if, I can configure this from within my applicati...
{ "language": "en", "url": "https://stackoverflow.com/questions/174916", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Saving - Order of operations in .NET (C#) I have a btnSave_Click() function in my code-behind. If a user clicks the save button (image) I created, it calls this function: protected void btnSave_Click(object sender, EventArgs e) { this.saveForm(); txtMessages.Text = "Save Complete"; } The saveForm() function obvious...
{ "language": "en", "url": "https://stackoverflow.com/questions/174923", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to get a single character without pressing enter? How can I get a single keyboard character from the terminal with Ruby without pressing enter? I tried Curses::getch, but that didn't really work for me. A: Since ruby 2.0.0, there is a 'io/console' in the stdlib with this feature require 'io/console' STDIN.getch...
{ "language": "en", "url": "https://stackoverflow.com/questions/174933", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "45" }
Q: How should strace be used? A colleague once told me that the last option when everything has failed to debug on Linux was to use strace. I tried to learn the science behind this strange tool, but I am not a system admin guru and I didn’t really get results. So, * *What is it exactly and what does it do? *How and...
{ "language": "en", "url": "https://stackoverflow.com/questions/174942", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "297" }
Q: Do you need a framework to write Ruby or Python code for the web? Every time I see Ruby or Python discussed in the context of web development, it's always with a framework (Rails for Ruby, Django for Python). Are these frameworks necessary? If not, is there a reason why these languages are often used within a framew...
{ "language": "en", "url": "https://stackoverflow.com/questions/174948", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How many parameters are too many? Routines can have parameters, that's no news. You can define as many parameters as you may need, but too many of them will make your routine difficult to understand and maintain. Of course, you could use a structured variable as a workaround: putting all those variables in a single ...
{ "language": "en", "url": "https://stackoverflow.com/questions/174968", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "228" }
Q: Mono IDE on Windows Is there any IDE for coding mono on windows platform? A: SharpDevelop and Visual Studio will both work. You can also use the Windows version of MonoDevelop. A: I would recommend #develop or check out the status of porting MonoDevelop (A fork of #develop) back to Windows. A: SharpDevelop comes ...
{ "language": "en", "url": "https://stackoverflow.com/questions/174981", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: How do I change the colours of a textarea in actionscript? I create a TextArea in actionscript: var textArea:TextArea = new TextArea(); I want it to have a black background. I've tried textArea.setStyle("backgroundColor", 0x000000); and I've tried textArea.opaqueBackground = 0x000000; but the TextArea stays whit...
{ "language": "en", "url": "https://stackoverflow.com/questions/174986", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do I customize the print layout of a SharePoint list item? i need to be able to produce a "pretty" printout of an individual list item's values, with the goals being: * *get rid of all navigation *organize data as it would appear on a typical paper form (a customer requirement) i'm avoiding using InfoPath ...
{ "language": "en", "url": "https://stackoverflow.com/questions/175036", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Disable 2 buttons on form submission ( ASP.NET ) I have this solution for a single button: myButton.Attributes.Add("onclick", "this.disabled=true;" + GetPostBackEventReference(myButton).ToString()); Which works pretty well for one button, any ideas on how to expand this to 2 buttons? A: You could add an clientside...
{ "language": "en", "url": "https://stackoverflow.com/questions/175042", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Django development IDE I have done a little Django development, but it has all been in a text editor. I was curious what more advanced development tools others are using in their Django development. I am used to using Visual Studio for development and really like the IntelliSense, code completion, and file organizat...
{ "language": "en", "url": "https://stackoverflow.com/questions/175044", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "284" }
Q: Which JavaScript libraries will handle popout windows (i.e. like Meebo or Gmail chat windows)? I could write this, but before I do, I wanted to check to see if there are existing solutions out there since it seems a lot of websites already do this, so I was wondering if there was a quick way to do this. Also, I am t...
{ "language": "en", "url": "https://stackoverflow.com/questions/175049", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Error connecting to oracle. Getting an UnsatisfiedLinkError for the method t2cGetCharSet I am running a series of JUnits using Apache ANT using JDK 1.5. All JUnits that use an Oracle JDBC driver give the UnsatisfiedLinkError shown below. What native library is it looking for and how do I solve this? What should the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/175055", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: SVN checkout or export for production environment? In a project I am working on, we have an ongoing discussion amongst the dev team - should the production environment be deployed as a checkout from the SVN repository or as an export? The development environment is obviously a checkout, since it is constantly update...
{ "language": "en", "url": "https://stackoverflow.com/questions/175056", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "27" }
Q: SQL Server: Is it possible to insert into two tables at the same time? My database contains three tables called Object_Table, Data_Table and Link_Table. The link table just contains two columns, the identity of an object record and an identity of a data record. I want to copy the data from DATA_TABLE where it is lin...
{ "language": "en", "url": "https://stackoverflow.com/questions/175066", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "182" }
Q: Subtext install gives error in Medium trust level I am trying to install Subtext in a medium trust level environment (host: Crystaltech) and am getting the following error (see below). I was able to do the administration setup but when it tries to go to the blog for actual use, boom. I know I could "upgrade" the en...
{ "language": "en", "url": "https://stackoverflow.com/questions/175075", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PHP session side-effect warning with global variables as a source of data I'm trying to host a PHP web site that was given to me. I see this warning: Warning: Unknown: Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not c...
{ "language": "en", "url": "https://stackoverflow.com/questions/175091", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "43" }
Q: Sorting a list into multiple vertical columns Does anyone have a good algorithm for re-sorting an array of values (already pre-sorted) so that they can be displayed in multiple (N) columns and be read vertically? This would be implemented in .Net but I'd prefer something portable and not some magic function. A good ...
{ "language": "en", "url": "https://stackoverflow.com/questions/175099", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: C++ thread/process identifier Is there a portable way of getting thread and/or process identifier (string, int, ...) with C++? A: You have a few ways, but all imply the use of an external library abstracting the thread for you. Among the popular choices, two are: * *The Boost.Thread library. This is the most por...
{ "language": "en", "url": "https://stackoverflow.com/questions/175100", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Regex to match URL end-of-line or "/" character I have a URL, and I'm trying to match it to a regular expression to pull out some groups. The problem I'm having is that the URL can either end or continue with a "/" and more URL text. I'd like to match URLs like this: * *http://server/xyz/2008-10-08-4 *http://ser...
{ "language": "en", "url": "https://stackoverflow.com/questions/175103", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "93" }
Q: How do I register a custom IObjectRenderer in log4net? I'm doing some research into using log4net, and I found the IObjectRenderer interface interesting. It would allow us to control how types are logged and provide a different, possibly more user-friendly ToString() implementation. I just started looking at log4n...
{ "language": "en", "url": "https://stackoverflow.com/questions/175109", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: How to Show Ballon tooltip when mouse stops [edit] So I used one of the javascript tooltips suggested below. I got the tips to show when you stop and hide if you move. The only problem is it works when I do this: document.onmousemove = (function() { var onmousestop = function() { Tip('Click to search h...
{ "language": "en", "url": "https://stackoverflow.com/questions/175115", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Are there shortcut keys for ReSharper's Unit Test Runner? For obvious productivity reasons, I make an effort of learning and using as many of the keyboard shortcuts for the various Re# commands. However, it seems that the unit test runner does not have any associated shortcut keys. I want to be able to select certa...
{ "language": "en", "url": "https://stackoverflow.com/questions/175116", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "71" }
Q: What are best practices for using thread local storage in .NET? I have a requirement in my application that I think can be met by using thread local storage, but I'm wondering if it's one of those things that's best to avoid. I have read a few articles on the subject: http://www.dotnetcoders.com/web/Articles/ShowArt...
{ "language": "en", "url": "https://stackoverflow.com/questions/175129", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Using stored procedures for calculations I am currently working on a project that will store specific financial information about our clients in a MS SQL database. Later, our users need to be able to query the database to return data from the clients based on certain criteria (eg. clients bigger then a certain size,...
{ "language": "en", "url": "https://stackoverflow.com/questions/175131", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do you set up database testing using the PHP SimpleTest framework I am using SimpleTest, a PHP-based unit testing framework. I am testing new code that will handle storing and retrieving website comments from a database. I am at a loss for how to structure the project to test the database access code. I am looki...
{ "language": "en", "url": "https://stackoverflow.com/questions/175153", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Cheap places for MSDN Licenses A similar question has been asked: MSDN subscriptions on the cheap?, but I am not interested in the solutions provided: * *I am not developing a product for sale, I am starting up a consulting company, so Empower is not an option. *I have visited the links to MS regarding MSDN su...
{ "language": "en", "url": "https://stackoverflow.com/questions/175156", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: How do I slice an array in Excel VBA? What function can I use in Excel VBA to slice an array? A: Application.WorksheetFunction.Index(array, row, column) If you specify a zero value for row or column, then you'll get the entire column or row that is specified. Example: Application.WorksheetFunction.Index(array, 0...
{ "language": "en", "url": "https://stackoverflow.com/questions/175170", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "36" }
Q: Advertised disk space vs actual disk space Why is it that advertised disk space is almost always higher than the disk space reported by the UI? For example, I have an "80 gb" hard drive, but the iTunes UI indicates only 74. I usually see this as well with hard disks and the amount reported with the drive letter. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/175176", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Updating an object within a Set Let's say I have this type in my application: public class A { public int id; public B b; public boolean equals(Object another) { return this.id == ((A)another).id; } public int hashCode() { return 31 * id; //nice prime number } } and a Set<A> structure. Now, I have an objec...
{ "language": "en", "url": "https://stackoverflow.com/questions/175186", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "24" }
Q: Disable anchors in Chrome/WebKit/Safari Consider the following code: $("a").attr("disabled", "disabled"); In IE and FF, this will make anchors unclickable, but in WebKit based browsers (Google Chrome and Safari) this does nothing. The nice thing about the disabled attribute is that it is easily removed and does not...
{ "language": "en", "url": "https://stackoverflow.com/questions/175205", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Safe to Run LogParser Against Live Production IIS Log? Is it safe to run LogParser against our live production IIS log file? Currently, I have been copying it over to another location and then running LogParser 2.2 against the log file. Instead, I would really like to run it against the live data so that I can see c...
{ "language": "en", "url": "https://stackoverflow.com/questions/175210", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: ASP.Net compiliation I have a question about asp.net compiling. I know the different ways you can compile but my question is with the default method. Microsoft says that pages and code are compiled on their first use and then cached. My question is, when does that cache clear... when the app pool recycles? Or, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/175217", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Which is more appropriate: getters and setters or functions? Is it ever appropriate to abandon the "getMyValue()" and "setMyValue()" pattern of getters and setters if alternative function names make the API more obvious? For example, imagine I have this class in C++: public class SomeClass { private: bool mIsVi...
{ "language": "en", "url": "https://stackoverflow.com/questions/175228", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Is there a better way to verify if a request accepts JSON? Actually, I'm using this way. Do you have a better way? private bool AcceptJson(HttpRequest request) { const string JsonType = "application/json"; if (request.ContentType.ToLower(CultureInfo.InvariantCulture).StartsWith(JsonType)) { retu...
{ "language": "en", "url": "https://stackoverflow.com/questions/175236", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: What is your experience with Clearcase Multiserver? We are considering using ClearCase Multisite to enable the offshore development team. The other option is the ClearCase Remote Client using the local (onshore) ClearCase installation. Has anyone had experiences using Multisite? Is the synchronization and management...
{ "language": "en", "url": "https://stackoverflow.com/questions/175237", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How do I convert a file's format from Unicode to ASCII using Python? I use a 3rd party tool that outputs a file in Unicode format. However, I prefer it to be in ASCII. The tool does not have settings to change the file format. What is the best way to convert the entire file format using Python? A: You can convert ...
{ "language": "en", "url": "https://stackoverflow.com/questions/175240", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "24" }
Q: What's on your C++ cheatsheet? Every so often, I'll have to switch between languages for the majority of the code I write (whether for work or for play). I find that C++ is one of those languages that requires a lot of mental cache space, so if I take a long break from it, then I forget a lot of the details. Even t...
{ "language": "en", "url": "https://stackoverflow.com/questions/175244", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "36" }
Q: Microsoft Certified Partner? Important to Developers? My company has recently became a Microsoft Certified Partner and from a business perspective it helps us greatly as it provides the software licenses needed to continue development in a much more cost effective manner, and the added benefit of marketing abilities...
{ "language": "en", "url": "https://stackoverflow.com/questions/175247", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: How do I enable ViewState for child custom controls when disabled in parent? I am trying to create a custom control that a "gridview" like control but specifcally for business objects that implement certain custom interfaces. In doing this I have come across the following problem. I have a control that I have disab...
{ "language": "en", "url": "https://stackoverflow.com/questions/175252", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: What is the best way to use assembly versioning attributes? The AssemblyVersion and AssemblyFileVersion attributes are the built-in way of handling version numbers for .NET assemblies. While the framework provides the ability to have the least significant parts of a version number (build and revision, in Microsoft t...
{ "language": "en", "url": "https://stackoverflow.com/questions/175256", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Synchronizing SVN repo from local to server? So i have this local SVN repo that i am using for my dev work on a particular project, and i also have a SVN repo setup on the customers media temple account for a more secure backup. I do all of my development on my laptop so i don't always have an internet connection (...
{ "language": "en", "url": "https://stackoverflow.com/questions/175264", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Unified Navigation System for JSF (menus, breadcrumbs, sitemap) We're using MyFaces, Richfaces & Restfaces to build a website on top of Oracle Stellant CMS. We're not using Site Studio. Are there any widgets/combination of widgets out there that could provide a unified navigation system? The site structure needs to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/175293", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why does TortoiseSVN (1.5.3) try to merge 1-Head when I pull from trunk? I use TortoiseSVN 1.5.3 and VisualSVN 1.5.3 (Subversion 1.5.2) Suppose that I create a new branch (/branches/branch1) of the trunk(/trunk) then someone (also using TortoiseSVN 1.5.3) merges their branch back into the trunk. I try to merge from...
{ "language": "en", "url": "https://stackoverflow.com/questions/175296", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there any alternative to stored procedures? Is there any alternative to stored procedures, secure and fast as well as stored procs. i know only Hibernate. Is there any other technologies like that? A: Yes. you can use dynamic sql, but I personally like stored procedures better. 1) If you're using MS SQL Server...
{ "language": "en", "url": "https://stackoverflow.com/questions/175298", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: How do I tighten security of my hybrid ASP.NET 1.1 / Ajax solution? Scenario I have an HTML/javascript website that uses javascriptSOAPClient communicate with an ASP.NET 1.1 web service in order to read/write to a SQL database. (http://www.codeproject.com/KB/ajax/JavaScriptSOAPClient.aspx). The database contains ano...
{ "language": "en", "url": "https://stackoverflow.com/questions/175309", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Bandlimited waveform generation I am writing a software synthesizer and need to generate bandlimited, alias free waveforms in real time at 44.1 kHz samplerate. Sawtooth waveform would do for now, since I can generate a pulse wave by mixing two sawtooths together, one inverted and phase shifted. So far I've tried the...
{ "language": "en", "url": "https://stackoverflow.com/questions/175312", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Reporting Services internationalization Possible Duplicate: Internationalization in SSRS We use SQL Server Reporting Services for our web reports. At the moment, our clients are all in the UK, so for each report, we set the Language property for the report to "English (United Kingdom)". But now we have US and Fre...
{ "language": "en", "url": "https://stackoverflow.com/questions/175322", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Should you display what's happening in the unit test as it runs? As I am coding my unit tests, I tend to find that I insert the following lines: Console.WriteLine("Starting InteropApplication, with runInBackground set to true..."); try { InteropApplication application = new InteropApplication(true); applicat...
{ "language": "en", "url": "https://stackoverflow.com/questions/175323", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Do you count the hours spent on bug fixes towards the scrum? HI, I am new to the scrum methodology and looking for some help to get comfortable with the environment and wondering if there needs to be a bucket to track Developers and QA hours spent on deployments and bug fixes and retests. Seems like it could have ma...
{ "language": "en", "url": "https://stackoverflow.com/questions/175344", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: Webserver to combine XML files? I have a program I've written in VB.NET 2005, it saves statistics in an XML file. I use this program on multiple computers. I'd like to set up a webserver where I can upload my XML file, or just the data, and add it to the server ignoring duplicate entries already on the server. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/175346", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to edit CSS style of a div using C# in .NET I'm trying to grab a div's ID in the code behind (C#) and set some css on it. Can I grab it from the DOM or do I have to use some kind of control? <div id="formSpinner"> <img src="images/spinner.gif" /> <p>Saving...</p> </div> A: Add the runat="server" attri...
{ "language": "en", "url": "https://stackoverflow.com/questions/175381", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "46" }
Q: What's the difference between AppDomain.CurrentDomain.BaseDirectory and Application.ExecutablePath in practice? According to the MSDN, the BaseDirectory is where an AppDomain will look for DLLs to load, while ExecutablePath will provide the path to the original executable file (including file name). I know that one...
{ "language": "en", "url": "https://stackoverflow.com/questions/175384", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: What is the preferred way to do a CSS rollover? When setting up a rollover effect in HTML, are there any benefits (or pitfalls) to doing it in CSS vs. JavaScript? Are there any performance or code maintainability issues I should be aware of with either approach? A: It will still work in CSS if the browser happens ...
{ "language": "en", "url": "https://stackoverflow.com/questions/175385", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Designing Web Sites with Ruby on Rails I'm just learning Ruby on Rails. I've read a few books, I've watched lots of Railscasts, I've looked at some examples. However, when working on my first serious project with Rails, I've gotten hung up on how to properly implement some very basic web site features that most tut...
{ "language": "en", "url": "https://stackoverflow.com/questions/175413", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: How do I get list of all tables in a database using TSQL? What is the best way to get the names of all of the tables in a specific database on SQL Server? A: select * from sysobjects where xtype='U' A: exec sp_msforeachtable 'print ''?''' A: SELECT name FROM sysobjects WHERE xtype='U' ORDER BY name; (SQL Ser...
{ "language": "en", "url": "https://stackoverflow.com/questions/175415", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1039" }
Q: PHP website, should I develop into a Linux distribution instead of Windows? In few months I start a project in PHP and I am hesitating to do like usual : develop on my Windows Vista 64bits machine. Since I know few things on Linux, I think it can be a good way to learn by working on a Linux distribution. Do you thin...
{ "language": "en", "url": "https://stackoverflow.com/questions/175425", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Tool for finding package namespace conflicts in java code We have a number of projects that use the same and/or similar package names. Many or these projects will build jar files that are used by other projects. We have found a number of foo.util foo.db and foo.exceptions where the same class names are being used le...
{ "language": "en", "url": "https://stackoverflow.com/questions/175437", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do you version your database schema? How do you prepare your SQL deltas? do you manually save each schema-changing SQL to a delta folder, or do you have some kind of an automated diffing process? I am interested in conventions for versioning database schema along with the source code. Perhaps a pre-commit hook t...
{ "language": "en", "url": "https://stackoverflow.com/questions/175451", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "135" }
Q: Loops and Garbage Collection I am working on a web application and I have run into the following situation. Dim a as Object Dim i as Integer = 0 Try For i=1 to 5 a = new Object() 'Do stuff ' a = Nothing Next Catch Finally a = Nothing End Try Do i need to do the a=Nothing...
{ "language": "en", "url": "https://stackoverflow.com/questions/175454", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Flash exporting/publishing time What are the main reasons for having ridiculously long export times for a simple flash movie to swf? I have no unnecessary images or symbols, everything possible is set to lower than low and it still takes 10 minutes and upwards to export a 30 second animation at 24 fps. I have even c...
{ "language": "en", "url": "https://stackoverflow.com/questions/175464", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }