text stringlengths 8 267k | meta dict |
|---|---|
Q: checking value of a variable inside a higher-precendence variable in XSLT I need to be able to check what the "current" value of a variable is inside a redeclaration of that same variable in a different xslt that includes the other.
main.xslt:
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmln... | {
"language": "en",
"url": "https://stackoverflow.com/questions/400909",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Optimizing search query I'm working on a web application which uses Lucene.net(version 2.0.0.4) for store search.
Though my web application user can search for stores in the US which are located within 50 miles from a given location.
I'm using a third party API to find all the cities within a radius.For a city say E... | {
"language": "en",
"url": "https://stackoverflow.com/questions/400911",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I check if a jQuery plugin is loaded? Is there any way to check if a particular plugin is available?
Imagine that you are developing a plugin that depends on another plugin being loaded.
For example I want the jQuery Validation plugin to use the dateJS library to check if a given date is valid. What would be... | {
"language": "en",
"url": "https://stackoverflow.com/questions/400916",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "239"
} |
Q: Reuse/cache datatable in a web service I have a web application that pulls a datatable and displays results. Due to the nature of the business all of the business rules are incorporated in dlls that the web app must pull from. Because there are multiple site and we don't want to include the core dll's in all of the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/400926",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Applet User-agent This is a simple question, but I didn´t found any documentation about this. When an applet makes a request, how is the user agent of the request. I want to know the applet user-agent expression to detect if a request comes from an applet.
I make two test, with IE7 and Firefox 3.0.5 with JDK 1.6.0_0... | {
"language": "en",
"url": "https://stackoverflow.com/questions/400929",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I completely mirror a web page? I have several web pages on several different sites that I want to mirror completely. This means that I will need images, CSS, etc, and the links need to be converted. This functionality would be similar to using Firefox to "Save Page As" and selecting "Web Page, complete". ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/400935",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Writing email messages to flat files in Outlook with VBA I have written a VBA app that opens a folder in outlook and then iterates through the messages. I need to write the message bodies (with some tweaking) to a single flat file. My code is as follows...
Private Sub btnGo_Click()
Dim objOutlook As New Outloo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/400941",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Namespaces and folder structures in c# solutions: how should folders on disk be organised? First off, let’s agree that namespace should match folder structure and that each language artefact should be in its own file.
(see Should the folders in a solution match the namespace? ).
The next question is how the fold... | {
"language": "en",
"url": "https://stackoverflow.com/questions/400945",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Does C have a "foreach" loop construct? Almost all languages have a foreach loop or something similar. Does C have one? Can you post some example code?
A: There is no foreach in C.
You can use a for loop to loop through the data but the length needs to be know or the data needs to be terminated by a know value (eg.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/400951",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "127"
} |
Q: How to customize the background/border colors of a grouped table view cell? I would like to customize both the background and the border color of a grouped-style UITableView.
I was able to customize the background color by using the following:
tableView.contentView.backgroundColor = [UIColor greenColor];
But the bo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/400965",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "114"
} |
Q: Is there anyway to prevent 'this' from changing, when I wrap a function? I want all buttons to perform an action before and after their normal onclick event. So I came up with the "brilliant" idea of looping through all those elements and creating a wrapper function.
This appeared to work pretty well when I tested ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/400968",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to find where all of the space in a SQLServer database is being used We have a SQL server database which, according to Microsoft SQL Server Management Studio has just 119Mb out of 6436Mb available.
Yet the command:
EXEC sp_msforeachtable 'sp_spaceused ''?'''
reveals a total reserved space that is less than ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/400976",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Best way to create a SQL Server rollback script? I am working on some schema changes to an existing database.
I backed up the database to get a dev copy, and have made my changes. I will be creating a single roll script to migrate the changes on the production machine in a single transaction.
Is there a best practi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/400984",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Iterating through an array while performing a request for each entry Here is my issue. I have an array containing the name of cities that I need to lookup the weather for. So I'm looping through each city and performing an AJAX request to retrieve the weather.
var LOCATION = 'http://www.google.com/ig/api?weather=';
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/400989",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Deriving from UserControl in Silverlight In Silverlight 2 I have the following class declaration for a control:
public partial class ClassX : UserControl
I wish to replace UserControl with ClassXBase which derives from UserControl but I'm getting the reasonable error "Partial declarations of 'ClassX' must not speci... | {
"language": "en",
"url": "https://stackoverflow.com/questions/400991",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: A Question On Smart Pointers and Their Inevitable Indeterminism I've been extensively using smart pointers (boost::shared_ptr to be exact) in my projects for the last two years. I understand and appreciate their benefits and I generally like them a lot. But the more I use them, the more I miss the deterministic beha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/400993",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Java: handling combined keyboard input What is the correct way to separate between F1 and i.e. CTRL+F1 respective SHIFT-CTRL+F1 within an KeyListener registered behind i.e. a JButton?
public void keyPressed(KeyEvent event) {
int key = event.getKeyCode();
logger.debug("KeyBoard pressed char(" + event.getKeyC... | {
"language": "en",
"url": "https://stackoverflow.com/questions/400994",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: URL redirection in Apache2 Trying to redirect a URL on one webserver on my LAN to another webserver on my LAN. I assumed that all I needed was a .htaccess file in my /var/www directory whose contents are the following 3 lines only:
Options +FollowSymLinks
RewriteEngine on
RewriteMatch newsite\.level2\.level1\.com ht... | {
"language": "en",
"url": "https://stackoverflow.com/questions/400997",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do you learn WPF and Silverlight? I've been doing some WPF development for the last few months, and I've recently started Silverlight development.
Most of the time things go OK, especially for the simple stuff, but frequently I get stumped by seemingly simple things - especially in XAML. As an example, yesterday... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401014",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Quitting Excel using VBA causes run-time error 424 I have been writing a VBA macro that opens a HTML document within Excel (in order to perform various calculations on it). Excel will search for the HTML document within the current folder. If it can't find it there it will produce a file open box where the user ca... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401015",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Unhandled, non-ui thread, exceptions in Windows Forms Short of inserting a try/catch block in each worker thread method, is there a way to deal with unhandled, non-ui thread, exceptions in Windows Forms?
Thread.GetDomain().UnhandledException works great for catching the error, but by then it's too late to do anythin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401024",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Define css class in django Forms Assume I have a form
class SampleClass(forms.Form):
name = forms.CharField(max_length=30)
age = forms.IntegerField()
django_hacker = forms.BooleanField(required=False)
Is there a way for me to define css classes on each field such that I can then use jQuery based on clas... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401025",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "208"
} |
Q: layer hit test only returning layer when bottom half of layer is touched I have a sublayer on a layer-backed view. The sublayer's contents are set to an Image Ref and is a 25x25 rect.
I perform a hit test on the super layer when the touchesBegan and touchesMoved methods are invoked. The hit test method does, in fac... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401040",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: QueryPerformanceCounter and thread safety I'm thinking about making repeated calls (spinning) to QueryPerformanceCounter in two threads that will be active at the same time. I'm not sure if this is really an issue as I've not seen anything written about it but is QueryPerformanceCounter thread safe?
Thanks
A: It de... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401051",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: jQuery UI - a swap function that hides and unhides elements by selector Preface: I have jQuery and jQuery UI included on a page.
I have this function defined:
function swap(sel) {
if (1 == 1) {
$(sel).hide('drop',{direction:'left'});
}
}
How do I fix the (1 == 1) part to test to s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401056",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What ASP.NET Web Controls implement IPostBackDataHandler? Could someone point me to a list of controls that implement IPostBackDataHandler?
I want to know what controls implement this interface and what properties the controls will set during the Postback.
For example:
Textbox : Text
DropDownList : SelectedIndex
I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401060",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Textmate Regex Find Replace Help I've got a project I'm working on converting some legacy perl cgi forms to PHP. A lot of this requires finding / replacing information. In one such case, I have lines like this in the perl script:
<INPUT type="radio" name="trade" value="1" $checked{trade}->{1}>
which needs to read... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401067",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What effect does Microsoft using MVC have on open source? I was listening to the Hansel Minutes podcast from 11/24 talking about Moonlight.
To paraphrase, Scott made the comment that Microsofts attitude about open source is quickly changing, especially with the adoption of MVC architecture.
I admit I don't have the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401072",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Delphi: Handling user's font preference I've come up with the call that gets the user's UI font preference (as
opposed to Borland's hard-coded choice of "MS Sans Serif").
Let's pretend the user's font preference is:
Segoe Print, 15pt
I set the font of all items, on all forms, in all applications to:
Segoe Print, 1... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401075",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Adding Sort Keys and Filter to Oracle Stored Procedure I have a stored procedure in Oracle that returns a select statement cursor reference. I want to be able to pass column names and sort direction (example: 'CompanyName DESC') and be able to sort the results, or pass a filter such as 'CompanyID > 400' and be a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401079",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: "Windows" key as part of a shortcut key I very often open a console window while doing my development. Usually Win+R -> cmd -> enter. However, Windows also lets you add a shortcut key to any shortcut ... but when I try to add Win + C to make the shortcut for my favorite-sized/shaped/buffered console appear, it use... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401084",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Preventive vs Reactive C# programming I've always been one to err on the side of preventing exception conditions by never taking an action unless I am certain that there will be no errors. I learned to program in C and this was the only way to really do things.
Working with C# I frequently see more reactive program... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401090",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Scripting for .NET deployment I am researching various options for deploying a batch of .NET applications. Deployment is more than just copying files, we need to stop/start services, call an EXE file that executes database scripts, initiate a number of setup.exe installs, etc.
These scripts will be given to a third... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401095",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Are we shooting ourselves in the foot by working on Open Source projects? I've been considering the idea of working on some open source projects, mainly because of the same reasons that everyone else does it: for fun and to learn something new. But now more than ever these OS (Open Source) projects are taking more a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401103",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "25"
} |
Q: The right components for an install script? I am writing a bash script to set up a production server. The tasks at hand include compiling software, creating users and directories, copying files over, etc.
I am wondering what other things I should do. Perhaps logging to a file? checking for a 0 exit status? What ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401111",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Sending a value from JavaScript to JSP (with jQuery) Right now I have a JSP page that allows to sort some items, when is ready and a link is clicked a JavaScript function converts all the info into XML (text in a variable), after this i need to send this XML to the JSP page again, i tried putting the info in a hidde... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401114",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: ForeignKey form restrictions in Django I'm using Django to write a blog app, and I'm trying to implement a hierarchical category structure. Each category has a "parent" ForeignKey pointing back to the same Category model. I want to allow admins to add categories, and I want the interface to allow them to select a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401118",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Difference between GO and BEGIN...END Is there a difference between "GO" and "BEGIN...END" in SQL Scripts/Stored Procedures? More specifically, does BEGIN...END specify batches just as GO does?
A: One more little thing about GO.
Variables defined between GOs are only scoped to that region and do not exist outside... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401135",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: How to constrain multiple generic types? Here's a simple syntax question (I hope), I know how to constrain one generic type using the where clause, but how to constrain two generic types?
Maybe the easiest way is to write down what my best guess as to the syntax was.
public class GenericDaoGetByIdTests<TDao, TCompon... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401174",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: Using jQuery, can you have two external scripts that use the $(document).ready(function()? I want to split up the jQuery .js file into two, but I have noticed some of the features arent working when I split it up. Is it because I have two external scripts that start with:
$(document).ready(function(){
Is that not po... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401178",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Any good tutorials to help me to create header files for randomizing in C, C++ I want to create a header file for C, C++ which is specific to help in randomization.
A: Header files are C files, except that they shouldn't contain any code implementation (only declarations).
For example, suppose the C file "dummy.c":... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401183",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-6"
} |
Q: Redirecting from ASP.NET Dropdown What's the best method for handling a situation where you have an ASP.Net Dropdownlist that is used to link to another URL
edited for clarity
Here's the basic scenario:
Dropdownlist with 5 cities bound to it
Selecting one of the cities should send me to a URL based on the city
Right... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401184",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: ASP.NET Error: Could not load file or assembly App_Web_z9w33txs How did you get rid of these annoying ASP.NET errors:
Could not load file or assembly 'App_Web_z9w33txs, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'
This has only happened to me once before. It seems like it is related to ASP.NET caching some... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401188",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to return random items RESTfully? My design exposes two kinds of resources:
*
*Images
*Tags
I would like clients to be able to request random images by their tag(s). For example: Give me random images that are tagged with "New York" and "Winter". What would a RESTful design look like in this case?
A: To s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401191",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Why does the parameterless Guid constructor generate an empty GUID? Why does the parameterless Guid constructor generate an empty GUID rather than default to a generated one as with Guid.NewGuid()?
Is there a particular use for an empty Guid?
A:
Why does the parameterless Guid constructor generate an empty GUID ra... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401198",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: How to map NHibernate from table A to table A itself with many-to-many? Please help! I couldn't figure it out how to map the following situation:
I have only 1 table.
[Table] User { id, name }
My class look like this
public class User
{
public int Id { get; set; }
public string Name { get; set; }
public ISe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401207",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Vista Credential Provider with Newlines I'm trying to build a Vista Credential Provider. I have a field whose type is CPFT_SMALL_TEXT. I would like to put a multiline string into this field, but it keeps getting cut off part way through with an ellipsis appended at the break. How can I avoid this and get my multi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401213",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How to limit rate of requests to web services in Python? I'm working on a Python library that interfaces with a web service API. Like many web services I've encountered, this one requests limiting the rate of requests. I would like to provide an optional parameter, limit, to the class instantiation that, if provided... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401215",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: Not all required revisions are specified sharpsvn I am attempting to do a merge using SharpSVN. A bit of research and I have learned the SharpSVN supports the MergDiff function, however when I attempt the code as listed below I am getting an error message of not all required revisions are specified.
Thanks ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401217",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Determining CRC algorithm from data + CRC - embedded application. I have a set of data protected by 16bit checksums that I need to correct. The checksum locations are known, the exact areas they are calculated on and the exact algorithm used to calculate them are not. 16bit, LSB first. I suspect it's some sort of... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401231",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Static Indexers? Why are static indexers disallowed in C#? I see no reason why they should not be allowed and furthermore they could be very useful.
For example:
public static class ConfigurationManager
{
public object this[string name]
{
get => ConfigurationManager.getProperty(name);
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401232",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "138"
} |
Q: Export video into animated gif? Is there any recommended programs that will output an animated gif based on a video input? Preferably mac but windows is fine as well.
A: Have you taken a look at MPlayer?
A: I want to say that I've seen others, but the SUPER encoder will. The interface is a little clunky, but its ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401233",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I set the build number based on the Subversion revision number with CruiseControl.net
Possible Duplicate:
Use SVN Revision to label build in CCNET
I'm working through the process of installing CruiseControl.net and converting an Msbuild script to work with it. I'd like our build number to reflect the Subv... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401234",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Display macOS window full screen on secondary monitor using Cocoa I'm working on a Cocoa Mac app where I need to display a window/view on a secondary monitor, full-screen.
I know how to create a window that could be dragged onto the secondary monitor, but I was wanting to programmatically create the window and make ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401240",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Adding an action to an existing controller (Ruby on Rails) I am new to Ruby on Rails, I have completed the Blog Tutorial.
I am now trying to add an additional action to the controller, called 'start'.
def start
end
I have added a view page "app/views/posts/start.html.erb" containing nothing but simple html.
When I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401241",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "36"
} |
Q: COM object to create a "Open File" dialog under Vista? I would like to use the Windows Common Dialog "Open File", to get a file from the user under JScript. This used to be possible using "ShowOpen()" on MSCOMDLG.commondialog object but, I can't find an equivalent way to do this that works under Vista.
A: Try this:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401257",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: QuickTest Pro automated testing I have three easy questions.
Does anybody use QuickTest Pro for automated testing?
Any other automated testing applications that you recommend?
Is automated testing a good idea?
Thanks
A: I was head of an automation team that used QTP and I hated it. The record/playback functionali... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401262",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Using ASP.NET MVC From Visual Web Developer Express 2008 I was wondering if there's a way (even a manual one) to setup an ASP.NET MVC project with unit tests under Visual Web Developer Express 2008 SP1.
A: ASP.NET MVC 1.0 (Release version) comes bundled with templates for Visual Web Developer Express 2008. Not sure... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401266",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Naming Python loggers In Django, I've got loggers all over the place, currently with hard-coded names.
For module-level logging (i.e., in a module of view functions) I have the urge to do this.
log = logging.getLogger(__name__)
For class-level logging (i.e., in a class __init__ method) I have the urge to do this.
s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401277",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "49"
} |
Q: File.Exists returning false from a network share I've been working on a ASP.NET project that is going to save uploaded files to a network share. I figured I could just use a virtual directory and be fine, but I have been struggling with permissions for Directory.CreateDirectory.
I was able to upload files so I deci... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401284",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How do I migrate my Netbeans themes to other computers? Short of copying the entire .netbeans directory is there any way to transfer custom Netbeans color schemes to other computers? I am using the latest (6.5).
A: The color settings are stored under config/Editors/ in the user directory, so you only need to trans... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401289",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Enterprise Library Logging Block not logging I'm having an issue with the 3.1 version of the logging application block...
With 3.5 framework my application works fine on my desktop... once it's deployed out to our qa box... the logging ceases to function. The web.config is identical in both scenarios. Any ideas? ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401303",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How does one extract each folder name from a path? My path is \\server\folderName1\another name\something\another folder\
How do I extract each folder name into a string if I don't know how many folders there are in the path and I don't know the folder names?
Many thanks
A: There are a few ways that a file path can... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401304",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "80"
} |
Q: UserControl Focus Issue - Focus() sometimes returns false I have a user control that behaves similar to a tab control.
The tab headers are UserControl instances that override Paint events to make them look custom.
In order to leverage the Validating events on various controls on our tab pages, when the user clicks ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401305",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Programmatically access the section of a web.config? Is there any way to access the <compilation /> tag in a web.config file?
I want to check if the "debug" attribute is set to "true" in the file, but I can't seem to figure out how to do it. I've tried using the WebConfigurationManager, but that doesn't seem to all... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401306",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: high cpu in IIS I'm developing a POS application that has a local database on each POS computer, and communicates with the server using WCF hosted in IIS. The application has been deployed in several customers for over a year now.
About a week ago, we've started getting reports from one of our customers that the ser... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401310",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Programmatically diagnosing ASP.Net session loss due to application recycling? We've got an ASP.Net 2.0 (VS2005) application that works fine locally, but sometimes loses session state when deployed on the remote server.
I suspect a possible issue with IIS recyling the application and thereby blowing away the users... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401311",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Shell script to compare dates from multiple files in Linux I have lots of home directories under /ifshome on Linux. I want to see which users have not logged in for the past 6 months, and my solution is to parse the /ifshome/user/.lastlogin file. Each .lastlogin file has the same format, 1 line:
Last Login: Fri Mar ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401326",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: examining history of deleted file If I delete a file in Subversion, how can I look at it's history and contents? If I try to do svn cat or svn log on a nonexistent file, it complains that the file doesn't exist.
Also, if I wanted to resurrect the file, should I just svn add it back?
(I asked specifically about Subve... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401331",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "169"
} |
Q: Dynamically creating a project in VS2005 using C# Is it possible to progmatically or dynamically create a project in VS2005 using c#? If so could someone provide some ideas or links on how to accomplish this?
A: You can also create and edit msbuild files programatically using the msbuild api. See here for details:
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401338",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Open Microsoft.practices.EnterpriseLibrary database with just a connection string I am using the Microsoft.Practices.EnterpriseLibrary Database tools and I'm having trouble creating a new database using just the connection string information.
Ideally I would like to do the following:
Database dbEngine = DatabaseFact... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401339",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Getting javascript src location/hostname Is there any recommended solutions when an embedding a script that will make a callback to the originating source but the js resides in a different domain. Sometimes other clients would be in a different domain and I can't rely on getting the document or window location.
Cur... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401342",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Developing apps for the nokia n73 in Java? I'm trying to find out if it's possible to develop a key capturing application to analyse writing styles when using the SMS composer for the n73 using S60 2nd Edition, Feature Pack 3 SDK in Java? Originally, I thought that all Java applications would be sand-boxed making it... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401345",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Castle ActiveRecord / NHibernate optimization I have the following structure: message (message table) may have multiple fields (fields table), and each field may have multiple subfields (stored in the same "fields" table with the only difference that fields dont have values in the "ParentField" column). Subfields ma... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401346",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to build DataContractJsonSerialize convenience function I have a common code of serializing a class object in my 3-4 methods ,So I am thinking to create a common function for that code and call function in all the methods
I am doingn this from the following code
DataContractJsonSerializer ser = new DataContra... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401348",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I create a DSN for ODBC in Linux? I am digging around in a Linux application that supposedly uses DSNs to connet to SQL Server. The connection stopped working and I can't find the credentials that are being used (all I know is the DSN's name).
I am familiar with DSNs in Windows, but how are they created and ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401358",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: Website Design - Changing only the body content Currently I am designing a new website and I want to plan it properly.
The main page consists of a Top Content (Header including logo etc) The body with the menu on the left and obviously the footer at the end of the page.
In the menu I have 50 pages and I want to chan... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401366",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: asp.net mvc put controllers into a separate project I'm just learning asp.net mvc and I'm trying to figure out how to move my controllers into a separate project. Typically when I have designed asp.net web apps before, I created one project for my models, another for my logic, and then there was the web.
Now that... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401376",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "107"
} |
Q: Releasing Objects when using a UINavigationController I'm using a UINavigationController and I'm having trouble releasing objects when I push a new view. I want to set an object on the new controller before pushing it. The way I'm currently doing this is:
OpenPageViewController *varOpenPageController = [[OpenPageVie... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401389",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: "Dynamic" Casting in Java Hullo all,
Wondering if there are any Java hackers who can clue me in at to why the following doesn't work:
public class Parent {
public Parent copy() {
Parent aCopy = new Parent();
...
return aCopy;
}
}
public class ChildN extends Parent {
...
}
public cl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401415",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: OpenVG implementation? Which OpenVG implementations exists?
What are pros and cons of each of them?
I'm looking for is a highly stable, fast rendering implementations that is still being actively maintained and developed.
A: MonkVG is an OpenVG 1.1 like vector graphics API implementation currently using an OpenGL... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401422",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "29"
} |
Q: Automated Build Tool With Managed C++ (.NET 2.0) I'm laying the groundwork for an automated build process and am trying to make sure I start down the right path. Our codebase is a mixture of Managed/Unmanaged C++. The managed part is in .NET 2.0 and all of the projects are part of a Visual Studio 2005 solution.
Righ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401431",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to iterate through a tree structure using a generator? I'm trying to figure out how to implement a function in a tree node which returns all its descendant leaves (whether direct or indirect). However, I don't want to pass a container in which the leaf nodes will be put recursively (the tree could be huge), inst... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401432",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Problems in development when using absolute path in links (due to friendly urls) I using urlrewriter.net to implement friendly urls.
When I did the rewriting I used subfolders on occasions.
I found myself having problems with images and links and the ~ sign wasn't working for me. After reading a bit I found out that... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401436",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Expression Web: Shortcut doesn't point to an exe file, but I want to use it to edit Problem: I have to support users who need to edit web pages. Some of these web pages exist only as textarea controls. Fortunately, there is a firefox plugin that allows the user to open the textarea in a default text editor. Unfortun... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401440",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: C#: Move Controls From Form to tabPage in VS Form Designer I decided to change a utility I'm working on to use a tabpage. When I tried to drag various controls from the form to a tab page on top of the form, it made copies of the control, giving it a different name. It's easy enough to just remake the form on top ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401441",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Problems with relative links while using friendly url I'm using urlrewiter.net in order to implement friendly url's.
It's a great and easy to use package!
Nevertheless, while using subfolders I had problems with the relative links to images and to other inner pages.
I tried to use ~ (server side) and it didn't do th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401443",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Cross-colo fail-over design, DNS level fail-over? I'm interested in cross-colo fail-over strategies for web applications, such that if the main site fails users seamlessly land at the fail-over site in another colo.
The application side of things looks to be mostly figured out with a master-slave database setup betw... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401444",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Third (3rd) Click Logout in FreakAuth I've installed the FreakAuth Lite library for CodeIgniter (http://www.4webby.com/freakauth/). Everything is working nicely (logging in/out), but I have one problem. On the third page request after a user has logged in, the user is automatically logged out. This happens if you si... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401455",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how can you determine location of
A: You could give the script an id tag, like this dude does...
A: You can use document.write to create a dummy DOM object and use parentNode to escape out. For example:
<script>
(function(r) {
document.write('<span id="'+r+'"></span>');
window.setTimeout(function() {
var h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401463",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Java Object Reuse Should Java Objects be reused as often as it can be reused ? Or should we reuse it only when they are "heavyweight", ie have OS resources associated with it ?
All old articles on the internet talk about object reuse and object pooling as much as possible, but I have read recent articles that say ne... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401464",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: How to reduce the size of an sqlite3 database for iphone? edit: many thanks for all the answers. Here are the results after applying the optimisations so far:
*
*Switching to sorting the characters and run length encoding - new DB size 42M
*Dropping the indexes on the booleans - new DB size 33M
The really nice p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401467",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Converting GUID to Integer and Back so I have a 3rd party application that I have to interface with, this application needs the userID from my users table. the problem is that I store my userIDs as GUIDs and the 3rd party app only accepts an integer. so I figure, if there is a way to convert a GUID to an integer th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401480",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Find() vs. enumeration on lists I'm working with a code base where lists need to be frequently searched for a single element.
Is it faster to use a Predicate and Find() than to manually do an enumeration on the List?
for example:
string needle = "example";
FooObj result = _list.Find(delegate(FooObj foo) {
retur... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401482",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Rails ActiveRecord Update question I have a user model which has multiple addresses. Now for my application in rails, address is not mandatory. So, if someone wants to create a user and enter the address after the user has been created, my application should allow that. My problem is, for Address model I have valida... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401486",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Anyone Try Running Rails 2.2 (or Edge) under Ruby 1.9.1 RC1 Ruby 1.9.1 RC1 was released today so I quickly moved to install it (a test version of course using a suffix of 19). I install Rails and Rack for the 1.9 RubyGems and then create a new Rails site using edge... when I execute:
ruby19 ./script/server
I watch ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401511",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: War-file deployment with shared resources Consider the following example structure
- Project
- www
- files
+ documents
+ html
+ images
+ scripts
- WEB-INF
* web.xml
The documents folder needs to be a symlink or in some other way external from t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401513",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Linq2Sql Testing I have test database and a production database. When developing I of course work against that test database then when deploying I have to semi-manually update the production database (by running a batch-sql-script). This usually works fine but there's a chance for mistakes where the deployed databas... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401516",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What is the purpose of `this.prototype.constructor = this;`? In the ASP.NET ajax library, there is a line that makes me confused.
Type.prototype.registerClass = function Type$registerClass(typeName, baseType, interfaceTypes) {
//..
this.prototype.constructor = this;
//..
}
I know that (this.prototype.constructor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401521",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Can I use an tag to send cookies across domains? Look at this situation:
*
*www.websitea.com displays an img tag with a src attribute of www.websiteb.com/image.aspx?id=5 and style="display:none"
*www.websiteb.com returns an clear image, in addition to a cookie with a name of referrer and value of 5 (created ser... | {
"language": "en",
"url": "https://stackoverflow.com/questions/401535",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.