text stringlengths 8 267k | meta dict |
|---|---|
Q: What is the proper method for coding, then retrieving business rules static error (NOT exception messages) messages in an ASP.NET web application? I've skinned this cat a few different ways over the last 6 years.. hardcoded strings, static classes with consts, and resource files. What approach do you use, and why? ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284229",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Notebook widget in Tkinter Having played around a little with both Tkinter and wxPython, I like Tkinter much better in terms of how clean my source code looks. However, it doesn't seem to have as many features; in particular it doesn't have tabs (as in, the tabs at the top of a Firefox window).
A little Googling on... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284234",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: How to share config settings between multiple applications I have a project where there are multiple applications that have some common configuration values. I would like to have a shared .config file that is available to all of the applications using the .Net configuration object model. Each application would also ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284240",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Best way to copy a web form page within a project? So let's say you wanted to make a copy of a Web Form page within a .Net Project.
Is there an easier way than:
*
*Copy Source Page
*Page Source Page within project to get new page
*Exclude Source Page
*Rename code behind class for new page
*Add Source Page ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284245",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Javascript Scope Error I'm currently working on a Google Maps project and am implementing a search function. In my search function I'm trying to have content on the side listing which search makers that were just added to the map correspond to each hall. However in assembling this string I run into a problem where m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284246",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Best approach for fixing CSS issues to work with IE 7 Recently, I started maintaining a web application which unfortunately works only with IE 6. Most of the issues are related to CSS.
Is there any tool which can help me standardize the CSS classes to work with both IE 6 and IE 7? I understand I have to go through s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284247",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do I set the version information for an existing .exe, .dll? As part of our build process I need to set the version information for all of our compiled binaries. Some of the binaries already have version information (added at compile time) and some do not.
I want to be able to apply the following information:
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284258",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "135"
} |
Q: Enforcing a coding style Years ago when I was starting a small development project, the other developers and I sat down and agreed on a compromise brace and indentation style. It wasn't anybody's favourite, but it was something that nobody really hated. I wrote a .indentrc configuration file to that style, and had... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284259",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "25"
} |
Q: How do I create an xmlElement from the current node of a xmlReader? If I have an xmlreader instance how can I use it to read its current node and end up with a xmlElement instance?
A: Not tested, but how about via an XmlDocument:
XmlDocument doc = new XmlDocument();
doc.Load(reader);
XmlElement el = doc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284269",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Tracking OutOfMemoryExceptions in C# code I am wondering if there is a tool that allows to track intermittent OutOfMemoryExceptions in C# code.
Ideally, I am looking for something that would detect OOM situation and once it happens, it would allow viewing the content of the managed heap.
I usually use WinDBG + SOS e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284272",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: WAP Site vs. Traditional HTML for a Mobile Website If you had some social networking applications and you wanted your users to interact with them using a mobile device would you use WAP or a slimmed down version of your regular website with HTML?
My train of thought is that WAP is dead or at least starting to bleed ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284281",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: C# serial communication with u-blox gps I have a GPS from u-blox.com with a USB-connection and driver. The driver installs a virual COM port that pops up when you plug the USB in. Using a hyperterminal I can then watch the flow of data from the GPS.
Then I want the data in my program, not so easy...
I have implement... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284285",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Compact Framework - System.Threading.Timer stops when the user turns off the screen I have an application that needs to "poll" a webservice to see if the user has any new messages waiting. I have no control over the webservice so I cannot switch to a "push" mechanism, I'm stuck making a request every X number of se... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284300",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Infragistics grid "on-demand" appearance We're using Infragistics grid (most probably, we'll have 8.2 version at the end) and we want to configure row/cells appearances "on-demand" in order to be able to provide sort of "dynamic appearance".
For example, I want some cell to be red or green, depending on its value. W... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284310",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I append a child node to an element in a DOM object? <%
Set xmlDoc = Server.CreateObject("MSXML2.DOMDOCUMENT")
xmlDoc.loadXML( "<response />" )
Set node = xmlDoc.createElement("account")
xmlDoc.documentElement.AppendChild node
Set node = xmlDoc.createElement("type")
node.Text = "The... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284315",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Hidden UINavigationController inside UITabBarController I have an application with 5 UIViewControllers each inside a corresponding UINavigationController, all tucked inside a UITabBarController that displays 5 tabs at the bottom of the screen.
I want to display another UIViewController (inside a UINavigationControll... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284321",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How can I build XML in C#? How can I generate valid XML in C#?
A: The best thing hands down that I have tried is LINQ to XSD (which is unknown to most developers). You give it an XSD Schema and it generates a perfectly mapped complete strongly-typed object model (based on LINQ to XML) for you in the background, whi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284324",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "454"
} |
Q: How to make child process die after parent exits? Suppose I have a process which spawns exactly one child process. Now when the parent process exits for whatever reason (normally or abnormally, by kill, ^C, assert failure or anything else) I want the child process to die. How to do that correctly?
Some similar ques... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284325",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "239"
} |
Q: .NET Error: The dependency 'Microsoft.Office.Interop.Excel' could not be found My colleague has written a DLL which drives Excel.
When I reference his DLL in my .NET app, I get a warning:
The dependency 'Microsoft.Office.Interop.Excel' could not be found.
My app will compile.
However, when I get to the bit that us... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284336",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Different backup location for DUPLICATE command I am trying to clone a database from one machine to another using the DUPLICATE command in RMAN. For both machines the OS is Windows 2003 and the database software is 10.2.0.3. The problem is that my clone only has a C:\ drive and my hosts backups are kept on the L:\... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284344",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Flag certain properties as CDATA elements for serialization When serializing/de-serializing certain classes I've come across the need to flag or mark certain properties as CDATA elements (due to their content). I am currently handling this like so:
<XmlElement("MessageText")> _
Public Property XmlContentLef... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284358",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to alter a .NET DateTimePicker control to allow enter null values? What's the easiest and most robust way of altering the .NET DateTimePicker control, to allow users to enter null values?
A: Here's an approach from this CodeProject article on creating a Nullable DateTimePicker.
I have overridden the Value pro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284364",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: When does MySQL attempt to update an index for a column? I'm trying to determine what situations MySQL updates an index. Say I have the following table:
CREATE TABLE MyTable (
ID INT NOT NULL AUTO_INCREMENT,
MyIndexedColumn VARCHAR NOT NULL,
MyNonIndexedColumn VARCHAR,
PRIMARY KEY (ID),
INDEX MyNewIndex(M... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284365",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How do I bind collection attributes to a form in Spring MVC I'm trying to bind one of my model objects to the fields of a form, using Spring-MVC. Everything works fine, except that one of the attributes of the model object is an unordered collection. Doing something like
<c:forEach items="${m.items}" var="i" var... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284368",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: MOSS SpNavigationNode.Children always empty I'm trying to return all the child nodes of a set of navigation nodes in sharepoint, the SDK implies I should be doing something like this:
NodeColl = objSite.Navigation.TopNavigationBar
Dim Node as SPNavigationNode
For Each Node In NodeColl
if Node.IsVisible then
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284370",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Convert encoding in flash actionscript 3 Is there any function like php's mb_convert_encoding which can convert an encoding to another?
I want to convert the utf-8 text, passed in a input field inside the flash, to iso-8859-7 encoding.
A: Yup, try flash.utils.ByteArray::writeMultiByte():
var bytes:ByteArray = new ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284373",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Browse Server Folders in Client I have a requirement for an admin user to set up an export directory on the web server, or relative to the web server using a UNC. Is there anything already out there that I can use for this, or must I recurs a limited directories and populate a home-rolled directory browser on the c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284381",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Best way to select out of millions of rows in an Oracle DB G'day!
I have one million different words which I'd like to query for in a table with 15 million rows. The result of synonyms together with the word is getting processed after each query.
table looks like this:
synonym word
---------------------... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284382",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Distributing a small PHP application I wrote a small PHP application that I'd like to distribute. I'm looking for best practices so that it can be installed on most webhosts with minimal hassle.
Briefly: It's simple tool that lets people download files once they login with a password.
So my questions are:
1) How sho... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284385",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Is there a test runner for .NET tests that can run multi-threaded to take advantage of multi-core machines? I'm setting up CI at present using Thoughtworks Studios' Cruise, Gallio to run xunit.net fact/tests, and ncover 2 to do code-coverage.
I noticed that running the code-coverage pegs one of the four CPUs that ou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284388",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: duplicate tags in nusoap I'm using nusoap to connect to a soap webservice. The xml that the class sends to the service is constructed from an array, ie:
$params = array("param1" => "value1", "param2" => "value1");
$client->call('HelloWorld', $params, 'namespace', 'SOAPAction');
This works fine. A multidimensional a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284389",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: ignored in parent web.config I have a folder containing several websites, all using the same assemblies in the GAC. Each website also contains some 'custom' assemblies of their own that refer to the common assemblies.
There is a web.config in this folder, defining common settings for the sites, including the assemb... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284390",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: SQl 2000 Reporting Services and SQL 2005 Reporting Services side by side? Does anyone know if it is possible to install SQL 2000 Reporting Services Server side by side with SQL 2005 Reporting Services Server?
The Reports and ReportServer virual directories are both virtual directories in the default website and they... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284392",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: .NET XmlDocument : Why DOCTYPE changes after Save? I am opening a XML file using .NET XmlReader and saving the file in another filename and it seems that the DOCTYPE declaration changes between the two files. While the newly saved file is still valid XML, I was wondering why it insisted on changing original tags.
Di... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284394",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: ASP.NET 2.0: How to bind an asp:Menu to an SqlDataSource? i've found how to bind an asp:Menu to XML. i've found how to bind an asp:Menu to a site map (which is really binding it to XML). How do you bind an asp:Menu to a database?
The .NET Framework provides multiple data sources:
*
*HierarchicalDataSourceControl
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284398",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Getting URI from nsIDOMEvent I'm using XPCOM, and I want to get the URI of the portion of a page the user clicks (e.g., a user right-clicks on a frame, and I want to display the URL of that frame). So I've set up a mouse listener (nsIDOMEventListener) and then when a click occurs, the handleEvent callback gives me ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284408",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: System views in MySQL I'm using system catalog views such as SYS.ALL_ OBJECTS, SYS.FOREIGN_KEYS etc. to get information about my database structure in MS SQL 2005.
Are there equivalent functions/views for MySQL (v. 5) servers?
A: For the schema (All objects);
SELECT * FROM information_schema.SCHEMATA S;
For cons... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284418",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: (DataGridView + Binding)How to color line depending of the object binded? I would like to add a backcolor for specific line depending of a Property of the object binded.
The solution I have (and it works) is to use the Event DataBindingComplete but I do not think it's the best solution.
Here is the event:
privat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284420",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: EXtjs Grid Filters I am a new user of Extjs library, I created a grid successfully and it works just fine, now I want to use Ext.grid.GridFilters to add filtering to my grid, however I don't see this class in the Extjs source code files, where I can get the required files?
A: The community-supported plugin for grid... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284422",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Avoiding @property-itis (i.e. overuse of properties, when are they appropriate)? Objective-C 2.0 gave us @properties.
*
*They allow for introspection.
*They allow for declarative programming.
*The @synthesize and @dynamic mechanisms relieve use from having to write repetitive, stock accessors.
*Finally, there ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284428",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Strange Error - CS0012: The type x is defined in an assembly that is not referenced The type 'x' is defined in an assembly that is not referenced. You must add a reference to assembly 'abc123'.
I have a .NET 2.0 web application that references my assembly 'abc123'. The assembly exists in the GAC and I've verified t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284433",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "35"
} |
Q: virtual directories with different .net frameworks Is it possible to have two virtual directories under the same website in IIS but have the virtual directories be using different versions of the .net framework?
For example, under the default website, can I have one virtual directory targeting the 2.0 framework and ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284434",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Memento implementation on .NET I've seen two different implementation of memento on .NET.
One is pretty straightforward - The object creates another instance of itself.
The other is serializing the object using BinaryFormatter and MemoryStream.
Which is the preferred method? Can anyone point out advantages/disadvan... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284437",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Block Access mousewheel behavior in external ActiveX controls In an Access (2002 / 2003) data-bound form, a turn of the mousewheel moves to the next/previous record, even if the cursor is inside a multiline text field or a listbox. This is a major annoyance to users and cannot be turned off easily.
I recently discov... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284438",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Flex: How can I Load data, then create required components? I have a flex application that has three tabs. Each of these tabs has a component that loads a ‘form’ that has a dropdown combo box. These combo boxes depend on external data in order to populate correctly. Currently the first tab is being created and the d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284444",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Microsoft Sync Framework query performance We're developing a product that relies on the Microsoft Sync Framework to keep the data on a client app and on the server in sync. What we have noticed is when syncing about 16 tables and ~2200 records it will take about 4 minutes, which is not acceptable.
Using the SQL Se... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284457",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: What settings should I be using with Minidumps? Currently we call MiniDumpWriteDump with the MiniDumpNormal | MiniDumpWithIndirectlyReferencedMemory flags. That works just fine for internal builds in Debug configuration, but isn't giving as much information as we need in Release configuration.
In Release, the minidu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284459",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Why is doctrine returning more fields than I asked for? I am messing around with Doctrine (version 1.0.3) to see if would make a good fit for the collection of apps I am writing.
I am trying to do a query and return only 3 fields. I am getting the correct fields in one table, but the join table I am getting everyth... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284463",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: SQL User-Defined Functions: Fetching TOP n records in a user-defined function How come the following doesn't work?
CREATE FUNCTION Test (@top integer)
RETURNS TABLE
AS
RETURN
SELECT TOP @top * FROM SomeTable
GO
I just want to be able to be able to specify the number of results to be returned. [SQL Server 2000.]
Tha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284468",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I raise an event from anywhere in my WPF application? I have a base page, BasePage, that raises an event that displays messages to the user. Works great on all pages derived from BasePage. I want to do the same thing from user controls, but they don't inherit from BasePage.
What I want is a central place ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284472",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: CSS Table Styling I need to style a table to have rounded corners.
I'm just looking at how best to go about it:
Normally when I style a div to have rounded corners, I use 2 divs with empty comments at the top and bottom, and apply sizing & background image CSS to them.
The table, however, has internal borders, so I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284475",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Anybody knows any knowledge base open source? I want to build a web-based knowledge base system for our call center. To save some development time, I am looking for a open source. Does anybody know any good one out there?
A: I have used phpMyFAQ and found it to be very good.
A: In addition to MediaWiki that was m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284477",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "40"
} |
Q: What is the scope of a Static Class? I have an assembly that may be used by more than one process at a time. If I am using a static class, would the multiple processes all use the same "instance" of that class?
Since the processes are separate, would these be running under difference Application Domains, hence ha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284491",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: WindowsPrincipal.IsInRole() not returning the expected result So here's my current code:
List<string> rowGroups = GetFileGroups((int)row.Cells["document_security_type"].Value);
bool found = false;
System.Security.Principal.WindowsPrincipal p = new System.Security.Principal.WindowsPrincipal(System.Security.Principal.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284500",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Get Proxy configuration before accessing an external webservice (.NET 2.0) When trying to invoke a method on an external webservice (over the Internet) it throws me
"The remote server returned an error: (407) Proxy Authentication Required."
To solve this, I used the following code to set the proxy we use in the offi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284511",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What is a git topic branch? What is a git topic branch? Does it differ from an ordinary branch in some way? Are there any branches that are not topic branches?
A: It's not a technical term; it just refers to a branch that was created to implement a specific feature or fix a bug. The "topic" is the reason for the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284514",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "152"
} |
Q: .NET ODBC DataProvider never connects via Transoft ODBC driver I've got a windows service that I've written in .Net. In our current implementation we are interfacing with a Transoft ODBC. I've got logging implemented, and basically when we open the ODBC connection it just never connects. Never errors out or anyth... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284515",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: An amnesia patient's "first" functional language? (I really like Clojure...) I was recently diagnosed with a cascading dissociative disorder that causes retrograde amnesia in addition to an existing case of possible anterograde amnesia. Many people have tried to remind me of how great a programmer I was before -- Ri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284518",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: Can I allocate a specific number of bits in C? I am trying to store a large amount of boolean information that is determined at run-time. I was wondering what the best method might be.
I have currently been trying to allocate the memory using:
pStatus = malloc((<number of data points>/8) + 1);
thinking that this ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284519",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Is it a bad idea to get rid of the mx: in your Flex code? I am a newbie at Flex, and I don't like the way you have to write the namespace mx: for every control declaration you write. It makes the code cluttery. I would like to write:
<Panel ...
rather than
<mx:Panel ...
I tried writing
xmlns="http://www.adobe.com/... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284530",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: WCF error: The caller was not authenticated by the service I am trying to access my WCF service on a server from my client console application for testing. I am getting the following error:
The caller was not authenticated by
the service
I am using wsHttpBinding. I'm not sure what kind of authentication the s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284538",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "44"
} |
Q: What does the @ in this code sample mean? Html.TextBox("ParentPassword", "", new { @class = "required" })
what the gosh darned heck is the @ for the @class.
A: class is a keyword. To use class as the name of a variable/property, in C#, you can prepend @ to it, as @class. In the IL, for all .net is concerned, the na... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284545",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: delete or virtual delete? I am writing a lib and a demo project. The project doesn't care which version of the lib I use (I can use sdl, directx or whatever I like as the gfx backend). To get the object I do
Obj *obj = libname_newDevice();
Now, should I use delete or should I do obj->deleteMe();? I ask because I a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284556",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Linq to SQL, Stored Procedure with different return types based on an If/Else I have an existing Stored Procedure which I am trying to now call with LINQ to SQL, here is the stored procedure:
ALTER procedure [dbo].[sp_SELECT_Security_ALL] (
@UID Varchar(15)
)
as
DECLARE @A_ID int
If ISNULL(@UID,'') = ''
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284558",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can you initialize a class with a reference member from a private constructor? I'm creating an interface wrapper for a class. The member within the class is a reference(to avoid copying the large structure). If I create a private constructor, what is the best way to initialize that reference to appease the com... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284566",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Design or prototype first? When first approaching a project is best to step back and think through everything or just dive in and start coding and polish at a later date? Essentially, do you design first or try to rapidly prototype?
I have been burned by both methods, sometimes I try and think everything through but... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284578",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: How do I discover if my delphi application currently has a modal window? I've got a timer running in my Delphi MDI application and I'd like to use it to pop up a message if something changes in the background. But I don't want that message to pop up when the the application has a modal dialog in the foreground becau... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284581",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How do I make Subversion use a third-party diff tool? I need more than the default diff! I have recently purchased "Beyond Compare" and I'd like to integrate it with svn, so its launched when I type:
svn diff foo.c
How do I do this?
A: I'd like to add a comment to Andy Lester's answer but I don't have a big enough ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284608",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: Performance in SQL Mobile with one big column that's not being selected I have a SQL Mobile database with one table. It has several columns with useful, often queried data and one column that stores a relatively large string per record (1000+ characters) that is not queried often.
Imagine this fake schema, the "life... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284609",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I pass a string parameter greater than varchar(8000) in SQL Server 2000? You get a compilation error if you define the string parameter to have a size greater than 8000
e.g.
The size (9000) given to the type 'varchar' exceeds the maximum allowed for any data type (8000).
Any ideas?
A: you need to store it ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284610",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Win32: Registry entries required to register an ActiveX control? i need write the code that runs when DllRegisterServer is called. i.e. when someone calls:
regsvr32 myActiveX.ocx
i'm trying to find the definitive list of required registry entries (rather than just what i can cobble together by spellunking through t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284619",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Iterating through anonymous typed data in MVC view Into some view data i have put the result of an anonymous type:
var projectData = from p in db.Projects
orderby p.title
select new
{
Title = p.tit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284637",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Oracle why does creating trigger fail when there is a field called timestamp? I've just wasted the past two hours of my life trying to create a table with an auto incrementing primary key bases on this tutorial, The tutorial is great the issue I've been encountering is that the Create Target fails if I have a column... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284653",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Buffering data for delimiter separated blocks There is a question I have been wondering about for ages and I was hoping someone could give me an answer to rest my mind.
Let's assume that I have an input stream (like a file/socket/pipe) and want to parse the incoming data. Let's assume that each block of incoming dat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284659",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do you normalize a file path in Bash? I want to transform /foo/bar/.. to /foo
Is there a bash command which does this?
Edit: in my practical case, the directory does exist.
A: My recent solution was:
pushd foo/bar/..
dir=`pwd`
popd
Based on the answer of Tim Whitcomb.
A: Try realpath. Below is the source in ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284662",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "280"
} |
Q: How do I check if session cookies are enabled in Classic ASP? What's an elegant way in Classic ASP to check if session cookies are enabled in a user's browser using server side code (because javascript might be disabled as well).
I have a solution of my own but it looks ugly as hell.
@James - that doesn't differenti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284673",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: NullReferenceException when sending XMLWrite output to httpContext.Response.OutputStream I have an application where every now and then I'm getting a strange error.
This is the piece of code:
Dim XMLWriter As New System.Xml.XmlTextWriter(Me.Context.Response.OutputStream, Encoding.UTF8)
XMLWriter.WriteStartDocument()... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284678",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Manipulating giant MySQL dump files What's the easiest way to get the data for a single table, delete a single table or break up the whole dump file into files each containing individual tables? I usually end up doing a lot of vi regex munging, but I bet there are easier ways to do these things with awk/perl, etc. T... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284679",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Creating a dataset.designer.vb from XSD I have an .xsd, .vb, .xsc, and .xss file for a dataset in Visual Studio 2008 that I copied over from another Visual Studio project, however I need to make changes to the dataset. Thus I got into the XSD file, created new columns, deleted ones that aren't needed, etc., etc. Ho... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284708",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Error 4005 Forms authentication failed - ticket supplied has expired I'm running a website using ASP.NET 2.0. Every now and then (10+ times per day on 100+ users daily) I receive this error: Forms authentication failed - ticket supplied has expired.
Here's my web.config snippet:
<authentication mode="Forms">
<f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284709",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Can't connect to SQL Server using an Alias I have a SQL Server 2000 install on a server that I am having weird connection issues with.
Using SSMS I can't connect to it using an Alias I have setup on Configuration Manager. The Alias is set to use TCPIP which is the first protocol in the order below shared memory. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284714",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: MSXML Select Nodes Not Working I am working on an automated testing app, and am currently in the process of writing a function that compares values between two XML files that should be identical, but may not be. Here is a sample of the XML I'm trying to process:
<?xml version="1.0" encoding="utf-8"?>
<report xmlns=... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284716",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: System.Windows.Forms.ToolStrip height or autosize I'm using a series of ToolStrips in an Excel 2007 Actions Pane. I'm programatically adding buttons to each ToolStrip and then adding each ToolStrip to the actions pane. So far so good; my ToolStrips appear, with their associated ToolStripButtons.
The problem comes ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284721",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I insert a character into a string with the s/// operator? I'm trying to insert a comment character into a string something similar to this:
-CreateVideoTracker VT1 "vt name"
becomes
-CreateVideoTracker VT1 # "vt name"
The VT1 word can actually be anything, so I'm using the regex
$line =~ s/\-CreateVideoTr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284722",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Looking for SVN Best Practices When Building Rails Applications on Ubuntu First a bit of background.
I have been working on the MS platform for my entire development career. Up until 2 weeks ago, I had never booted any other OS than 98/XP/Vista. I started using VSS long long ago, and made the change to SVN about 2 ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284732",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I insert strings with quotes into Perl DBI queries? What is the preferred way to insert strings that can contain both single and double quotes (",') into MySql using DBI? For example, $val1 and $val2 can contain quotes:
my $dbh = DBI->connect( ... );
my $sql = "insert into tbl_name(col_one,col_two) values($... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284740",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Processing chunked encoded HTTP POST requests in python (or generic CGI under apache) I have a j2me client that would post some chunked encoded data to a webserver. I'd like to process the data in python. The script is being run as a CGI one, but apparently apache will refuse a chunked encoded post request to a CGI ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284741",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: What is the prefered method for a 'WSDL' for REST webservice? I have build plenty of SOAP webservices, but am building a REST webservice for a specific project, and I was wondering what people used for a 'WSDL' for REST services or if it is even needed.
A: REST really only uses the HTTP verbs (GET,PUT,POST,DELETE) ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284743",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How to pass the current user to a web control declaratively I'm creating a control and need to pass it the current logon user as a parameter (declaratively)
I tried this but didn't work (I got "<%= User.Identity.Name %>" as value):
<cc1:MyControl id="myid" runat="server" User="<%= User.Identity.Name %>" />
Is there... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284744",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Tuning socket connect call timeout Is there any way in a Win32 environment to "tune" the timeout on a socket connect() call? Specifically, I would like to increase the timeout length. The sockets in use are non-blocking. Thanks!
A: Yes, this is possible.
If you're in non-blocking mode after connect(), you normal... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284748",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Simple Excel Applescript I am new to Applescripts and Excel 08? I want to write one that colors arbitrarily preselected cells in Excel 08 specific colors. I can get it to write want in an preselected cell and even bold the font...but for some reason it will not change the color of the cell...
print("Tell applicati... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284750",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Opening a directory chooser in C# I am writing a quick and dirty application that reads all the files from a given directory. I'm currently using the OpenFileDialog to choose a directory and just culling off the file name that it provides. It seems like there should be a way to just choose directories though, but ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284751",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: Default Handler implementation breaking on nbsp I have an implementation of default handler. When it gets to a in the character data it stops parsing. Is there any reason that it is doing this? Are there additional properties that I need to set in order for it to deal with  ?
A: This breaks because the XML en... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284761",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to save a word template for a content type without filling in required fields I have a content type that has required fields. I have associated Word document with the content type as a template. I now want to edit the Word template, but word won't allow me to save the template without filling in the required f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284765",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: DrawingVisual performance with Opacity=0 If I have a DrawingVisual in WPF with Opacity=0, is that enough for it not to be drawn? We have hundreds of DrawingVisuals on a Canvas, and are currently setting Opacity=0 on the visuals that are not to be displayed, and I wanted to make sure there is no rendering performance... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284766",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Is there a dynamic management view in SQL Server 2005 that pertains to column statistics? The dynamic management views of SQL Server 2005 can give usage information about table indexes. Is there a similar method for getting usage information about column statistics? In specific, I'm curious if some of the older co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284771",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Can we use JUNIT for Automated Integration Testing? How do you automate integration testing? I use JUnit for some of these tests. This is one of the solutions or is totally wrong? What do you suggest?
A: When using Maven to build a project, I've had a little more luck with TestNG because it has @BeforeSuite and @Af... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284774",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "41"
} |
Q: How do I parse and convert DateTime’s to the RFC 822 date-time format? How do I convert a DateTime structure to its equivalent RFC 822 date-time formatted string representation and parse this string representation back to a DateTime structure in .NET? The RFC-822 date-time format is used in a number of specification... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284775",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "41"
} |
Q: How to convert the value of %USERNAME% to lowercase within a Windows batch script? I'm automating some source control software functionality using a dot bat script but given that our svn repos are hosted in a *NIX box, I'm facing the eternal case problem between these two worlds.
Is there any cmd.exe function to con... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284776",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "27"
} |
Q: What are the implications of using /Zi vs /Z7 for Visual Studio C++ projects? Background
There are several different debug flags you can use with the Visual Studio C++ compiler. They are:
*
*(none)
*
*Create no debugging information
*Faster compilation times
*/Z7
*
*Produce full-symbolic debugging inform... | {
"language": "en",
"url": "https://stackoverflow.com/questions/284778",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "41"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.