instruction stringlengths 14 27.6k | completion stringlengths 3 38.3k | __original_row_idx int64 0 50k | conversations listlengths 2 2 |
|---|---|---|---|
We are putting up a company blog at companyname.com/blog but for now the blog is a Wordpress installation that lives on a different server (blog.companyname.com).
The intention is to have the blog and web site both on the same server in a month or two, but that leaves a problem in the interim.
At the moment I am using... | To achieve the behavior you're looking for, where the URL in the address bar remains `http://companyname.com/blog/article-name` while the content is served from `http://blog.companyname.com/article-name`, you can set up a reverse proxy. A reverse proxy allows you to fetch content from another server while keeping the o... | 12,709 | [
{
"from": "human",
"value": "We are putting up a company blog at companyname.com/blog but for now the blog is a Wordpress installation that lives on a different server (blog.companyname.com). \nThe intention is to have the blog and web site both on the same server in a month or two, but that leaves a proble... |
Can you use windows hooks or other methods to do code injection with c#? I've seen lots of things about code injection but all of them are done in C/C++. I don't know either of those languages and have a really hard time translating. Does anyone have any ideas on how to do this?
| Code injection, especially in the context of Windows applications, typically involves manipulating processes or altering their execution flow. While most examples you might find are in C or C++, you can achieve similar functionality in C# using techniques like Windows hooks, but there are limitations to be aware of. He... | 5,379 | [
{
"from": "human",
"value": "Can you use windows hooks or other methods to do code injection with c#? I've seen lots of things about code injection but all of them are done in C/C++. I don't know either of those languages and have a really hard time translating. Does anyone have any ideas on how to do this?... |
Can I run a 64-bit VMware image on a 32-bit machine?
I've googled this, but there doesn't seem to be a conclusive answer.
I know that it would have to be completely emulated and would run like a dog - but slow performance isn't necessarily an issue as I'm just interested in testing some of my background services code o... | Running a 64-bit VMware image on a 32-bit machine is not feasible, regardless of performance considerations. A 32-bit machine lacks the necessary hardware support to execute 64-bit code, which is required for a 64-bit guest operating system. Here are the key points to consider:
1. **CPU Architecture**: A 32-bit CPU do... | 14,941 | [
{
"from": "human",
"value": "Can I run a 64-bit VMware image on a 32-bit machine?\nI've googled this, but there doesn't seem to be a conclusive answer.\nI know that it would have to be completely emulated and would run like a dog - but slow performance isn't necessarily an issue as I'm just interested in te... |
In an ASP.NET web application with a lot of HTML pages, a lot of inline JavaScript functions are accumulating. What is a good plan for organizing them into external files? Most of the functions are particular to the page for which they are written, but a few are relevant to the entire application.
A single file could... | Organizing your JavaScript code in an ASP.NET web application is important for maintainability, performance, and scalability. Here's a structured plan for managing your JavaScript functions, particularly when some are specific to individual pages while others are general across the application:
### 1. **General Struct... | 11,688 | [
{
"from": "human",
"value": "In an ASP.NET web application with a lot of HTML pages, a lot of inline JavaScript functions are accumulating. What is a good plan for organizing them into external files? Most of the functions are particular to the page for which they are written, but a few are relevant to th... |
I'm writing a custom file selection component. In my UI, first the user clicks a button, which pops a JFileChooser; when it is closed, the absolute path of the selected file is written to a JTextField.
The problem is, absolute paths are usually long, which causes the text field to enlarge, making its container too wide... | To prevent a `JTextField` from expanding when long text is inputted, you can use a combination of layout constraints and properties to keep the field at a fixed width while ensuring that it doesn't grow excessively. Here are a few steps you can take to achieve the desired behavior:
1. **Set a Preferred Size**: Use the... | 11,182 | [
{
"from": "human",
"value": "I'm writing a custom file selection component. In my UI, first the user clicks a button, which pops a JFileChooser; when it is closed, the absolute path of the selected file is written to a JTextField.\nThe problem is, absolute paths are usually long, which causes the text field... |
I have an XPath expression which provides me a sequence of values like the one below:
1 2 2 3 4 5 5 6 7
This is easy to convert to a sequence of unique values 1 2 3 4 5 6 7 using distinct-values(). However, what I want to extract is the list of duplicate values = 2 5. I can't think of an easy way to do this. Can anyone... | To extract the list of duplicate values from a sequence using XPath, you can use a combination of the `distinct-values()` function, the `count()` function, and some filtering. Here’s a general approach to achieve this:
1. First, get the distinct values from the sequence.
2. Then, for each distinct value, count how man... | 12,573 | [
{
"from": "human",
"value": "I have an XPath expression which provides me a sequence of values like the one below:\n1 2 2 3 4 5 5 6 7\nThis is easy to convert to a sequence of unique values 1 2 3 4 5 6 7 using distinct-values(). However, what I want to extract is the list of duplicate values = 2 5. I can't ... |
This is a nasty one for me... I'm a PHP guy working in Java on a JSP project. I know how to do what I'm attempting through too much code and a complete lack of finesse.
I'd prefer to do it right. Here is the situation:
I'm writing a small display to show customers what days they can water their lawns based on thei... | Sure! It sounds like you're trying to structure your code in a way that allows you to easily retrieve watering days based on the customer's group and the current season. Given your background in PHP, let's translate that idea into Java, while keeping it neat and efficient.
We'll create a Java class that defines the sc... | 4,451 | [
{
"from": "human",
"value": "This is a nasty one for me... I'm a PHP guy working in Java on a JSP project. I know how to do what I'm attempting through too much code and a complete lack of finesse. \nI'd prefer to do it right. Here is the situation:\nI'm writing a small display to show customers what da... |
Does your software handle newline characters from other systems?
Linux/BSD linefeed ^J 10 x0A
Windows/IBM return linefeed ^M^J 13 10 x0D x0A
old Macs return ^M 13 x0D
others?
For reasons of insanity, I am going with using the Linux version of the newline character in my text ... | Handling newline characters from different operating systems can indeed be tricky, especially if you're working across platforms like Linux, Windows, and older Macs. If you are using Linux-style line endings (`\n` or LF) for your text files but need to ensure compatibility with Windows systems, here are some strategies... | 11,142 | [
{
"from": "human",
"value": "Does your software handle newline characters from other systems?\nLinux/BSD linefeed ^J 10 x0A\nWindows/IBM return linefeed ^M^J 13 10 x0D x0A\nold Macs return ^M 13 x0D\nothers?\n\nFor reasons of insanity, I am going with using the Lin... |
I've been thinking about this object oriented design question for a while now and have unable to come up with a satisfactory solution, so thought I'd throw it open to the crowds here for some opinions.
I have a Game class that represents a turn based board game, we can assume it's similar to Monopoly for the purposes o... | Your design problem is quite common in object-oriented programming, particularly when trying to balance different types of player interactions while adhering to the principles of inheritance and polymorphism. Here are a few approaches you can consider to solve the problem while maintaining a clean design:
### 1. Strat... | 10,345 | [
{
"from": "human",
"value": "I've been thinking about this object oriented design question for a while now and have unable to come up with a satisfactory solution, so thought I'd throw it open to the crowds here for some opinions.\nI have a Game class that represents a turn based board game, we can assume i... |
What's the best way, using SQL, to check the maximum number of connections that is allowed for an Oracle database? In the end, I would like to show the current number of sessions and the total number allowed, e.g. "Currently, 23 out of 80 connections are used".
| To check the maximum number of connections allowed in an Oracle database and to find the current number of active sessions, you can execute a couple of SQL queries.
1. **Maximum number of connections**: This is usually defined by the parameter `PROCESSES`. You can query it from the `V$PARAMETER` view.
2. **Current nu... | 14,166 | [
{
"from": "human",
"value": "What's the best way, using SQL, to check the maximum number of connections that is allowed for an Oracle database? In the end, I would like to show the current number of sessions and the total number allowed, e.g. \"Currently, 23 out of 80 connections are used\".\n"
},
{
... |
I have a winforms application where users will be creating stock items, and a time of creation there are a number of different things that need to happen.
I think the UI for this should probably be a wizard of some kind, but I'm unsure as to the best way to achieve this. I have seen a couple of 3rd party Wizard control... | Creating a wizard-style UI in a WinForms application can enhance user experience by guiding users through complex processes, such as creating stock items. Here are some approaches that you can consider for implementing a wizard in your WinForms application, along with their pros and cons:
### 1. **Using a Third-Party ... | 6,711 | [
{
"from": "human",
"value": "I have a winforms application where users will be creating stock items, and a time of creation there are a number of different things that need to happen.\nI think the UI for this should probably be a wizard of some kind, but I'm unsure as to the best way to achieve this. I have... |
This question is about the difference between ReadWrite and NonStrictReadWrite cache concurrency strategies for NHibernate's second level cache.
As I understand it, the difference between these two strategies is relevant when you have a distributed replicated cache - nonstrict won't guarantee that one cache has the exa... | The distinction between **ReadWrite** and **NonStrictReadWrite** cache concurrency strategies in NHibernate is indeed more pronounced in the context of distributed caches, but it also has implications for single caches and distributed partitioned caches. Let's explore the differences and their relevance in those scenar... | 10,609 | [
{
"from": "human",
"value": "This question is about the difference between ReadWrite and NonStrictReadWrite cache concurrency strategies for NHibernate's second level cache.\nAs I understand it, the difference between these two strategies is relevant when you have a distributed replicated cache - nonstrict ... |
Is it possible to over interface? when designing an system now, I will start from interfaces and progressively write unit tests along with the interfaces until I have a pattern that works well.. I'll move onto writing some concrete classes and set the unit tests up against these..
Now I'm someone who loves interfaces, ... | Your enthusiasm for using interfaces in design is commendable, as they can significantly enhance modularity, testability, and the ability to swap implementations without affecting consumers. However, like any design principle, it's essential to strike a balance between flexibility and complexity.
### Benefits of Using... | 9,768 | [
{
"from": "human",
"value": "Is it possible to over interface? when designing an system now, I will start from interfaces and progressively write unit tests along with the interfaces until I have a pattern that works well.. I'll move onto writing some concrete classes and set the unit tests up against these... |
While implementing an applicative server and its client-side libraries in C++, I am having trouble finding a clean and reliable way to stop client processes on server shutdown on Windows.
Assuming the server and its clients run under the same user, the requirements are:
the solution should work in the following cases:... | The problem of cleanly shutting down client processes when a server shuts down is complex, especially under Windows, due to the various scenarios you're dealing with. Here are some potential approaches you might consider:
### Approach 1: Use Windows Job Objects
Windows Job Objects can be used to group processes and a... | 7,549 | [
{
"from": "human",
"value": "While implementing an applicative server and its client-side libraries in C++, I am having trouble finding a clean and reliable way to stop client processes on server shutdown on Windows.\nAssuming the server and its clients run under the same user, the requirements are:\n\nthe ... |
We're in the process of developing a measurement device that will be running
CE 6.0 with CF 3.5 on x86 embedded hardware, a PC is used to control the
device and is connected with it using ethernet.
We would like to communicate using interfaces (using DCOM (we know it is not
supported by default on CE6), .NET Remotin... | Given your requirements for communication between the embedded device running Windows CE 6.0 and the controlling PC, as well as the constraints you have mentioned (specifically the lack of DCOM support in CE 6.0), let's evaluate the possible options:
### 1. **.NET Remoting**
.NET Remoting allows communication between ... | 13,064 | [
{
"from": "human",
"value": "We're in the process of developing a measurement device that will be running \nCE 6.0 with CF 3.5 on x86 embedded hardware, a PC is used to control the \ndevice and is connected with it using ethernet.\nWe would like to communicate using interfaces (using DCOM (we know it is not... |
I have a URI here in which a simple document.cookie query through the console is resulting in three cookies being displayed. I verified this with trivial code such as the following as well:
var cookies = document.cookie.split(';');
console.log(cookies.length);
The variable cookies does indeed come out to the number 3... | When you're seeing discrepancies between the number of cookies reported by `document.cookie` in the console and what a tool like Web Developer or Firebug is showing, there are a few factors to consider that could lead to this confusion:
1. **HttpOnly Cookies**: Cookies that are marked with the `HttpOnly` attribute can... | 11,450 | [
{
"from": "human",
"value": "I have a URI here in which a simple document.cookie query through the console is resulting in three cookies being displayed. I verified this with trivial code such as the following as well:\nvar cookies = document.cookie.split(';'); \nconsole.log(cookies.length);\n\nThe variable... |
I've gotten used to the idea that if I want/need to use alpha-trans PNGs in a cross-browser manner, that I use a background image on a div and then, in IE6-only CSS, mark the background as "none" and include the proper "filter" argument.
Is there another way? A better way? Is there a way to do this with the img tag and... | Yes, there are ways to handle alpha transparency in PNG images across different browsers, including Internet Explorer 6, without relying solely on background images. While your current method using a `div` with a background image is a common approach, you can also use the `<img>` tag and achieve better compatibility wi... | 13,279 | [
{
"from": "human",
"value": "I've gotten used to the idea that if I want/need to use alpha-trans PNGs in a cross-browser manner, that I use a background image on a div and then, in IE6-only CSS, mark the background as \"none\" and include the proper \"filter\" argument.\nIs there another way? A better way? ... |
In Bash, how do I count the number of non-blank lines of code in a project?
| To count the number of non-blank lines of code in a project using Bash, you can use the `find` command in conjunction with `grep` and `wc`. This method allows you to traverse directories, find files of interest, and count lines that contain actual code (i.e., non-blank lines).
Here’s a common command to achieve this:
... | 12,622 | [
{
"from": "human",
"value": "In Bash, how do I count the number of non-blank lines of code in a project?\n"
},
{
"from": "gpt",
"value": "To count the number of non-blank lines of code in a project using Bash, you can use the `find` command in conjunction with `grep` and `wc`. This method allows... |
I've just installed MediaWiki on a web server. Obviously it needs lots of privileges during installation to set up its database correctly. Now that it's installed can I safely revoke some privileges (e.g. create table, drop table?) Or might it need to create more tables later (when they are first needed?) If not th... | After installing MediaWiki, it is generally safe to revoke some privileges from the database user that is used by MediaWiki. The installation process does require full privileges to create and modify database structures, but once the installation is complete, MediaWiki mainly requires permissions to read from and write... | 13,144 | [
{
"from": "human",
"value": "I've just installed MediaWiki on a web server. Obviously it needs lots of privileges during installation to set up its database correctly. Now that it's installed can I safely revoke some privileges (e.g. create table, drop table?) Or might it need to create more tables later... |
We are trying to duplicate one of our informix database on a test server, but without Informix expertise in house we can only guess what we need to do. I am learning this stuff on the fly myself and nowhere near the expertise level needed to operate Informix efficiently or even inefficiently. Anyhow...
We managed to ... | Duplicating an Informix database can be challenging, especially if you're unfamiliar with its workings. Below are steps you can follow to use the copied `.dat` and `.idx` files from your live Informix server to set up the database on your test server.
### Step 1: Prepare Your Environment
Make sure that your Informix D... | 7,488 | [
{
"from": "human",
"value": "We are trying to duplicate one of our informix database on a test server, but without Informix expertise in house we can only guess what we need to do. I am learning this stuff on the fly myself and nowhere near the expertise level needed to operate Informix efficiently or even... |
Is there a way to convert a HTML string into a Image .tiff file?
I am using C# .NET 3.5. The requirement is to give the user an option to fact a confirmation. The confirmation is created with XML and a XSLT. Typically it is e-mailed.
Is there a way I can take the HTML string generated by the transformation HTML strin... | To convert an HTML string to a TIFF image in C# .NET 3.5, you can use a combination of HTML rendering libraries and image manipulation libraries. Since you mentioned that 3rd party software is allowed, I'll provide a couple of options.
### Option 1: Use a HTML Renderer and Image Library
One way to achieve this is by u... | 6,324 | [
{
"from": "human",
"value": "Is there a way to convert a HTML string into a Image .tiff file?\nI am using C# .NET 3.5. The requirement is to give the user an option to fact a confirmation. The confirmation is created with XML and a XSLT. Typically it is e-mailed. \nIs there a way I can take the HTML string... |
Is it possible to use stored procedures for designing Reports in Report builder?
| Yes, it is possible to use stored procedures for designing reports in Microsoft Report Builder. Report Builder allows you to create reports that can pull data from various sources, including SQL Server databases. When using stored procedures, you can define a dataset within your report that calls the stored procedure t... | 13,779 | [
{
"from": "human",
"value": "Is it possible to use stored procedures for designing Reports in Report builder?\n"
},
{
"from": "gpt",
"value": "Yes, it is possible to use stored procedures for designing reports in Microsoft Report Builder. Report Builder allows you to create reports that can pull... |
More information from the Perl 6 Wikipedia entry
Junctions
Perl 6 introduces the concept of junctions: values that are composites of other values.[24] In the earliest days of Perl 6's design, these were called "superpositions", by analogy to the concept in quantum physics of quantum superpositions — waveforms that can ... | Junctions in Perl 6 (now known as Raku) are a powerful feature that enables developers to work with sets of values in a highly expressive manner. They allow for the creation of composite values that can represent multiple possibilities simultaneously, enhancing code readability and functionality. Below is a more detail... | 10,019 | [
{
"from": "human",
"value": "More information from the Perl 6 Wikipedia entry\nJunctions\nPerl 6 introduces the concept of junctions: values that are composites of other values.[24] In the earliest days of Perl 6's design, these were called \"superpositions\", by analogy to the concept in quantum physics of... |
Is there a way to manipulate the speed of the video playback? I'm especially interested in a way to slow down with frame blending, exactly like the function in Final Cut Pro.
| Yes, you can manipulate the speed of video playback and slow down videos with frame blending using various video editing software. Below are some popular options:
### 1. **Final Cut Pro**
Since you mentioned Final Cut Pro, here’s how you can slow down video with frame blending:
- Import your video into the timeline.
... | 11,773 | [
{
"from": "human",
"value": "Is there a way to manipulate the speed of the video playback? I'm especially interested in a way to slow down with frame blending, exactly like the function in Final Cut Pro. \n"
},
{
"from": "gpt",
"value": "Yes, you can manipulate the speed of video playback and sl... |
I have a WPF app with many list based controls in a window, which all are bound to different CollectionViews.
At the window level is there a way to get the current selected item for the currently in focus list based control? I know I can do this with some fairly trivial code by looking for the in focus element but doe... | WPF doesn't natively provide a property like `Window.CurrentSelectedDataItem` to directly retrieve the currently selected item from the focused list control. However, you can achieve this functionality by using some WPF concepts such as `Keyboard.FocusedElement` and data binding.
Here’s a way to implement this in your... | 10,798 | [
{
"from": "human",
"value": "I have a WPF app with many list based controls in a window, which all are bound to different CollectionViews.\nAt the window level is there a way to get the current selected item for the currently in focus list based control? I know I can do this with some fairly trivial code b... |
SELECT GETDATE()
Returns: 2008-09-22 15:24:13.790
I want that date part without the time part: 2008-09-22 00:00:00.000
How can I get that?
| To retrieve the date part of `GETDATE()` without the time part in SQL Server, you can use the `CAST` or `CONVERT` functions to change the datetime value to a date, and then you can convert it back to a datetime with the time part set to `00:00:00.000`. Here are a couple of methods to achieve that:
### Method 1: Using ... | 14,030 | [
{
"from": "human",
"value": "SELECT GETDATE()\n\nReturns: 2008-09-22 15:24:13.790\nI want that date part without the time part: 2008-09-22 00:00:00.000\nHow can I get that?\n"
},
{
"from": "gpt",
"value": "To retrieve the date part of `GETDATE()` without the time part in SQL Server, you can use ... |
Do you generally assume that toString() on any given object has a low cost (i.e. for logging)? I do. Is that assumption valid? If it has a high cost should that normally be changed? What are valid reasons to make a toString() method with a high cost? The only time that I get concerned about toString costs is when ... | The assumption that calling `toString()` on any given object has a low cost is a common one in many programming practices, especially for logging purposes. However, this assumption is not universally valid and can depend on several factors, including:
1. **Implementation Details**: The performance of `toString()` can ... | 7,955 | [
{
"from": "human",
"value": "Do you generally assume that toString() on any given object has a low cost (i.e. for logging)? I do. Is that assumption valid? If it has a high cost should that normally be changed? What are valid reasons to make a toString() method with a high cost? The only time that I ge... |
I'm attempting to do an AJAX call (via JQuery) that will initiate a fairly long process. I'd like the script to simply send a response indicating that the process has started, but JQuery won't return the response until the PHP script is done running.
I've tried this with a "close" header (below), and also with output b... | When you make an AJAX call in jQuery, it will wait for the server response before proceeding. This includes waiting for any long-running processes in your PHP script. What you want is to send a response back to the client immediately and then continue processing on the server side without holding up the response.
To ... | 11,810 | [
{
"from": "human",
"value": "I'm attempting to do an AJAX call (via JQuery) that will initiate a fairly long process. I'd like the script to simply send a response indicating that the process has started, but JQuery won't return the response until the PHP script is done running.\nI've tried this with a \"cl... |
I have to deal with text files in a motley selection of formats. Here's an example (Columns A and B are tab delimited):
A B
a Name1=Val1, Name2=Val2, Name3=Val3
b Name1=Val4, Name3=Val5
c Name1=Val6, Name2=Val7, Name3=Val8
The files could have headers or not, have mixed delimiting schemes, have columns with na... | You can use various command-line tools and scripting languages to extract and manipulate data from text files that have varying formats. Below are some tools and techniques that can be applied to your example and are also extensible to other cases.
### 1. Using `awk`
`awk` is a powerful text processing tool that can h... | 9,861 | [
{
"from": "human",
"value": "I have to deal with text files in a motley selection of formats. Here's an example (Columns A and B are tab delimited):\nA B\na Name1=Val1, Name2=Val2, Name3=Val3\nb Name1=Val4, Name3=Val5\nc Name1=Val6, Name2=Val7, Name3=Val8\n\nThe files could have headers or not, have... |
A few years ago we started playing around with XForms from the W3C for a web app which required hundreds of custom forms.
As they aren't currently supported natively by the major browsers, what parsers/tools are you using on your projects today?
I'm not really interested in plugins - this needs to be something server s... | While XForms has not gained widespread support in major browsers, several server-side tools and libraries can help you emulate XForms functionality. Here are some options you might consider for server-side processing of XForms:
1. **XForms Processor Libraries**:
- **Orbeon Forms**: Orbeon is one of the most popular... | 12,580 | [
{
"from": "human",
"value": "A few years ago we started playing around with XForms from the W3C for a web app which required hundreds of custom forms.\nAs they aren't currently supported natively by the major browsers, what parsers/tools are you using on your projects today?\nI'm not really interested in pl... |
I've seen a number of postgresql modules for python like pygresql, pypgsql, psyco. Most of them are Python DB API 2.0 compliant, some are not being actively developed anymore.
Which module do you recommend? Why?
| When it comes to interacting with PostgreSQL from Python, the most widely recommended and actively developed library is **Psycopg2**. Here are some reasons why it is generally preferred:
1. **Active Development**: Psycopg2 has a strong community and is actively maintained, ensuring that it stays up to date with the la... | 12,359 | [
{
"from": "human",
"value": "I've seen a number of postgresql modules for python like pygresql, pypgsql, psyco. Most of them are Python DB API 2.0 compliant, some are not being actively developed anymore.\nWhich module do you recommend? Why?\n"
},
{
"from": "gpt",
"value": "When it comes to inte... |
#include <iostream>
using namespace std;
int main()
{
double u = 0;
double w = -u;
cout << w << endl;
return 0;
}
Why does this great piece of code output -0 and not 0, as one would expect?
| The behavior you're observing in your code is due to how floating-point numbers are represented in computer systems, particularly with respect to the sign of zero.
In the code snippet you provided:
```cpp
#include <iostream>
using namespace std;
int main()
{
double u = 0;
double w = -u; // w is assigned the ... | 10,323 | [
{
"from": "human",
"value": "#include <iostream>\nusing namespace std;\n\nint main()\n{\n double u = 0;\n double w = -u;\n cout << w << endl;\n return 0;\n}\n\nWhy does this great piece of code output -0 and not 0, as one would expect?\n"
},
{
"from": "gpt",
"value": "The behavior yo... |
I'm setting up StructureMap and it seems like everything I want to do there are two ways to do it and it's unclear to me what the difference is between them. For instance, what's the difference between these two lines:
StructureMapConfiguration.ForRequestedType<IConsumer>().AddConcreteType<Consumer>();
StructureMapCo... | In StructureMap, there are indeed different methods to configure the way dependencies are resolved, and the differences can be subtle but important for achieving the intended behaviors in your dependency injection setup. Let's break down the specific methods you mentioned.
### Difference between `AddConcreteType` and ... | 12,237 | [
{
"from": "human",
"value": "I'm setting up StructureMap and it seems like everything I want to do there are two ways to do it and it's unclear to me what the difference is between them. For instance, what's the difference between these two lines:\nStructureMapConfiguration.ForRequestedType<IConsumer>().Ad... |
I want to obtain the current number of window handles and the system-wide window handle limit in C#. How do I go about this?
| To obtain the current number of window handles and the system-wide window handle limit in C#, you can use Windows API functions. The `User32.dll` library provides functions that can help you gather this information.
1. **Get the current number of window handles**: You can use the `EnumWindows` function to enumerate al... | 11,420 | [
{
"from": "human",
"value": "I want to obtain the current number of window handles and the system-wide window handle limit in C#. How do I go about this?\n"
},
{
"from": "gpt",
"value": "To obtain the current number of window handles and the system-wide window handle limit in C#, you can use Win... |
I want to change the Text of the browse button in the FileUpload Control (System.Web.UI.WebControls), instead of the [Browse...] text I want to use [...]
| To change the text of the "Browse..." button in the FileUpload control in ASP.NET Web Forms, you cannot do it directly through the `FileUpload` control itself, as the button is rendered by the browser and does not expose properties to change its text. However, you can achieve this by using CSS to hide the original butt... | 11,207 | [
{
"from": "human",
"value": "I want to change the Text of the browse button in the FileUpload Control (System.Web.UI.WebControls), instead of the [Browse...] text I want to use [...]\n"
},
{
"from": "gpt",
"value": "To change the text of the \"Browse...\" button in the FileUpload control in ASP.... |
I have an OpenGL ES game that I am hacking together. One part of it involves looking at a large "map-like" area and then double-tapping on one part to "zoom into" it. How would you use OpenGL ES to provide this effect (given that it may need to zoom in on different parts of the map).
I've heard of glScale and glO... | In OpenGL ES, achieving a zoom effect on a map involves modifying the projection matrix to change how the scene is rendered. Here’s how you can do it step-by-step using `glScale` and `glOrtho`, as well as handling the double-tap for zooming into a specific area.
### 1. Understanding Orthographic Projection
`glOrtho` ... | 8,226 | [
{
"from": "human",
"value": "I have an OpenGL ES game that I am hacking together. One part of it involves looking at a large \"map-like\" area and then double-tapping on one part to \"zoom into\" it. How would you use OpenGL ES to provide this effect (given that it may need to zoom in on different parts ... |
Several Linq.Enumerable functions take an IEqualityComparer<T>. Is there a convenient wrapper class that adapts a delegate(T,T)=>bool to implement IEqualityComparer<T>? It's easy enough to write one (if your ignore problems with defining a correct hashcode), but I'd like to know if there is an out-of-the-box solution.
... | As of my last update in October 2023, .NET does not provide a built-in adapter for directly converting a delegate of type `Func<T, T, bool>` to `IEqualityComparer<T>`. However, creating a custom implementation is straightforward. You'll need to implement the `IEqualityComparer<T>` interface and provide the delegate for... | 11,226 | [
{
"from": "human",
"value": "Several Linq.Enumerable functions take an IEqualityComparer<T>. Is there a convenient wrapper class that adapts a delegate(T,T)=>bool to implement IEqualityComparer<T>? It's easy enough to write one (if your ignore problems with defining a correct hashcode), but I'd like to know... |
I have created a web reference (Add Web Reference) from Visual Studio 2008 and strangely, I need to set the propertyNameFieldSpecified to true for all the fields I want to submit. Failure to do that and values are not passed back to the WCF Service.
I have read at several places that this was fixed in the RTM version ... | The behavior you are encountering, where you need to set `propertyNameFieldSpecified` to `true` for properties to be serialized and sent to the WCF service, is typically related to the way that the .NET Framework handles optional fields in XML serialization.
In WCF, when you create data contracts, properties that are ... | 14,114 | [
{
"from": "human",
"value": "I have created a web reference (Add Web Reference) from Visual Studio 2008 and strangely, I need to set the propertyNameFieldSpecified to true for all the fields I want to submit. Failure to do that and values are not passed back to the WCF Service. \nI have read at several plac... |
Should entities have behavior? or not?
Why or why not?
If not, does that violate Encapsulation?
| The question of whether entities should have behavior is a significant one in software design, particularly when considering object-oriented programming (OOP) principles such as encapsulation, abstraction, and modularity. Let's explore both perspectives:
### Entities Having Behavior
1. **Encapsulation**: When entitie... | 12,196 | [
{
"from": "human",
"value": "Should entities have behavior? or not?\nWhy or why not?\nIf not, does that violate Encapsulation?\n"
},
{
"from": "gpt",
"value": "The question of whether entities should have behavior is a significant one in software design, particularly when considering object-orie... |
I like HtmlControls because there is no HTML magic going on... the asp source looks similar to what the client sees.
I can't argue with the utility of GridView, Repeater, CheckBoxLists, etc, so I use them when I need that functionality.
Also, it looks weird to have code that mixes and matches:
<asp:Button id='btnOK' ... | When it comes to choosing between ASP.NET server controls (like `<asp:Button>`, `<asp:GridView>`, etc.) and HTML controls (like `<input>` or `<div>`), there isn't a strict "one-size-fits-all" answer. Instead, the choice should be informed by the specific needs of your application, your team's coding standards, and your... | 9,557 | [
{
"from": "human",
"value": "I like HtmlControls because there is no HTML magic going on... the asp source looks similar to what the client sees. \nI can't argue with the utility of GridView, Repeater, CheckBoxLists, etc, so I use them when I need that functionality. \nAlso, it looks weird to have code that... |
This question comes out of the discussion on tuples.
I started thinking about the hash code that a tuple should have.
What if we will accept KeyValuePair class as a tuple? It doesn't override the GetHashCode() method, so probably it won't be aware of the hash codes of it's "children"... So, run-time will call Object.G... | You're on the right track in your understanding of how `GetHashCode()` and `Equals()` are used in conjunction with dictionary keys in C#. Let's break down what happens in your code example and clarify how the `KeyValuePair` and dictionary work with regards to hashing and equality.
### Key Points:
1. **KeyValuePair St... | 11,399 | [
{
"from": "human",
"value": "This question comes out of the discussion on tuples.\nI started thinking about the hash code that a tuple should have. \nWhat if we will accept KeyValuePair class as a tuple? It doesn't override the GetHashCode() method, so probably it won't be aware of the hash codes of it's \"... |
I'd like to change the security attribute of a directory that InstallShield creates under the CSIDL_COMMON_APPDATA - can someone please advise on how to do that during the installation process?
It's a script-defined folder.
Thank you.
| Changing the security attributes of a directory created by InstallShield during the installation process can typically be accomplished using a custom action. Here’s a general approach you can take to modify the security attributes of the directory under `CSIDL_COMMON_APPDATA`:
### Steps to Change Security Attributes i... | 11,172 | [
{
"from": "human",
"value": "I'd like to change the security attribute of a directory that InstallShield creates under the CSIDL_COMMON_APPDATA - can someone please advise on how to do that during the installation process?\nIt's a script-defined folder.\nThank you.\n"
},
{
"from": "gpt",
"value"... |
I'm getting ORA-01031: insufficient privileges when creating a package my own schema. Shouldn't I have complete control over my schema. If this is not the case, what privileges does my schema need?
| The error message `ORA-01031: insufficient privileges` indicates that your user account does not have the necessary privileges to perform the operation you're trying to execute, even within your own schema.
In Oracle Database, the ability to create a package (or any database object) is not solely dependent on being th... | 12,124 | [
{
"from": "human",
"value": "I'm getting ORA-01031: insufficient privileges when creating a package my own schema. Shouldn't I have complete control over my schema. If this is not the case, what privileges does my schema need?\n"
},
{
"from": "gpt",
"value": "The error message `ORA-01031: insu... |
How do you generate passwords?
Random Characters?
Passphrases?
High Ascii?
Something like this?
cat /dev/urandom | strings
| When generating passwords, there are several common methods, each with its own strengths and weaknesses. Here are some approaches:
### 1. Random Characters
This method involves creating passwords using a combination of uppercase letters, lowercase letters, numbers, and special characters. Tools like `pwgen` or program... | 13,524 | [
{
"from": "human",
"value": "How do you generate passwords?\n\nRandom Characters?\nPassphrases?\nHigh Ascii?\n\nSomething like this?\ncat /dev/urandom | strings\n\n"
},
{
"from": "gpt",
"value": "When generating passwords, there are several common methods, each with its own strengths and weaknes... |
Right, so I'm having a go at Iron Python Studio as I'm quite familiar with VS2005 and want to try Python with an integrated GUI designer. But as soon as I add a PictureBox I'm in trouble. When running the project I get complaints about BeginInit and soon enough the form designer stops working.
Is this because I'm runni... | When you're using IronPython with Windows Forms, particularly in older versions like those in .NET 3.5, you may encounter some compatibility issues, especially with certain controls like `PictureBox`. The `BeginInit` and `EndInit` methods are typically part of the design pattern for controls that require initialization... | 12,454 | [
{
"from": "human",
"value": "Right, so I'm having a go at Iron Python Studio as I'm quite familiar with VS2005 and want to try Python with an integrated GUI designer. But as soon as I add a PictureBox I'm in trouble. When running the project I get complaints about BeginInit and soon enough the form designer... |
Is there any chance to get this work? I want my tests to be run by nunit2 task in NAnt. In addition I want to run NCover without running tests again.
| Yes, it is possible to achieve the goal of running your tests with NUnit in NAnt and then collecting coverage data with NCover without running the tests again. Below are the steps to set this up:
### Step 1: Setting Up NAnt with NUnit2
You'll need to create a NAnt build script that will handle the NUnit testing. Here... | 10,339 | [
{
"from": "human",
"value": "Is there any chance to get this work? I want my tests to be run by nunit2 task in NAnt. In addition I want to run NCover without running tests again. \n"
},
{
"from": "gpt",
"value": "Yes, it is possible to achieve the goal of running your tests with NUnit in NAnt an... |
I am having my web application deployed on Tomcat5.5 and I use it in integration with eclipse 3.2.Each time I close the eclipse and restart it, I need to republish the application even when it hasn't been modified.
Is there a way to avoid this or any step I am missing ?
| When using Eclipse with Tomcat, it's common to have to republish your web application whenever you restart the IDE, especially with older versions like Eclipse 3.2 and Tomcat 5.5. However, there are some configuration settings that you can adjust to minimize or avoid the need to republish:
### 1. **Use "Automatically ... | 10,822 | [
{
"from": "human",
"value": "I am having my web application deployed on Tomcat5.5 and I use it in integration with eclipse 3.2.Each time I close the eclipse and restart it, I need to republish the application even when it hasn't been modified. \nIs there a way to avoid this or any step I am missing ?\n"
}... |
I'm trying to trigger a progress animation when ever the ViewModel/Presentation Model is Busy. I have an IsBusy Property, and the ViewModel is set as the DataContext of the UserControl. What is the best way to trigger a "progressAnimation" storyboard when the IsBusy property is true? Blend only lets me add event trigge... | To trigger a storyboard animation based on a property in your ViewModel, specifically when the `IsBusy` property is set to true, you can utilize a combination of a `DataTrigger` and a `Storyboard` defined in your UserControl's resources. Since you cannot directly use a `Storyboard` with a `TargetName` in a `Style`, we'... | 11,636 | [
{
"from": "human",
"value": "I'm trying to trigger a progress animation when ever the ViewModel/Presentation Model is Busy. I have an IsBusy Property, and the ViewModel is set as the DataContext of the UserControl. What is the best way to trigger a \"progressAnimation\" storyboard when the IsBusy property i... |
I'm using Delphi and need to get the current Windows DNS server IP address so I can do a lookup. What function should I call to find it? The only solution I have right now does an ipconfig/all to get it, which is horrible.
| To get the current DNS server IP addresses in Delphi without using `ipconfig/all`, you can leverage the Windows API to retrieve network configuration details directly. Specifically, you can use the `GetAdaptersAddresses` function from the `iphlpapi.dll` library. This function provides information about network adapters... | 3,429 | [
{
"from": "human",
"value": "I'm using Delphi and need to get the current Windows DNS server IP address so I can do a lookup. What function should I call to find it? The only solution I have right now does an ipconfig/all to get it, which is horrible.\n"
},
{
"from": "gpt",
"value": "To get the ... |
I want to call a few "static" methods of a CPP class defined in a different file but I'm having linking problems. I created a test-case that recreates my problem and the code for it is below.
(I'm completely new to C++, I come from a Java background and I'm a little familiar with C.)
// CppClass.cpp
#include <iostream>... | The issue you're encountering arises from the way you've declared the `CppClass` class in your `main.cpp`. When you include `CppClass.cpp` directly in `main.cpp`, the definitions of the static methods are available, but by simply declaring them again in `main.cpp`, you have not provided the actual implementations.
###... | 11,452 | [
{
"from": "human",
"value": "I want to call a few \"static\" methods of a CPP class defined in a different file but I'm having linking problems. I created a test-case that recreates my problem and the code for it is below.\n(I'm completely new to C++, I come from a Java background and I'm a little familiar ... |
How do I convert between big-endian and little-endian values in C++?
For clarity, I have to translate binary data (double-precision floating point values and 32-bit and 64-bit integers) from one CPU architecture to another. This doesn't involve networking, so ntoh() and similar functions won't work here.
Note: The an... | To convert between big-endian and little-endian values in C++, you can implement functions that swap the byte order for the different data types you need (e.g., 32-bit and 64-bit integers, double-precision floating point values). Below is a straightforward approach using bit manipulation and type casting.
### Converti... | 9,969 | [
{
"from": "human",
"value": "How do I convert between big-endian and little-endian values in C++?\nFor clarity, I have to translate binary data (double-precision floating point values and 32-bit and 64-bit integers) from one CPU architecture to another. This doesn't involve networking, so ntoh() and simila... |
As it stands now, I'm a Java and C# developer. The more and more I look at Ruby on Rails, the more I really want to learn it.
What have you found to be the best route to learn RoR? Would it be easier to develop on Windows, or should I just run a virtual machine with Linux?
Is there an IDE that can match the robust... | Learning Ruby on Rails (RoR) can be a rewarding experience, especially coming from a background in Java and C#. Here’s a structured plan and some tips to help you get started effectively:
### Learning Path
1. **Understand Ruby First**:
- Before diving into Rails, it's beneficial to learn Ruby, as it's the foundati... | 9,990 | [
{
"from": "human",
"value": "As it stands now, I'm a Java and C# developer. The more and more I look at Ruby on Rails, the more I really want to learn it. \nWhat have you found to be the best route to learn RoR? Would it be easier to develop on Windows, or should I just run a virtual machine with Linux? ... |
In our application (a game), in some cases it can't run fast enough. Obviously we'd like to speed it up, but in the mean-time when this happens it causes many problems (or if it's not causing them, the two are related).
The one which is least related to our own functionality is that the built in Alert.show() method sto... | It sounds like you're encountering a performance bottleneck in your Flex application that is causing certain UI updates and core functionalities, like the `Alert.show()` method, to fail. This can happen for a few reasons, and here are some possible explanations and suggestions to help address the issue:
### Potential ... | 10,933 | [
{
"from": "human",
"value": "In our application (a game), in some cases it can't run fast enough. Obviously we'd like to speed it up, but in the mean-time when this happens it causes many problems (or if it's not causing them, the two are related).\nThe one which is least related to our own functionality is... |
I am trying to match floating-point decimal numbers with a regular expression. There may or may not be a number before the decimal, and the decimal may or may not be present, and if it is present it may or may not have digits after it. (For this application, a leading +/- or a trailing "E123" is not allowed). I have... | To prevent your regex from matching an empty string or a string consisting only of a decimal point, you can modify it slightly. Instead of allowing the whole match to be optional, you can enforce that at least one digit must be present, either before the decimal point or after it.
Here's an updated version of your reg... | 15,554 | [
{
"from": "human",
"value": "I am trying to match floating-point decimal numbers with a regular expression. There may or may not be a number before the decimal, and the decimal may or may not be present, and if it is present it may or may not have digits after it. (For this application, a leading +/- or a... |
What are the compelling features of MFC? Why would you select it for a new project?
| Microsoft Foundation Classes (MFC) is a library that provides a set of classes to simplify Windows application development in C++. Here are some compelling features of MFC and reasons why one might select it for a new project:
### Compelling Features of MFC:
1. **Rapid Development**:
- MFC provides a structured an... | 9,637 | [
{
"from": "human",
"value": "What are the compelling features of MFC? Why would you select it for a new project?\n"
},
{
"from": "gpt",
"value": "Microsoft Foundation Classes (MFC) is a library that provides a set of classes to simplify Windows application development in C++. Here are some compe... |
I think I might be missing the point of having a logging framework for your application. In all the small apps I've always written a small "Logging" class and just pass log messages to a method in it which is written to a file.
What is the purpose of a 3rd party logging framework like log4net? Is it thread safety w... | You're on the right track by recognizing that a simple logging class can work for small applications, but there are several reasons why using a dedicated logging framework like log4net (or others like NLog, Serilog, etc.) can offer significant advantages, especially as your application grows in complexity or as it move... | 12,512 | [
{
"from": "human",
"value": "I think I might be missing the point of having a logging framework for your application. In all the small apps I've always written a small \"Logging\" class and just pass log messages to a method in it which is written to a file. \nWhat is the purpose of a 3rd party logging fr... |
I have a Rails project which I neglected to build tests for (for shame!) and the code base has gotten pretty large. A friend of mine said that RSpec was a pain to use unless you use it from the beginning. Is this true? What would make him say that?
So, considering the available tests suites and the fact that the code b... | Your friend’s comments about RSpec likely stem from the fact that adopting a testing framework on an existing codebase can feel more challenging than starting fresh with tests already in place. Here's a breakdown of the points your friend might be considering and some guidance on how to approach adding tests to your Ra... | 11,159 | [
{
"from": "human",
"value": "I have a Rails project which I neglected to build tests for (for shame!) and the code base has gotten pretty large. A friend of mine said that RSpec was a pain to use unless you use it from the beginning. Is this true? What would make him say that?\nSo, considering the available... |
Being lazy (and liking DRY code), I'm the kind of guy who's going to write a few little wrappers for recurring HTML markup. Those provided by Rails are good already, but sometimes I have something a little more specific that I know I'm going to repeat over and over.
In some situations a partial can be the solution, but... | If you want to create reusable HTML snippets in Rails while enjoying the benefits of automatic reloading during development, you can use the `ActionView::Component` gem, which allows you to create components that are easy to reuse and can be updated on the fly without restarting the server.
Here's how you can set this... | 14,344 | [
{
"from": "human",
"value": "Being lazy (and liking DRY code), I'm the kind of guy who's going to write a few little wrappers for recurring HTML markup. Those provided by Rails are good already, but sometimes I have something a little more specific that I know I'm going to repeat over and over.\nIn some sit... |
Is Bouncy Castle API Thread Safe ? Especially,
org.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher
org.bouncycastle.crypto.paddings.PKCS7Padding
org.bouncycastle.crypto.engines.AESFastEngine
org.bouncycastle.crypto.modes.CBCBlockCipher
I am planning to write a singleton Spring bean for basic level cryptography ... | The Bouncy Castle library, specifically the components you mentioned, is generally **not thread-safe** when it comes to shared instances. In particular, classes like `PaddedBufferedBlockCipher`, `PKCS7Padding`, `AESFastEngine`, and `CBCBlockCipher` maintain internal state, which can lead to problems if they are accesse... | 13,036 | [
{
"from": "human",
"value": "Is Bouncy Castle API Thread Safe ? Especially,\norg.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher\norg.bouncycastle.crypto.paddings.PKCS7Padding\norg.bouncycastle.crypto.engines.AESFastEngine\norg.bouncycastle.crypto.modes.CBCBlockCipher\n\nI am planning to write a sing... |
MS SQL Server and Oracle, which one is better in terms of scalability?
For example, if the data size reach 500 TB etc.
| When it comes to scalability between MS SQL Server and Oracle Database, both have robust capabilities, but they have different strengths and trade-offs depending on the specific use case, infrastructure, and workload requirements. Here's a comparison of the two in terms of scalability, particularly when considering lar... | 10,877 | [
{
"from": "human",
"value": "MS SQL Server and Oracle, which one is better in terms of scalability?\nFor example, if the data size reach 500 TB etc.\n"
},
{
"from": "gpt",
"value": "When it comes to scalability between MS SQL Server and Oracle Database, both have robust capabilities, but they ha... |
How feasible would it be to compile Python (possibly via an intermediate C representation) into machine code?
Presumably it would need to link to a Python runtime library, and any parts of the Python standard library which were Python themselves would need to be compiled (and linked in) too.
Also, you would need to bun... | Compiling Python into machine code is an interesting challenge and has been a topic of interest in the Python community for quite some time. There are several ways to approach this, including compiling Python to an intermediate representation like C or using just-in-time (JIT) compilation techniques. Let's break down t... | 12,020 | [
{
"from": "human",
"value": "How feasible would it be to compile Python (possibly via an intermediate C representation) into machine code?\nPresumably it would need to link to a Python runtime library, and any parts of the Python standard library which were Python themselves would need to be compiled (and l... |
I'm experiencing the following very annoying behaviour when using JPA entitys in conjunction with Oracle 10g.
Suppose you have the following entity.
@Entity
@Table(name = "T_Order")
public class TOrder implements Serializable {
private static final long serialVersionUID = 2235742302377173533L;
@Id
@Genera... | The issue you're facing is related to how Java, Hibernate, and Oracle handle date/time types and time zones. When you persist a `Calendar` object, it converts it to a `TIMESTAMP` in the database, which is stored without a time zone. However, when you retrieve the data back into your application, the timezone handling i... | 9,593 | [
{
"from": "human",
"value": "I'm experiencing the following very annoying behaviour when using JPA entitys in conjunction with Oracle 10g. \nSuppose you have the following entity.\n@Entity\n@Table(name = \"T_Order\")\npublic class TOrder implements Serializable {\n private static final long serialVersion... |
Suppose I've found a “text” somewhere in open access (say, on public network share). I have no means to contact the author, I even don't know who is the author.
What can I legally do with such “text”?
Update: I am not going to publish that “text”, but rather learn from it myself.
Update: So, if I ever see an anonymous ... | The legality of using a text that you find in an open-access or public space can depend on several factors, including copyright law and the specific terms under which the text is made available. Here are some points to consider regarding your scenario:
1. **Open Access**: If the text is indeed open access and explicit... | 11,408 | [
{
"from": "human",
"value": "Suppose I've found a “text” somewhere in open access (say, on public network share). I have no means to contact the author, I even don't know who is the author.\nWhat can I legally do with such “text”?\nUpdate: I am not going to publish that “text”, but rather learn from it myse... |
Im working on an ASP.Net app with c#. I am stuck on a problem with an accoridian.
My accordian correctly displays data from a datasource which in this case in some text and then a list of images. On each accordians content there are the images to be displayed and then a button to add another image.
This button links ... | To keep track of which section of the accordion was previously open, you'll need a way to store and retrieve the currently open section when you navigate back to the accordion page. Here are a few different approaches you can use to achieve this:
### Approach 1: Query String Parameter
You can use a query string to pas... | 9,016 | [
{
"from": "human",
"value": "Im working on an ASP.Net app with c#. I am stuck on a problem with an accoridian. \nMy accordian correctly displays data from a datasource which in this case in some text and then a list of images. On each accordians content there are the images to be displayed and then a button... |
I want to do this in code, not with ALT+F1.
| It looks like you might be referring to executing a command or functionality typically accessible through a keyboard shortcut (like ALT+F1). If you could provide more context about what you are trying to achieve in code (for example, the programming language you're using and the specific functionality), I’d be happy to... | 17,418 | [
{
"from": "human",
"value": "I want to do this in code, not with ALT+F1.\n"
},
{
"from": "gpt",
"value": "It looks like you might be referring to executing a command or functionality typically accessible through a keyboard shortcut (like ALT+F1). If you could provide more context about what you ... |
I need to copy about 40 databases from one server to another. The new databases should have new names, but all the same tables, data and indexes as the original databases. So far I've been:
1) creating each destination database
2) using the "Tasks->Export Data" command to create and populate tables for each databas... | Certainly! Copying multiple databases and their contents in SQL Server can be streamlined using a combination of scripting and tools available within SQL Server. Here’s a more efficient approach you might consider:
### Method Overview
Instead of manually exporting data and rebuilding indexes for each database, you can... | 8,684 | [
{
"from": "human",
"value": "I need to copy about 40 databases from one server to another. The new databases should have new names, but all the same tables, data and indexes as the original databases. So far I've been: \n1) creating each destination database\n2) using the \"Tasks->Export Data\" command t... |
Yesterday I wanted to add a boolean field to an Oracle table. However, there isn't actually a boolean data type in Oracle. Does anyone here know the best way to simulate a boolean? Googling the subject discovered several approaches
Use an integer and just don't bother assigning anything other than 0 or 1 to it.
Use... | In Oracle, while there isn't a dedicated boolean data type, there are several common approaches to simulate boolean values. Each approach has its pros and cons, so the choice depends on your specific use case and preferences. Here are the options you mentioned, along with a few additional considerations:
1. **Integer ... | 11,004 | [
{
"from": "human",
"value": "Yesterday I wanted to add a boolean field to an Oracle table. However, there isn't actually a boolean data type in Oracle. Does anyone here know the best way to simulate a boolean? Googling the subject discovered several approaches\n\nUse an integer and just don't bother assi... |
Specifically MSSQL 2005.
| SQL Server 2005 (MSSQL 2005) is a relational database management system developed by Microsoft. It's important to note that SQL Server 2005 is no longer supported, and using it may expose your systems to security vulnerabilities and compatibility issues with modern applications.
However, if you have specific questions... | 16,019 | [
{
"from": "human",
"value": "Specifically MSSQL 2005.\n"
},
{
"from": "gpt",
"value": "SQL Server 2005 (MSSQL 2005) is a relational database management system developed by Microsoft. It's important to note that SQL Server 2005 is no longer supported, and using it may expose your systems to secur... |
Do you know of any .NET library which can decode several types of audio files? Ideally, it should be platform agnostic, so it can be used with .NET and Mono - on Windows and *NIX.
I already tortured Google searching for a library which meets my needs, but unfortunately I could not find anything. So before writing a lot... | There are a few open-source .NET libraries you can consider for decoding various audio formats like MP3, OGG Vorbis, and FLAC. Here are some that should meet your requirements:
1. **NAudio**:
- NAudio is a .NET audio library that can handle several audio formats including MP3. For OGG and FLAC, you might need to lo... | 11,874 | [
{
"from": "human",
"value": "Do you know of any .NET library which can decode several types of audio files? Ideally, it should be platform agnostic, so it can be used with .NET and Mono - on Windows and *NIX.\nI already tortured Google searching for a library which meets my needs, but unfortunately I could ... |
I have breakpoints set but Xcode appears to ignore them.
| If Xcode is ignoring breakpoints, there are several potential issues you can check to resolve the problem. Here are some troubleshooting steps:
1. **Ensure Debug Mode**: Make sure you are running your application in Debug mode, not Release mode. Breakpoints typically don't work in Release builds.
2. **Clean the Build... | 10,660 | [
{
"from": "human",
"value": "I have breakpoints set but Xcode appears to ignore them.\n"
},
{
"from": "gpt",
"value": "If Xcode is ignoring breakpoints, there are several potential issues you can check to resolve the problem. Here are some troubleshooting steps:\n\n1. **Ensure Debug Mode**: Make... |
For best performance, is it better to use a virtual IDE HDD or virtual SCSI HDD?
If, SCSI, does it matter whether you use an BusLogic or LSILogic?
| When it comes to virtualized environments, especially when using hypervisors like VMware or Microsoft Hyper-V, the choice between using a virtual IDE HDD and a virtual SCSI HDD can significantly impact performance.
### SCSI vs. IDE
1. **Performance**:
- SCSI (Small Computer System Interface) generally provides be... | 11,668 | [
{
"from": "human",
"value": "For best performance, is it better to use a virtual IDE HDD or virtual SCSI HDD?\nIf, SCSI, does it matter whether you use an BusLogic or LSILogic?\n"
},
{
"from": "gpt",
"value": "When it comes to virtualized environments, especially when using hypervisors like VMwa... |
I have a field on a table in MS Access, tblMyTable.SomeID, and I want to set the default value as a user preference in tblUserPref.DefaultSomeID. It doesn't appear that I can set the default value to use a query in the table definition of tblMyTable. I have a form where records are entered into tblMyTable. I've trie... | In Microsoft Access, to set a default value for a field on a form when a new blank record is opened, you can use the `Form_Current` event in combination with the `Form_BeforeInsert` event. The `Form_Current` event runs whenever the current record changes, including when you move to a new record or edit an existing reco... | 13,543 | [
{
"from": "human",
"value": "I have a field on a table in MS Access, tblMyTable.SomeID, and I want to set the default value as a user preference in tblUserPref.DefaultSomeID. It doesn't appear that I can set the default value to use a query in the table definition of tblMyTable. I have a form where record... |
I decided to teach myself assembly language.
I have realized that my program will not compile if I attempt to change the value of any segment register.
Every article that I have found says that I can indeed change the value of at least 4 segment registers, so what gives?
I am really only interested in the why at this... | Segment registers in x86 assembly language (and in the architecture of x86 processors) are specific registers that hold segment selectors, which are used by the processor to determine the base address of various memory segments. The most commonly used segment registers are:
- **CS** (Code Segment)
- **DS** (Data Segme... | 10,395 | [
{
"from": "human",
"value": "I decided to teach myself assembly language.\nI have realized that my program will not compile if I attempt to change the value of any segment register.\nEvery article that I have found says that I can indeed change the value of at least 4 segment registers, so what gives? \nI ... |
Joel Spolsky praised native-code versions of programs that have no dependencies on runtimes.
What native-code compilers are available for functional languages?
| There are several native-code compilers available for functional languages that produce standalone binaries without dependencies on external runtimes. Here are some notable ones:
1. **GHC (Glasgow Haskell Compiler)**: GHC is the most widely used compiler for Haskell, and it can compile Haskell programs to native code.... | 7,085 | [
{
"from": "human",
"value": "Joel Spolsky praised native-code versions of programs that have no dependencies on runtimes. \nWhat native-code compilers are available for functional languages?\n"
},
{
"from": "gpt",
"value": "There are several native-code compilers available for functional langua... |
I use a byte to store some flag like 10101010, and I would like to know how to verify that a specific bit is at 1 or 0.
| You can verify whether a specific bit in a byte (or any integer) is set to 1 or 0 using bitwise operations. Here's how you can do it:
1. **Identify the bit position** you want to check. For example, if you want to check the 3rd bit (from the right, zero-based indexing), you would use bit position 2.
2. **Use a bitmas... | 9,984 | [
{
"from": "human",
"value": "I use a byte to store some flag like 10101010, and I would like to know how to verify that a specific bit is at 1 or 0.\n"
},
{
"from": "gpt",
"value": "You can verify whether a specific bit in a byte (or any integer) is set to 1 or 0 using bitwise operations. Here's... |
At work we use WiX for building installation packages. We want that installation of product X would result in uninstall of the previous version of that product on that machine.
I've read on several places on the Internet about a major upgrade but couldn't get it to work.
Can anyone please specify the exact steps that I... | Certainly! To implement a major upgrade in WiX, which allows the installation of a new version of a product to uninstall the previous version automatically, you need to follow a set of specific steps. Here's a guide to help you achieve that:
### Steps to Implement Major Upgrade in WiX
1. **Update the Product Code**:
... | 9,147 | [
{
"from": "human",
"value": "At work we use WiX for building installation packages. We want that installation of product X would result in uninstall of the previous version of that product on that machine.\nI've read on several places on the Internet about a major upgrade but couldn't get it to work.\nCan a... |
Given an small Excel VBA app (single form, small amount of records saved in single worksheet) that runs quite happily locally on the workstation, what would be the easiest and quickest way of providing the same app on the web? Re-writing the app is an option but I thought it was worth checking if there was a quicker s... | Migrating an Excel VBA application to the web can indeed be a significant undertaking, especially if you want to maintain similar functionality. However, there are several methods you can consider to provide a web-based version of your application quickly and with minimal rewriting. Here are a few options:
### 1. **Ex... | 11,998 | [
{
"from": "human",
"value": "Given an small Excel VBA app (single form, small amount of records saved in single worksheet) that runs quite happily locally on the workstation, what would be the easiest and quickest way of providing the same app on the web? Re-writing the app is an option but I thought it wa... |
Where can I find the IIS object schema? All I found from MSDN was a picture of the class hierarchy.
To be clear, I want to configure IIS through either WMI or ADSI and I'm looking for something like the Active Directory schema, only for IIS. I want a list of all the objects I can configure, which objects they can be co... | To find the IIS object schema, particularly if you are looking for the structure and properties when configuring IIS via WMI (Windows Management Instrumentation) or ADSI (Active Directory Service Interfaces), you have a couple of resources to consider:
### 1. **IIS WMI Classes**
IIS exposes its configuration through W... | 12,475 | [
{
"from": "human",
"value": "Where can I find the IIS object schema? All I found from MSDN was a picture of the class hierarchy.\nTo be clear, I want to configure IIS through either WMI or ADSI and I'm looking for something like the Active Directory schema, only for IIS. I want a list of all the objects I c... |
Is it possible to place an application using vsto if the office is not installed? It doesn't appear to be so, but I was wondering if anyone had a work-around.
| Visual Studio Tools for Office (VSTO) is a technology that requires Microsoft Office to be installed on the machine where the application is being developed and deployed. VSTO relies heavily on the Office COM (Component Object Model) libraries, which are only available if Microsoft Office is installed.
If Office is no... | 13,802 | [
{
"from": "human",
"value": "Is it possible to place an application using vsto if the office is not installed? It doesn't appear to be so, but I was wondering if anyone had a work-around.\n"
},
{
"from": "gpt",
"value": "Visual Studio Tools for Office (VSTO) is a technology that requires Microso... |
I have an Interbase DB. How can I convert it to SQL Server?
| Converting an Interbase database to SQL Server involves several steps, including extracting the data from Interbase, transforming it as necessary, and loading it into SQL Server. Below is a general outline of the process:
### 1. **Assess the Database Structure**
- Understand the schema of your Interbase database in... | 10,459 | [
{
"from": "human",
"value": "I have an Interbase DB. How can I convert it to SQL Server?\n"
},
{
"from": "gpt",
"value": "Converting an Interbase database to SQL Server involves several steps, including extracting the data from Interbase, transforming it as necessary, and loading it into SQL Ser... |
I'd like to remove all of the black from a picture attached to a sprite so that it becomes transparent.
| To remove all black from an image and make it transparent, you can follow these general steps using popular graphic editing software like Adobe Photoshop, GIMP, or online tools like Photopea. Here's how to do it in each of these programs:
### In Adobe Photoshop:
1. **Open the Image**: Start Photoshop and open the ima... | 10,713 | [
{
"from": "human",
"value": "I'd like to remove all of the black from a picture attached to a sprite so that it becomes transparent. \n"
},
{
"from": "gpt",
"value": "To remove all black from an image and make it transparent, you can follow these general steps using popular graphic editing softw... |
I am currently building an internal web application used in a factory/warehouse type location. The users will be sharing a single PC between several people, so we need to have a fairly short session timeout to stop people wandering off and leaving the application logged in where someone else can come to the PC and do s... | Handling session timeouts in a user-friendly way, especially in an environment where multiple users share a single PC, can be challenging. Here are some strategies you can implement to improve user experience:
### 1. **Implement Session Renewal Mechanism**
- **Auto-Renewal**: Use JavaScript to check for user activi... | 10,259 | [
{
"from": "human",
"value": "I am currently building an internal web application used in a factory/warehouse type location. The users will be sharing a single PC between several people, so we need to have a fairly short session timeout to stop people wandering off and leaving the application logged in where... |
I have a service app that creates AppDomain's during the course of its use for long running tasks. I've been tracking these by storing them in a Hashtable with a unique ID.
After a task is completed the service app then unloads the AppDomain allocated to that task and then it's removed it from the appdomain Hashtable.
... | In .NET, especially when using AppDomains, you can query the loaded AppDomains using the `AppDomain` class. Unfortunately, there isn't a direct way to list all the AppDomains that are loaded directly through the CLR, since the `AppDomain` class does not provide a public method to enumerate all loaded AppDomains in the ... | 14,912 | [
{
"from": "human",
"value": "I have a service app that creates AppDomain's during the course of its use for long running tasks. I've been tracking these by storing them in a Hashtable with a unique ID.\nAfter a task is completed the service app then unloads the AppDomain allocated to that task and then it's... |
Is there any way to retrieve either the mac address or the IP address of phones on a Cisco server using Callmanager version 6 via the axl with VB.net?
The server can retrieve the IP address itself to use the phone and it's not in the database information retrieved from the server.
| Retrieving MAC addresses or IP addresses of phones connected to a Cisco CallManager (now known as Cisco Unified Communications Manager or CUCM) using AXL (A Cisco API) can be a bit tricky, especially with an older version like 6.x. However, you can retrieve some of this information through the AXL web services, but it ... | 9,535 | [
{
"from": "human",
"value": "Is there any way to retrieve either the mac address or the IP address of phones on a Cisco server using Callmanager version 6 via the axl with VB.net?\nThe server can retrieve the IP address itself to use the phone and it's not in the database information retrieved from the serv... |
I'm attempting to display a "LargeIcon" view in a listview control, however the images I specify are blurry. This is what I have so far:
alt text http://img220.imageshack.us/img220/1005/blurryiconsql3.jpg
The .png files are 48x48 and that's what I have it set to display at in the ImageList properties. There's one thing... | The issue you're experiencing with blurry images in your ListView control is likely due to the ImageList control not being configured correctly to use the larger 48x48 images. Here are a few steps you can follow to ensure that the ImageList is set up correctly:
1. **Create a New ImageList**: Start by creating a new Im... | 12,976 | [
{
"from": "human",
"value": "I'm attempting to display a \"LargeIcon\" view in a listview control, however the images I specify are blurry. This is what I have so far:\nalt text http://img220.imageshack.us/img220/1005/blurryiconsql3.jpg\nThe .png files are 48x48 and that's what I have it set to display at i... |
I have a products table...
alt text http://img357.imageshack.us/img357/6393/productscx5.gif
and a revisions table, which is supposed to track changes to product info
alt text http://img124.imageshack.us/img124/1139/revisionslz5.gif
I try to query the database for all products, with their most recent revision...
select
... | In MySQL, when you use `GROUP BY` with `SELECT *`, you're not guaranteed to get the data you expect from the other columns because it only selects the first row it encounters for each group. This behavior can lead to unexpected results when you're trying to get related data like the most recent revision.
To achieve yo... | 13,338 | [
{
"from": "human",
"value": "I have a products table...\nalt text http://img357.imageshack.us/img357/6393/productscx5.gif\nand a revisions table, which is supposed to track changes to product info\nalt text http://img124.imageshack.us/img124/1139/revisionslz5.gif\nI try to query the database for all product... |
The C preprocessor is justifiably feared and shunned by the C++ community. In-lined functions, consts and templates are usually a safer and superior alternative to a #define.
The following macro:
#define SUCCEEDED(hr) ((HRESULT)(hr) >= 0)
is in no way superior to the type safe:
inline bool succeeded(int hr) { retur... | ### Use Case 1: Conditional Compilation
Macros are often used for conditional compilation, allowing developers to include or exclude code based on defined conditions. This is particularly useful for platform-specific code or for debugging purposes.
**Example:**
```c
#ifdef _DEBUG
// Debugging code
#else
// R... | 9,306 | [
{
"from": "human",
"value": "The C preprocessor is justifiably feared and shunned by the C++ community. In-lined functions, consts and templates are usually a safer and superior alternative to a #define.\nThe following macro: \n#define SUCCEEDED(hr) ((HRESULT)(hr) >= 0) \n\nis in no way superior to the typ... |
I want a nice 2 column layout using CSS float's.
Column#1 160 px
Column#2 100% (i.e. the rest of the space).
I want to place the Col#2's div first, so my layout looks like:
<div id="header"></div>
<div id="content">
<div id="col2"></div>
<div id="col1"></div>
</div>
<div id="footer"></div>
What has to be get... | To create a two-column layout using CSS floats where the first column (`col2`) takes up the rest of the available space and the second column (`col1`) is a fixed width of 160px, you can follow these steps:
1. Set the widths of the columns.
2. Use CSS float to position the columns.
3. Clear the float for the parent con... | 12,328 | [
{
"from": "human",
"value": "I want a nice 2 column layout using CSS float's.\nColumn#1 160 px\nColumn#2 100% (i.e. the rest of the space).\nI want to place the Col#2's div first, so my layout looks like:\n<div id=\"header\"></div>\n<div id=\"content\">\n <div id=\"col2\"></div>\n <div id=\"col1\"><... |
I've got a sections table, and an items table.
The problem is each item may be in one or more sections, so a simple 'section_id' for each item won't work, and sql doesn't have a way to store arrays where I can do say "WHERE 5 in section_ids"...
I've considered storing the list of ids as a comma separated string, the pr... | Yes, there is a better and more efficient way to handle the relationship between items and sections in your database using a **many-to-many relationship**. Instead of trying to store section IDs in a single column of the items table, you should use a separate join table. This approach will allow you to maintain the rel... | 11,365 | [
{
"from": "human",
"value": "I've got a sections table, and an items table.\nThe problem is each item may be in one or more sections, so a simple 'section_id' for each item won't work, and sql doesn't have a way to store arrays where I can do say \"WHERE 5 in section_ids\"...\nI've considered storing the li... |
I want to port data from one server's database to another server's database.
The databases are both on a different mssql 2005 server.
Replication is probably not an option since the destination database is generated from scratch on a [time interval] basis.
Preferebly I would do something like
insert *
from db1/table1
i... | To port data from one SQL Server 2005 database to another on a different server, you can use a combination of the `INSERT INTO ... SELECT` statement with a linked server or a direct connection to the source database using a connection string. Since SQL Server 2005 supports linked servers, that might be the easiest way ... | 8,476 | [
{
"from": "human",
"value": "I want to port data from one server's database to another server's database.\nThe databases are both on a different mssql 2005 server.\nReplication is probably not an option since the destination database is generated from scratch on a [time interval] basis.\nPreferebly I would ... |
I have a file I need to move that's already under perforce. Once moved it needs some editing - update the package, etc - appropriate to its new location. Should I submit the move changespec and then reopen it for edit, or can I do this in one go? If so, what is the appropriate sequence of events?
| In Perforce, you can move and edit a file in one go, which is typically more efficient. Here’s the sequence of commands you can use:
1. **Move the file**: Use the `p4 move` command to move the file to its new location. This command will also open the file for edit automatically.
```bash
p4 move //depot/path/to/... | 15,768 | [
{
"from": "human",
"value": "I have a file I need to move that's already under perforce. Once moved it needs some editing - update the package, etc - appropriate to its new location. Should I submit the move changespec and then reopen it for edit, or can I do this in one go? If so, what is the appropriate s... |
I want to buy a 128bit SSL certificate for a website selling services. I checked http://www.rapidssl.com/ssl-certificate-products/ssl-certificate.htm and http://www.geotrust.com/ssl/compare-ssl-certificates.html. Why are the prices for QuickSSL (Geotrust, $249) and RapidSSL (rapidSSL, $69) so different? Is there any pa... | The differences in pricing between SSL certificates from different providers, such as QuickSSL from GeoTrust and RapidSSL, can be attributed to several factors:
1. **Brand Reputation**: GeoTrust is a well-established brand in the SSL certificate market, known for its higher levels of trust and credibility. This can be... | 13,256 | [
{
"from": "human",
"value": "I want to buy a 128bit SSL certificate for a website selling services. I checked http://www.rapidssl.com/ssl-certificate-products/ssl-certificate.htm and http://www.geotrust.com/ssl/compare-ssl-certificates.html. Why are the prices for QuickSSL (Geotrust, $249) and RapidSSL (rap... |
Are there any industry standard conventions for naming jar files?
| Yes, there are some widely accepted conventions for naming JAR (Java Archive) files that help maintain clarity and consistency, especially in collaborative environments. Here are some of the key conventions:
1. **Group ID and Artifact ID**:
- The name often includes the Group ID and Artifact ID, which are defined i... | 14,110 | [
{
"from": "human",
"value": "Are there any industry standard conventions for naming jar files?\n"
},
{
"from": "gpt",
"value": "Yes, there are some widely accepted conventions for naming JAR (Java Archive) files that help maintain clarity and consistency, especially in collaborative environments... |
public static Logger getLogger() {
final Throwable t = new Throwable();
final StackTraceElement methodCaller = t.getStackTrace()[1];
final Logger logger = Logger.getLogger(methodCaller.getClassName());
logger.setLevel(ResourceManager.LOGLEVEL);
return logger;
}
This method would return a logger tha... | The code you've provided creates a logger that is specific to the class that calls the `getLogger()` method by examining the stack trace. While this approach can be convenient, there are several potential drawbacks and considerations to keep in mind:
1. **Performance Overhead**: Creating a `Throwable` to capture the s... | 12,343 | [
{
"from": "human",
"value": "public static Logger getLogger() {\n final Throwable t = new Throwable();\n final StackTraceElement methodCaller = t.getStackTrace()[1];\n final Logger logger = Logger.getLogger(methodCaller.getClassName());\n logger.setLevel(ResourceManager.LOGLEVEL);\n return lo... |
I'm attempting to convert a home-grown login system to the standard asp.net login control included in .net. I want all communication on the website for a user not logged in to be in clear text, but lock everything in SSL once the user logs in - including the transmission of the username and password.
I had this workin... | To achieve your goal of implementing secure communication for user logins while keeping the rest of the site in clear text, you can utilize ASP.NET's built-in capabilities with the Login control and a few extra configurations. Below are the steps to integrate the Login control into your existing pages and handle the SS... | 9,301 | [
{
"from": "human",
"value": "I'm attempting to convert a home-grown login system to the standard asp.net login control included in .net. I want all communication on the website for a user not logged in to be in clear text, but lock everything in SSL once the user logs in - including the transmission of the... |
In my ReportViewer control, when I click on Print Layout, the background turns black on the report. This must be a bug. Is there a workaround?
| It sounds like you're encountering a rendering issue in the ReportViewer control when switching to Print Layout mode. This can happen due to various factors, including styles, themes, or even browser compatibility. Here are several workarounds you can try to resolve the background color issue in Print Layout:
### 1. *... | 8,515 | [
{
"from": "human",
"value": "In my ReportViewer control, when I click on Print Layout, the background turns black on the report. This must be a bug. Is there a workaround?\n"
},
{
"from": "gpt",
"value": "It sounds like you're encountering a rendering issue in the ReportViewer control when switc... |
Actually I will want to use that JeOS for our webserver. Is it a good choice?
| JeOS (Just Enough Operating System) is a minimalistic operating system designed specifically for virtual appliances. Its lightweight nature can be advantageous for specific use cases, particularly in virtualized environments. Here are some factors to consider when evaluating JeOS for your web server:
### Pros:
1. **Li... | 14,929 | [
{
"from": "human",
"value": "Actually I will want to use that JeOS for our webserver. Is it a good choice?\n"
},
{
"from": "gpt",
"value": "JeOS (Just Enough Operating System) is a minimalistic operating system designed specifically for virtual appliances. Its lightweight nature can be advantage... |
I have a VS2005 solution which contains a variety of projects (C++ DLLs, C++ static libraries, C# assemblies, C++ windows executables) that are combined in various ways to produce several executables. For some reason, every time I open the solution, VS2005 wants to check out one of the projects for editing. The proje... | This issue can be frustrating, especially when it is consistent and appears to be related to source control in Visual Studio 2005. Here are several approaches you can take to resolve the auto-checkout behavior:
### 1. **Check Project File Properties**
- Open the `.vcproj` file for the project that is being checked ... | 8,982 | [
{
"from": "human",
"value": "I have a VS2005 solution which contains a variety of projects (C++ DLLs, C++ static libraries, C# assemblies, C++ windows executables) that are combined in various ways to produce several executables. For some reason, every time I open the solution, VS2005 wants to check out on... |
I am trying to figure out this:
c = 1
def f(n):
print c + n
def g(n):
c = c + n
f(1) # => 2
g(1) # => UnboundLocalError: local variable 'c' referenced before assignment
Thanks!
| In your code, you're encountering an `UnboundLocalError` when trying to run the function `g(n)`. Let's break down what's happening in both functions `f` and `g`.
### Function `f(n)`
```python
def f(n):
print c + n
```
In this function, you are accessing the variable `c`, which is defined outside of the function. ... | 11,816 | [
{
"from": "human",
"value": "I am trying to figure out this:\nc = 1\ndef f(n):\n print c + n \ndef g(n):\n c = c + n\n\nf(1) # => 2\ng(1) # => UnboundLocalError: local variable 'c' referenced before assignment\n\nThanks!\n"
},
{
"from": "gpt",
"value": "In your code, you're encountering an... |
I originally asked this question, but in finding an answer, discovered that my original problem was a lack of support in C# for covariance on inherited methods' return types. After discovering that, I became curious as to what languages do support this feature.
I will accept the answer of whoever can name the most.
EDI... | Covariance in method return types for inherited methods is a feature that allows a derived class to override a base class method and change the return type to a more derived type. Here are some statically typed languages that support this feature:
1. **Java**: Java allows covariant return types since Java 5. You can o... | 14,385 | [
{
"from": "human",
"value": "I originally asked this question, but in finding an answer, discovered that my original problem was a lack of support in C# for covariance on inherited methods' return types. After discovering that, I became curious as to what languages do support this feature.\nI will accept th... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.