instruction stringlengths 14 27.6k | completion stringlengths 3 38.3k | __original_row_idx int64 0 50k | conversations listlengths 2 2 |
|---|---|---|---|
What is the best, preferably free/open source tool for auto-generating Java unit-tests? I know, the unit-tests cannot really serve the same purpose as normal TDD Unit-Tests which document and drive the design of the system. However auto-generated unit-tests can be useful if you have a huge legacy codebase and want to k... | There are several tools available for auto-generating unit tests in Java, and while most tools have some level of integration with commercial products, several open-source options can still be quite effective for your needs. Here are some of the best free/open-source tools for generating Java unit tests:
1. **EvoSuite... | 5,951 | [
{
"from": "human",
"value": "What is the best, preferably free/open source tool for auto-generating Java unit-tests? I know, the unit-tests cannot really serve the same purpose as normal TDD Unit-Tests which document and drive the design of the system. However auto-generated unit-tests can be useful if you ... |
We use Hyper-V extensively in our development environment. Each developer has a virtual server that they own and then we have a bunch of build, test, R&D, and staging virtual servers.
Is there any documented or best practice way to duplicate a virtual machine in Hyper-V?
What I would really like to be able to do is to... | Duplicating a virtual machine (VM) in Hyper-V, especially when you're interested in creating multiple VMs based on a common snapshot, can be achieved through several methods. Below, I'll outline a few approaches that can help you achieve your goal:
### Method 1: Export and Import
1. **Export the VM**:
- In Hyper-V... | 7,875 | [
{
"from": "human",
"value": "We use Hyper-V extensively in our development environment. Each developer has a virtual server that they own and then we have a bunch of build, test, R&D, and staging virtual servers.\nIs there any documented or best practice way to duplicate a virtual machine in Hyper-V?\nWhat... |
So I know that unit testing is a must. I get the idea that TDD is the way to go when adding new modules. Even if, in practice, I don't actually do it. A bit like commenting code, really.
The real thing is, I'm struggling to get my head around how to unit-test the UI and more generally objects that generate events: use... | Unit testing UI components and event-driven code can indeed be challenging, but with the right approach and techniques, you can effectively test your code. Below are some tips and guidance on how to get started with unit testing UI components and event-driven scenarios in C#.
### 1. **Separate Logic from UI**
One of ... | 3,851 | [
{
"from": "human",
"value": "So I know that unit testing is a must. I get the idea that TDD is the way to go when adding new modules. Even if, in practice, I don't actually do it. A bit like commenting code, really. \nThe real thing is, I'm struggling to get my head around how to unit-test the UI and more g... |
I want to combine two structures with differing fields names.
For example, starting with:
A.field1 = 1;
A.field2 = 'a';
B.field3 = 2;
B.field4 = 'b';
I would like to have:
C.field1 = 1;
C.field2 = 'a';
C.field3 = 2;
C.field4 = 'b';
Is there a more efficient way than using "fieldnames" and a for loop?
EDIT: Let's ass... | If you want to combine two structures `A` and `B` into a new structure `C`, while giving preference to the fields from `A` in case of conflicts, you can achieve this efficiently in MATLAB using the `struct` function and the `fieldnames` function without the need for explicit loops.
Here's one way to do it:
```matlab... | 6,237 | [
{
"from": "human",
"value": "I want to combine two structures with differing fields names.\nFor example, starting with:\nA.field1 = 1;\nA.field2 = 'a';\n\nB.field3 = 2;\nB.field4 = 'b';\n\nI would like to have:\nC.field1 = 1;\nC.field2 = 'a';\nC.field3 = 2;\nC.field4 = 'b';\n\nIs there a more efficient way ... |
I'm using SQL Server 2005, and I would like to know how to access different result sets from within transact-sql. The following stored procedure returns two result sets, how do I access them from, for example, another stored procedure?
CREATE PROCEDURE getOrder (@orderId as numeric) AS
BEGIN
select order_address... | To access multiple result sets from a stored procedure in SQL Server 2005, you can call the stored procedure and read the results using either ADO.NET in a VB.NET application or using SQL Server Management Studio (SSMS) for testing. Here's how you can do that in both cases:
### Using ADO.NET in VB.NET
You can use `Sq... | 6,720 | [
{
"from": "human",
"value": "I'm using SQL Server 2005, and I would like to know how to access different result sets from within transact-sql. The following stored procedure returns two result sets, how do I access them from, for example, another stored procedure?\nCREATE PROCEDURE getOrder (@orderId as num... |
We’re getting the following error message when we click on “Search Settings” for a Shared Services Provider: “Authentication failed because the remote party has closed the transport stream.”
This is a new server environment with two web front ends, one database server, and one index server, all running Windows 2003 x64... | The error message you are encountering, "Authentication failed because the remote party has closed the transport stream," suggests that there is an issue with the SSL/TLS handshake during the communication between your SharePoint server and the Search Admin web service. Here are some potential causes and solutions:
##... | 6,839 | [
{
"from": "human",
"value": "We’re getting the following error message when we click on “Search Settings” for a Shared Services Provider: “Authentication failed because the remote party has closed the transport stream.”\nThis is a new server environment with two web front ends, one database server, and one ... |
How does the comma operator work in C++?
For instance, if I do:
a = b, c;
Does a end up equaling b or c?
(Yes, I know this is easy to test - just documenting on here for someone to find the answer quickly.)
Update: This question has exposed a nuance when using the comma operator. Just to document this:
a = b, c; ... | The comma operator in C++ (and C) has a specific behavior that can lead to some confusion, particularly when it comes to operator precedence and the way expressions are evaluated.
### Explanation of the Comma Operator
The comma operator `,` evaluates its first operand, discards the result, and then evaluates and retu... | 7,946 | [
{
"from": "human",
"value": "How does the comma operator work in C++?\nFor instance, if I do:\na = b, c; \n\nDoes a end up equaling b or c? \n(Yes, I know this is easy to test - just documenting on here for someone to find the answer quickly.)\nUpdate: This question has exposed a nuance when using the com... |
How do I create an index on the date part of DATETIME field?
mysql> SHOW COLUMNS FROM transactionlist;
+-------------------+------------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+-------------------+------------------+------+-----+--... | To create an index on the date part of a `DATETIME` field in MySQL, especially for speeding up queries that filter based on just the date portion (like `SELECT * FROM transactionlist WHERE DATE(TranDateTime) = '2008-08-17'`), you can create a functional index using a generated column. However, as of MySQL 5.7 and later... | 8,929 | [
{
"from": "human",
"value": "How do I create an index on the date part of DATETIME field?\nmysql> SHOW COLUMNS FROM transactionlist;\n+-------------------+------------------+------+-----+---------+----------------+\n| Field | Type | Null | Key | Default | Extra |\n+---------... |
Is there a indexing plugin for GDS that allows for source code search? I see some for specific types (Java, C++, ...) and one for "any text". These are nice, but I would like one that allows for many/configurable extensions (HTML, CSS, JS, VB, C#, Java, Python, ...). A huge bonus would be to allow for syntax highlig... | As of my last knowledge update in October 2023, there isn't a specific indexing plugin for GDS (Godot Database or any specific "GDS" context you may be referring to) that universally supports a wide variety of source code file types with customizable extensions out-of-the-box. However, there are a few general approache... | 10,405 | [
{
"from": "human",
"value": "Is there a indexing plugin for GDS that allows for source code search? I see some for specific types (Java, C++, ...) and one for \"any text\". These are nice, but I would like one that allows for many/configurable extensions (HTML, CSS, JS, VB, C#, Java, Python, ...). A huge... |
I've noticed that a few Wordpress blogs have query statistics present in their footer that simply state the number of queries and the total time required to process them for the particular page, reading something like:
23 queries. 0.448 seconds
I was wondering how this is accomplished. Is it through the use of a par... | Displaying database query statistics in the footer of a WordPress site is typically done through a plugin, but you can also achieve it with custom code. Here are some methods you can use to show the number of queries and the total time taken:
### Using a Plugin
There are various plugins available that can help you mo... | 6,746 | [
{
"from": "human",
"value": "I've noticed that a few Wordpress blogs have query statistics present in their footer that simply state the number of queries and the total time required to process them for the particular page, reading something like:\n\n23 queries. 0.448 seconds\n\nI was wondering how this is ... |
Is there some way to block access from a referrer using a .htaccess file or similar? My bandwidth is being eaten up by people referred from http://www.dizzler.com which is a flash based site that allows you to browse a library of crawled publicly available mp3s.
Edit: Dizzler was still getting in (probably wasn't indic... | Yes, you can block access from specific referrers using a `.htaccess` file. Below are some methods to achieve this, including what you've tried, along with additional suggestions:
### Block Access by Referrer in .htaccess
You can add the following rules to your `.htaccess` file to block requests coming from a specifi... | 6,070 | [
{
"from": "human",
"value": "Is there some way to block access from a referrer using a .htaccess file or similar? My bandwidth is being eaten up by people referred from http://www.dizzler.com which is a flash based site that allows you to browse a library of crawled publicly available mp3s.\nEdit: Dizzler w... |
Is there a way (without installing any libraries) of validating XML using a custom DTD in PHP?
| Yes, you can validate XML against a custom DTD (Document Type Definition) in PHP without needing to install any additional libraries. PHP's built-in `DOMDocument` class provides methods that allow you to load and validate XML with a DTD.
Here is a simple example that demonstrates how to do this:
1. Create an XML file... | 8,539 | [
{
"from": "human",
"value": "Is there a way (without installing any libraries) of validating XML using a custom DTD in PHP?\n"
},
{
"from": "gpt",
"value": "Yes, you can validate XML against a custom DTD (Document Type Definition) in PHP without needing to install any additional libraries. PHP's... |
I have a code snippet written in PHP that pulls a block of text from a database and sends it out to a widget on a webpage. The original block of text can be a lengthy article or a short sentence or two; but for this widget I can't display more than, say, 200 characters. I could use substr() to chop off the text at 20... | To ensure that you cut off the text at the end of the last complete word before the 200-character limit, you can use `substr()` in combination with `strrpos()` to find the last space character within the limit. This way, you can safely truncate the text without cutting off any words.
Here's a PHP code snippet to achie... | 10,032 | [
{
"from": "human",
"value": "I have a code snippet written in PHP that pulls a block of text from a database and sends it out to a widget on a webpage. The original block of text can be a lengthy article or a short sentence or two; but for this widget I can't display more than, say, 200 characters. I coul... |
I have some HTML that is generated via a Rich Text Editor outside of my Flex application but would like to display it inside Flex.
The HTML is simple HTML tags, things like styles, anchors, and possibly image tags, is there a control that would let me render this HTML in flex or am I going to have to roll up my sleeve... | In Adobe Flex, you can use the `HTMLLoader` component to render simple HTML content, which is one of the more straightforward solutions for displaying HTML generated by a Rich Text Editor. The `HTMLLoader` allows you to load HTML content and display it inside your Flex application.
However, if you are using Flex 4 or ... | 6,804 | [
{
"from": "human",
"value": "I have some HTML that is generated via a Rich Text Editor outside of my Flex application but would like to display it inside Flex. \nThe HTML is simple HTML tags, things like styles, anchors, and possibly image tags, is there a control that would let me render this HTML in flex ... |
In order to distribute a function I've written that depends on other functions I've written that have their own dependencies and so on without distributing every m-file I have ever written, I need to figure out what the full list of dependencies is for a given m-file. Is there a built-in/freely downloadable way to do t... | In MATLAB 7.4.0 (R2007a), you can analyze the dependencies of an M-file using the `depend` function, which is built into MATLAB. Here's how you can use it:
1. **Using the `depend` Function**:
You can run the `depend` function from the command line followed by the name of your M-file to get a list of functions and f... | 9,101 | [
{
"from": "human",
"value": "In order to distribute a function I've written that depends on other functions I've written that have their own dependencies and so on without distributing every m-file I have ever written, I need to figure out what the full list of dependencies is for a given m-file. Is there a... |
I'd like to pull a stream of PCM samples from a Mac's line-in or built-in mic and do a little live analysis (the exact nature doesn't pertain to this question, but it could be an FFT every so often, or some basic statistics on the sample levels, or what have you).
What's a good fit for this? Writing an AudioUnit that ... | For a hobby project like yours, focusing on simplicity and ease of use, I would recommend using **Core Audio** and the **Audio Queue Services** API provided by macOS. This will allow you to capture audio samples from the built-in microphone or line-in with minimal setup, and it's straightforward enough for proof-of-con... | 1,721 | [
{
"from": "human",
"value": "I'd like to pull a stream of PCM samples from a Mac's line-in or built-in mic and do a little live analysis (the exact nature doesn't pertain to this question, but it could be an FFT every so often, or some basic statistics on the sample levels, or what have you).\nWhat's a good... |
We need to replace the menu system in our main ASP.NET application. So naturally we're looking at the ASP.NET SiteMapProvider and Menu controls. However we also need enough security to prevent users from directly entering URLs that they shouldn't have access to. We can do this by putting <location> entries in web.confi... | In ASP.NET, managing access control based on the site's structure (like URLs generated by the SiteMapProvider) can indeed be a challenge, especially when considering scalability and maintainability across multiple web servers. Unfortunately, the built-in ASP.NET SiteMapProvider does not directly support URL access rest... | 5,857 | [
{
"from": "human",
"value": "We need to replace the menu system in our main ASP.NET application. So naturally we're looking at the ASP.NET SiteMapProvider and Menu controls. However we also need enough security to prevent users from directly entering URLs that they shouldn't have access to. We can do this b... |
public static void main(String[] args) {
List<? extends Object> mylist = new ArrayList<Object>();
mylist.add("Java"); // compile error
}
The above code does not allow you to add elements to the list and wild cards can only be used as a signature in methods, again not for adding but only for accessing.
In th... | The code you provided demonstrates the use of generics in Java, specifically with the `List<? extends Object>`. Let's break down the important aspects of your question:
### Explanation of `List<? extends Object>`
1. **Wildcard Usage**: The `? extends Object` is a wildcard that means "any type that is a subclass of `O... | 7,789 | [
{
"from": "human",
"value": "public static void main(String[] args) {\n\n List<? extends Object> mylist = new ArrayList<Object>();\n\n mylist.add(\"Java\"); // compile error\n\n}\n\nThe above code does not allow you to add elements to the list and wild cards can only be used as a signature in methods,... |
Let's say I have N pictures of an object, taken from N know positions. I also have the 3D geometry of the object, and I know all the characteristics of both the camera and the lens.
I want to generate a unique giant picture from the N pictures I have, so that it can be mapped/projected onto the object surface.
Does any... | Creating a unique giant picture (or texture map) from multiple images taken from different positions requires a combination of techniques from computer vision, graphics, and photogrammetry. Here are some steps and resources to guide you through this process:
### Steps to Generate a Texture Map:
1. **Camera Calibratio... | 7,570 | [
{
"from": "human",
"value": "Let's say I have N pictures of an object, taken from N know positions. I also have the 3D geometry of the object, and I know all the characteristics of both the camera and the lens.\nI want to generate a unique giant picture from the N pictures I have, so that it can be mapped/p... |
I'd really like to handle this without monkey-patching but I haven't been able to find another option yet.
I have an array (in Ruby) that I need to sort by multiple conditions. I know how to use the sort method and I've used the trick on sorting using an array of options to sort by multiple conditions. However, in th... | To sort an array by multiple conditions in Ruby, with the first condition in ascending order and the second condition in descending order, you can use the `sort_by` method in combination with a custom array that specifies the desired order for each sorting criterion.
Here's how you can accomplish this:
```ruby
ordere... | 8,304 | [
{
"from": "human",
"value": "I'd really like to handle this without monkey-patching but I haven't been able to find another option yet.\nI have an array (in Ruby) that I need to sort by multiple conditions. I know how to use the sort method and I've used the trick on sorting using an array of options to so... |
What is GNU Screen?
| GNU Screen is a terminal multiplexer that allows users to manage multiple terminal sessions from a single window. It enables users to create, detach, and reattach to terminal sessions, which is particularly useful for remote work, such as when using SSH.
Key features of GNU Screen include:
1. **Session Management**: ... | 10,590 | [
{
"from": "human",
"value": "What is GNU Screen? \n"
},
{
"from": "gpt",
"value": "GNU Screen is a terminal multiplexer that allows users to manage multiple terminal sessions from a single window. It enables users to create, detach, and reattach to terminal sessions, which is particularly usefu... |
A database application that I'm currently working on, stores all sorts of settings in the database. Most of those settings are there to customize certain business rules, but there's also some other stuff in there.
The app contains objects that specifically do a certain task, e.g., a certain complicated calculation. Tho... | This is a common challenge in software design, especially when you need to manage global settings or configuration options in a way that promotes both flexibility and testability. Here are some common design patterns and approaches you might consider:
### 1. **Dependency Injection (DI)**
**Description:** Use Dependen... | 3,565 | [
{
"from": "human",
"value": "A database application that I'm currently working on, stores all sorts of settings in the database. Most of those settings are there to customize certain business rules, but there's also some other stuff in there.\nThe app contains objects that specifically do a certain task, e.... |
I've created an Access 2007 form that displays, for example, Products from a Product table. One of the fields in the Product table is a CategoryID that corresponds to this product's parent category.
In the form, the CategoryID needs to be represented as a combo box that is bound to the Category table. The idea here i... | To achieve the desired functionality in your Access 2007 form, where you want to display the `CategoryName` in a combo box while storing the corresponding `CategoryID` in the underlying `Product` table, you need to configure the combo box properties correctly.
Here’s how you can set this up:
1. **Create the Combo Box... | 5,959 | [
{
"from": "human",
"value": "I've created an Access 2007 form that displays, for example, Products from a Product table. One of the fields in the Product table is a CategoryID that corresponds to this product's parent category.\nIn the form, the CategoryID needs to be represented as a combo box that is bou... |
Also, where would I find them?
| It seems like you might be asking about a specific item or category, but I'm not sure what you're referring to. Could you please provide more details about what you're looking for? This way, I can help you find the information or resources you need! | 13,013 | [
{
"from": "human",
"value": "Also, where would I find them?\n"
},
{
"from": "gpt",
"value": "It seems like you might be asking about a specific item or category, but I'm not sure what you're referring to. Could you please provide more details about what you're looking for? This way, I can help y... |
I have a VB6.0 project and I want to convert it in VB.Net.
In my VB6.0 application some of the MDI Child form’s height is 17000 and width is 13000. Now I want to set the same form size in VB.Net forms, but it allows maximum form width = 1036, height = 780 for resolution 1024x768.
How can I increase form size with same ... | In VB.Net, the maximum size of a form is generally limited by the screen resolution and the operating system's constraints. However, there are a couple of approaches you can consider to achieve a larger form size, while keeping in mind that your target display resolution may restrict how this appears on a user's screen... | 8,252 | [
{
"from": "human",
"value": "I have a VB6.0 project and I want to convert it in VB.Net.\nIn my VB6.0 application some of the MDI Child form’s height is 17000 and width is 13000. Now I want to set the same form size in VB.Net forms, but it allows maximum form width = 1036, height = 780 for resolution 1024x76... |
When creating a UserControl in WPF, I find it convenient to give it some arbitrary Height and Width values so that I can view my changes in the Visual Studio designer. When I run the control, however, I want the Height and Width to be undefined, so that the control will expand to fill whatever container I place it in. ... | To achieve the desired behavior where your UserControl has a defined height and width for design-time visualization but expands to fill the available space at runtime, you can use a combination of `DesignHeight` and `DesignWidth` attributes instead of the `Height` and `Width` attributes. These attributes are specifical... | 7,045 | [
{
"from": "human",
"value": "When creating a UserControl in WPF, I find it convenient to give it some arbitrary Height and Width values so that I can view my changes in the Visual Studio designer. When I run the control, however, I want the Height and Width to be undefined, so that the control will expand t... |
I'm trying to build a C# console application to automate grabbing certain files from our website, mostly to save myself clicks and - frankly - just to have done it. But I've hit a snag that for which I've been unable to find a working solution.
The website I'm trying to which I'm trying to connect uses ASP.Net forms a... | To authenticate against an ASP.NET Forms Authentication site using a C# console application, you can follow these general steps:
1. **Authenticate** by sending a POST request with your username and password to the login URL of the website.
2. **Store the authentication cookies** received in the response.
3. Use these ... | 5,251 | [
{
"from": "human",
"value": "I'm trying to build a C# console application to automate grabbing certain files from our website, mostly to save myself clicks and - frankly - just to have done it. But I've hit a snag that for which I've been unable to find a working solution.\nThe website I'm trying to which ... |
For the life of me, I cannot get the SqlProfileProvider to work in an MVC project that I'm working on.
The first interesting thing that I realized is that Visual Studio does not automatically generate the ProfileCommon proxy class for you. That's not a big deal since it's simpy a matter of extending the ProfileBase cl... | It looks like you're on the right track, but there are a few important details to consider when using `ProfileBase` and `ProfileCommon`. Let's go through some potential issues and steps to resolve them.
### 1. Issue with Casting
The method `ProfileBase.Create(username)` is not returning your custom `ProfileCommon` typ... | 5,428 | [
{
"from": "human",
"value": "For the life of me, I cannot get the SqlProfileProvider to work in an MVC project that I'm working on.\nThe first interesting thing that I realized is that Visual Studio does not automatically generate the ProfileCommon proxy class for you. That's not a big deal since it's simp... |
If a user select all items in a .NET 2.0 ListView, the ListView will fire a SelectedIndexChanged event for every item, rather than firing an event to indicate that the selection has changed.
If the user then clicks to select just one item in the list, the ListView will fire a SelectedIndexChanged event for every item t... | When working with a ListView in .NET 2.0, it's true that the `SelectedIndexChanged` event can fire numerous times, leading to performance issues as you've described. Instead of handling every single event, you can implement a mechanism to reduce the number of times your event handler is invoked, grouping the changes to... | 5,092 | [
{
"from": "human",
"value": "If a user select all items in a .NET 2.0 ListView, the ListView will fire a SelectedIndexChanged event for every item, rather than firing an event to indicate that the selection has changed.\nIf the user then clicks to select just one item in the list, the ListView will fire a S... |
Does anyone know how to setup Mercurial to use p4merge as the merge/diff tool on OS X 10.5?
| To set up Mercurial to use P4Merge as the merge and diff tool on OS X 10.5, you can follow these steps:
1. **Install P4Merge**: Make sure you have P4Merge installed on your system. You can download it from the Perforce website.
2. **Locate P4Merge**: Find the path to the P4Merge application. It is usually located in ... | 7,484 | [
{
"from": "human",
"value": "Does anyone know how to setup Mercurial to use p4merge as the merge/diff tool on OS X 10.5?\n"
},
{
"from": "gpt",
"value": "To set up Mercurial to use P4Merge as the merge and diff tool on OS X 10.5, you can follow these steps:\n\n1. **Install P4Merge**: Make sure y... |
What's a quick and easy way to view and edit ID3 tags (artist, album, etc.) using C#?
| You can view and edit ID3 tags in C# using the `TagLib#` library, which is a popular library for handling media files and their associated metadata, including ID3 tags for MP3 files. Here’s a quick guide on how to do this.
### Step 1: Install TagLib#
You can add the `TagLib#` library to your project using NuGet. You ... | 8,283 | [
{
"from": "human",
"value": "What's a quick and easy way to view and edit ID3 tags (artist, album, etc.) using C#?\n"
},
{
"from": "gpt",
"value": "You can view and edit ID3 tags in C# using the `TagLib#` library, which is a popular library for handling media files and their associated metadata,... |
I have a remote DB2 database that I'm accessing through ODBC. When I have a query like
SELECT t.foo, t.bar, t.problemcolumn
FROM problemtable t
WHERE t.bar < 60;
it works like a charm, so the table and columns obviously exist.
But if I specify the problem column in the WHERE clause
SELECT t.foo, t.bar, t.problemcolumn... | The error you're encountering, where including `t.problemcolumn` in the `WHERE` clause causes an error stating that the table does not exist, could be due to a few different reasons. Here are some possibilities to investigate:
1. **Column Visibility**: Some ODBC drivers or DB2 settings might treat certain columns diff... | 8,352 | [
{
"from": "human",
"value": "I have a remote DB2 database that I'm accessing through ODBC. When I have a query like\nSELECT t.foo, t.bar, t.problemcolumn\nFROM problemtable t\nWHERE t.bar < 60;\n\nit works like a charm, so the table and columns obviously exist.\nBut if I specify the problem column in the WH... |
In the new login dialog of the SQL Server 2005 Management Studio Express, what is the User Mapping actually doing? Am I restricting access to those databases that are checked? What if I check none?
| In SQL Server Management Studio Express (SSMS) 2005, the User Mapping section of the login dialog is used to configure which databases a particular SQL Server login can access and what roles or permissions that login will have within those databases.
### Understanding User Mapping:
1. **Database Access**: When you ch... | 10,013 | [
{
"from": "human",
"value": "In the new login dialog of the SQL Server 2005 Management Studio Express, what is the User Mapping actually doing? Am I restricting access to those databases that are checked? What if I check none?\n"
},
{
"from": "gpt",
"value": "In SQL Server Management Studio Ex... |
Is anyone out there* using web2py?
Specifically:
In production?
With what database?
With Google Application Engine?
by "out there" I mean at stackoverflow.
| Yes, there are users on Stack Overflow who have mentioned using web2py in production environments.
1. **In Production**: Many developers have reported deploying web2py applications in production. You can find discussions and questions related to deployment issues, best practices, and experiences in production setups.... | 11,620 | [
{
"from": "human",
"value": "Is anyone out there* using web2py?\nSpecifically:\n\nIn production?\nWith what database?\nWith Google Application Engine?\n\nby \"out there\" I mean at stackoverflow.\n\n\n"
},
{
"from": "gpt",
"value": "Yes, there are users on Stack Overflow who have mentioned using... |
How do you generate and analyze a thread dump from a running JBoss instance?
| Generating and analyzing a thread dump from a running JBoss (now known as WildFly) instance can help diagnose performance issues, deadlocks, or other threading-related problems. Here’s a step-by-step guide to generating and analyzing a thread dump:
### Generating a Thread Dump
1. **Identify the JBoss Process:**
- ... | 5,485 | [
{
"from": "human",
"value": "How do you generate and analyze a thread dump from a running JBoss instance?\n"
},
{
"from": "gpt",
"value": "Generating and analyzing a thread dump from a running JBoss (now known as WildFly) instance can help diagnose performance issues, deadlocks, or other threadi... |
I recently came across an IE7 only bug that I thought I'd share so when I come to this site 6 months from now to figure out the same thing, I'll have it on hand.
I believe the easiest way to recreate this bug would be the following html in a page with a declared doctype (it works correctly in "quirks mode" / no-doctyp... | It sounds like you've encountered an interesting bug in Internet Explorer 7 related to how it handles overflow and positioned elements. This is not uncommon in IE7, as it has several quirks and inconsistencies compared to modern browsers. Here's a brief explanation of the issue and a few potential workarounds:
### Iss... | 6,152 | [
{
"from": "human",
"value": "I recently came across an IE7 only bug that I thought I'd share so when I come to this site 6 months from now to figure out the same thing, I'll have it on hand. \nI believe the easiest way to recreate this bug would be the following html in a page with a declared doctype (it wo... |
Are XMLSockets available in Flash Lite, and if yes in which versions, and are there differences between the regular and the lite objects?
| XMLSockets are not available in Flash Lite. Flash Lite, which is a lightweight version of Adobe Flash designed for mobile and embedded devices, does not support XMLSockets. The main focus of Flash Lite is to provide basic multimedia capabilities on devices with limited resources, and as such, it has a more restricted s... | 10,357 | [
{
"from": "human",
"value": "Are XMLSockets available in Flash Lite, and if yes in which versions, and are there differences between the regular and the lite objects?\n"
},
{
"from": "gpt",
"value": "XMLSockets are not available in Flash Lite. Flash Lite, which is a lightweight version of Adobe ... |
I have a draggable div element with a hover style. This works fine, but the div contains some form elements (label, input). The problem is that when the mouse is over these child elements the hover is disabled.
<div class="app_setting">
<label">Name</label>
<input type="text" name="name"/>
</div>
.app_setting:hove... | To ensure that the hover effect is applied to the entire `.app_setting` div, including its child elements, you can use the CSS property `pointer-events` on the child elements. By setting `pointer-events` to `none`, the child elements will not interfere with the hover effect of the parent element. However, this will als... | 10,528 | [
{
"from": "human",
"value": "I have a draggable div element with a hover style. This works fine, but the div contains some form elements (label, input). The problem is that when the mouse is over these child elements the hover is disabled.\n<div class=\"app_setting\">\n <label\">Name</label>\n <input type... |
As a classic ASP developer about once a year since ASP.NET came out I decide I really gotta buckle down and learn this fancy new ASP.NET. A few days in and messing with code-behinds and webforms and all this other stuff.
I decide the new fancy stuff is whack and go find something else to learn (PHP and Ruby and Python... | It's great that you're exploring different technologies, and you've certainly gone through a lot of valuable experience with Classic ASP, PHP, and CakePHP. The debate between ASP.NET MVC and PHP with frameworks like CakePHP is quite common, and it largely comes down to your specific needs and preferences.
Here are som... | 4,354 | [
{
"from": "human",
"value": "As a classic ASP developer about once a year since ASP.NET came out I decide I really gotta buckle down and learn this fancy new ASP.NET. A few days in and messing with code-behinds and webforms and all this other stuff.\nI decide the new fancy stuff is whack and go find someth... |
Anyone who writes client-side JavaScript is familiar with the DOM - the tree structure that your browser references in memory, generated from the HTML it got from the server. JavaScript can add, remove and modify nodes on the DOM tree to make changes to the page. I find it very nice to work with (browser bugs aside), a... | You raise an interesting point about the differences between server-side and client-side rendering of HTML. Indeed, treating the page as a DOM-like structure on the server side can lead to better consistency and may enable optimizations. Here are some frameworks and languages that approach this concept:
### 1. **Node.... | 7,188 | [
{
"from": "human",
"value": "Anyone who writes client-side JavaScript is familiar with the DOM - the tree structure that your browser references in memory, generated from the HTML it got from the server. JavaScript can add, remove and modify nodes on the DOM tree to make changes to the page. I find it very ... |
I'm looking for a Ruby's equivalent of Code Like a Pythonista: Idiomatic Python
Desirable features:
easy to read
single document which covers all topics: tips, tricks, guidelines, caveats, and pitfalls
size less than a book
idioms should work out of the box for the standard distribution (% sudo apt-get install ruby ir... | ### Tutorial 1: Ruby Idioms - Blocks
#### Overview
In Ruby, blocks are a powerful feature that allows you to pass chunks of code as arguments to methods. They are often used for iteration, making your code more concise and expressive.
#### Example Code
```ruby
# Using a block with the `each` method
numbers = [1, 2, 3... | 3,788 | [
{
"from": "human",
"value": "I'm looking for a Ruby's equivalent of Code Like a Pythonista: Idiomatic Python\nDesirable features:\n\neasy to read\nsingle document which covers all topics: tips, tricks, guidelines, caveats, and pitfalls\nsize less than a book\nidioms should work out of the box for the standa... |
I haven't programmed games for about 10 years (My last experience was DJGPP + Allegro), but I thought I'd check out XNA over the weekend to see how it was shaping up.
I am fairly impressed, however as I continue to piece together a game engine, I have a (probably) basic question.
How much should you rely on C#'s Delega... | It's great to hear that you're diving back into game development after a decade away! The choice between using delegates and events versus a more traditional update loop is an important one, and it often comes down to the specific requirements of your game and how you intend to structure your code.
### Performance Con... | 5,203 | [
{
"from": "human",
"value": "I haven't programmed games for about 10 years (My last experience was DJGPP + Allegro), but I thought I'd check out XNA over the weekend to see how it was shaping up.\nI am fairly impressed, however as I continue to piece together a game engine, I have a (probably) basic questio... |
I'm trying to make a data bound column invisible after data binding, because it won't exist before data binding. However, the DataGrid.Columns collection indicates a count of 0, making it seem as if the automatically generated columns don't belong to the collection.
How can I make a column that is automatically genera... | In a WPF DataGrid, when you have `AutoGenerateColumns` set to `True`, the columns are generated automatically based on the bound data source when the data context is set. If you want to make one of these automatically generated columns invisible after the data binding, you have a few options:
1. **Handle the `AutoGene... | 7,621 | [
{
"from": "human",
"value": "I'm trying to make a data bound column invisible after data binding, because it won't exist before data binding. However, the DataGrid.Columns collection indicates a count of 0, making it seem as if the automatically generated columns don't belong to the collection.\nHow can I ... |
is there a way to abort threads created with QueueUserWorkItem?
Or maybe I don't need to? What happens if the main application exits? Are all thread created from it aborted automatically?
| When you create threads using `QueueUserWorkItem` in .NET (or other languages that interface with Windows API), those threads are typically designed to perform work asynchronously. Here's how you can manage those threads and what happens when the main application exits:
### 1. **Aborting Threads:**
- **Thread Abort... | 6,300 | [
{
"from": "human",
"value": "is there a way to abort threads created with QueueUserWorkItem?\nOr maybe I don't need to? What happens if the main application exits? Are all thread created from it aborted automatically?\n"
},
{
"from": "gpt",
"value": "When you create threads using `QueueUserWorkI... |
I have a flash player that has a set of songs loaded via an xml file.
The files dont start getting stream until you pick one.
If I quickly cycle through each of the 8 files, then flash starts trying to download each of the 8 files at the same time.
I'm wondering if there is a way to clear the file that is being downloa... | Yes, this is a common issue when dealing with streaming audio files in Flash. When users click rapidly on multiple tracks, each track may start loading concurrently, leading to unnecessary bandwidth consumption and potential performance issues.
To prevent this, you can implement a couple of strategies to manage the a... | 5,752 | [
{
"from": "human",
"value": "I have a flash player that has a set of songs loaded via an xml file.\nThe files dont start getting stream until you pick one.\nIf I quickly cycle through each of the 8 files, then flash starts trying to download each of the 8 files at the same time.\nI'm wondering if there is a... |
How can I remove those annoying Mac OS X .DS_Store files from a Git repository?
| To remove `.DS_Store` files from a Git repository and prevent them from being tracked in the future, you can follow these steps:
### Step 1: Remove `.DS_Store` Files
You can remove all existing `.DS_Store` files from your repository using the following command in your terminal:
```bash
find . -name '.DS_Store' -type... | 8,081 | [
{
"from": "human",
"value": "How can I remove those annoying Mac OS X .DS_Store files from a Git repository?\n"
},
{
"from": "gpt",
"value": "To remove `.DS_Store` files from a Git repository and prevent them from being tracked in the future, you can follow these steps:\n\n### Step 1: Remove `.D... |
I need a way to recursively delete a folder and its children.
Is there a prebuilt tool for this, or do I need to write one?
DEL /S doesn't delete directories.
DELTREE was removed from Windows 2000+
| You can recursively delete a folder and its contents using built-in tools in Windows without needing to write your own script. Here are a couple of methods:
### Method 1: Using `rmdir` Command
The `rmdir` command in Windows can be used to delete directories, and it has a specific option for recursive deletion.
Open... | 10,944 | [
{
"from": "human",
"value": "I need a way to recursively delete a folder and its children.\nIs there a prebuilt tool for this, or do I need to write one?\nDEL /S doesn't delete directories.\nDELTREE was removed from Windows 2000+\n"
},
{
"from": "gpt",
"value": "You can recursively delete a fold... |
I am using a wxGenericDirCtrl, and I would like to know if there is a way to hide directories, I'd especially like to hide siblings of parent nodes.
For example if my directory structure looks like this:
+-a
|
+-b
| |
| +-whatever
|
+-c
| |
| +-d
| |
| +-e
| |
| +-f
|
+-g
|
... | To achieve the behavior of hiding certain directories in a `wx.GenericDirCtrl` based on a selected directory, you will need to customize the way the control displays its contents. Unfortunately, `wx.GenericDirCtrl` does not directly support hiding specific nodes. However, you can work around this limitation by creating... | 4,660 | [
{
"from": "human",
"value": "I am using a wxGenericDirCtrl, and I would like to know if there is a way to hide directories, I'd especially like to hide siblings of parent nodes.\nFor example if my directory structure looks like this:\n+-a\n |\n +-b\n | |\n | +-whatever\n |\n +-c\n | |\n | +-d\n | ... |
I'm writing a number of articles meant to teach beginning programming concepts through the use of poker-related topics. Currently, I'm working on the subject of shuffling.
As Jeff Atwood points out on CodingHorror.com, one simple shuffling method (iterating through an array and swapping each card with a random card els... | Using a naive shuffle, such as iterating through an array of cards and swapping each card with a randomly selected card, can indeed result in an uneven distribution of permutations. Let's look at what this means in practical terms, particularly in the context of a 52-card deck.
1. **Understanding Naive Shuffling**: Th... | 9,891 | [
{
"from": "human",
"value": "I'm writing a number of articles meant to teach beginning programming concepts through the use of poker-related topics. Currently, I'm working on the subject of shuffling.\nAs Jeff Atwood points out on CodingHorror.com, one simple shuffling method (iterating through an array and... |
I've created a webservice and when I want to use its methods I instantiate it in the a procedure, call the method, and I finally I dispose it, however I think also it could be okay to instantiate the webservice in the "private void Main_Load(object sender, EventArgs e)" event.
The thing is that if I do it the first way... | Choosing between your two strategies for handling a web service instantiation in a WinForms application depends on factors such as resource management, application design, and performance considerations. Below is an analysis of both strategies along with some additional recommendations:
### Strategy 1: Instantiating t... | 6,417 | [
{
"from": "human",
"value": "I've created a webservice and when I want to use its methods I instantiate it in the a procedure, call the method, and I finally I dispose it, however I think also it could be okay to instantiate the webservice in the \"private void Main_Load(object sender, EventArgs e)\" event.... |
I know something about Java but completely new to Enterprise Java. I'm trying my hand with NetBeans 6.1 and GlassFish Application Server.
Please guide me to some resources which tell me actually what java enterprise applications are, how they are different from normal java classes etc.
Also which is the best applicat... | Welcome to the world of Enterprise Java! It's great that you're diving into this field. Enterprise Java refers to a set of specifications and frameworks that provide a robust, scalable, and secure platform for building large-scale applications, typically used in business environments. Below are some resources and infor... | 5,791 | [
{
"from": "human",
"value": "I know something about Java but completely new to Enterprise Java. I'm trying my hand with NetBeans 6.1 and GlassFish Application Server. \nPlease guide me to some resources which tell me actually what java enterprise applications are, how they are different from normal java cla... |
What code analysis tools do you use on your Java projects?
I am interested in all kinds
static code analysis tools (FindBugs, PMD, and any others)
code coverage tools (Cobertura, Emma, and any others)
any other instrumentation-based tools
anything else, if I'm missing something
If applicable, also state what build t... | When working on Java projects, there are several types of code analysis tools you can utilize, including static code analysis tools, code coverage tools, and instrumentation-based tools. Below, I categorize some of the most popular tools and provide details on their integration with build tools and IDEs.
### Static Co... | 4,474 | [
{
"from": "human",
"value": "What code analysis tools do you use on your Java projects?\nI am interested in all kinds\n\nstatic code analysis tools (FindBugs, PMD, and any others)\ncode coverage tools (Cobertura, Emma, and any others)\nany other instrumentation-based tools \nanything else, if I'm missing so... |
How do you stop the designer from auto generating code that sets the value for public properties on a user control?
| When working with a user control in a design environment like Visual Studio, there may be times when you want to prevent the designer from automatically generating code for public properties. This often happens when the designer serializes property values in the generated code and you want to maintain control over the ... | 8,500 | [
{
"from": "human",
"value": "How do you stop the designer from auto generating code that sets the value for public properties on a user control?\n"
},
{
"from": "gpt",
"value": "When working with a user control in a design environment like Visual Studio, there may be times when you want to preve... |
I've got a J2SE application that I am maintaining uses JNDI.
(It uses JNDI to find it's J2EE application server.)
It has pretty poor error reporting of failure to find the JNDI server.
I've been looking around fora way to display which server the InitialContext is trying to talk to.
Has anyone got a neat way to do this... | To display which server the `InitialContext` is trying to connect to in a J2SE application using JNDI, you can retrieve and log the properties that you are passing to the `InitialContext`. Specifically, you will want to look at the environment properties used to create the `InitialContext` object.
Here's a basic examp... | 9,487 | [
{
"from": "human",
"value": "I've got a J2SE application that I am maintaining uses JNDI.\n(It uses JNDI to find it's J2EE application server.)\nIt has pretty poor error reporting of failure to find the JNDI server.\nI've been looking around fora way to display which server the InitialContext is trying to t... |
In short: I'm trying to figure out if I should tell a mail administrator of a friend's employer whether their mail configuration should be fixed, or if I should revise my own policy to be more liberal in what I accept, or neither.
A friend was complaining of being unable to reach anything on my mailserver. I dug into ... | You are correct in your analysis of the situation regarding HELO/EHLO commands in the SMTP protocol. The original RFC 821 (published in 1982) does state that the receiver "MUST NOT refuse to accept a message" solely based on a failure of HELO verification, which would include cases where the HELO hostname is not resolv... | 9,118 | [
{
"from": "human",
"value": "In short: I'm trying to figure out if I should tell a mail administrator of a friend's employer whether their mail configuration should be fixed, or if I should revise my own policy to be more liberal in what I accept, or neither.\nA friend was complaining of being unable to rea... |
I'm used to the Java model where you can have one public class per file. Python doesn't have this restriction, and I'm wondering what's the best practice for organizing classes.
| In Python, there is indeed more flexibility when it comes to organizing classes and other code within files. Here are some best practices for organizing classes in Python:
### 1. **Single Responsibility Principle**
- Each module (i.e., Python file) should ideally contain classes or functions that are related to a s... | 7,151 | [
{
"from": "human",
"value": "I'm used to the Java model where you can have one public class per file. Python doesn't have this restriction, and I'm wondering what's the best practice for organizing classes.\n"
},
{
"from": "gpt",
"value": "In Python, there is indeed more flexibility when it com... |
I am forced to use VSS at work, but use SVN for a personal repository. What is the best way to sync between VSS and sync?
| Synchronizing between Visual SourceSafe (VSS) and Subversion (SVN) can be challenging due to the differences in how these version control systems operate. However, you can establish a workflow to keep them somewhat in sync. Here's a general approach you can follow:
### 1. Export from VSS
First, you'll need to export ... | 7,305 | [
{
"from": "human",
"value": "I am forced to use VSS at work, but use SVN for a personal repository. What is the best way to sync between VSS and sync?\n"
},
{
"from": "gpt",
"value": "Synchronizing between Visual SourceSafe (VSS) and Subversion (SVN) can be challenging due to the differences in... |
I am using the PHP 5 Tidy class to format html.
Everything is fine except when it gets passed a style attribute, when it changes it into a class attribute. As I am only formatting the body of a document, not the head, there is no class defined in the head for the attribute to read.
I have looked through all the Tidy o... | The behavior you are experiencing with PHP's Tidy class altering the `style` attribute to a `class` attribute can be attributed to Tidy's configuration and how it processes HTML. While Tidy is a great tool for cleaning up HTML, it can sometimes change or remove certain attributes based on its default settings.
To pres... | 9,151 | [
{
"from": "human",
"value": "I am using the PHP 5 Tidy class to format html.\nEverything is fine except when it gets passed a style attribute, when it changes it into a class attribute. As I am only formatting the body of a document, not the head, there is no class defined in the head for the attribute to r... |
Given an array of n Objects, let's say it is an array of strings, and it has the following values:
foo[0] = "a";
foo[1] = "cc";
foo[2] = "a";
foo[3] = "dd";
What do I have to do to delete/remove all the strings/objects equal to "a" in the array?
| To remove all occurrences of the string "a" from the array of strings in JavaScript, you can use the `filter` method, which creates a new array with all elements that pass the test implemented by the provided function. Here's how you can do it:
```javascript
let foo = ["a", "cc", "a", "dd"];
// Use the filter method ... | 10,037 | [
{
"from": "human",
"value": "Given an array of n Objects, let's say it is an array of strings, and it has the following values:\nfoo[0] = \"a\";\nfoo[1] = \"cc\";\nfoo[2] = \"a\";\nfoo[3] = \"dd\";\n\nWhat do I have to do to delete/remove all the strings/objects equal to \"a\" in the array?\n"
},
{
... |
What's the difference between struct and class in .NET?
| In .NET, both `struct` and `class` are used to define types, but they have several key differences in terms of behavior, memory allocation, and usage. Here's a breakdown of the main differences:
1. **Type**:
- **Class**: A class is a reference type. When you create an instance of a class, you are creating a referen... | 5,734 | [
{
"from": "human",
"value": "What's the difference between struct and class in .NET?\n"
},
{
"from": "gpt",
"value": "In .NET, both `struct` and `class` are used to define types, but they have several key differences in terms of behavior, memory allocation, and usage. Here's a breakdown of the m... |
I have 3 PDF documents that are generated on the fly by a legacy library that we use, and written to disk. What's the easiest way for my JAVA server code to grab these 3 documents and turn them into one long PDF document where it's just all the pages from document #1, followed by all the pages from document #2, etc.
Id... | To merge multiple PDF documents in Java, you can use libraries like Apache PDFBox or iText. Both libraries are popular and provide capabilities to manipulate PDF files. Below are examples of how to use both libraries to merge PDF documents.
### Using Apache PDFBox
1. **Add PDFBox Dependency**: If you are using Maven,... | 6,307 | [
{
"from": "human",
"value": "I have 3 PDF documents that are generated on the fly by a legacy library that we use, and written to disk. What's the easiest way for my JAVA server code to grab these 3 documents and turn them into one long PDF document where it's just all the pages from document #1, followed b... |
Most of my experience is on the MSFT stack, but I am now working on a side project, helping someone with a personal site with cheap hosting that is built on the LAMP stack. My options for installing extras are limited, so I'm wondering about how to write my data access code without embedding raw queries in the .php fi... | Given your experience with the MSFT stack and your preference for simplicity, it sounds like you're looking for a lightweight approach to database access in PHP without the overhead of an ORM. Here are some ideas to consider, including a few options for ORM solutions:
### Custom Data Access Layer
1. **Simple Database... | 5,252 | [
{
"from": "human",
"value": "Most of my experience is on the MSFT stack, but I am now working on a side project, helping someone with a personal site with cheap hosting that is built on the LAMP stack. My options for installing extras are limited, so I'm wondering about how to write my data access code wit... |
While we try to set up as many unit tests as time allows for our applications, I always find the amount of UI-level tests lacking. There are many options out there, but I'm not sure what would be a good place to start.
What is your preferred unit testing tool for testing Swing applications? Why do you like it?
| When it comes to unit testing Swing applications, a common choice is **JUnit** in combination with **AssertJ Swing** or **TestFX** (though the latter is more JavaFX-focused). Here's a breakdown of why these are preferred options:
### 1. **JUnit**:
- **Popularity**: JUnit is the de facto standard for unit testing in Ja... | 9,466 | [
{
"from": "human",
"value": "While we try to set up as many unit tests as time allows for our applications, I always find the amount of UI-level tests lacking. There are many options out there, but I'm not sure what would be a good place to start. \nWhat is your preferred unit testing tool for testing Swing... |
I've been making my way through The Little Schemer and I was wondering what environment, IDE or interpreter would be best to use in order to test any of the Scheme code I jot down for myself.
| Great to hear that you're diving into *The Little Schemer*! When it comes to running and testing Scheme code, you have several options for environments, IDEs, or interpreters. Here are some popular choices:
1. **Racket**:
- Racket is a descendant of Scheme and provides a robust programming environment. It has an in... | 8,150 | [
{
"from": "human",
"value": "I've been making my way through The Little Schemer and I was wondering what environment, IDE or interpreter would be best to use in order to test any of the Scheme code I jot down for myself.\n"
},
{
"from": "gpt",
"value": "Great to hear that you're diving into *The... |
I would like to debug my separately running JSP/Struts/Tomcat/Hibernate application stack using the Eclipse IDE debugger. How do I setup the java JVM and eclipse so that I can set breakpoints, monitor variable values, and see the code that is currently executing?
| To debug your JSP/Struts/Tomcat/Hibernate application stack using Eclipse IDE, you'll need to configure both the Tomcat server and Eclipse properly. Here’s a step-by-step guide on how to set this up:
### Step 1: Set Up Eclipse for Debugging
1. **Install Eclipse IDE**:
- Ensure you have the Eclipse IDE installed. F... | 6,387 | [
{
"from": "human",
"value": "I would like to debug my separately running JSP/Struts/Tomcat/Hibernate application stack using the Eclipse IDE debugger. How do I setup the java JVM and eclipse so that I can set breakpoints, monitor variable values, and see the code that is currently executing?\n"
},
{
... |
When I debug in Visual Studio, Firefox opens and that is annoying because of the hookups that Internet Explorer and Visual Studio have, such as when you close the Internet Explorer browser that starting debug opened, Visual Studio stops debugging. How can I get Visual Studio to open Internet Explorer instead without h... | To set Visual Studio to launch Internet Explorer for debugging without changing your system's default web browser, you can follow these steps:
1. **Change the Project Properties**:
- Right-click your project in Solution Explorer and select **Properties**.
- Navigate to the **Web** tab (this may vary slightly dep... | 10,031 | [
{
"from": "human",
"value": "When I debug in Visual Studio, Firefox opens and that is annoying because of the hookups that Internet Explorer and Visual Studio have, such as when you close the Internet Explorer browser that starting debug opened, Visual Studio stops debugging. How can I get Visual Studio to... |
When using the Eclipse->Team->Show History view, what's the difference between using Subclipse "Get Contents" and "Get Revision" options on a revision of a file?
Is there any way to see what svn commands Subclipse is issuing behind the scenes?
| In Subclipse, which is an Eclipse plugin for Subversion (SVN), the options "Get Contents" and "Get Revision" serve different purposes when you are looking at the history of a file.
### Difference between "Get Contents" and "Get Revision":
1. **Get Contents**:
- This option retrieves the file as it existed at the s... | 9,952 | [
{
"from": "human",
"value": "When using the Eclipse->Team->Show History view, what's the difference between using Subclipse \"Get Contents\" and \"Get Revision\" options on a revision of a file?\nIs there any way to see what svn commands Subclipse is issuing behind the scenes?\n"
},
{
"from": "gpt",... |
Are there any advantages compiling for .NET Framework 3.5 instead of 2.0?
For example less memory consumption, faster startup, better performance...
Personally I don't think so however, I may have missed something.
Edits
Of course there are more features in the 3.5 framework, but these are not the focus of this questi... | Compiling for .NET Framework 3.5 instead of 2.0 primarily offers access to new features and enhancements that were introduced in 3.5, rather than direct improvements in memory consumption, startup time, or performance. The core runtime performance characteristics are largely consistent between these two versions. Howev... | 7,296 | [
{
"from": "human",
"value": "Are there any advantages compiling for .NET Framework 3.5 instead of 2.0?\nFor example less memory consumption, faster startup, better performance...\nPersonally I don't think so however, I may have missed something.\nEdits\n\nOf course there are more features in the 3.5 framewo... |
This came up from this answer to a previous question of mine.
Is it guaranteed for the compiler to treat array[4][4] the same as array[16]?
For instance, would either of the below calls to api_func() be safe?
void api_func(const double matrix[4][4]);
// ...
{
typedef double Matrix[4][4];
double* array1 = new dou... | In C++, the two types `double[4][4]` and `double[16]` are not directly interchangeable, although they represent the same underlying data layout in memory. However, there are important considerations regarding type safety, pointer conversion, and the rules of the language that you should take into account.
### Memory L... | 9,693 | [
{
"from": "human",
"value": "This came up from this answer to a previous question of mine.\nIs it guaranteed for the compiler to treat array[4][4] the same as array[16]?\nFor instance, would either of the below calls to api_func() be safe?\nvoid api_func(const double matrix[4][4]);\n\n// ...\n\n{\n typedef... |
Graphics and audio editing and processing software often contain functions called "High-Pass Filter" and "Low-Pass Filter". Exactly what do these do, and what are the algorithms for implementing them?
| High-Pass Filters (HPF) and Low-Pass Filters (LPF) are essential tools used in both graphics and audio processing. They allow for the manipulation of signals (whether audio waves or image pixel values) by selectively attenuating or allowing certain frequency components to pass through.
### Low-Pass Filter (LPF)
**Def... | 5,451 | [
{
"from": "human",
"value": "Graphics and audio editing and processing software often contain functions called \"High-Pass Filter\" and \"Low-Pass Filter\". Exactly what do these do, and what are the algorithms for implementing them?\n"
},
{
"from": "gpt",
"value": "High-Pass Filters (HPF) and ... |
I have a WSI installer package that I'm using to install my application. The application itself can be run by a normal user, but I have a configuration app that should only be run by a system administrator. Thus, I don't want it to appear in the Start Menu for all users, just for the administrator.
Is there any way t... | Yes, you can control the visibility of shortcuts in the Start Menu (or other locations) depending on whether the user is an administrator or a standard user when using the Windows Installer (MSI) technology.
Here’s how you can achieve this:
1. **Using Different Shortcut Locations**: You can create shortcuts in differ... | 9,199 | [
{
"from": "human",
"value": "I have a WSI installer package that I'm using to install my application. The application itself can be run by a normal user, but I have a configuration app that should only be run by a system administrator. Thus, I don't want it to appear in the Start Menu for all users, just ... |
For those of you familiar with Gallio, what Advantages and Disadvantages have you experienced using this tool, a so-called Test Automation Platform?
| Gallio is a test automation platform that offers a comprehensive framework for managing and executing tests across various test types. Here are some advantages and disadvantages based on user experiences and feedback:
### Advantages of Gallio:
1. **Unified Test Framework**: Gallio supports multiple testing frameworks... | 7,618 | [
{
"from": "human",
"value": "For those of you familiar with Gallio, what Advantages and Disadvantages have you experienced using this tool, a so-called Test Automation Platform?\n"
},
{
"from": "gpt",
"value": "Gallio is a test automation platform that offers a comprehensive framework for managi... |
Is it possible to have XML-embedded JavaScript executed to assist in client-side (browser-based) XSL transformations? How is it done and how official is it?
Microsoft's XML DOM objects allow this on the server-side (i.e. in ASP/ASP.NET).
Clarification: I do not mean HTML DOM scripting performed after the document is t... | Yes, it is possible to embed JavaScript in XSLT stylesheets to execute JavaScript code during the transformation process, but this capability is not standardized and is not widely supported across different XSLT processors. The approach you're asking about generally relies on specific implementations or extensions rath... | 5,787 | [
{
"from": "human",
"value": "Is it possible to have XML-embedded JavaScript executed to assist in client-side (browser-based) XSL transformations? How is it done and how official is it?\nMicrosoft's XML DOM objects allow this on the server-side (i.e. in ASP/ASP.NET).\nClarification: I do not mean HTML DOM ... |
I have a very large code base that contains extensive unit tests (using CppUnit). I need to work out what percentage of the code is exercised by these tests, and (ideally) generate some sort of report that tells me on a per-library or per-file basis, how much of the code was exercised.
Here's the kicker: this has to ru... | To achieve code coverage reporting for a large C++ codebase using CppUnit, you can use a combination of tools that support code coverage analysis. Below are some recommendations that fit your requirements for unattended execution, cross-platform compatibility (Windows and Unix-like systems), and integration with CppUni... | 5,989 | [
{
"from": "human",
"value": "I have a very large code base that contains extensive unit tests (using CppUnit). I need to work out what percentage of the code is exercised by these tests, and (ideally) generate some sort of report that tells me on a per-library or per-file basis, how much of the code was exe... |
I'm tearing my hair out with this one. If I start a block comment /* in VS.NET 2005+ then carriage return, Visual Studio insists that I have another asterisk *. I know there's an option to turn this off but I just can't find it. Anyone know how to turn this feature off?
| In Visual Studio, the behavior you're experiencing is due to the automatic insertion of the closing comment syntax when you start a block comment (`/*`). To turn off this feature, you can disable the automatic formatting options.
Here are the steps you can follow to disable this behavior in Visual Studio 2005 and late... | 9,169 | [
{
"from": "human",
"value": "I'm tearing my hair out with this one. If I start a block comment /* in VS.NET 2005+ then carriage return, Visual Studio insists that I have another asterisk *. I know there's an option to turn this off but I just can't find it. Anyone know how to turn this feature off?\n"
},
... |
In Python specifically, how do variables get shared between threads?
Although I have used threading.Thread before I never really understood or saw examples of how variables got shared. Are they shared between the main thread and the children or only among the children? When would I need to use thread local storage to ... | In Python, variables are shared among threads because they all run within the same memory space of the process. This means that any mutable data structures (like lists, dictionaries, or instances of user-defined classes) can be accessed and modified by any thread. In contrast, immutable types (like integers and strings... | 8,595 | [
{
"from": "human",
"value": "In Python specifically, how do variables get shared between threads?\nAlthough I have used threading.Thread before I never really understood or saw examples of how variables got shared. Are they shared between the main thread and the children or only among the children? When wo... |
What is the difference between Introspection and Reflection in .NET
| In .NET, both introspection and reflection are concepts related to examining and interacting with types and objects at runtime, but they are often used in slightly different contexts and have different implications. Here’s a breakdown of the differences:
### Introspection
- **Definition**: Introspection refers to the... | 8,371 | [
{
"from": "human",
"value": "What is the difference between Introspection and Reflection in .NET\n"
},
{
"from": "gpt",
"value": "In .NET, both introspection and reflection are concepts related to examining and interacting with types and objects at runtime, but they are often used in slightly di... |
I'm rewriting an old application and use this as a good opportunity to try out C# and .NET development (I usually do a lot of plug-in stuff in C).
The application is basically a timer collecting data. It has a start view with a button to start the measurement. During the measurement the app has five different views dep... | When designing a C# and .NET application, especially with a user interface that needs to switch between different views, it's essential to consider maintainability, performance, and user experience. Here are some insights on each of your proposed ideas, along with a recommendation:
### 1. Use one form and hide and sho... | 3,764 | [
{
"from": "human",
"value": "I'm rewriting an old application and use this as a good opportunity to try out C# and .NET development (I usually do a lot of plug-in stuff in C).\nThe application is basically a timer collecting data. It has a start view with a button to start the measurement. During the measur... |
Pretty basic question, I'm trying to write a regex in Vim to match any phrase starting with "abc " directly followed by anything other than "defg".
I've used "[^defg]" to match any single character other than d, e, f or g.
My first instinct was to try /abc [^\(defg\)] or /abc [^\<defg\>] but neither one of those works... | To create a regex in Vim that matches any phrase starting with "abc " directly followed by anything that is not "defg" as a whole, you need to ensure that you are checking the first character that follows "abc ".
Here’s how you can construct your regex:
```vim
/abc \([^d]\|d[^e]\|de[^f]\|def[^g]\)
```
### Explanati... | 9,886 | [
{
"from": "human",
"value": "Pretty basic question, I'm trying to write a regex in Vim to match any phrase starting with \"abc \" directly followed by anything other than \"defg\". \nI've used \"[^defg]\" to match any single character other than d, e, f or g.\nMy first instinct was to try /abc [^\\(defg\\)]... |
I am writing a batch file script using Windows command-line environment and want to change each occurrence of some text in a file (ex. "FOO") with another (ex. "BAR"). What is the simplest way to do that? Any built in functions?
| In a Windows batch file, there is no built-in command for directly replacing text in files like you might find in scripting languages such as Python or PowerShell. However, you can achieve text replacement by using a combination of the `findstr` and `for` commands, along with redirection to create a new file with the m... | 8,144 | [
{
"from": "human",
"value": "I am writing a batch file script using Windows command-line environment and want to change each occurrence of some text in a file (ex. \"FOO\") with another (ex. \"BAR\"). What is the simplest way to do that? Any built in functions?\n"
},
{
"from": "gpt",
"value": "I... |
default is 49
how to edit to higher?
| To help you adjust the default value from 49 to a higher number, I need a bit more context. Are you referring to a configuration file, a programming environment, or perhaps a setting in an application? Here are a few common scenarios:
### If You're Editing a Configuration File:
1. **Locate the Configuration File**: Fi... | 7,739 | [
{
"from": "human",
"value": "default is 49\nhow to edit to higher?\n"
},
{
"from": "gpt",
"value": "To help you adjust the default value from 49 to a higher number, I need a bit more context. Are you referring to a configuration file, a programming environment, or perhaps a setting in an applica... |
Are there any tools to facilitate a migration from Sourcegear's Vault to Subversion?
I'd really prefer an existing tool or project (I'll buy!).
Requirements:
One-time migration only
Full history with comments
Optional:
Some support for labels/branches/tags
Relatively speedy. It can take hours but not days.
Cost if a... | Migrating from SourceGear's Vault to Subversion (SVN) can be a bit complex due to differences in how both systems handle versioning, branches, and tags. However, there are some tools and strategies you can consider to facilitate this migration. Below are some potential options based on your requirements:
### Tools for... | 7,680 | [
{
"from": "human",
"value": "Are there any tools to facilitate a migration from Sourcegear's Vault to Subversion?\nI'd really prefer an existing tool or project (I'll buy!).\nRequirements:\n\nOne-time migration only\nFull history with comments\n\nOptional:\n\nSome support for labels/branches/tags\nRelativel... |
I can use DCOMCNFG to disable remote launch on my DCOM application, but I would like to do this programatically. I looked at CoInitializeSecurity, but that does not seem to do it. Anyone done this?
I am using Delphi BTW.
| To programmatically configure DCOM settings in Delphi, specifically to disable remote launch permissions for a DCOM application, you'll typically need to manipulate the security settings associated with that DCOM application. While `CoInitializeSecurity` allows you to set certain security parameters for your applicatio... | 8,114 | [
{
"from": "human",
"value": "I can use DCOMCNFG to disable remote launch on my DCOM application, but I would like to do this programatically. I looked at CoInitializeSecurity, but that does not seem to do it. Anyone done this?\nI am using Delphi BTW.\n"
},
{
"from": "gpt",
"value": "To programma... |
If my email id receives an email from a particular sender, can I ask sendmail to trigger a different program and pass on the newly arrived email to it for further processing? This is similar to filters in gmail. Wait for some email to arrive, see if it matches the criteria and take some action if it does.
| Yes, you can configure Sendmail (or other mail transfer agents) to trigger an external program when a new email is received. This is typically done using procmail or similar mail filtering tools, which can parse incoming emails and execute commands based on specific criteria.
### Using Procmail with Sendmail
1. **Ins... | 7,173 | [
{
"from": "human",
"value": "If my email id receives an email from a particular sender, can I ask sendmail to trigger a different program and pass on the newly arrived email to it for further processing? This is similar to filters in gmail. Wait for some email to arrive, see if it matches the criteria and t... |
What is the easiest way to merge XML from two distinct DOM Documents? Is there a way other than using the Canonical DataReader approach and then messing with the outputted DOM. What I basically want is to AppendChild to XmlElements without getting: The node to be inserted is from a different document context. Here i... | The error you're encountering, `The node to be inserted is from a different document context`, occurs because you cannot directly append nodes from one `XmlDocument` to another; they belong to different document contexts.
To merge XML from two distinct `XmlDocument` instances without running into this issue, you'll ne... | 7,828 | [
{
"from": "human",
"value": "What is the easiest way to merge XML from two distinct DOM Documents? Is there a way other than using the Canonical DataReader approach and then messing with the outputted DOM. What I basically want is to AppendChild to XmlElements without getting: The node to be inserted is f... |
There is a case where a map will be constructed, and once it is initialized, it will never be modified again. It will however, be accessed (via get(key) only) from multiple threads. Is it safe to use a java.util.HashMap in this way?
(Currently, I'm happily using a java.util.concurrent.ConcurrentHashMap, and have no m... | Yes, it is safe to use a `java.util.HashMap` in the scenario you described, where the map is constructed, initialized, and then never modified again. Once a `HashMap` has been initialized and is only accessed using the `get(key)` method, there are no concurrency issues involved, as long as you ensure that the map is co... | 8,936 | [
{
"from": "human",
"value": "There is a case where a map will be constructed, and once it is initialized, it will never be modified again. It will however, be accessed (via get(key) only) from multiple threads. Is it safe to use a java.util.HashMap in this way?\n(Currently, I'm happily using a java.util.c... |
Pascal's rule on counting the subset's of a set works great, when the set contains unique entities.
Is there a modification to this rule for when the set contains duplicate items?
For instance, when I try to find the count of the combinations of the letters A,B,C,D, it's easy to see that it's 1 + 4 + 6 + 4 + 1 (from Pa... | To understand how to count subsets of a multiset (a set with duplicate elements), you can modify the approach from Pascal's Triangle, which applies to sets with unique elements.
Pascal's Triangle counts the number of combinations based on the binomial coefficient \( C(n, k) \), which gives the number of ways to choose... | 8,394 | [
{
"from": "human",
"value": "Pascal's rule on counting the subset's of a set works great, when the set contains unique entities.\nIs there a modification to this rule for when the set contains duplicate items?\nFor instance, when I try to find the count of the combinations of the letters A,B,C,D, it's easy ... |
My application correctly handles different kind of character sets, but only internally - when it comes to displaying text in standard WinForms labels und textboxes, it seems to have problems with chinese characters.
The problem seems to be the font used (Tahoma), because when I copy&paste the text, or view it in the de... | Displaying Chinese characters correctly in a WinForms application requires that the font used supports the necessary glyphs for those characters. Since Tahoma does not support Chinese characters, the text does not appear correctly when rendered in that font.
Here are several strategies you can consider:
### 1. Use a ... | 8,237 | [
{
"from": "human",
"value": "My application correctly handles different kind of character sets, but only internally - when it comes to displaying text in standard WinForms labels und textboxes, it seems to have problems with chinese characters.\nThe problem seems to be the font used (Tahoma), because when I... |
how can i create an application to read all my browser (firefox) history?
i noticed that i have in
C:\Users\user.name\AppData\Local\Mozilla\Firefox\Profiles\646vwtnu.default
what looks like a sqlite database (urlclassifier3.sqlite) but i don't know if its really what is used to store de history information.
i searche... | To create an application that reads your Firefox browser history, you can indeed work with the SQLite databases that Firefox uses to store various types of data, including history. The specific file you’re interested in for browsing history is called `places.sqlite`, not `urlclassifier3.sqlite`.
Here’s a step-by-step ... | 6,788 | [
{
"from": "human",
"value": "how can i create an application to read all my browser (firefox) history?\ni noticed that i have in \nC:\\Users\\user.name\\AppData\\Local\\Mozilla\\Firefox\\Profiles\\646vwtnu.default\nwhat looks like a sqlite database (urlclassifier3.sqlite) but i don't know if its really wha... |
I'm about to start a project for a customer who wants CMS-like functionality. They want users to be able to log in, modify a profile, and a basic forum. They also wish to be able to submit things to a front page.
Is there a framework or barebones CMS that I could expand on or tailor to my needs? I don't need anything a... | Based on your requirements for a lightweight CMS or framework that can be easily customized for user login, profile management, basic forum functionality, and front-page submissions, here are a few options you might consider:
### 1. **OctoberCMS**
- **Overview:** Built on Laravel, OctoberCMS is a modular and developer... | 4,722 | [
{
"from": "human",
"value": "I'm about to start a project for a customer who wants CMS-like functionality. They want users to be able to log in, modify a profile, and a basic forum. They also wish to be able to submit things to a front page.\nIs there a framework or barebones CMS that I could expand on or t... |
Hi were can I find training videos for MySQL ?
| You can find training videos for MySQL on various platforms. Here are some popular options:
1. **YouTube**: There are countless channels dedicated to programming and database management that offer free tutorials on MySQL. Some recommended channels include "Traversy Media," "Academind," and "freeCodeCamp."
2. **Udemy*... | 9,874 | [
{
"from": "human",
"value": "Hi were can I find training videos for MySQL ? \n"
},
{
"from": "gpt",
"value": "You can find training videos for MySQL on various platforms. Here are some popular options:\n\n1. **YouTube**: There are countless channels dedicated to programming and database managem... |
I want to put songs on a web page and have a little play button, like you can see on Last.fm or Pandora. There can be multiple songs listed on the site, and if you start playing a different song with one already playing, it will pause the first track and begin playing the one you just clicked on. I think they use Flash... | Creating a web-based audio player that allows for multiple songs with play and pause functionality is certainly possible with modern web technologies without relying on Flash, as it is now deprecated in most browsers. Instead, you can achieve this using HTML5, JavaScript, and CSS. HTML5 provides a native `<audio>` elem... | 5,076 | [
{
"from": "human",
"value": "I want to put songs on a web page and have a little play button, like you can see on Last.fm or Pandora. There can be multiple songs listed on the site, and if you start playing a different song with one already playing, it will pause the first track and begin playing the one yo... |
We have 18 databases that should have identical schemas, but don't. In certain scenarios, a table was added to one, but not the rest. Or, certain stored procedures were required in a handful of databases, but not the others. Or, our DBA forgot to run a script to add views on all of the databases.
What is the best wa... | Maintaining synchronization of database schemas across multiple instances can be a challenging task, especially when databases are independently managed and updated. However, there are several strategies and tools that can help streamline this process. Here’s a comprehensive approach:
### 1. **Version Control for Data... | 9,218 | [
{
"from": "human",
"value": "We have 18 databases that should have identical schemas, but don't. In certain scenarios, a table was added to one, but not the rest. Or, certain stored procedures were required in a handful of databases, but not the others. Or, our DBA forgot to run a script to add views on ... |
I am working on a small intranet site for a small company, where user should be able to post. I have imagined a very simple authentication mechanism where people just enter their email address, and gets sent a unique login url, that sets a cookie that will always identify them for future requests.
In my template setup,... | You can achieve this in a clean and maintainable way by using Django's context processors. A context processor is a Python function that takes a request object as an argument and returns a dictionary that gets added to the context of your templates.
Here’s how to set it up:
1. **Create a Context Processor**: You can... | 7,052 | [
{
"from": "human",
"value": "I am working on a small intranet site for a small company, where user should be able to post. I have imagined a very simple authentication mechanism where people just enter their email address, and gets sent a unique login url, that sets a cookie that will always identify them f... |
I'm running WCSF Feb 2008 along with Enterprise Library 3.1 and noticed that randomly I get the "fun"
Could not load file or assembly Microsoft.Practices.EnterpriseLibrary.Common, Version=3.1.0.0, Culture=neutral, Public ... The located assembly's manifest definition does not match the assembly reference.
Usually this... | The issue you're encountering with the error message "Could not load file or assembly Microsoft.Practices.EnterpriseLibrary.Common, Version=3.1.0.0" can often be attributed to a few common causes. Since you've mentioned that the error occurs intermittently and sometimes resolves itself upon subsequent attempts, this ad... | 7,153 | [
{
"from": "human",
"value": "I'm running WCSF Feb 2008 along with Enterprise Library 3.1 and noticed that randomly I get the \"fun\" \nCould not load file or assembly Microsoft.Practices.EnterpriseLibrary.Common, Version=3.1.0.0, Culture=neutral, Public ... The located assembly's manifest definition does no... |
I'm considering Altova MapForce (or something similar) to produce either XSLT and/or a Java or C# class to do the translation. Today, we pull data right out of the database and manually build an XML string that we post to a webservice.
Should it be db -> (internal)XML -> XSLT -> (External)XML? What do you folks do out... | Your approach of using Altova MapForce or a similar tool to convert data from a database into XML format before sending it to a web service is valid and can streamline your processes. However, there are multiple ways to structure your workflow, and the best approach depends on your specific requirements, including scal... | 8,631 | [
{
"from": "human",
"value": "I'm considering Altova MapForce (or something similar) to produce either XSLT and/or a Java or C# class to do the translation. Today, we pull data right out of the database and manually build an XML string that we post to a webservice. \nShould it be db -> (internal)XML -> XSLT ... |
I often plug pre-configured lambdas into enumerable methods like 'map', 'select' etc.
but the behavior of 'inject' seems to be different.
e.g. with
mult4 = lambda {|item| item * 4 }
then
(5..10).map &mult4
gives me
[20, 24, 28, 32, 36, 40]
However, if I make a 2-parameter lambda for use with an inject like so,
multL... | The behavior you're observing with the `inject` method is due to how Ruby handles blocks and lambdas in relation to method arguments.
### Understanding `inject`
The `inject` method can be called in two ways:
1. `enumerable.inject(initial_value) { |accumulator, element| ... }`
2. `enumerable.inject(initial_value, &blo... | 9,735 | [
{
"from": "human",
"value": "I often plug pre-configured lambdas into enumerable methods like 'map', 'select' etc.\nbut the behavior of 'inject' seems to be different.\ne.g. with\nmult4 = lambda {|item| item * 4 }\n\nthen\n(5..10).map &mult4\n\ngives me\n[20, 24, 28, 32, 36, 40]\n\nHowever, if I make a 2-pa... |
Is it possible for SelectNodes() called on an XmlDocument to return null?
My predicament is that I am trying to reach 100% unit test code coverage; ReSharper tells me that I need to guard against a null return from the SelectNodes() method, but I can see no way that an XmlDocument can return null (and therefore, no way... | In .NET, the `SelectNodes()` method of an `XmlDocument` returns an `XmlNodeList`, not `null`. However, it can return an empty `XmlNodeList` if no nodes match the specified XPath expression. This might be the source of confusion when considering unit test coverage.
When you call `SelectNodes()` with an XPath that does ... | 7,619 | [
{
"from": "human",
"value": "Is it possible for SelectNodes() called on an XmlDocument to return null?\nMy predicament is that I am trying to reach 100% unit test code coverage; ReSharper tells me that I need to guard against a null return from the SelectNodes() method, but I can see no way that an XmlDocum... |
Does anybody know, if closures will be in Java 7?
| No, closures were not included in Java 7. However, Java 8 introduced lambda expressions, which provide functionality similar to closures. Lambda expressions allow you to create anonymous functions and enable a more functional programming style in Java. If you're looking for closure-like features in Java, you'll want to... | 13,261 | [
{
"from": "human",
"value": "Does anybody know, if closures will be in Java 7? \n"
},
{
"from": "gpt",
"value": "No, closures were not included in Java 7. However, Java 8 introduced lambda expressions, which provide functionality similar to closures. Lambda expressions allow you to create anonym... |
We are working on a large project with a measure of new/modified GUI functionality. We've found in the past that we often introduced new problems in related code when adding new functionality.
We have non-technical users perform testing, but they often miss parts and allow bugs to slip through.
Are there any best prac... | Certainly! Organizing UI testing for a WinForms project and automating it can significantly improve the reliability of your application and help catch bugs early in the development cycle. Here are some best practices and strategies for both manual and automated UI testing:
### Best Practices for Organizing UI Testing
... | 7,145 | [
{
"from": "human",
"value": "We are working on a large project with a measure of new/modified GUI functionality. We've found in the past that we often introduced new problems in related code when adding new functionality.\nWe have non-technical users perform testing, but they often miss parts and allow bug... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.