instruction stringlengths 14 27.6k | completion stringlengths 3 38.3k | __original_row_idx int64 0 50k | conversations listlengths 2 2 |
|---|---|---|---|
It has to be simple, here's my CSS:
.progressImage
{
position:relative;
top:50%;
}
.progressPanel
{
height:100%;
width:100%;
text-align:center;
display:none;
}
<asp:Panel ID="pnlProgress" runat="server" CssClass="progressPanel">
<asp:Image ID="Image1" runat="server" CssClass="progressImage" ImageUrl="~/Images/I... | It looks like you found a solution that works! Just to recap and ensure clarity, here’s an explanation of what your final CSS does and why it works across different browsers:
### Final CSS
```css
.progressPanel {
height: 100%;
width: 100%;
position: relative; /* Establishes a positioning context for absolute po... | 35,382 | [
{
"from": "human",
"value": "It has to be simple, here's my CSS: \n.progressImage \n{\n position:relative;\n top:50%;\n}\n\n.progressPanel\n{\nheight:100%;\nwidth:100%;\ntext-align:center;\ndisplay:none;\n}\n\n<asp:Panel ID=\"pnlProgress\" runat=\"server\" CssClass=\"progressPanel\">\n<asp:Image ID=\"Imag... |
I have used AJAXToolkit AutoComplete extender in my project.It works fines.But the issue is with the form of the page.
when i type in the AutoComplete, i get list of suggestions.When i click on the page other than the Autocomplete, the form gets submitted.
any suggestions how to stop submission of entire form whenever ... | In ASP.NET Web Forms, the behavior you're experiencing, where clicking outside the `AutoComplete` extender leads to the form submission, can be resolved by adjusting the focus and handling events properly. Here are a few strategies you might consider to prevent the form from being submitted when interacting with the au... | 35,954 | [
{
"from": "human",
"value": "I have used AJAXToolkit AutoComplete extender in my project.It works fines.But the issue is with the form of the page.\nwhen i type in the AutoComplete, i get list of suggestions.When i click on the page other than the Autocomplete, the form gets submitted.\nany suggestions how ... |
I am preparing a presentation using Google Slides, though I can also work on the presentation within Open Office that will include code snippets.
Is there any easy way to perform basic syntax highlighting on the code snippets with either Google Docs or Open Office Presenter?
Edit: Since I believe that I can find a way... | For syntax highlighting in code snippets within Google Slides and OpenOffice Impress (the presentation component of OpenOffice), here are some approaches you can take:
### Google Slides
1. **Using Google Docs Add-ons**:
- You can write your code in Google Docs and use add-ons like **Code Blocks** or **Code Pretty*... | 36,124 | [
{
"from": "human",
"value": "I am preparing a presentation using Google Slides, though I can also work on the presentation within Open Office that will include code snippets. \nIs there any easy way to perform basic syntax highlighting on the code snippets with either Google Docs or Open Office Presenter?\n... |
Many (most?) sites aiming for accessibility and standards compliance use unordered lists for their navigation. Does this make the site more accessible or does it just provide useful elements for styling?
I don't mind them, and I have been using unordered lists in this way. It's just that, when I remove the styling from... | Using unordered lists for navigation menus is a common practice in web design that contributes to both accessibility and semantic structure. Here are some reasons why this approach is favored:
### 1. **Semantic Markup**
- **Structure**: HTML elements have inherent meaning. An unordered list (`<ul>`) indicates a group ... | 36,761 | [
{
"from": "human",
"value": "Many (most?) sites aiming for accessibility and standards compliance use unordered lists for their navigation. Does this make the site more accessible or does it just provide useful elements for styling?\nI don't mind them, and I have been using unordered lists in this way. It's... |
How have you decided to handle data/control validation in your silverlight applications?
| In Silverlight applications, handling data and control validation is essential for ensuring data integrity and enhancing user experience. Here are some common strategies and best practices for managing data/control validation in Silverlight applications:
### 1. **Data Annotations**
- Utilize data annotations to def... | 30,759 | [
{
"from": "human",
"value": "How have you decided to handle data/control validation in your silverlight applications? \n"
},
{
"from": "gpt",
"value": "In Silverlight applications, handling data and control validation is essential for ensuring data integrity and enhancing user experience. Here ... |
Lets say I am currently at:
http://example.com/folder/page.html
Is it possible to create a relative link on this page that points to http://example.com/folder/ without specifying folder anywhere? (And using only HTML.)
UPDATE:
As it turned out ./ works only in non-strict doctype mode, while . works in both modes, so it... | Yes, you can create a relative link to the parent directory using just HTML. If you are currently at `http://example.com/folder/page.html`, you can use the following relative link to point to `http://example.com/folder/`:
```html
<a href="./">Go to folder</a>
```
Using `./` (which represents the current directory) wi... | 37,375 | [
{
"from": "human",
"value": "Lets say I am currently at:\nhttp://example.com/folder/page.html\nIs it possible to create a relative link on this page that points to http://example.com/folder/ without specifying folder anywhere? (And using only HTML.)\nUPDATE:\nAs it turned out ./ works only in non-strict doc... |
I am using the Html.TextBox helper to create textboxes. I want to set attributes on the textbox, which I understand is done using the following overload:
Html.TextBox (string name, object value, object htmlAttributes)
However, I want to maintain the functionality where the HTML helper automatically uses the value fro... | Yes, it is possible to create a textbox using the `Html.TextBox` helper while setting HTML attributes and still allowing the helper to automatically use the value from `ViewData` or `Model`. To achieve this, you can use an overload of `Html.TextBox` that accepts the name of the textbox and an anonymous object for the `... | 38,034 | [
{
"from": "human",
"value": "I am using the Html.TextBox helper to create textboxes. I want to set attributes on the textbox, which I understand is done using the following overload: \nHtml.TextBox (string name, object value, object htmlAttributes)\nHowever, I want to maintain the functionality where the H... |
I am looking to protect the code of my Firefox extension because it has server calls in it that no would be a security risk if someone could make them outside of the extension. Any suggestions on how to encrypt it?
| Protecting the code of your Firefox extension, especially if it contains sensitive server calls or logic, can be challenging since JavaScript code in web extensions is inherently accessible to users. Here are some strategies you can employ to enhance security and minimize the risk of exposing sensitive information:
1.... | 35,689 | [
{
"from": "human",
"value": "I am looking to protect the code of my Firefox extension because it has server calls in it that no would be a security risk if someone could make them outside of the extension. Any suggestions on how to encrypt it?\n"
},
{
"from": "gpt",
"value": "Protecting the code... |
We are using OpenLDAP client library to conect to an LDAP server. The problem is that if there is no activity for some time, server (or firewall in the middle) drops TCP connection.
Our current implementation of "keep-alive" just does search for baseDN from time to time - any better ideas ?
| Using a "keep-alive" mechanism to maintain the TCP connection to your LDAP server is a common approach. However, simply performing a search operation (even if it is a lightweight query) can be seen as suboptimal or inefficient, especially if the search could potentially retrieve a large dataset or if the LDAP server is... | 36,261 | [
{
"from": "human",
"value": "We are using OpenLDAP client library to conect to an LDAP server. The problem is that if there is no activity for some time, server (or firewall in the middle) drops TCP connection.\nOur current implementation of \"keep-alive\" just does search for baseDN from time to time - any... |
I am putting together a build system and wanted to know if there is a reliable way to find out if a checked out SVN folder needs updating (i.e. is it out of sync with the repository). I want to avoid a nightly build unless something has changed. I could write a script that parses the results of the svn update command... | Yes, there is a way to check if a checked-out SVN working copy is out of sync with the repository without performing an actual update. The `svn status` command can be used to find out the status of your working copy in relation to the repository.
You can specifically use the command:
```bash
svn status -u
```
The `... | 36,931 | [
{
"from": "human",
"value": "I am putting together a build system and wanted to know if there is a reliable way to find out if a checked out SVN folder needs updating (i.e. is it out of sync with the repository). I want to avoid a nightly build unless something has changed. I could write a script that par... |
For example, I hate typing things like:
$x = mysql_escape_string(stripslashes($_GET['x']));
Is there a way to alias those two functions in init.php or something without writing a separate function that takes one argument and returns that argument with those functions applied to it?
My C/C++ is not very good, but I thi... | In PHP, you can't create an alias for a combination of functions in the same way you can with `typedef` in C/C++. However, you can create a new function that encapsulates the functionality of the two functions you want to use together.
If you want to avoid writing a custom function each time, you can define a reusabl... | 37,816 | [
{
"from": "human",
"value": "For example, I hate typing things like:\n$x = mysql_escape_string(stripslashes($_GET['x']));\n\nIs there a way to alias those two functions in init.php or something without writing a separate function that takes one argument and returns that argument with those functions applied... |
So here's what I'd like to do:
access to http://example.com/* would require the user to enter a username/password, except when they go to a certain URIs (e.g. http://example.com/contact/ , http://example.com/blog/, etc.) they shouldn't have to authenticate. http://example.com (the root) should be open, too.
I know I've... | To achieve the setup you described using an `.htaccess` file, you can use the following directives. These directives will require authentication for all pages under `http://example.com/` except for specified URIs (like `/contact/`, `/blog/`, and the root `/`). Here's how you can do this:
1. Create or edit the `.htacce... | 35,600 | [
{
"from": "human",
"value": "So here's what I'd like to do:\naccess to http://example.com/* would require the user to enter a username/password, except when they go to a certain URIs (e.g. http://example.com/contact/ , http://example.com/blog/, etc.) they shouldn't have to authenticate. http://example.com (... |
Being a application developer, do I need to know Unicode?
| Yes, as an application developer, it is important to have an understanding of Unicode. Here are several reasons why:
1. **Internationalization**: If your application will be used globally, it needs to support multiple languages and character sets. Unicode is a standard that allows for consistent encoding, representati... | 33,110 | [
{
"from": "human",
"value": "Being a application developer, do I need to know Unicode?\n"
},
{
"from": "gpt",
"value": "Yes, as an application developer, it is important to have an understanding of Unicode. Here are several reasons why:\n\n1. **Internationalization**: If your application will be... |
I'm using the OpenFileDialog class so a user can select an image file. I'd like to default the dialog to Thumbnail view mode. Unfortunately the class doesn't have any way to set a default view mode.
Other than creating my own custom dialog (which I may have to do), is there a way to achieve my goal?
| Unfortunately, the `OpenFileDialog` class in .NET does not provide a built-in way to set the default view mode to "Thumbnail". The default view mode is determined by the operating system settings, and the `OpenFileDialog` class is designed to respect those settings.
If you're looking for a solution without creating a ... | 38,308 | [
{
"from": "human",
"value": "I'm using the OpenFileDialog class so a user can select an image file. I'd like to default the dialog to Thumbnail view mode. Unfortunately the class doesn't have any way to set a default view mode.\nOther than creating my own custom dialog (which I may have to do), is there a... |
I need a CSS selector that can find the 2nd div of 2 that has the same class. I've looked at nth-child() but it's not what I want since I can't see a way to further clarify what class I want. These 2 divs will be siblings in the document if that helps.
My HTML looks something like this:
<div class="foo">...</div>
<div ... | To select the second `<div>` with the class `bar`, you can indeed use the `:nth-of-type()` pseudo-class in combination with a class selector. However, since `:nth-of-type()` counts all sibling elements of the same type (in this case `<div>`), you may want to use the `:nth-of-type()` selector specifically for the `bar` ... | 36,562 | [
{
"from": "human",
"value": "I need a CSS selector that can find the 2nd div of 2 that has the same class. I've looked at nth-child() but it's not what I want since I can't see a way to further clarify what class I want. These 2 divs will be siblings in the document if that helps.\nMy HTML looks something l... |
I have a search form in an app I'm currently developing, and I would like for it to be the equivalent of method="GET".
Thus, when clicking the search button, the user goes to search.aspx?q=the+query+he+entered
The reason I want this is simply bookmarkable URLs, plus it feels cleaner to do it this way.
I also don't want... | Certainly! A cleaner approach to achieve a `GET` request for your search functionality without the need to rely on JavaScript or server-side redirects would be to modify the search form itself to submit as a `GET` request directly. Here’s how you can do that in your ASP.NET application:
### 1. Modify the Form to Use `... | 37,709 | [
{
"from": "human",
"value": "I have a search form in an app I'm currently developing, and I would like for it to be the equivalent of method=\"GET\".\nThus, when clicking the search button, the user goes to search.aspx?q=the+query+he+entered\nThe reason I want this is simply bookmarkable URLs, plus it feels... |
I am currently modifying some jsf application. I have two beans.
connectionBean
UIBean
When I set my connection parameters in connectionBean the first time, the UIBean is able to read my connectionBean information and display the correct UI Tree.
However when I try to set the connection parameters in the same session... | In JSF, if you have two session-scoped beans and one of them (like `connectionBean`) is updated, and you want the other one (like `UIBean`) to reflect those changes immediately without invalidating the whole session, there are a couple of approaches you can take.
### Approach 1: Use an Observer Pattern
You can use th... | 35,172 | [
{
"from": "human",
"value": "I am currently modifying some jsf application. I have two beans.\n\nconnectionBean\nUIBean\n\nWhen I set my connection parameters in connectionBean the first time, the UIBean is able to read my connectionBean information and display the correct UI Tree.\nHowever when I try to se... |
I am working on creating a custom project template with Visual Studio 2008 Team System edition. I have also created a custom wizard for the custom template.
So I have to update the vstemplate file to tell the template to use my custom wizard. But the archive is corrupted!
7zip thinks folders within the archive are us... | It sounds like you're running into issues related to the way Visual Studio 2008 packages project templates into zip files, particularly when it comes to nested folder structures and how these are interpreted by different zip utilities.
### Understanding the Structure
From what you've described, there are two ways to ... | 32,873 | [
{
"from": "human",
"value": "I am working on creating a custom project template with Visual Studio 2008 Team System edition. I have also created a custom wizard for the custom template.\nSo I have to update the vstemplate file to tell the template to use my custom wizard. But the archive is corrupted!\n7z... |
I'm relatively new to the Python world, but this seems very straight forward.
Google is yelling at me that this code needs to be optimized:
class AddLinks(webapp.RequestHandler):
def post(self):
# Hash the textarea input to generate pseudo-unique value
hash = md5.new(self.request.get('links')).... | Your current code is likely consuming a lot of CPU time due to the way you're handling database writes. Specifically, you're performing a database `put()` operation for each individual link in a loop, which can be quite slow, especially if you're processing a large number of links. Here are some suggestions to optimize... | 33,982 | [
{
"from": "human",
"value": "I'm relatively new to the Python world, but this seems very straight forward.\nGoogle is yelling at me that this code needs to be optimized:\nclass AddLinks(webapp.RequestHandler):\n def post(self):\n # Hash the textarea input to generate pseudo-unique value\n ... |
I'm writing a direct3d application and after noticing strange bugs such as anti-aliasing occurring even when it was turned off and the mouse pointer not lining up to things with the same coordinates as itself I discovered that when creating a window the width and height parameters include the border. The program was r... | Yes, you can determine the size of the window borders and title bar before you create your Direct3D window. In Windows, you can use the `AdjustWindowRectEx` function, which adjusts the size of the window rectangle (client area) to account for borders, title bar, and other window styles.
Here's a step-by-step approach ... | 34,514 | [
{
"from": "human",
"value": "I'm writing a direct3d application and after noticing strange bugs such as anti-aliasing occurring even when it was turned off and the mouse pointer not lining up to things with the same coordinates as itself I discovered that when creating a window the width and height paramete... |
I have a working excel workbook that has VBA code and macros to help in data input.
I use a calendar to capture dates and read data out of cells. The application works 100% on my machine (application developed in 2007 but saved as a .XLS – 97/2000 for compatibility in the office).
When I give the file to other people, ... | The issues you are encountering can arise from several factors, including missing references, differences in Excel versions, and settings on the other machines. Here are some potential reasons and solutions for your problems:
### 1. Missing References
The fact that the References section is grayed out suggests that th... | 34,426 | [
{
"from": "human",
"value": "I have a working excel workbook that has VBA code and macros to help in data input.\nI use a calendar to capture dates and read data out of cells. The application works 100% on my machine (application developed in 2007 but saved as a .XLS – 97/2000 for compatibility in the offic... |
After much googling I have been wondering what the benefits/differences are between mysql and sqlite3. I am primarily hoping for a speed bump when moving my development database to my production database, although I imagine this will primarily happen in my code. Does any know what the major differences are in performan... | When comparing MySQL and SQLite, there are several factors to consider in terms of performance, features, scalability, and use cases. Here’s a breakdown of the major differences and their implications for performance:
### 1. Architecture
- **SQLite**:
- A serverless, self-contained, and zero-configuration database ... | 31,271 | [
{
"from": "human",
"value": "After much googling I have been wondering what the benefits/differences are between mysql and sqlite3. I am primarily hoping for a speed bump when moving my development database to my production database, although I imagine this will primarily happen in my code. Does any know wh... |
My project requires a file where I will store key/value pair data that should be able to be read and modified by the user. I want the program to just expect the keys to be there, and I want to parse them from the file as quickly as possible.
I could store them in XML, but XML is way to complex, and it would require tra... | In .NET Framework 3.5, there isn't a built-in class specifically designed for working with key/value pair files like INI files or simple text files. However, you can utilize the `ConfigurationManager` class or `NameValueCollection` class to achieve a similar functionality.
### Using `NameValueCollection`
The `NameVal... | 33,246 | [
{
"from": "human",
"value": "My project requires a file where I will store key/value pair data that should be able to be read and modified by the user. I want the program to just expect the keys to be there, and I want to parse them from the file as quickly as possible.\nI could store them in XML, but XML i... |
I'm writing a C# app using the WebBrowser control, and I want all content I display to come from embedded resources - not static local files, and not remote files.
Setting the initial text of the control to an embedded HTML file works great with this code inspired by this post:
browser.DocumentText=loadResourceText("my... | To serve all assets (like images, CSS, and JavaScript) from embedded resources in a C# application that uses the `WebBrowser` control, you can create a workaround by intercepting requests for these resources and then returning the content from the embedded resources. Since the `WebBrowser` control does not have built-i... | 30,960 | [
{
"from": "human",
"value": "I'm writing a C# app using the WebBrowser control, and I want all content I display to come from embedded resources - not static local files, and not remote files.\nSetting the initial text of the control to an embedded HTML file works great with this code inspired by this post:... |
I'm working on a Rails web application, and it's currently being used by some 20 users.
Some parts of the application are only accessible by some users, so we already have a basic authorization framework in place, which I implemented using the acts_as_authenticated plugin.
The users' privileges depend on which departme... | Your goal of improving the authorization system in your Rails application while making it more maintainable and understandable is certainly achievable with a structured approach. Given that you are looking for more fine-grained control and the ability to query user privileges efficiently, here's a structured way to imp... | 33,949 | [
{
"from": "human",
"value": "I'm working on a Rails web application, and it's currently being used by some 20 users.\nSome parts of the application are only accessible by some users, so we already have a basic authorization framework in place, which I implemented using the acts_as_authenticated plugin.\nThe... |
Is there a way in C# or .NET in general to create an attribute on a method which triggers an event when the method is invoked? Ideally, I would be able to run custom actions before and after the invocation of the method.
I mean something like this:
[TriggersMyCustomAction()]
public void DoSomeStuff()
{
}
I am totally ... | In C#, attributes themselves are metadata that are attached to code elements (like classes, methods, etc.) but they do not have behavior. Therefore, an attribute cannot directly trigger an event or execute code when the method is called. However, you can achieve the desired behavior by using a combination of attributes... | 34,094 | [
{
"from": "human",
"value": "Is there a way in C# or .NET in general to create an attribute on a method which triggers an event when the method is invoked? Ideally, I would be able to run custom actions before and after the invocation of the method.\nI mean something like this:\n[TriggersMyCustomAction()]\n... |
We have a few SGI Onyx 350 and Orgin 350 systems running IRIX 6.5.x that we would like to install Subversion on. One of them will likely be used as a simple repository server running svnserve. The others will only need client installs.
The Subversion webpage has links to unofficial binaries for many *NIX systems, inc... | As of my last knowledge update in October 2023, finding precompiled binaries for Subversion on IRIX is quite rare, and it appears that there are no official unofficial binary distributions available specifically for IRIX. Therefore, compiling Subversion from source is likely your best option.
### Compiling Subversion ... | 33,371 | [
{
"from": "human",
"value": "We have a few SGI Onyx 350 and Orgin 350 systems running IRIX 6.5.x that we would like to install Subversion on. One of them will likely be used as a simple repository server running svnserve. The others will only need client installs.\nThe Subversion webpage has links to unof... |
I'm building an ASP.NET web application, and all of my strings are stored in a resource file. I'd like to add a second language to my application, and ideally, I'd like to auto-detect the user's browser language (or windows language) and default to that, instead of making them choose something besides English. Currentl... | It sounds like you've already come up with a solid solution for detecting the user's preferred language by iterating through `HttpContext.Current.Request.UserLanguages`. This approach is a good way to handle language detection in an ASP.NET web application. Here’s a brief recap and expansion on the steps you can take t... | 34,130 | [
{
"from": "human",
"value": "I'm building an ASP.NET web application, and all of my strings are stored in a resource file. I'd like to add a second language to my application, and ideally, I'd like to auto-detect the user's browser language (or windows language) and default to that, instead of making them c... |
How can I use CRTP in C++ to avoid the overhead of virtual member functions?
| The Curiously Recurring Template Pattern (CRTP) is a C++ idiom that allows for the implementation of polymorphic behavior without the overhead associated with virtual functions. In CRTP, a class derives from a template instantiation of itself, allowing the base class to utilize the derived class's functionality at comp... | 30,378 | [
{
"from": "human",
"value": "How can I use CRTP in C++ to avoid the overhead of virtual member functions?\n"
},
{
"from": "gpt",
"value": "The Curiously Recurring Template Pattern (CRTP) is a C++ idiom that allows for the implementation of polymorphic behavior without the overhead associated wit... |
I'm currently using a UIImageView with an array of images to create a small looping animation sequence with about 20 images in there (at 320x480). Whilst this works okay for 20 - 30 images, any more and the app quits on the iphone. There is nothing else in my test app at the moment so I know it's just down to the anima... | You're facing issues with memory usage when trying to animate a large number of images with `UIImageView`. When you load many images into memory at once, it can lead to crashes due to memory constraints on the device. To achieve a smoother animation, consider the following approaches:
### 1. Using `CAKeyframeAnimation... | 33,712 | [
{
"from": "human",
"value": "I'm currently using a UIImageView with an array of images to create a small looping animation sequence with about 20 images in there (at 320x480). Whilst this works okay for 20 - 30 images, any more and the app quits on the iphone. There is nothing else in my test app at the mom... |
Is it possible to replicate selected objects (accounts) in an Active Directory Domain. We have a need to replicate selected accounts through our firewall to a DC sitting in the DMZ. We don't want to replicate all accounts to this machine, in case it is compromised.
Any suggestions, help or products suggested most appre... | Replicating selected Active Directory (AD) accounts to a Domain Controller (DC) in a DMZ presents some significant challenges, primarily due to the nature of how Active Directory replication works. AD is designed to replicate entire partitions (such as the Domain partition or Configuration partition) across domain cont... | 31,453 | [
{
"from": "human",
"value": "Is it possible to replicate selected objects (accounts) in an Active Directory Domain. We have a need to replicate selected accounts through our firewall to a DC sitting in the DMZ. We don't want to replicate all accounts to this machine, in case it is compromised.\nAny suggesti... |
I have an asp.net 2.0 page that contains 2 UpdatePanels.
The first panel contains a TreeView control, when I select a node in the three view control it triggers an update of the second UpdatePanel only. This much is behaving correctly.
There are two buttons on the page outside of an update panel (previous/next). These ... | The issue you’re experiencing is related to the way the `TreeView` control manages its state and how postbacks are handled with `UpdatePanels`. The `TreeView` is not properly keeping track of the selected node when an update occurs, especially when triggered by the button outside the `UpdatePanel`.
### Explanation of ... | 35,279 | [
{
"from": "human",
"value": "I have an asp.net 2.0 page that contains 2 UpdatePanels.\nThe first panel contains a TreeView control, when I select a node in the three view control it triggers an update of the second UpdatePanel only. This much is behaving correctly.\nThere are two buttons on the page outside... |
The C# project I'm working on uses nHibernate and the connection string is in the web.config as a property of a Hibernate element. I need to read the connection string in the installer to get a connection manually without using Hibernate. I know I can use configManager.connectionStrings, but as the connection string ... | If the connection string is defined under a custom element (like a Hibernate element) in your `web.config`, and not under the standard `connectionStrings` section, you will need to manually read it from the configuration file using the `System.Configuration` namespace.
Here's a step-by-step guide on how to do this:
1... | 31,920 | [
{
"from": "human",
"value": "The C# project I'm working on uses nHibernate and the connection string is in the web.config as a property of a Hibernate element. I need to read the connection string in the installer to get a connection manually without using Hibernate. I know I can use configManager.connect... |
I've installed an OpenType font on my development machine expecting to then be able to choose that font for a label on a form.
The font is available in MS Word so I'm reasonably confident it was installed ok, but I can't see the font in the font-picker dialog for the label in Visual Studio. I also checked the font set... | If you've installed an OpenType font on your development machine and it's not showing up in Visual Studio, here are several steps you can take to troubleshoot and potentially resolve the issue:
1. **Verify Font Installation:**
- Ensure that the font is indeed installed correctly. You can check by going to `Control ... | 28,930 | [
{
"from": "human",
"value": "I've installed an OpenType font on my development machine expecting to then be able to choose that font for a label on a form.\nThe font is available in MS Word so I'm reasonably confident it was installed ok, but I can't see the font in the font-picker dialog for the label in V... |
During the course of our application login there are several queries ran, all around validating the login. In evaluating them I noticed that one of the queries is run without the NOLOCK hint.
There does not seem to be any particular danger of dirty read because the data would hardly ever change.
Thinking about it from... | Your concern regarding the use of the `NOLOCK` hint in the context of your application login process is understandable, especially when considering the potential impacts of a Denial of Service (DoS) attack. However, it's important to weigh the benefits of using `NOLOCK` against potential downsides in the specific conte... | 35,267 | [
{
"from": "human",
"value": "During the course of our application login there are several queries ran, all around validating the login. In evaluating them I noticed that one of the queries is run without the NOLOCK hint.\nThere does not seem to be any particular danger of dirty read because the data would ... |
We are currently having two UI design for internet and intranet the underlying reason being is that they both serve different purpose so they have different UI design.
But however users want to have a more synchronized look and feel between internet and intranet.
What are the reasons you all can think of in have differ... | Having different user interfaces (UIs) for internet and intranet applications can be justified for several reasons, despite user preferences for a more synchronized look and feel. Here are some of the reasons:
1. **Different User Groups**:
- **Target Audiences**: Internet applications often target a broader, extern... | 35,768 | [
{
"from": "human",
"value": "We are currently having two UI design for internet and intranet the underlying reason being is that they both serve different purpose so they have different UI design.\nBut however users want to have a more synchronized look and feel between internet and intranet.\nWhat are the ... |
We host a C++ based WebServices application in IIS and we're finding that when we try to start our own C++ threads IIS has a fit and crashes. The threads are based on boost.thread which clearly dribbles down to the standard Windows threading API underneath.
The reason I need to start the thread is to listen for mult... | Running multithreaded applications within IIS, especially using C++ and libraries like Boost, can indeed introduce complexities and potential issues due to the nature of how IIS manages application lifecycles and threads. Here are some considerations to help you determine if starting your own threads within an IIS-host... | 35,835 | [
{
"from": "human",
"value": "We host a C++ based WebServices application in IIS and we're finding that when we try to start our own C++ threads IIS has a fit and crashes. The threads are based on boost.thread which clearly dribbles down to the standard Windows threading API underneath. \nThe reason I need... |
I'm upgrading an app with many different settings files from XP to Vista and changing location of the files to use the
Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData)
line rather than write to application path. There are values used in mannnny places from property settings. Those values are gettin... | When upgrading your app to work with Windows Vista and later, moving your configuration files to a user-specific location such as the `ApplicationData` folder is indeed a good approach. This avoids the pitfalls associated with writing to the `Program Files` directory, which is subject to user account control (UAC) and ... | 36,728 | [
{
"from": "human",
"value": "I'm upgrading an app with many different settings files from XP to Vista and changing location of the files to use the\nEnvironment.GetFolderPath(Environment.SpecialFolder.ApplicationData)\n\nline rather than write to application path. There are values used in mannnny places fro... |
I was asked to improve and maintain an internal Web application used and approved by an important community of users. This includes performance improvements and adding features.
Unfortunately, the code is bloated, sometimes very poorly written, and hard to read and change. This makes changes much more difficult to impl... | Your situation is a common one in the software development world, and many developers have faced similar challenges. Here’s a rewritten version of your question with improved grammar:
---
I have been tasked with improving and maintaining an internal web application that is widely used and approved by an important com... | 34,894 | [
{
"from": "human",
"value": "I was asked to improve and maintain an internal Web application used and approved by an important community of users. This includes performance improvements and adding features.\nUnfortunately, the code is bloated, sometimes very poorly written, and hard to read and change. This... |
I hope this is a simple enough question for any SQL people out there...
We have a table which hold system configuration data, and this is tied to a history table via triggers so we can track who changed what, and when.
I have a requirement to add another value in to this table, but it is one that will change frequent... | In SQL triggers, when you want to filter out records based on specific criteria, both `LIKE` and `LEFT()` can be used effectively. However, the reason `LEFT()` can be preferable over `LIKE` in your specific case is primarily about performance and simplicity.
### Reasons for using `LEFT()`:
1. **Performance**: Using `... | 35,081 | [
{
"from": "human",
"value": "I hope this is a simple enough question for any SQL people out there...\nWe have a table which hold system configuration data, and this is tied to a history table via triggers so we can track who changed what, and when. \nI have a requirement to add another value in to this tab... |
I'm using blogengine.net. I would like to show a default image in the H1 if a particular post is in a particular category. For instance if a post is in the Podcasts category I'd like to display one image and if a post is in the Blog category I'd like to display another.
I have the CSS figured all, all I want to do ... | In BlogEngine.NET, there is indeed no built-in `Post.IsInCategory` method, but you can achieve your requirement by accessing the `Post.Categories` property directly within your extension or in the relevant template file. Here's how you can accomplish this:
### 1. Accessing Post Categories
You can access the categorie... | 35,754 | [
{
"from": "human",
"value": "I'm using blogengine.net. I would like to show a default image in the H1 if a particular post is in a particular category. For instance if a post is in the Podcasts category I'd like to display one image and if a post is in the Blog category I'd like to display another. \nI h... |
What interop signature would you use for the following COM method? I am interested particularly in the final two parameters, and whether to try to use MarshalAs with a SizeParamIndex or not.
HRESULT GetOutputSetting(
DWORD dwOutputNum,
LPCWSTR pszName,
WMT_ATTR_DATATYPE* pType,
BYTE* pValue,
WORD* ... | To create an interop signature for the COM method `GetOutputSetting` in .NET, we need to pay special attention to the types of the parameters, especially the last two (`pValue` and `pcbLength`). Here's how you can define the method:
```csharp
[DllImport("YourCOMLibrary.dll", CallingConvention = CallingConvention.StdCa... | 31,952 | [
{
"from": "human",
"value": "What interop signature would you use for the following COM method? I am interested particularly in the final two parameters, and whether to try to use MarshalAs with a SizeParamIndex or not.\nHRESULT GetOutputSetting(\n DWORD dwOutputNum,\n LPCWSTR pszName,\n WMT_ATTR_DAT... |
At the moment I have a set of divs, generated dynamically by php and all having their ids starting with 'itembox', with a count number appended. I have a droppable garbage bin area on the page so that the user can delete an individual itembox by fdragging and dropping on to the bin.
My problem is that the droppable won... | To achieve the desired behavior with jQuery UI's draggable and droppable functionality, we can approach your problem in a couple of ways. Here are two potential solutions that should resolve the issues you're facing with dragging and dropping the `itembox` elements.
### Option 1: Using Original Elements for Droppable
... | 34,797 | [
{
"from": "human",
"value": "At the moment I have a set of divs, generated dynamically by php and all having their ids starting with 'itembox', with a count number appended. I have a droppable garbage bin area on the page so that the user can delete an individual itembox by fdragging and dropping on to the ... |
[11/18/08 10:13:08:772 GMT+05:30] 690f5641 ThreadMonitor W WSVR0606W: Thread "Servlet.Engine.Transports : 2162" (690f5641) was previously reported to be hung but has completed. It was active for approximately 1,032,152 milliseconds. There are 21 threads in total in the server that still may be hung.
[11/18/08 10:1... | It seems like you're experiencing performance issues with your WebSphere Application Server (WAS) due to threads hanging and long active times. Here are some steps you can take to diagnose and potentially resolve the issue:
### 1. **Analyze the Logs**
- **Look for Patterns**: Review the logs leading up to the slowd... | 36,150 | [
{
"from": "human",
"value": "\n[11/18/08 10:13:08:772 GMT+05:30] 690f5641 ThreadMonitor W WSVR0606W: Thread \"Servlet.Engine.Transports : 2162\" (690f5641) was previously reported to be hung but has completed. It was active for approximately 1,032,152 milliseconds. There are 21 threads in total in the ser... |
We host the .NET runtime as part of a Win32 program, and lately it has begun to consistently break at a specific address, in mscorwks.dll.
At the specified address, there is a 0xCC byte, which is a INT 3 instruction, which fires the debugger.
Has anyone else seen this?
I can't see enough information in the dll to know ... | It looks like you've encountered a classic issue related to the .NET framework, specifically around the LoaderLock problem, which can lead to the behavior you described with the `INT 3` instruction being triggered.
**Understanding LoaderLock:**
LoaderLock occurs in .NET applications when managed code and unmanaged cod... | 36,478 | [
{
"from": "human",
"value": "We host the .NET runtime as part of a Win32 program, and lately it has begun to consistently break at a specific address, in mscorwks.dll.\nAt the specified address, there is a 0xCC byte, which is a INT 3 instruction, which fires the debugger.\nHas anyone else seen this?\nI can'... |
I am a rookie was using the Visual Studio 2008 built-in Unit Testing components, what would be the best way to record or display your results in a unit test?
I want to test my service method when it returns a System.GUID and an empty System.GUID
[TestMethod]
public void GetGUID()
{
MyWcfServiceService.MyWcfServiceCl... | To effectively record and display the results of your unit tests, you should assert the expected outcome of your service methods within your test methods. Using assertions helps to validate that the results from your methods meet your expectations. In your case, you'll want to assert whether the returned `System.Guid` ... | 35,423 | [
{
"from": "human",
"value": "I am a rookie was using the Visual Studio 2008 built-in Unit Testing components, what would be the best way to record or display your results in a unit test?\nI want to test my service method when it returns a System.GUID and an empty System.GUID\n[TestMethod]\npublic void GetGU... |
Some background info;
LanguageResource is the base class
LanguageTranslatorResource and LanguageEditorResource inherit from LanguageResource
LanguageEditorResource defines an IsDirty property
LanguageResourceCollection is a collection of LanguageResource
LanguageResourceCollection internally holds LanguageResources in... | To address your questions effectively, let's break down your concerns about using LINQ with your custom `LanguageResourceCollection` class. We'll explore the implementation details and why you're encountering these issues.
### 1. Why does the way that LanguageResourceCollection implements IEnumerable preclude it from ... | 32,287 | [
{
"from": "human",
"value": "Some background info;\n\nLanguageResource is the base class\nLanguageTranslatorResource and LanguageEditorResource inherit from LanguageResource\nLanguageEditorResource defines an IsDirty property\nLanguageResourceCollection is a collection of LanguageResource\nLanguageResourceC... |
I'm trying to figure out a way to add a self-update feature to a Java/Swing application I'm working on.
Basically I've got a bunch of jar files with extra functionality to be re-deployed to the installed users when they change. Nothing complicated, just check if a new version has been released, download them over HTTP,... | Implementing a self-update feature in a Java/Swing application can be achieved by creating a custom update mechanism tailored to your application's needs. Here’s a high-level approach to create a self-update feature without relying on Web Start or other external frameworks. This solution focuses on checking for updates... | 32,709 | [
{
"from": "human",
"value": "I'm trying to figure out a way to add a self-update feature to a Java/Swing application I'm working on.\nBasically I've got a bunch of jar files with extra functionality to be re-deployed to the installed users when they change. Nothing complicated, just check if a new version h... |
I have a list of elements (the X in the following examples) displayed either in a row or in a column of an HTML table.
In HTML code point of view, I have either (horizontal display):
<table id="myTable">
<tr>
<td>A</td>
<td>B</td>
<td>C</td>
...
</tr>
</table>
or (vertical display):
<table id="myTa... | You can achieve the desired layout of your table with two columns by using jQuery to manipulate the existing HTML structure. Below is an example of how you can do this based on whether the elements are displayed in a horizontal or vertical manner.
Here's the jQuery code to restructure the table for both cases:
```jav... | 28,613 | [
{
"from": "human",
"value": "I have a list of elements (the X in the following examples) displayed either in a row or in a column of an HTML table.\nIn HTML code point of view, I have either (horizontal display):\n<table id=\"myTable\">\n <tr>\n <td>A</td>\n <td>B</td>\n <td>C</td>\n ...\n </t... |
G'day everyone
I'm a newbie to C++ and even more so to Borland Turbo C++ Explorer. I've just encountered this compile error. Any clues as to how to fix it?
[C++ Error] comsvcs.h(3209): E2015 Ambiguity between 'ITransaction' and 'Oledb::ITransaction'
[C++ Error] comsvcs.h(3275): E2015 Ambiguity between 'ITransaction' a... | G'day Bruce!
The ambiguity error you are encountering occurs because there are two different declarations for `ITransaction` that the compiler can't distinguish between. This typically happens when you're using different libraries or headers that define the same name. Here are a few approaches you can try to resolve t... | 35,136 | [
{
"from": "human",
"value": "G'day everyone\nI'm a newbie to C++ and even more so to Borland Turbo C++ Explorer. I've just encountered this compile error. Any clues as to how to fix it? \n[C++ Error] comsvcs.h(3209): E2015 Ambiguity between 'ITransaction' and 'Oledb::ITransaction'\n[C++ Error] comsvcs.h(327... |
How would the infix and stack priorities be extended to include the operators <, >, <=, >=, ==, !=, !, &&, and ||?
When parsing an infix expression, for example: P + (Q – F) / Y#, each symbol has a priority which is relevant to their order of operation. / and * have a higher priority than + and -.
Here are the prioriti... | To extend the infix and stack priorities to include the additional operators `<`, `>`, `<=`, `>=`, `==`, `!=`, `!`, `&&`, and `||`, we first need to categorize these operators based on their precedence levels, which dictate the order of operations in expressions.
Here's a general overview of how these operators typic... | 34,915 | [
{
"from": "human",
"value": "How would the infix and stack priorities be extended to include the operators <, >, <=, >=, ==, !=, !, &&, and ||?\nWhen parsing an infix expression, for example: P + (Q – F) / Y#, each symbol has a priority which is relevant to their order of operation. / and * have a higher pr... |
This is a subjective question, but I need opinions.
I have a WinForms C# application whose window hides itself after a specific keystroke (Enter or Escape), with possible modifiers (e.g. Ctrl-Enter). When hiding on KeyDown or KeyPress, the other application that becomes active after my window hides itself receives the ... | This is a nuanced situation in application development, particularly when dealing with keyboard events and ensuring a seamless user experience. Here are a few approaches you might consider, along with their pros and cons:
### 1. **Hide on KeyDown with a Delay**
You can still hide your application on `KeyDown`, but in... | 33,914 | [
{
"from": "human",
"value": "This is a subjective question, but I need opinions.\nI have a WinForms C# application whose window hides itself after a specific keystroke (Enter or Escape), with possible modifiers (e.g. Ctrl-Enter). When hiding on KeyDown or KeyPress, the other application that becomes active ... |
I have built a MS Access 2007 application that can create reports files in various formats (PDF, XLS, CSV, XML).
I would like to allow the creation of these reports to be accessible from a web page where users would just click on a link and get a download of the report produced by my Access application.
I would like to... | To expose your Microsoft Access application as a web service that generates reports for users to download, you can use a combination of an ASP script and batch file to automate the process of report generation and file serving. Below are the steps you can follow to achieve this:
### Step 1: Set Up Your Environment
1.... | 30,900 | [
{
"from": "human",
"value": "I have built a MS Access 2007 application that can create reports files in various formats (PDF, XLS, CSV, XML).\nI would like to allow the creation of these reports to be accessible from a web page where users would just click on a link and get a download of the report produced... |
I know how to create a custom user control in WPF but how can I make it so that someone can provide an ItemTemplate?
I have a user control that is a mixture of several other WPF controls, one of them being a ListBox. I'd like to let the user of the control specify the content of the list box but I'm not sure how to pas... | To enable users of your custom WPF user control to specify an `ItemTemplate` for a `ListBox` within that control, you can define a dependency property for the `ItemTemplate` and bind the `ItemTemplate` of the `ListBox` to this property. Here’s a step-by-step guide on how to achieve this.
### Step 1: Define the Depende... | 33,154 | [
{
"from": "human",
"value": "I know how to create a custom user control in WPF but how can I make it so that someone can provide an ItemTemplate?\nI have a user control that is a mixture of several other WPF controls, one of them being a ListBox. I'd like to let the user of the control specify the content o... |
In my small WPF project, I have a TabControl with three tabs. On each tab is a ListBox. This project keeps track of groceries we need to buy. (No, it's not homework, it's for my wife.) So I have a list of ShoppingListItems, each of which has a Name and a Needed property: true when we need the item, and false after ... | Certainly! It sounds like you're on the right track with using `CollectionView` or `CollectionViewSource` for filtering your `ShoppingListItems` based on the `Needed` property. Here's how you can set it up in your WPF application.
### Step 1: Define Your Models
First, ensure that you have your `ShoppingListItem` clas... | 30,994 | [
{
"from": "human",
"value": "In my small WPF project, I have a TabControl with three tabs. On each tab is a ListBox. This project keeps track of groceries we need to buy. (No, it's not homework, it's for my wife.) So I have a list of ShoppingListItems, each of which has a Name and a Needed property: tru... |
I'm looking for suggestions for a beginner level ASP/XML test. Essentially I'm trying to hire an extremely junior programmer. I'm in the process of trying to hire a junior programmer to help maintain a large code base of somewhat repetitive ASP pages. I'm slowly in the process of making more modular, maintainable co... | When hiring for a junior programmer position that involves ASP and XML, it's important to design a test that evaluates both foundational programming skills and specific knowledge related to these technologies. Here are some suggestions for assessing candidates in a way that reflects the tasks they will encounter in mai... | 27,584 | [
{
"from": "human",
"value": "I'm looking for suggestions for a beginner level ASP/XML test. Essentially I'm trying to hire an extremely junior programmer. I'm in the process of trying to hire a junior programmer to help maintain a large code base of somewhat repetitive ASP pages. I'm slowly in the proces... |
With PHP, I can make numerous PHP websites locally and then upload each of them to its own sub-directory of my PHP hosting service.
However, with ASP.NET, it seems that I can only upload my ASP.NET to the root of my hosting service. If I upload to a sub-directory, I get an error in
section registered as allowDefiniti... | The error you're encountering (`allowDefinition='MachineToApplication' beyond application level`) is common when trying to host multiple ASP.NET applications in subdirectories on shared hosting. This is primarily because the configuration system for ASP.NET is designed around the concept of an application root.
### Wh... | 36,682 | [
{
"from": "human",
"value": "With PHP, I can make numerous PHP websites locally and then upload each of them to its own sub-directory of my PHP hosting service. \nHowever, with ASP.NET, it seems that I can only upload my ASP.NET to the root of my hosting service. If I upload to a sub-directory, I get an err... |
Can someone please derive a concrete example from the following:
http://www.urdalen.com/blog/?p=210
..that shows how to deal with one-to-many and many-to-many relationships?
I've emailed the author some time ago but received no reply. I like his idea, but can't figure out how to implement it beyond simple single table... | Certainly! To help you understand how to handle one-to-many and many-to-many relationships in a SQL-centric application without using a full-blown ORM, let's break down the concepts and provide concrete examples.
### One-to-Many Relationship
**Scenario:** Suppose you have a `users` table and a `posts` table. Each use... | 31,799 | [
{
"from": "human",
"value": "Can someone please derive a concrete example from the following:\nhttp://www.urdalen.com/blog/?p=210\n..that shows how to deal with one-to-many and many-to-many relationships?\nI've emailed the author some time ago but received no reply. I like his idea, but can't figure out ho... |
What's the best way to parse fragments of HTML in C#?
For context, I've inherited an application that uses a great deal of composite controls, which is fine, but a good deal of the controls are rendered using a long sequence of literal controls, which is fairly terrifying. I'm trying to get the application into unit te... | Parsing HTML fragments in C# can be approached using several libraries that are capable of handling HTML, especially when working with incomplete or malformed HTML, which is quite common in web applications. Here are some recommended methods and tools you can consider:
### 1. **HtmlAgilityPack**
The [HtmlAgilityPack]... | 34,155 | [
{
"from": "human",
"value": "What's the best way to parse fragments of HTML in C#?\nFor context, I've inherited an application that uses a great deal of composite controls, which is fine, but a good deal of the controls are rendered using a long sequence of literal controls, which is fairly terrifying. I'm ... |
What is the best way to setup your pool with respect to:-
When do you create connections?
When do you close connections, and would you close all of them?
Do you test connections are still good. When and how?
How do you figure out a good number for the maximum number of connections?
What sort of monitoring do you have... | Setting up a connection pool is critical for optimizing database interactions in applications. Here’s a detailed overview of how to approach connection pooling, addressing your specific questions:
### 1. When do you create connections?
Connections should be created when the application starts or when the pool is first... | 33,320 | [
{
"from": "human",
"value": "What is the best way to setup your pool with respect to:-\n\nWhen do you create connections?\nWhen do you close connections, and would you close all of them?\nDo you test connections are still good. When and how?\nHow do you figure out a good number for the maximum number of co... |
To what is the class path of a Servlet container set?
As per my understanding there are three components involved. The JAR files in the lib directory of the Servlet container and then the classes in the WEB-INF/classes and JAR files in the WEB-INF/lib directory. The classes in lib directory of the Servlet container ar... | Your understanding of the classpath in a servlet container is largely correct, but let's clarify how the classpath works in this context, especially concerning dynamic classpaths and specific files like properties files.
1. **Classpath Components**:
- **Container's `lib` Directory**: All JAR files present in the se... | 36,935 | [
{
"from": "human",
"value": "To what is the class path of a Servlet container set? \nAs per my understanding there are three components involved. The JAR files in the lib directory of the Servlet container and then the classes in the WEB-INF/classes and JAR files in the WEB-INF/lib directory. The classes in... |
We have a collection of photo images sizing a few hundred gigs. A large number of the photos are visually duplicates, but with differing filesizes, resolution, compression etc.
Is it possible to use any specific image processing methods to search out and remove these duplicate images?
| Yes, it is indeed possible to identify and remove duplicate images using a variety of image processing methods. Here are some techniques and approaches you can use to achieve this:
1. **Hashing Techniques**:
- **Perceptual Hashing**: Tools like pHash (perceptual hash) generate a hash value based on the visual conte... | 35,079 | [
{
"from": "human",
"value": "We have a collection of photo images sizing a few hundred gigs. A large number of the photos are visually duplicates, but with differing filesizes, resolution, compression etc. \nIs it possible to use any specific image processing methods to search out and remove these duplicate... |
What is the troubleshooting process for the "Retrieving the COM class factory for component with CLSID {XXXX} failed due to the following error: 80080005" errors in .Net? To clarify: I am getting this at runtime, on my XP machine, with client being .net code running under admin account. {XXXX} refers to one of our in-h... | The error you are encountering, `0x80080005`, which is commonly associated with "permission denied," typically relates to issues with COM object registration, permissions, or DCOM configuration on the Windows operating system. Here is a structured troubleshooting process that you can follow to resolve this issue.
### ... | 34,419 | [
{
"from": "human",
"value": "What is the troubleshooting process for the \"Retrieving the COM class factory for component with CLSID {XXXX} failed due to the following error: 80080005\" errors in .Net? To clarify: I am getting this at runtime, on my XP machine, with client being .net code running under admi... |
I have just moved from phase 1 to phase 2 of a project. In this transition we got rid of all of the XML configuration for spring and struts2, switching to a fully annotated regime.
All of the participants are amazed at the actual effect this has on development speed. There are a number of reasons for this:
Structured ... | It's great to hear about the positive impact of transitioning from XML configurations to a fully annotated approach in your project. Many developers have experienced similar boosts in productivity when moving to a more code-centric configuration style in frameworks like Spring and Struts2. Here are some of the common r... | 34,904 | [
{
"from": "human",
"value": "I have just moved from phase 1 to phase 2 of a project. In this transition we got rid of all of the XML configuration for spring and struts2, switching to a fully annotated regime.\nAll of the participants are amazed at the actual effect this has on development speed. There are ... |
I am using the MySQL C API to query the database and I have the results stored in MYSQL_ROW types. I am able to print the results to the console with
printf("%s", row[0]);
however, according to the MySQL C API documentation, I cannot use them as null-terminated strings.
At the bottom of the function overview, they sa... | Certainly! The `MYSQL_ROW` type is used to hold a single row of results returned by a query in MySQL C API, but the strings in this row are not guaranteed to be null-terminated. Instead, you should extract the data using the `mysql_fetch_row()` and store the length of each column, so you can safely work with them.
Her... | 31,516 | [
{
"from": "human",
"value": "I am using the MySQL C API to query the database and I have the results stored in MYSQL_ROW types. I am able to print the results to the console with\nprintf(\"%s\", row[0]);\n\nhowever, according to the MySQL C API documentation, I cannot use them as null-terminated strings.\n... |
I have been looking in to doing some test driven development for one of the applications that I'm currently writing(OLE wrapper for an OLE object). The only problem is that I am using the express versions of Visual Studio(for now), at the moment I am using VB express but sometimes I use C# express.
Is it possible to... | Yes, it is indeed possible to practice Test Driven Development (TDD) using the Express versions of Visual Studio, although you may miss some integrated features found in the full version.
### Here's how you can go about TDD with VB Express or C# Express:
1. **Choose a Testing Framework**: Since you're considering NUn... | 30,513 | [
{
"from": "human",
"value": "I have been looking in to doing some test driven development for one of the applications that I'm currently writing(OLE wrapper for an OLE object). The only problem is that I am using the express versions of Visual Studio(for now), at the moment I am using VB express but someti... |
What is a preferred way to store recurring time windows?
For example. If I have a calendar system where I need to be able to accommodate daily, weekly or monthly recurring events, what sort of time management system is best?
How is this best represented in a database?
More Details
The Specific goal of this is to pr... | Storing recurring time windows in a calendar system involves carefully designing a data model that can efficiently handle different recurrence patterns (daily, weekly, monthly, etc.) and allow for easy querying to check if a given time falls within those time windows. Below are some recommendations on how to achieve th... | 29,574 | [
{
"from": "human",
"value": "What is a preferred way to store recurring time windows? \nFor example. If I have a calendar system where I need to be able to accommodate daily, weekly or monthly recurring events, what sort of time management system is best? \nHow is this best represented in a database? \nMore... |
We're trying to use QTP (QuickTest Professional) to auto-test a legacy C++ application.
However, the main window for the app is composed of several IDENTICAL panels. Each panel has a unique title.
If I view the window in Spy++ (comes with DevStudio), I see:
+ Window <hwnd> "Window Title" taskwindowclass
+ Window <hw... | When dealing with legacy applications in QTP (now known as UFT - Unified Functional Testing), particularly those with identical child panels like yours, there are a few strategies you can employ to better identify and work with these controls.
### 1. **Use Descriptive Programming:**
Since the Object Spy isn't capturin... | 29,706 | [
{
"from": "human",
"value": "We're trying to use QTP (QuickTest Professional) to auto-test a legacy C++ application.\nHowever, the main window for the app is composed of several IDENTICAL panels. Each panel has a unique title.\nIf I view the window in Spy++ (comes with DevStudio), I see:\n+ Window <hwnd> \... |
When running the below code a type is never returned, despite there being a class with the correct attribute assigned. In fact the attr array always has a length of 0.
Assembly a = Assembly.LoadFile(file);
foreach (Type t in a.GetTypes())
{
object[] attr = t.GetCustomAttributes(typeof(SchemeNameAttribute), false);
... | It looks like you are encountering issues with retrieving custom attributes in your code. Let's break down the potential reasons why `GetCustomAttributes(typeof(SchemeNameAttribute), false)` returns an empty array, and why `attribute as SchemeNameAttribute` is returning null even when using `GetCustomAttributes(false)`... | 35,913 | [
{
"from": "human",
"value": "When running the below code a type is never returned, despite there being a class with the correct attribute assigned. In fact the attr array always has a length of 0.\nAssembly a = Assembly.LoadFile(file);\nforeach (Type t in a.GetTypes())\n{\n object[] attr = t.GetCustomAtt... |
How do you return values or structures from a Popup window in Powerbuilder 9.0? The CloseWithReturn is only valid for Response windows and thus is not available. When I set a value to the Message.PowerObjectParm, the value becomes null when the Popup window closes. I need to use a Popup window so the user can click bac... | In PowerBuilder 9.0, handling the return of values or structures from a Popup window (Window B) to the caller window (Window A) requires a different approach since Popup windows do not support the `CloseWithReturn` feature available in Response windows. Here are a few methods to achieve this:
### Method 1: Using Publi... | 32,018 | [
{
"from": "human",
"value": "How do you return values or structures from a Popup window in Powerbuilder 9.0? The CloseWithReturn is only valid for Response windows and thus is not available. When I set a value to the Message.PowerObjectParm, the value becomes null when the Popup window closes. I need to use... |
Our company makes the web based application which is priced per workstation.
That means that user/pass credentials should only be used from one particular machine.
Currently what is happening that several users are sharing credentials and we do not have any way to prevent this if they are not doing it concurrently.
T... | To address the issue of shared user credentials for your web-based application, especially considering the constraints of using Internet Explorer and the need to restrict access based on a particular machine, you may consider the following approaches:
1. **Browser Fingerprinting**: While you can't directly access the ... | 34,004 | [
{
"from": "human",
"value": "Our company makes the web based application which is priced per workstation.\nThat means that user/pass credentials should only be used from one particular machine. \nCurrently what is happening that several users are sharing credentials and we do not have any way to prevent thi... |
I have a very simple ASP.Net page that acts as a front end for a stored procedure. It just runs the procedure and shows the output using a gridview control: less than 40 lines of total code, including aspx markup. The stored procedure itself is very... volatile. It's used for a number of purposes and the output form... | Your solution for formatting DateTime columns in a GridView is a good approach given the constraints. You are iterating through each cell in each row and checking if the text can be parsed as a DateTime while ensuring that the time component is zeroed out. If both conditions are met, you format the date as desired.
Ho... | 29,781 | [
{
"from": "human",
"value": "I have a very simple ASP.Net page that acts as a front end for a stored procedure. It just runs the procedure and shows the output using a gridview control: less than 40 lines of total code, including aspx markup. The stored procedure itself is very... volatile. It's used for... |
Is there any security issue if let say in one application we do a hidden post to another application to make use of that application functionality?
| Yes, there are several security issues and concerns associated with making hidden POST requests from one application to another to leverage the functionality of that second application. Here are some potential issues to consider:
1. **Cross-Site Request Forgery (CSRF)**: If the second application does not implement pr... | 35,783 | [
{
"from": "human",
"value": "Is there any security issue if let say in one application we do a hidden post to another application to make use of that application functionality?\n"
},
{
"from": "gpt",
"value": "Yes, there are several security issues and concerns associated with making hidden POST... |
Vista SP1
Visual Studio 2008 SP1
.NET 3.5 SP1
C#
I have a winforms app I'm playing with that uses a SerialPort object as a private variable. When the application is compiled and executed, it works great. It also works running in debug mode wihtout any breakpoints. 90% of the time when I stop at a breakpoint and try to ... | The issue you're encountering with the `System.ObjectDisposedException` related to the `SerialPort` object while debugging in Visual Studio can indeed be frustrating. This behavior often arises due to how the `SerialPort` class operates asynchronously and how the debugger interacts with threads during debugging session... | 34,879 | [
{
"from": "human",
"value": "Vista SP1\nVisual Studio 2008 SP1\n.NET 3.5 SP1\nC#\nI have a winforms app I'm playing with that uses a SerialPort object as a private variable. When the application is compiled and executed, it works great. It also works running in debug mode wihtout any breakpoints. 90% of the... |
What's the best strategy to use when writing JMeters tests against a web application where the values of certain query-string and post variables are going to change for each run.
Quick, common, example
You go to a Web Page
Enter some information into a form
Click Save
Behind the scenes, a new record is entered in the ... | Your approach to handling dynamic values in JMeter tests is indeed a common strategy, but there are some additional practices and tools within JMeter that can streamline the process and make your tests less error-prone and more maintainable. Here’s a breakdown of a more structured approach you can consider:
### 1. Use... | 34,515 | [
{
"from": "human",
"value": "What's the best strategy to use when writing JMeters tests against a web application where the values of certain query-string and post variables are going to change for each run.\nQuick, common, example\n\nYou go to a Web Page\nEnter some information into a form\nClick Save\nBeh... |
I've been trying to optimize the Windows program I am developing, trying to find the best data structures that will minimize memory use. It loads large blocks of data, so with huge files, it can use a large amount of RAM.
For memory measurement, I have been using GlobalMemoryStatusEx. See: http://msdn.microsoft.com/en-... | Using `GlobalMemoryStatusEx` is a good way to get a general overview of system memory usage, but it doesn't provide detailed information about the memory usage of your specific application. For more granular control and to measure the memory usage of your program more accurately, `GetProcessMemoryInfo` is indeed the pr... | 35,946 | [
{
"from": "human",
"value": "I've been trying to optimize the Windows program I am developing, trying to find the best data structures that will minimize memory use. It loads large blocks of data, so with huge files, it can use a large amount of RAM.\nFor memory measurement, I have been using GlobalMemorySt... |
i have two servers a main site and a static server.
i want to get a file's content from ajax in runtime, which is stored in static server.
obviously cross domain problem will occur.
so what i am trying to do is storing that ajax .js in the static server, so that calling the local file wont be a problem.
but after i in... | When you want to make AJAX requests to a static server from a main site on a different domain, you will encounter CORS (Cross-Origin Resource Sharing) issues. Simply moving the JavaScript file to the static server won't resolve this, as CORS is a security feature implemented by web browsers.
Here are a few methods to ... | 35,501 | [
{
"from": "human",
"value": "i have two servers a main site and a static server. \ni want to get a file's content from ajax in runtime, which is stored in static server.\nobviously cross domain problem will occur.\nso what i am trying to do is storing that ajax .js in the static server, so that calling the ... |
On a regular winforms solutions, how do you determine to break classes into different directories / namespaces or seperate projects. Besides binary dependencies should view, controllers, models all be in different projects ?
| When structuring a WinForms solution (or any software project, for that matter), organizing classes into different directories/namespaces or separate projects is a key design decision that can impact maintainability, readability, and scalability. Here are some guidelines and best practices to consider when making these... | 32,824 | [
{
"from": "human",
"value": "On a regular winforms solutions, how do you determine to break classes into different directories / namespaces or seperate projects. Besides binary dependencies should view, controllers, models all be in different projects ?\n"
},
{
"from": "gpt",
"value": "When stru... |
We have many WIDE html grids which scroll horizontally within a DIV in our web application.
I would like to find the best strategy for printing these grids on a portrait A4 page.
What I would like to know is what is the best way to present/display grids/data like this.
This question is not HTML specific, I am looking... | Printing wide HTML grids on a portrait A4 page presents unique challenges, especially considering the limited width of the page compared to the data's breadth. Here are some design strategies and best practices to effectively present or display your grids/data for printing:
### 1. **Data Summary and Prioritization**:
... | 30,558 | [
{
"from": "human",
"value": "We have many WIDE html grids which scroll horizontally within a DIV in our web application.\nI would like to find the best strategy for printing these grids on a portrait A4 page.\nWhat I would like to know is what is the best way to present/display grids/data like this. \nThis... |
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?
| Automating integration testing is a crucial step in ensuring that different components of your application work together correctly. Using JUnit for integration testing is indeed a common and valid approach, especially in Java applications. Here's a general guide on how to set up and automate integration testing, along ... | 33,167 | [
{
"from": "human",
"value": "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?\n"
},
{
"from": "gpt",
"value": "Automating integration testing is a crucial step in ensuring that different component... |
I'm used to work with Java where large amounts of examples are available. For various reasons I had to switch to C# and trying to do the following in SharpDevelop:
// Form has a menu containing a combobox added via SharpDevelop's GUI
// --- Variables
languages = new string[2];
languages[0] = "English";
languages[1] = ... | It looks like you've already identified the solution to the problem you were facing, which is great! Just to recap and provide additional context for others who might encounter a similar issue, let's break down what you were trying to accomplish and how you resolved it.
### Objective:
You wanted to populate a ComboBox... | 38,183 | [
{
"from": "human",
"value": "I'm used to work with Java where large amounts of examples are available. For various reasons I had to switch to C# and trying to do the following in SharpDevelop:\n// Form has a menu containing a combobox added via SharpDevelop's GUI\n\n// --- Variables\nlanguages = new string[... |
I'm not a great fan of duplicating effort. I do find, however, that there are benefits to tracking agile iteration progress on both a physical card wall and an online "calculator" (Excel, some scrum tools) or an online card wall (e.g. Mingle).
I find that a physical card wall in the team space provides a visceral kind ... | You're not alone in valuing both physical and digital tracking methods in Agile practices. Many Agile practitioners appreciate the unique benefits each medium brings to the team dynamics and workflow management. Here are some points you can use to articulate the advantages of maintaining a physical card wall alongside ... | 32,047 | [
{
"from": "human",
"value": "I'm not a great fan of duplicating effort. I do find, however, that there are benefits to tracking agile iteration progress on both a physical card wall and an online \"calculator\" (Excel, some scrum tools) or an online card wall (e.g. Mingle).\nI find that a physical card wall... |
At the risk of being downmodded, I want to ask what the best mechanism (best is obviously subjective for the practice violation inherent here) for viewing data from a table, using C#, with a lot of columns. By a lot, I mean something like 1000.
Now before you get all click happy, or throw out responses like "why the h... | Given your constraints of working with a flat table of 1000 columns in SQL Compact and the need to display this data for verification purposes, here are a few approaches you might consider. Each has its advantages and limitations, but they all aim to handle the task without being overly complex or demanding on resource... | 29,474 | [
{
"from": "human",
"value": "At the risk of being downmodded, I want to ask what the best mechanism (best is obviously subjective for the practice violation inherent here) for viewing data from a table, using C#, with a lot of columns. By a lot, I mean something like 1000.\nNow before you get all click hap... |
What CAPTCHA system is compatible with ASP.NET MVC? Are there any good examples out there?
| There are several CAPTCHA systems that are compatible with ASP.NET MVC. Below are some popular options along with examples of how to integrate them into your ASP.NET MVC application.
### 1. Google reCAPTCHA
Google reCAPTCHA is one of the most widely used CAPTCHA services. It provides an easy way to integrate a CAPTCHA... | 31,638 | [
{
"from": "human",
"value": "What CAPTCHA system is compatible with ASP.NET MVC? Are there any good examples out there?\n"
},
{
"from": "gpt",
"value": "There are several CAPTCHA systems that are compatible with ASP.NET MVC. Below are some popular options along with examples of how to integrate ... |
I got a bunch of servlet context listeners in my Java webapp, each of them gathering some information about the environment.
Some of them depend on information which is gathered by another listener. But I can't determine the order in which the listeners are registered and called, so I have to duplicate code.
I understa... | In Java web applications, servlet context listeners are a part of the Java Servlet API, and their order of execution is indeed determined by the order in which they are declared in the `web.xml` file (or through annotations if you’re using annotations). However, as you've pointed out, relying solely on this order can l... | 17,879 | [
{
"from": "human",
"value": "I got a bunch of servlet context listeners in my Java webapp, each of them gathering some information about the environment.\nSome of them depend on information which is gathered by another listener. But I can't determine the order in which the listeners are registered and calle... |
For instance, winsock libs works great across all versions of the visual studio. But I am having real trouble to provide a consistent binary across all the versions. The dll compiled with VS 2005 won't work when linked to an application written in 2008. I upgraded both 2k5 and 2k8 to SP1, but the results haven't change... | Creating a consistent binary across different versions of Visual Studio (VS) can be quite challenging due to differences in runtime libraries, memory management, and calling conventions. Here are some strategies you can consider to improve compatibility and avoid access violations when providing DLLs:
### 1. **Use the... | 28,720 | [
{
"from": "human",
"value": "For instance, winsock libs works great across all versions of the visual studio. But I am having real trouble to provide a consistent binary across all the versions. The dll compiled with VS 2005 won't work when linked to an application written in 2008. I upgraded both 2k5 and 2... |
I would like to know this to understand why some games like Mario is still playing today and because no other. This is to implement in future game projects.
What are the factors most important to developing a game?
Gameplay or Graphics? Both?
EDIT:
It's Possible combine these two?
| When considering the long-lasting appeal of games like Mario, it's essential to understand the key factors that contribute to a game's success and longevity. Both gameplay and graphics play significant roles, and their importance can vary based on the type of game and its target audience. Here are some crucial factors ... | 26,684 | [
{
"from": "human",
"value": "I would like to know this to understand why some games like Mario is still playing today and because no other. This is to implement in future game projects.\nWhat are the factors most important to developing a game?\nGameplay or Graphics? Both?\nEDIT:\nIt's Possible combine thes... |
how do i check if an item is selected or not in my listbox?
so i have a button remove, but i only want that button to execute if an item is selected in the list box. im using asp.net code behind C#. I'd prefer if this validation occurred on the server side.
cheers..
| To check if an item is selected in a ListBox in an ASP.NET Web Forms application using C#, you can do this in the code-behind of your page. Typically, you would want to validate this when the button (e.g., "Remove") is clicked.
Here’s a step-by-step guide on how to do this:
1. **Create a ListBox and a Button in your ... | 32,626 | [
{
"from": "human",
"value": "how do i check if an item is selected or not in my listbox?\nso i have a button remove, but i only want that button to execute if an item is selected in the list box. im using asp.net code behind C#. I'd prefer if this validation occurred on the server side.\ncheers..\n"
},
... |
When writing my own auto updater, is there a general framework that I should be following?
A while ago I was reading up on how one should create a 'boot strapper' that will load first before the main application (since a running appilation can't be updated due to file locks etc.)
So any tips/best practices for this?
| Creating an auto-updater for your application involves several considerations to ensure a smooth and reliable update process. Below are some best practices and a general framework you can follow to build an effective auto-updater:
### General Framework for an Auto-Updater
1. **Bootstrapper Creation**:
- **Separate... | 33,938 | [
{
"from": "human",
"value": "When writing my own auto updater, is there a general framework that I should be following?\nA while ago I was reading up on how one should create a 'boot strapper' that will load first before the main application (since a running appilation can't be updated due to file locks etc... |
Is it possible using StAX (specifically woodstox) to format the output xml with newlines and tabs, i.e. in the form:
<element1>
<element2>
someData
</element2>
</element1>
instead of:
<element1><element2>someData</element2></element1>
If this is not possible in woodstox, is there any other lightweight libs tha... | StAX (Streaming API for XML) allows you to read and write XML in a streaming manner, which is generally not designed for pretty-printing or formatting the output with newlines and indentation. Woodstox is an implementation of StAX, and while it is powerful and feature-rich, it does not provide built-in support for pret... | 34,660 | [
{
"from": "human",
"value": "Is it possible using StAX (specifically woodstox) to format the output xml with newlines and tabs, i.e. in the form:\n\n<element1>\n <element2>\n someData\n </element2>\n</element1>\n\ninstead of:\n<element1><element2>someData</element2></element1>\nIf this is not possible i... |
Web Service code (ASP.NET 2.0):
[WebMethod]
[return: XmlElement("TestMe")]
public string TestMe(int value)
{
return value.ToString();
}
The will result in this response:
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLS... | To ensure that your SOAP response can be validated properly against a schema, you need to make sure that your service's WSDL properly defines the XML schema for the response. In your case, it looks like your XML response is missing the actual schema definitions for the `TestMeResponse` and `TestMe` elements.
Here's a ... | 31,684 | [
{
"from": "human",
"value": "Web Service code (ASP.NET 2.0):\n[WebMethod]\n[return: XmlElement(\"TestMe\")]\npublic string TestMe(int value)\n{\n return value.ToString();\n}\n\nThe will result in this response:\n<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<soap:Envelope xmlns:soap=\"http://schemas.xmlsoap.... |
I am trying to fetch an RTSP stream over HTTP using a proxy. The behavior of the Real client seems to be a bit hectic: it tries all the possible ports, methods and protocols at once. The only thing that should work is HTTP GET over port 80. Such a request is indeed issued, and is received on the server. Here's how the ... | It looks like you're dealing with an intricate issue involving RTSP over HTTP tunneling, particularly with how different proxy servers (or ports) interact with clients like RealPlayer. Based on your detailed description, here’s a summary of potential solutions and explanations for your situation:
### Key Points:
1. *... | 32,832 | [
{
"from": "human",
"value": "I am trying to fetch an RTSP stream over HTTP using a proxy. The behavior of the Real client seems to be a bit hectic: it tries all the possible ports, methods and protocols at once. The only thing that should work is HTTP GET over port 80. Such a request is indeed issued, and i... |
Say I have a sql query
SELECT fname, lname, dob, ssn, address1, address2, zip, phone,state from users
Now say the records are now either in dictionary base or a strongly typed collection.
I have a grid view control and i want to bind it to my collection but I only want to display fname, lname, dob and ssn and not the... | Yes, you can easily filter and bind a subset of properties from your collection to a grid view in a web application using LINQ. Assuming that your collection is a list of dictionaries or a strongly typed collection, you can use LINQ to create a new collection that only includes the desired properties (i.e., `fname`, `l... | 34,176 | [
{
"from": "human",
"value": "Say I have a sql query \nSELECT fname, lname, dob, ssn, address1, address2, zip, phone,state from users\n\nNow say the records are now either in dictionary base or a strongly typed collection.\nI have a grid view control and i want to bind it to my collection but I only want to ... |
EDIT: I missed a crucial point: .NET 2.0
Consider the case where I have a list of unsorted items, for the sake of simplicity of a type like this:
class TestClass
{
DateTime SomeTime;
decimal SomePrice;
// constructor
}
I need to create a report-like output, where the total prices for each day are accumula... | To generate a report that summarizes prices by date from a list of unsorted items in a way that handles the accumulation and formatting you described, you can follow this structured approach using .NET 2.0 features. Since you're using a list of items and want to create a report from them, I recommend using a combinatio... | 32,473 | [
{
"from": "human",
"value": "EDIT: I missed a crucial point: .NET 2.0\nConsider the case where I have a list of unsorted items, for the sake of simplicity of a type like this:\nclass TestClass\n{\n DateTime SomeTime;\n decimal SomePrice;\n\n // constructor\n}\n\nI need to create a report-like outpu... |
When working on some code, I add extra debug logging of some kind to make it easier for me to trace the state and values that I care about for this particular fix.
But if I would check this in into the source code repository, my colleagues would get angry on me for polluting the Log output and polluting the code.
So ho... | If you want to keep your debug logging statements locally without polluting the checked-in code, here are some strategies you can consider:
### 1. **Use a Local Branch**
Create a separate branch in your version control system (e.g., Git) specifically for your debugging work. You can add all the logging statements you... | 36,373 | [
{
"from": "human",
"value": "When working on some code, I add extra debug logging of some kind to make it easier for me to trace the state and values that I care about for this particular fix.\nBut if I would check this in into the source code repository, my colleagues would get angry on me for polluting th... |
I'm working on updating a classic ASP web page used by a number of sub-sites maintained at the company I work for.
The purpose of the page is to notify the user that they are leaving "our" site and going to another site. It's basically a disclaimer, but due to resource limitations and time limitations I can't add the d... | It's great that you're taking steps to enhance the security of your classic ASP application. The approach you've started with to sanitize the input is a good first step, but it can still be vulnerable to more sophisticated types of Cross-Site Scripting (XSS) attacks. In addition, it's generally not enough to rely solel... | 32,896 | [
{
"from": "human",
"value": "I'm working on updating a classic ASP web page used by a number of sub-sites maintained at the company I work for.\nThe purpose of the page is to notify the user that they are leaving \"our\" site and going to another site. It's basically a disclaimer, but due to resource limita... |
Stacker Nobody asked about the most shocking thing new programmers find as they enter the field.
Very high on the list, is the impact of inheriting a codebase with which one must rapidly become acquainted. It can be quite a shock to suddenly find yourself charged with maintaining N lines of code that has been clobbered... | Inheriting a codebase can indeed be one of the more jarring experiences for both new and experienced programmers. The challenges of coming into an established project often require effective strategies to minimize confusion and accelerate understanding. Here are some techniques and tips that can help ease the transitio... | 31,488 | [
{
"from": "human",
"value": "Stacker Nobody asked about the most shocking thing new programmers find as they enter the field.\nVery high on the list, is the impact of inheriting a codebase with which one must rapidly become acquainted. It can be quite a shock to suddenly find yourself charged with maintaini... |
I've run into a problem trying to return an object that holds a collection of childobjects that again can hold a collection of grandchild objects. I get an error, 'connection forcibly closed by host'.
Is there any way to make this work? I currently have a structure resembling this:
pseudo code:
Person:
IEnumerable<Orde... | The error you're encountering, "connection forcibly closed by host," typically indicates that the server encountered an error while processing your request. When dealing with WCF services and complex nested collections, there are several potential issues to investigate. Here are some steps you can take to troubleshoot ... | 29,050 | [
{
"from": "human",
"value": "I've run into a problem trying to return an object that holds a collection of childobjects that again can hold a collection of grandchild objects. I get an error, 'connection forcibly closed by host'.\nIs there any way to make this work? I currently have a structure resembling t... |
I have seen this in a lot of XML comments for classes in the .NET Framework BCL but have never been able to find documentation that explains what it does.
As an example, looking at System.Object reveals the following comments:
namespace System
{
/// <summary>Supports all classes in the .NET Framework class hiera... | The `<filterpriority>` XML comment tag you encountered in the documentation for classes in the .NET Framework is used to specify the priority of a member (like a method, property, or class) when generating documentation. This is particularly relevant when generating documentation using tools like Sandcastle or similar ... | 37,936 | [
{
"from": "human",
"value": "I have seen this in a lot of XML comments for classes in the .NET Framework BCL but have never been able to find documentation that explains what it does.\nAs an example, looking at System.Object reveals the following comments:\nnamespace System \n{\n /// <summary>Supports ... |
Imagine the following.
Html is parsed into a dom tree
Dom Nodes become available programmatically
Dom Nodes may-or-may-not be augmented programmatically
Augmented nodes are reserialised to html.
I have primarily a question on how one would want the "script" tag to behave.
my $tree = someparser( $source );
....
p... | The problem you're grappling with regarding the handling of `<script>` tag content in your DOM manipulation and serialization approach is indeed nuanced and deserves careful consideration, especially if you want your tool to be robust and user-friendly.
### Key Considerations
1. **Input vs. Output Processing**:
- ... | 35,182 | [
{
"from": "human",
"value": "Imagine the following. \n\nHtml is parsed into a dom tree\nDom Nodes become available programmatically \nDom Nodes may-or-may-not be augmented programmatically\nAugmented nodes are reserialised to html. \n\nI have primarily a question on how one would want the \"script\" tag to ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.