instruction stringlengths 14 27.6k | completion stringlengths 3 38.3k | __original_row_idx int64 0 50k | conversations listlengths 2 2 |
|---|---|---|---|
When running performance tests file system cache hit or miss can significantly influence test results. Therefore generally before running such tests used files are evicted from system cache. How to do that on Linux?
Clarification: If possible, the solution should not require root privileges.
| On Linux, evicting files from the file system cache without root privileges can be challenging, as many of the common methods for clearing cache (like using `/proc/sys/vm/drop_caches`) require elevated permissions. However, there are some workarounds you can consider:
### 1. Create a Temporary File
One way to potentia... | 13,577 | [
{
"from": "human",
"value": "When running performance tests file system cache hit or miss can significantly influence test results. Therefore generally before running such tests used files are evicted from system cache. How to do that on Linux?\nClarification: If possible, the solution should not require ro... |
A question that occasionally arises is what is the best way to determine the changelist that you last synced to in Perforce. This is often needed for things like injecting the changelist number into the revision info by the automatic build system.
| In Perforce, to determine the last changelist that you synced to, you can use the `p4 changes` command combined with the `p4 sync` command. Here's how you can find the last synced changelist:
1. **Using `p4 changes`**:
You can list the changelists that you have synced to by running the following command in your wor... | 14,384 | [
{
"from": "human",
"value": "A question that occasionally arises is what is the best way to determine the changelist that you last synced to in Perforce. This is often needed for things like injecting the changelist number into the revision info by the automatic build system.\n"
},
{
"from": "gpt",
... |
OK, I'm not looking for anti-patterns - I'm looking for things that aren't really patterns, or perhaps patterns that have been abused.
My personal least favourite is the "Helper" pattern.
E.g. I need to create a SQL query, so call SQLQueryHelper. This needs to process some strings, so it in turn calls StringHelper. Etc... | Your frustration with "Helper" classes is quite common among developers, and it's understandable. The term "Helper" tends to be vague and can lead to several issues in software design and architecture. Here are some common criticisms and examples of "patterns" that aren't really patterns, or patterns that have been abu... | 12,913 | [
{
"from": "human",
"value": "OK, I'm not looking for anti-patterns - I'm looking for things that aren't really patterns, or perhaps patterns that have been abused.\nMy personal least favourite is the \"Helper\" pattern.\nE.g. I need to create a SQL query, so call SQLQueryHelper. This needs to process some s... |
What's the widest overview and where are the deepest analysis of different replication methods and problems?
| When discussing replication methods and problems, especially in the context of scientific research, there are several key areas of focus that provide both a broad overview and in-depth analyses. Below are some resources and concepts to consider:
### 1. Overview of Replication Methods:
**A. Types of Replication:**
- *... | 9,820 | [
{
"from": "human",
"value": "What's the widest overview and where are the deepest analysis of different replication methods and problems?\n"
},
{
"from": "gpt",
"value": "When discussing replication methods and problems, especially in the context of scientific research, there are several key are... |
When viewing files in a shelveset, I would like the option of comparing the files to my current local version. Unfortunately, the only options available are "With Unmodified", "With Workspace" (I guess this one would be the answer, if it wasn't disabled) and "With Latest".
Any ideas?
| When you're working with shelvesets in version control systems like Team Foundation Server (TFS) or Azure DevOps, it's common to want to compare files in a shelveset with your local versions. However, the options you see can vary depending on the client version and settings.
If the "With Workspace" option is disabled ... | 15,019 | [
{
"from": "human",
"value": "When viewing files in a shelveset, I would like the option of comparing the files to my current local version. Unfortunately, the only options available are \"With Unmodified\", \"With Workspace\" (I guess this one would be the answer, if it wasn't disabled) and \"With Latest\".... |
I'm setting up a new development server and want to install the latest version of SQL Server 2008 Express.
Will our existing sql2005 databases work with 2008 without modification?
If so is there any reason to install both versions on the same server?
| Yes, your existing SQL Server 2005 databases should work with SQL Server 2008 Express without modification. SQL Server 2008 is designed to be backward-compatible with SQL Server 2005 databases. You can simply attach your existing 2005 databases to the SQL Server 2008 instance, and they should function properly.
Here a... | 12,370 | [
{
"from": "human",
"value": "I'm setting up a new development server and want to install the latest version of SQL Server 2008 Express.\nWill our existing sql2005 databases work with 2008 without modification?\n If so is there any reason to install both versions on the same server?\n"
},
{
"from": ... |
Possible Duplicate:
What are the obj and bin folders (created by Visual Studio) used for?
The default output path for any project is Visual studio is bin/Debug, but I have noticed that obj folder is also generated which again contains dll and pdb files. Can someone tell me why is this folder generated?
| In Visual Studio, when you build a project, two main folders are created: `bin` and `obj`. Each serves a distinct purpose:
1. **bin Folder**:
- The `bin` folder contains the final output of your project, such as executable files (EXE) or library files (DLL), along with any associated files needed for the applicatio... | 15,581 | [
{
"from": "human",
"value": "\nPossible Duplicate:\nWhat are the obj and bin folders (created by Visual Studio) used for? \n\nThe default output path for any project is Visual studio is bin/Debug, but I have noticed that obj folder is also generated which again contains dll and pdb files. Can someone tell m... |
Looking for C# class which wraps calls to do the following:
read and write a key value
read & write a key entry
enumerate the entries in a key. This is important. For example, need to list all entries in:
HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\ODBC Data Sources
(I scanned through some codeproject.com registry classe... | Certainly! You can create a C# class that wraps the calls to read, write, and enumerate registry keys. Below is a sample implementation that utilizes the `Microsoft.Win32` namespace to access the Windows Registry.
Make sure to include the `Microsoft.Win32` namespace by adding the following using directive at the top o... | 7,785 | [
{
"from": "human",
"value": "Looking for C# class which wraps calls to do the following:\nread and write a key value\nread & write a key entry\nenumerate the entries in a key. This is important. For example, need to list all entries in:\nHKEY_LOCAL_MACHINE\\SOFTWARE\\ODBC\\ODBC.INI\\ODBC Data Sources\n(I sc... |
In c#, we have interfaces. Where did these come from? They didn't exist in c++.
| Interfaces in C# are a fundamental part of the language and are closely related to the concept of polymorphism in object-oriented programming. They were designed to provide a way to define contracts that classes can implement, promoting code reusability and interoperability.
### Origins of Interfaces
1. **Historical ... | 12,856 | [
{
"from": "human",
"value": "In c#, we have interfaces. Where did these come from? They didn't exist in c++.\n"
},
{
"from": "gpt",
"value": "Interfaces in C# are a fundamental part of the language and are closely related to the concept of polymorphism in object-oriented programming. They were... |
How do I generate all the permutations of a list? For example:
permutations([])
[]
permutations([1])
[1]
permutations([1, 2])
[1, 2]
[2, 1]
permutations([1, 2, 3])
[1, 2, 3]
[1, 3, 2]
[2, 1, 3]
[2, 3, 1]
[3, 1, 2]
[3, 2, 1]
| You can generate all permutations of a list in Python using the built-in `itertools` module, which provides a convenient way to work with permutations. Here’s how you can do it:
1. **Using `itertools.permutations`**: This function returns all possible permutations of a given iterable.
Here’s an example of how to use ... | 9,427 | [
{
"from": "human",
"value": "How do I generate all the permutations of a list? For example:\npermutations([])\n[]\n\npermutations([1])\n[1]\n\npermutations([1, 2])\n[1, 2]\n[2, 1]\n\npermutations([1, 2, 3])\n[1, 2, 3]\n[1, 3, 2]\n[2, 1, 3]\n[2, 3, 1]\n[3, 1, 2]\n[3, 2, 1]\n\n"
},
{
"from": "gpt",
... |
I'm looking for a method that computes the line number of a given text position in a JTextPane with wrapping enabled.
Example:
This a very very very very very very very very very very very very very very very very very very very very very very long line.
This is another very very very very very very very very very v... | To compute the line number of a given text position in a `JTextPane` with wrapping enabled, you need to account for how the text is laid out, particularly because wrapped lines can change the relationship between the position of the text and its visual representation.
Here's an implementation of the `getLineNumber` me... | 9,772 | [
{
"from": "human",
"value": "I'm looking for a method that computes the line number of a given text position in a JTextPane with wrapping enabled.\nExample:\n\nThis a very very very very very very very very very very very very very very very very very very very very very very long line.\n This is another v... |
I have heard mention of Objective-C but I have never used it myself. I was curious what everyones opinion of it was in general and also in relation to C++. Are there any types of projects where it would be more useful or less useful?
| Objective-C is a programming language that was primarily used for macOS and iOS application development before the rise of Swift. Here’s a general overview of its strengths and weaknesses compared to C++:
### Strengths of Objective-C:
1. **Cocoa and Cocoa Touch Frameworks**: Objective-C was designed to work closely w... | 11,340 | [
{
"from": "human",
"value": "I have heard mention of Objective-C but I have never used it myself. I was curious what everyones opinion of it was in general and also in relation to C++. Are there any types of projects where it would be more useful or less useful?\n"
},
{
"from": "gpt",
"value":... |
Is the DLR intended to be used to compile code exclusively prior to distribution or will it potentially be used to compile client-side Javascript in a JIT fashion?
| The DLR (Dynamic Language Runtime) is primarily designed to provide a runtime environment for dynamic languages on the .NET framework, allowing for features such as dynamic typing and dynamic method invocation. While the DLR is often associated with compiling code prior to distribution (as in the context of server-side... | 17,393 | [
{
"from": "human",
"value": "Is the DLR intended to be used to compile code exclusively prior to distribution or will it potentially be used to compile client-side Javascript in a JIT fashion?\n"
},
{
"from": "gpt",
"value": "The DLR (Dynamic Language Runtime) is primarily designed to provide a ... |
UIWebView is fine for displaying HTML, but I'd like to modify the loaded DOM from my Objective-C program. Does anybody know how to do that? This is a third party page, so I can't really include any custom JS to do so...unless I can modify the DOM somehow.
| To modify the loaded DOM of a webpage in a `UIWebView` from your Objective-C code, you can inject JavaScript into the web view. Here's how you can do it:
1. **Load the Web Page**: First, you need to load the third-party page in your `UIWebView`.
2. **Inject JavaScript**: After the page has finished loading, you can e... | 14,223 | [
{
"from": "human",
"value": "UIWebView is fine for displaying HTML, but I'd like to modify the loaded DOM from my Objective-C program. Does anybody know how to do that? This is a third party page, so I can't really include any custom JS to do so...unless I can modify the DOM somehow.\n"
},
{
"from... |
In Microsoft SQL Server, is there a way to detect whether a database has had its isolation level set via the T-SQL command ALTER DATABASE <database> SET READ_COMMITTED_SNAPSHOT ON;?
I cannot find a simple way to detect this in either T-SQL or via the Management Studio's GUI.
| Yes, you can check whether the `READ_COMMITTED_SNAPSHOT` option is enabled for a database in Microsoft SQL Server by querying the `DATABASEPROPERTYEX` function or by looking into the `sys.databases` catalog view.
### Using T-SQL
You can use the following query to check the status of `READ_COMMITTED_SNAPSHOT` for a sp... | 15,821 | [
{
"from": "human",
"value": "In Microsoft SQL Server, is there a way to detect whether a database has had its isolation level set via the T-SQL command ALTER DATABASE <database> SET READ_COMMITTED_SNAPSHOT ON;?\nI cannot find a simple way to detect this in either T-SQL or via the Management Studio's GUI.\n"... |
Is there a good command-line UNIX charting / graphing / plotting tool out there? I'm looking for something that will plot xy points on an ASCII graph.
Just to clarify, I'm looking for something that will output a graph in ASCII (like ascii-art style), so I can use it over an interactive shell session without needing X... | Yes, there are several command-line tools that can generate ASCII graphs for plotting XY points in a UNIX environment. Here are a few options you might find useful:
1. **gnuplot**:
- Gnuplot is a versatile plotting tool that can generate ASCII plots. You can use it in a terminal mode without X. To create an ASCII p... | 14,486 | [
{
"from": "human",
"value": "Is there a good command-line UNIX charting / graphing / plotting tool out there? I'm looking for something that will plot xy points on an ASCII graph.\nJust to clarify, I'm looking for something that will output a graph in ASCII (like ascii-art style), so I can use it over an i... |
I'm writing a shell for a project of mine, which by design parses commands that looks like this:
COMMAND_NAME ARG1="Long Value" ARG2=123 ARG3=me@me.com
My problem is that Python's command line parsing libraries (getopt and optparse) forces me to use '-' or '--' in front of the arguments. This behavior doesn't match my ... | If you're creating a custom shell that requires parsing command-line arguments in a format without dashes, you can implement your own parsing logic using standard string manipulation and regular expressions. While libraries like `getopt` and `argparse` are designed for conventional command-line argument parsing (with `... | 13,077 | [
{
"from": "human",
"value": "I'm writing a shell for a project of mine, which by design parses commands that looks like this:\nCOMMAND_NAME ARG1=\"Long Value\" ARG2=123 ARG3=me@me.com\nMy problem is that Python's command line parsing libraries (getopt and optparse) forces me to use '-' or '--' in front of t... |
Is it a good idea for me to use Qt Jambi in Java as a toolkit?
I see that Qt Jambi is hard to learn, and Swing is easier than Qt Jambi, but I think that Qt Jambi is more powerful.
| Choosing between Qt Jambi and Swing for a Java project depends on several factors, including your specific project requirements, your familiarity with each framework, and the long-term goals of your application. Here are some considerations to help you make your decision:
### Advantages of Qt Jambi:
1. **Rich UI Compo... | 12,914 | [
{
"from": "human",
"value": "Is it a good idea for me to use Qt Jambi in Java as a toolkit? \nI see that Qt Jambi is hard to learn, and Swing is easier than Qt Jambi, but I think that Qt Jambi is more powerful.\n"
},
{
"from": "gpt",
"value": "Choosing between Qt Jambi and Swing for a Java proje... |
Is there a way to stop the path showing in a source code tab in Visual Studio 2008?
Currently when developing an ASP.NET site, I get the path from the root plus the filename - truncated when it gets too long. So something like:
MyDir/MyPage.aspx
for a short path and filename, or:
MyDir/MyLong...yPage.aspx
for a lon... | In Visual Studio 2008, there is no built-in setting to change the way file names are displayed in the tabs directly through the options menu. The behavior you're experiencing—where it shows the path truncated—was indeed a change that occurred between versions, and many users have expressed similar concerns regarding ta... | 15,421 | [
{
"from": "human",
"value": "Is there a way to stop the path showing in a source code tab in Visual Studio 2008?\nCurrently when developing an ASP.NET site, I get the path from the root plus the filename - truncated when it gets too long. So something like:\n\nMyDir/MyPage.aspx\n\nfor a short path and filen... |
I have two threads in an Android application, one is the view thread, and the other is the worker thread. What I want to do is, sleep the worker thread until the view thread terminates the handling of the onDraw method.
How i can do this? is there any wait for the signal or something?
| In Android, you typically do not want to block the UI thread or attempt to manage its state directly from a background thread. Instead, you should look for ways to synchronize between the worker thread and the UI thread without causing deadlocks or performance issues.
However, if you do need to ensure that a worker th... | 12,083 | [
{
"from": "human",
"value": "I have two threads in an Android application, one is the view thread, and the other is the worker thread. What I want to do is, sleep the worker thread until the view thread terminates the handling of the onDraw method.\nHow i can do this? is there any wait for the signal or som... |
Following Jonathan Holland's suggestion in his comment for my previous question: Is there any way in .NET to programmatically listen to HTTP traffic? I've made a separate (but not exactly a duplicate) question for what I really want to know:
How do I automate a web proxy in .NET for unit tests (including set up and tea... | To programmatically listen to HTTP traffic in .NET for the purpose of spying on web requests (including images, scripts, and XMLHTTPRequest) during unit tests, you can create a simple HTTP proxy server that captures traffic. This can be achieved using the `HttpListener` class, which is a part of the .NET Framework. Bel... | 10,505 | [
{
"from": "human",
"value": "Following Jonathan Holland's suggestion in his comment for my previous question: Is there any way in .NET to programmatically listen to HTTP traffic? I've made a separate (but not exactly a duplicate) question for what I really want to know:\nHow do I automate a web proxy in .NE... |
I have a JLabel (actually, it is a JXLabel).
I have put an icon and text on it.
<icon><text>
Now I wand to add some spacing on the left side of the component, like this:
<space><icon><text>
I DON'T accept suggestion to move the JLabel or add spacing by modifying the image.
I just want to know how to do it with plain ja... | To add spacing on the left side of a `JLabel` (or `JXLabel`), you can use the `setBorder` method to add an empty border. This approach does not involve modifying the image or moving the label itself. Here’s how you can do it in plain Java code:
### Example Code
```java
import javax.swing.*;
import org.jdesktop.swingx... | 13,126 | [
{
"from": "human",
"value": "I have a JLabel (actually, it is a JXLabel).\nI have put an icon and text on it.\n<icon><text>\nNow I wand to add some spacing on the left side of the component, like this:\n<space><icon><text>\nI DON'T accept suggestion to move the JLabel or add spacing by modifying the image.\... |
This is a shameless information gathering exercise for my own book.
One of the talks I give in the community is an introduction to web site vulnerabilities. Usually during the talk I can see at least two members of the audience go very pale; and this is basic stuff, Cross Site Scripting, SQL Injection, Information Leak... | It's great to hear about your initiative to educate others about web security! Here are some useful insights and best practices for beginning web developers to help them understand security better and develop securely:
1. **Understanding the Security Basics**:
- Explain common vulnerabilities using simple analogies... | 10,722 | [
{
"from": "human",
"value": "This is a shameless information gathering exercise for my own book.\nOne of the talks I give in the community is an introduction to web site vulnerabilities. Usually during the talk I can see at least two members of the audience go very pale; and this is basic stuff, Cross Site ... |
Is there a c# library which provides similar functionality to the Python PubSub library? I think it's kind of an Observer Pattern which allows me to subscribe for messages of a given topic instead of using events.
| Yes, in C# you can achieve similar functionality to the Python PubSub library using various libraries or implementations that leverage the Observer Pattern. One popular library that provides a Pub/Sub mechanism is **MediatR**. While MediatR is primarily a library for implementing the mediator pattern, it can also be us... | 11,603 | [
{
"from": "human",
"value": "Is there a c# library which provides similar functionality to the Python PubSub library? I think it's kind of an Observer Pattern which allows me to subscribe for messages of a given topic instead of using events.\n"
},
{
"from": "gpt",
"value": "Yes, in C# you can a... |
Anyone have any idea? And any open source sofware which also seens to perform this kind of functionality?
| It seems like your question might be missing some context about the specific functionality you're interested in. However, I can provide some general recommendations for open-source software across various categories:
1. **Data Analysis and Visualization**:
- **Pandas**: A powerful data manipulation and analysis lib... | 15,166 | [
{
"from": "human",
"value": "Anyone have any idea? And any open source sofware which also seens to perform this kind of functionality?\n"
},
{
"from": "gpt",
"value": "It seems like your question might be missing some context about the specific functionality you're interested in. However, I can ... |
I have the following piece of code in my jsp :
<% pageContext.setAttribute("warnings",Globals.WARNING_MESSAGES); %>
<c:choose>
<c:when test="${requestScope[pageScope.warnings] or sessionScope[pageScope.warnings]}">
<html:errors header="warnings.header" footer="warnings.footer" prefix="warnings.prefix" suffi... | In JSP, the Expression Language (EL) is not designed to directly support referencing scripting variables (like page-scoped variables) in the way you are attempting. The EL context allows you to access attributes in various scopes (page, request, session, application) but does not allow you to directly reference Java va... | 14,130 | [
{
"from": "human",
"value": "I have the following piece of code in my jsp :\n<% pageContext.setAttribute(\"warnings\",Globals.WARNING_MESSAGES); %>\n<c:choose>\n <c:when test=\"${requestScope[pageScope.warnings] or sessionScope[pageScope.warnings]}\">\n <html:errors header=\"warnings.header\" foot... |
I am using REPLACE in an SQL view to remove the spaces from a property number. The function is setup like this REPLACE(pin, ' ', ''). On the green-screen the query looked fine. In anything else we get the hex values of the characters in the field. I am sure it is an encoding thing, but how do I fix it?
Here is the stat... | It seems like you ran into an issue with character encoding when using the `REPLACE` function in your SQL view. In SQL, especially when dealing with different environments (like a green-screen interface vs. a modern database client), encoding discrepancies can cause unexpected results, such as seeing hex values instead... | 14,806 | [
{
"from": "human",
"value": "I am using REPLACE in an SQL view to remove the spaces from a property number. The function is setup like this REPLACE(pin, ' ', ''). On the green-screen the query looked fine. In anything else we get the hex values of the characters in the field. I am sure it is an encoding thi... |
I have a FlowDocument in a standard WPF application window where I have some text, and in this text some hyperlinks and buttons.
The problem is, if I put this FlowDocument inside anything except a FlowDocumentPageViewer the hyperlinks and buttons are disabled ("grayed out").
<FlowDocumentScrollViewer>
<FlowDocument>
... | It sounds like you've already resolved the issue you were experiencing with the `FlowDocument` in your WPF application, but let's summarize the key points and provide some useful information for future reference:
### Key Points about `FlowDocument` and Interactivity
1. **FlowDocument Usage**: The `FlowDocument` is pr... | 12,290 | [
{
"from": "human",
"value": "I have a FlowDocument in a standard WPF application window where I have some text, and in this text some hyperlinks and buttons.\nThe problem is, if I put this FlowDocument inside anything except a FlowDocumentPageViewer the hyperlinks and buttons are disabled (\"grayed out\").\... |
I am maintaining a pretty sizable application and database and am noticing some poor database performance in a few of our stored procedures.
I always hear that "adding an index" can be done to help performance. I am certainly no DBA, and I do not understand what indexes are, why they help, and how to create them.
I bas... | Certainly! Understanding indexes is crucial for database performance optimization, and you're on the right path by seeking out knowledge on the subject. Here’s a basic overview of what indexes are, why they help, and how you can get started with them.
### What is an Index?
An index is a database object that improves ... | 10,595 | [
{
"from": "human",
"value": "I am maintaining a pretty sizable application and database and am noticing some poor database performance in a few of our stored procedures.\nI always hear that \"adding an index\" can be done to help performance. I am certainly no DBA, and I do not understand what indexes are, ... |
How can I use the standard Edit menu in my Palm OS application, instead of having to implement my own Cut/Copy/Paste/Keyboard handlers?
| In a Palm OS application, you can leverage the standard Edit menu to handle Cut, Copy, Paste, and other similar functions without having to implement your own keyboard handlers. Here's how you can do it:
1. **Use the Palm OS Menu API**: The Palm OS provides a built-in menu system, and you can define your application's... | 14,960 | [
{
"from": "human",
"value": "How can I use the standard Edit menu in my Palm OS application, instead of having to implement my own Cut/Copy/Paste/Keyboard handlers?\n"
},
{
"from": "gpt",
"value": "In a Palm OS application, you can leverage the standard Edit menu to handle Cut, Copy, Paste, and ... |
I've got C# code that accesses MySQL through ODBC.
It creates a transaction, does a few thousand insert commands, and then commits.
Now my question is how many "round trips", so to speak, happen against the DB server? I mean, does it simply transmit every insert command to the DB server, or does it cache/buffer them an... | In a C# application that accesses MySQL through ODBC, the behavior regarding how many "round trips" to the database occur during the transaction depends on several factors, including how the ODBC driver is implemented and whether you are using explicit batch operations.
### General Behavior
1. **One Round Trip Per Co... | 8,610 | [
{
"from": "human",
"value": "I've got C# code that accesses MySQL through ODBC.\nIt creates a transaction, does a few thousand insert commands, and then commits.\nNow my question is how many \"round trips\", so to speak, happen against the DB server? I mean, does it simply transmit every insert command to t... |
Assume I have created a compiled re:
x = re.compile('^\d+$')
Is there a way to extract the pattern string (^\d+$) back from the x?
| In Python's `re` module, when you compile a regular expression using `re.compile()`, the compiled object itself does not store the original pattern string in a directly accessible way. However, you can retrieve the pattern string from the compiled regex object by using the `pattern` attribute.
Here's an example:
```p... | 17,928 | [
{
"from": "human",
"value": "Assume I have created a compiled re:\nx = re.compile('^\\d+$')\n\nIs there a way to extract the pattern string (^\\d+$) back from the x?\n"
},
{
"from": "gpt",
"value": "In Python's `re` module, when you compile a regular expression using `re.compile()`, the compiled... |
Does anyone know of a good example implementation of the Service Location Protocol that can be build/ran on a windows box?
| Yes, there are several implementations of the Service Location Protocol (SLP) that you can run on a Windows machine. Here are a few notable ones:
1. **OpenSLP**: This is an open-source implementation of SLP that is widely used. OpenSLP provides both a server and client implementation and is compatible with various ope... | 14,284 | [
{
"from": "human",
"value": "Does anyone know of a good example implementation of the Service Location Protocol that can be build/ran on a windows box?\n"
},
{
"from": "gpt",
"value": "Yes, there are several implementations of the Service Location Protocol (SLP) that you can run on a Windows mac... |
Does anyone know of a really good editor to debug JavaScript (other then Visual Studio 2008 and FireBug)?
| Certainly! There are several excellent editors and tools for debugging JavaScript besides Visual Studio 2008 and Firebug. Here are a few recommendations:
1. **Google Chrome DevTools**: Built directly into the Google Chrome browser, DevTools provides powerful debugging capabilities, including breakpoints, variable insp... | 14,077 | [
{
"from": "human",
"value": "Does anyone know of a really good editor to debug JavaScript (other then Visual Studio 2008 and FireBug)?\n\n"
},
{
"from": "gpt",
"value": "Certainly! There are several excellent editors and tools for debugging JavaScript ... |
The setup:
Multiple computers using an adp file to access a sql 2005 database. Most don't have a pdf distiller. An access form (plain form, not crystal) is created that needs to be saved as a pdf.
The only way I can think of is send a request from access to the sql server for a web page. Something like:
"http://sqlser... | Generating a PDF directly from SQL Server using T-SQL alone is not feasible, as T-SQL lacks native PDF generation capabilities. However, there are several methodologies you could consider to achieve your goal of saving Access form data as a PDF without relying on a web page as a middleman. Here are some ideas:
1. **Us... | 13,679 | [
{
"from": "human",
"value": "The setup:\nMultiple computers using an adp file to access a sql 2005 database. Most don't have a pdf distiller. An access form (plain form, not crystal) is created that needs to be saved as a pdf.\nThe only way I can think of is send a request from access to the sql server for ... |
People have been developing own solutions to the following problems:
Consistent messaging frameworks for remote information exchange (webservices,rpc,...)
SDK's for state managements for things such as Finite State Machines and Workflows
Authentication Frameworks
And much more.
For over two years now, Microsoft off... | There are several reasons why some developers and organizations have been slow to adopt .NET 3.5, despite the improvements it brought over previous versions. Here are some concrete factors that might explain this phenomenon:
1. **Legacy Systems**: Many organizations have significant investments in legacy systems built... | 13,154 | [
{
"from": "human",
"value": "People have been developing own solutions to the following problems:\n\nConsistent messaging frameworks for remote information exchange (webservices,rpc,...) \nSDK's for state managements for things such as Finite State Machines and Workflows\nAuthentication Frameworks \nAnd muc... |
Stored procs in SQL Server sometimes finish with a return code, as opposed to a recordset of data. I've seen ASP code that's able to get this return code, but I can't figure out how to get this code with PHP's mssql driver.
mssql_get_last_message() always returns nothing, and I'm thinking it's because it only returns ... | Getting the return code from a stored procedure in SQL Server using PHP's `mssql` driver can be a bit tricky. The `mssql` extension doesn't have a built-in method to retrieve the return code directly, but you can work around this limitation using the following method:
### Using the `sqlsrv` driver
If you are using th... | 13,737 | [
{
"from": "human",
"value": "Stored procs in SQL Server sometimes finish with a return code, as opposed to a recordset of data. I've seen ASP code that's able to get this return code, but I can't figure out how to get this code with PHP's mssql driver.\nmssql_get_last_message() always returns nothing, and ... |
People also often ask "How can I compile Perl?" while what they really want is to create an executable that can run on machines even if they don't have Perl installed.
There are several solutions, I know of:
perl2exe of IndigoStar
It is commercial. I never tried. Its web site says it can cross compile Win32, Linux, an... | In addition to the options you've already mentioned, there are a few more solutions for creating standalone executables from Perl scripts that can run on machines without Perl installed:
1. **pp (PAR::Packer)**: While you mentioned PAR::Packer, it's worth emphasizing that the `pp` command is part of this module and is... | 14,279 | [
{
"from": "human",
"value": "People also often ask \"How can I compile Perl?\" while what they really want is to create an executable that can run on machines even if they don't have Perl installed.\nThere are several solutions, I know of:\n\nperl2exe of IndigoStar\nIt is commercial. I never tried. Its web ... |
What RTOS is best for working on the same PC with Windows?
I know about RTX and INtime, but have not used them. Are there any others? Which one is your favorite and why?
| When considering real-time operating systems (RTOS) that can work alongside Windows on the same PC, there are several options you might explore beyond RTX and INtime. Here are a few popular RTOS choices, along with some insights into their features:
1. **RTX (Real-Time eXtension)**:
- Developed by Segger, RTX is in... | 12,916 | [
{
"from": "human",
"value": "What RTOS is best for working on the same PC with Windows?\nI know about RTX and INtime, but have not used them. Are there any others? Which one is your favorite and why?\n"
},
{
"from": "gpt",
"value": "When considering real-time operating systems (RTOS) that can ... |
I've got a request from a customer to automatically detect the type of mobile device (not the browser, the type. ex: Moto Q, Blackjack II, etc.) and automatically select the device from a drop down with a list of supported devices.
So far I've found that the HTTP Headers (submitted by mobile IE) contain information suc... | Automatically detecting the specific model of a mobile device based purely on HTTP headers can be quite challenging, especially given the variability in how different devices and browsers identify themselves. However, there are a few strategies you can consider:
### 1. User Agent Parsing:
While you mentioned that the ... | 13,867 | [
{
"from": "human",
"value": "I've got a request from a customer to automatically detect the type of mobile device (not the browser, the type. ex: Moto Q, Blackjack II, etc.) and automatically select the device from a drop down with a list of supported devices.\nSo far I've found that the HTTP Headers (submi... |
When maintaining a COM interface should an empty BSTR be treated the same way as NULL?
In other words should these two function calls produce the same result?
// Empty BSTR
CComBSTR empty(L""); // Or SysAllocString(L"")
someObj->Foo(empty);
// NULL BSTR
someObj->Foo(NULL);
| In COM (Component Object Model) programming, handling BSTR (Binary String) values requires careful consideration of how they are interpreted, especially in the context of interfaces.
The key difference between an empty BSTR (`CComBSTR empty(L"")` or `SysAllocString(L"")`) and a NULL BSTR is how the two represent value... | 14,985 | [
{
"from": "human",
"value": "When maintaining a COM interface should an empty BSTR be treated the same way as NULL?\nIn other words should these two function calls produce the same result?\n // Empty BSTR\n CComBSTR empty(L\"\"); // Or SysAllocString(L\"\")\n someObj->Foo(empty);\n\n // NULL BSTR\n someObj-... |
We have been using .Net and Visual Studio for the last six years, and early on developed a number of web based reporting applications using the .Net version of Crystal Reports that was bundled with Visual Studio. I'm unimpressed with that product: It seems incredibly difficult and convoluted to use. We had to make secu... | It sounds like you are at a critical juncture with your reporting framework and have several options to consider as you move forward. Here are some thoughts on each of the options you mentioned:
### 1. **Continue with Crystal Reports .NET**
- **Pros:**
- If your team is already familiar with Crystal Reports, stickin... | 10,107 | [
{
"from": "human",
"value": "We have been using .Net and Visual Studio for the last six years, and early on developed a number of web based reporting applications using the .Net version of Crystal Reports that was bundled with Visual Studio. I'm unimpressed with that product: It seems incredibly difficult a... |
What web app architecture works well receiving/sending SMS text messages? By "architecture, I mean specific architecture, not generally, such as MVC.
Background: I'm building a web app that receives queries from/sends answers to cell phones. The app design (and business model) expects to communicate with cell devices v... | When building a web app that primarily communicates with users through SMS text messages, you'll want to consider an architecture that effectively handles SMS interactions, ensures message delivery, and scales as needed. Here’s a more specific architecture that would suit your requirements:
### Architecture Overview: ... | 13,044 | [
{
"from": "human",
"value": "What web app architecture works well receiving/sending SMS text messages? By \"architecture, I mean specific architecture, not generally, such as MVC.\nBackground: I'm building a web app that receives queries from/sends answers to cell phones. The app design (and business model)... |
I'm a bit stuck on this. Basically I want to do something like the following SQL query in LINQ to SQL:
SELECT f.*
FROM Foo f
WHERE f.FooId IN (
SELECT fb.FooId
FROM FooBar fb
WHERE fb.BarId = 1000
)
Any help would be gratefully received.
| Certainly! You can achieve the equivalent of your SQL query in LINQ to SQL by using a combination of `Where`, `Select`, and `Contains`. Here’s how you can structure your LINQ query:
Assuming you have a context that includes `Foo` and `FooBar` entities, you can write the LINQ query like this:
```csharp
using (var cont... | 10,067 | [
{
"from": "human",
"value": "I'm a bit stuck on this. Basically I want to do something like the following SQL query in LINQ to SQL:\nSELECT f.* \nFROM Foo f\nWHERE f.FooId IN (\n SELECT fb.FooId\n FROM FooBar fb\n WHERE fb.BarId = 1000\n)\n\nAny help would be gratefully received.\n"
},
{
"f... |
JSF is setting the ID of an input field to search_form:expression. I need to specify some styling on that element, but that colon looks like the beginning of a pseudo-element to the browser so it gets marked invalid and ignored. Is there anyway to escape the colon or something?
input#search_form:expression {
///...
}... | In CSS, colons (`:`) are indeed used to denote pseudo-classes and pseudo-elements, so having a colon in an ID can cause issues when trying to style that element directly. However, you can escape the colon to correctly reference the element with an ID containing special characters.
To escape a colon in a CSS selector, ... | 16,434 | [
{
"from": "human",
"value": "JSF is setting the ID of an input field to search_form:expression. I need to specify some styling on that element, but that colon looks like the beginning of a pseudo-element to the browser so it gets marked invalid and ignored. Is there anyway to escape the colon or something?\... |
I want to load a different properties file based upon one variable.
Basically, if doing a dev build use this properties file, if doing a test build use this other properties file, and if doing a production build use yet a third properties file.
| To achieve the loading of different properties files based on a variable (for example, an environment variable or a command-line argument), you can follow a structured approach. Below, I’ll outline a simple way to implement this using Java as an example, but the concept can be adapted to other programming languages as ... | 12,159 | [
{
"from": "human",
"value": "I want to load a different properties file based upon one variable.\nBasically, if doing a dev build use this properties file, if doing a test build use this other properties file, and if doing a production build use yet a third properties file.\n"
},
{
"from": "gpt",
... |
I write tons of python scripts, and I find myself reusing lots code that I've written for other projects. My solution has been to make sure the code is separated into logical modules/packages (this one's a given). I then make them setuptools-aware and publish them on PyPI. This allows my other scripts to always have th... | It's great to hear that you're taking such a structured approach to organizing your code and promoting reusability! Many Python developers face similar challenges when it comes to managing and reusing code across multiple projects. Here are some common strategies that Pythonistas use:
1. **Modularization**: Just like ... | 14,895 | [
{
"from": "human",
"value": "I write tons of python scripts, and I find myself reusing lots code that I've written for other projects. My solution has been to make sure the code is separated into logical modules/packages (this one's a given). I then make them setuptools-aware and publish them on PyPI. This ... |
I'm using SQL*Plus 9.2 on Oracle 10g enterprise. I have created some scripts that do basic inserts using parameters that I pass through the command prompt. It seemed logical that I should be able to run a bunch of inserts in a loop. So I tried the following:
--begin
DECLARE
TYPE va_orgs IS TABLE OF nbr.lien_item.lien... | The issue you are encountering in your PL/SQL block is due to how you are referencing the elements of the `org` collection in the `INSERT` statement. Specifically, you have a small mistake in the way you are trying to reference the current element of the collection.
In your code, you wrote `'org(i)'`, which treats it ... | 13,883 | [
{
"from": "human",
"value": "I'm using SQL*Plus 9.2 on Oracle 10g enterprise. I have created some scripts that do basic inserts using parameters that I pass through the command prompt. It seemed logical that I should be able to run a bunch of inserts in a loop. So I tried the following:\n--begin\n\nDECLARE\... |
How can you programmatically set the parameters for a subreport? For the top-level report, you can do the following:
reportViewer.LocalReport.SetParameters
(
new Microsoft.Reporting.WebForms.ReportParameter[]
{
new Microsoft.Reporting.WebForms.ReportParameter("ParameterA", "Test"),
new Microso... | To set parameters for a subreport in a `ReportViewer` control in an ASP.NET application, you indeed need to handle the `SubreportProcessing` event. While the parameters for the main report can be set directly using `SetParameters`, subreport parameters must be set during the event.
Here's a step-by-step guide on how t... | 8,838 | [
{
"from": "human",
"value": "How can you programmatically set the parameters for a subreport? For the top-level report, you can do the following:\n\nreportViewer.LocalReport.SetParameters\n(\n new Microsoft.Reporting.WebForms.ReportParameter[]\n {\n new Microsoft.Reporting.WebForms.ReportParam... |
As you work in a legacy codebase what will have the greatest impact over time that will improve the quality of the codebase?
Remove unused code
Remove duplicated code
Add unit tests to improve test coverage where coverage is low
Create consistent formatting across files
Update 3rd party software
Reduce warnings gener... | Improving the quality of a legacy codebase is a multifaceted challenge, and the actions you can take will depend on the specific context of the codebase and its usage. However, based on your options, here's a prioritized approach that can have the greatest impact over time:
1. **Add Unit Tests to Improve Test Coverage... | 12,729 | [
{
"from": "human",
"value": "As you work in a legacy codebase what will have the greatest impact over time that will improve the quality of the codebase?\n\nRemove unused code\nRemove duplicated code \nAdd unit tests to improve test coverage where coverage is low\nCreate consistent formatting across files\n... |
Ubuntu has 8 run levels (0-6 and S), I want to add the run level 7.
I have done the following:
1.- Created the folder /etc/rc7.d/, which contains some symbolic links to /etc/init.d/
2.- Created the file /etc/event.d/rc7 This is its content:
# rc7 - runlevel 7 compatibility
#
# This task runs the old sysv-rc runlevel 7 ... | The error you're encountering, "telinit: illegal runlevel: 7", suggests that the system doesn't recognize the runlevel 7 you've created. This is likely due to the fact that the `telinit` command does not recognize custom runlevels in systems using `Upstart` or `systemd`, which are the common init systems on modern Ubun... | 13,308 | [
{
"from": "human",
"value": "Ubuntu has 8 run levels (0-6 and S), I want to add the run level 7.\nI have done the following:\n1.- Created the folder /etc/rc7.d/, which contains some symbolic links to /etc/init.d/\n2.- Created the file /etc/event.d/rc7 This is its content:\n# rc7 - runlevel 7 compatibility\n... |
I have a table inside a div. I want the table to occupy the entire width of the div tag.
In the CSS, I've set the width of the table to 100%. Unfortunately, when the div has some margin on it, the table ends up wider than the div it's in.
I need to support IE6 and IE7 (as this is an internal app), although I'd obvious... | To ensure that the table occupies the entire width of a `div` while accounting for margins without exceeding the width of the parent `div`, you can use a combination of CSS properties to control box sizing, margin, and padding. Given your constraints with older browsers like IE6 and IE7, here's a solution you can imple... | 13,713 | [
{
"from": "human",
"value": "I have a table inside a div. I want the table to occupy the entire width of the div tag.\nIn the CSS, I've set the width of the table to 100%. Unfortunately, when the div has some margin on it, the table ends up wider than the div it's in.\nI need to support IE6 and IE7 (as thi... |
I have a site on my webhotel I would like to run some scheduled tasks on. What methods of achieving this would you recommend?
What I’ve thought out so far is having a script included in the top of every page and then let this script check whether it’s time to run this job or not.
This is just a quick example of what I ... | Using a script included in every page to run scheduled tasks is not typically the best approach for several reasons, including performance overhead, inefficiency, and potential conflicts with concurrent users. Here are some alternative methods for scheduling tasks on a web server:
### 1. **Cron Jobs (Recommended)**
I... | 12,880 | [
{
"from": "human",
"value": "I have a site on my webhotel I would like to run some scheduled tasks on. What methods of achieving this would you recommend?\nWhat I’ve thought out so far is having a script included in the top of every page and then let this script check whether it’s time to run this job or no... |
Can I configure hibernate properties to connect without using an instance name to sql server 2005? I need to force it to use localhost as the hostname and not specify the instance (same as you can do with the sql server enterprise manager).
Ta!
T
| Yes, you can configure Hibernate to connect to SQL Server without specifying an instance name, which allows it to connect directly to the default instance on localhost. In SQL Server, if you are connecting to the default instance, you don't need to specify the instance name in the connection URL.
Here's how you can co... | 13,079 | [
{
"from": "human",
"value": "Can I configure hibernate properties to connect without using an instance name to sql server 2005? I need to force it to use localhost as the hostname and not specify the instance (same as you can do with the sql server enterprise manager). \nTa!\nT\n"
},
{
"from": "gpt... |
I've been thinking about software estimation lately, and I have a bunch of questions around time spent coding. I'm curious to hear from people who have had at least a couple years of experience developing software.
When you have to estimate the amount of time you'll spend working on something, how many hours of the day... | These are great questions that touch on many aspects of software development and productivity. I'll do my best to provide insights based on common experiences in the industry.
### Time Spent Coding
1. **Hours Spent Coding**: On average, developers might spend 4-6 hours coding per day. However, this can vary significan... | 6,502 | [
{
"from": "human",
"value": "I've been thinking about software estimation lately, and I have a bunch of questions around time spent coding. I'm curious to hear from people who have had at least a couple years of experience developing software.\nWhen you have to estimate the amount of time you'll spend worki... |
Since I upgraded to Visual Studio 2008 from vs2005, I have found a very annoying behaviour when debugging large projects. If I attempt to step into inline code, the debugger appears to lock up for tens of seconds. Each time that I step inside such a function, there is a similar pause. Has anyone experienced this and... | It sounds like you encountered a known issue with Visual Studio 2008 that could cause performance problems, particularly when debugging large projects and stepping into inline functions. The introduction of service packs often addresses these types of performance issues and can significantly improve the debugging exper... | 14,259 | [
{
"from": "human",
"value": "Since I upgraded to Visual Studio 2008 from vs2005, I have found a very annoying behaviour when debugging large projects. If I attempt to step into inline code, the debugger appears to lock up for tens of seconds. Each time that I step inside such a function, there is a simila... |
Are there any open source algorithms in c# that solve the problem of creating a difference between two text files?
It would be super cool if it had some way of highlighting what exact areas where changed in the text document also.
| Yes, there are several open-source libraries and algorithms in C# that can help you compare two text files and highlight the differences. Below are some notable ones:
### 1. **DiffPlex**
DiffPlex is a popular library for performing text diffs. It provides a way to compare text and offers functionality to show differen... | 13,176 | [
{
"from": "human",
"value": "Are there any open source algorithms in c# that solve the problem of creating a difference between two text files?\nIt would be super cool if it had some way of highlighting what exact areas where changed in the text document also.\n"
},
{
"from": "gpt",
"value": "Ye... |
I'm trying to configure ASP caching in IIS, following the instructions of a software I purchased. This is supposed to make it run faster.
http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/a5766228-828e-4e31-a92b-51da7d24d569.mspx?mfr=true
The software instructions point to that article.
The pro... | In IIS 6.0, ASP caching features are configured in the properties of the web application or virtual directory. However, some options might not be visible if certain settings are not enabled or if you're not in the correct context.
Here are a few steps to troubleshoot the issue and ensure you can access the ASP File Ca... | 14,079 | [
{
"from": "human",
"value": "I'm trying to configure ASP caching in IIS, following the instructions of a software I purchased. This is supposed to make it run faster.\nhttp://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/a5766228-828e-4e31-a92b-51da7d24d569.mspx?mfr=true\nThe software ... |
At my house I have about 10 computers all different processors and speeds (all x86 compatible). I would like to cluster these. I have looked at openMosix but since they stopped development on it I am deciding against using it. I would prefer to use the latest or next to latest version of a mainstream distribution of Li... | Setting up a cluster with different x86-compatible computers for load balancing and custom applications can be an exciting project! Below are some resources, concepts, and tools that can help you get started:
### Key Concepts and Tools
1. **Cluster Types:**
- **Beowulf Clusters:** A common method for building a cl... | 12,707 | [
{
"from": "human",
"value": "At my house I have about 10 computers all different processors and speeds (all x86 compatible). I would like to cluster these. I have looked at openMosix but since they stopped development on it I am deciding against using it. I would prefer to use the latest or next to latest v... |
And/or: do I need one?
I've recently started using FogBugz for my hobby projects, and I'm very happy with things so far. Having read more about it, especially the evidence-based scheduling, I'd like to start using it for my PhD as well. (Heh; something tells me my supervisors won't be opening tickets for me, though.)
L... | It's great to hear that you're enjoying using FogBugz for your projects! When it comes to managing your time and tasks, finding the right tools can really enhance your productivity, especially for something as demanding as a PhD.
TimePost is indeed a simple yet effective tool for logging time, and it can be a great ad... | 14,420 | [
{
"from": "human",
"value": "And/or: do I need one?\nI've recently started using FogBugz for my hobby projects, and I'm very happy with things so far. Having read more about it, especially the evidence-based scheduling, I'd like to start using it for my PhD as well. (Heh; something tells me my supervisors w... |
My company releases a small software product for which I've recently been taking over the development side. It is a C# Windows Forms application.
One of the things I've noticed is that much of the information about how the software is used is filtered through my superiors and I get the feeling that I'm missing importa... | Implementing a system to monitor user behavior in your C# Windows Forms application can provide valuable insights into how users interact with your software, which features are popular, and where they might be facing challenges. Here are some strategies and tools you can consider to gather user feedback and behavior da... | 11,721 | [
{
"from": "human",
"value": "My company releases a small software product for which I've recently been taking over the development side. It is a C# Windows Forms application.\nOne of the things I've noticed is that much of the information about how the software is used is filtered through my superiors and ... |
Is there a query in SQL Server 2005 I can use to get the server's IP or name?
| In SQL Server 2005, you can retrieve the server's name and IP address by using a combination of system functions and querying system views. Below are two queries that you can use to get the server's name and IP address.
### To get the Server Name:
You can use the following SQL query to get the name of the SQL Server ... | 16,081 | [
{
"from": "human",
"value": "Is there a query in SQL Server 2005 I can use to get the server's IP or name?\n"
},
{
"from": "gpt",
"value": "In SQL Server 2005, you can retrieve the server's name and IP address by using a combination of system functions and querying system views. Below are two qu... |
How does AOP (Aspect Oriented Programming) work in Drupal?
I have learned about AOP in terms of using it for logging and security, but how does it apply to Drupal?
| Aspect Oriented Programming (AOP) is a programming paradigm that allows you to separate cross-cutting concerns from the main business logic of your application. Cross-cutting concerns are aspects of a program that affect multiple modules or layers of the application, such as logging, security, or transaction management... | 14,032 | [
{
"from": "human",
"value": "How does AOP (Aspect Oriented Programming) work in Drupal?\nI have learned about AOP in terms of using it for logging and security, but how does it apply to Drupal?\n"
},
{
"from": "gpt",
"value": "Aspect Oriented Programming (AOP) is a programming paradigm that allo... |
I am working with Reporting Services and Sharepoint, I have an application that leverages reporting services however a client would like our application integrated into sharepoint. Currently we are tightly coupled to the ReportService.asmx webservice which exposes various methods for performing operations. Reporting Se... | You're on the right track with your approach to abstracting the Reporting Service and using dependency injection and the factory pattern. However, you are correct that the issue of the different namespaces for the `CatalogItem` object (and potentially other types) complicates things.
Here are a few strategies you cou... | 13,898 | [
{
"from": "human",
"value": "I am working with Reporting Services and Sharepoint, I have an application that leverages reporting services however a client would like our application integrated into sharepoint. Currently we are tightly coupled to the ReportService.asmx webservice which exposes various method... |
Is there a way to force a Samba process to close a given file without killing it?
Samba opens a process for each client connection, and sometimes I see it holds open files far longer than needed. Usually i just kill the process, and the (windows) client will reopen it the next time it access the share; but sometimes i... | In Samba, managing open files can indeed be a challenge, especially when you're trying to close a specific file without terminating the entire connection. While the `net rpc file close <fileid>` command is designed for this purpose, there are a few reasons why it might not be functioning as expected. Here are some appr... | 14,872 | [
{
"from": "human",
"value": "Is there a way to force a Samba process to close a given file without killing it?\nSamba opens a process for each client connection, and sometimes I see it holds open files far longer than needed. Usually i just kill the process, and the (windows) client will reopen it the next... |
I happened upon a brief discussion recently on another site about C# runtime compilation recently while searching for something else and thought the idea was interesting. Have you ever used this? I'm trying to determine how/when one might use this and what problem it solves. I'd be very interested in hearing how you... | Runtime compilation in C# is an interesting feature that allows developers to compile and execute C# code at runtime. This can be particularly useful in scenarios where you need to write dynamic, adaptable, or user-generated code. Here are some contexts where runtime compilation can be beneficial, as well as practical ... | 12,063 | [
{
"from": "human",
"value": "I happened upon a brief discussion recently on another site about C# runtime compilation recently while searching for something else and thought the idea was interesting. Have you ever used this? I'm trying to determine how/when one might use this and what problem it solves. ... |
What GUI should use to run my JUnit tests, and how exactly do I do that? My entire background is in .NET, so I'm used to just firing up my NUnit gui and running my unit tests. If the lights are green, I'm clean.
Now, I have to write some Java code and want to run something similar using JUnit. The JUnit documentation ... | To run JUnit tests in a GUI environment, you have several options. Below are a few popular choices you can consider, along with some basic instructions on how to set them up and use them:
### 1. **Eclipse IDE**
Eclipse is a widely used integrated development environment (IDE) for Java development that has built-in su... | 7,113 | [
{
"from": "human",
"value": "What GUI should use to run my JUnit tests, and how exactly do I do that? My entire background is in .NET, so I'm used to just firing up my NUnit gui and running my unit tests. If the lights are green, I'm clean. \nNow, I have to write some Java code and want to run something sim... |
Does PHP have a method of having auto-generated class variables? I think I've seen something like this before but I'm not certain.
public class TestClass {
private $data = array();
public function TestClass() {
$this->data['firstValue'] = "cheese";
}
}
The $this->data array is always an associativ... | In PHP, you can achieve a form of auto-generated class variables using the magic method `__get()`. This allows you to access properties that are not explicitly defined in the class. Here's how you can implement it in your `TestClass`:
```php
class TestClass {
private $data = [];
public function __construct() ... | 13,715 | [
{
"from": "human",
"value": "Does PHP have a method of having auto-generated class variables? I think I've seen something like this before but I'm not certain.\npublic class TestClass {\n private $data = array();\n\n public function TestClass() {\n $this->data['firstValue'] = \"cheese\";\n }... |
In JavaScript, the "this" operator can refer to different things under different scenarios.
Typically in a method within a JavaScript "object", it refers to the current object.
But when used as a callback, it becomes a reference to the calling object.
I have found that this causes problems in code, because if you use ... | You're correct in noting that the behavior of `this` in JavaScript can be quite tricky, especially when dealing with methods that are used as callbacks. The context of `this` can change depending on how a function is called.
### Understanding `this`
1. **Method Calls**: When a method is called on an object (e.g., `ob... | 10,793 | [
{
"from": "human",
"value": "In JavaScript, the \"this\" operator can refer to different things under different scenarios. \nTypically in a method within a JavaScript \"object\", it refers to the current object.\nBut when used as a callback, it becomes a reference to the calling object.\nI have found that t... |
OK, so practically every database based application has to deal with "non-active" records. Either, soft-deletions or marking something as "to be ignored". I'm curious as to whether there are any radical alternatives thoughts on an `active' column (or a status column).
For example, if I had a list of people
CREATE TABLE... | You're right in recognizing that managing non-active records in a database often leads to discussions about best practices, especially from a purist perspective. Using an `active` column is a common approach, but it's not the only one. Here are a few alternatives you might consider:
### 1. Separate Tables for Active a... | 10,022 | [
{
"from": "human",
"value": "OK, so practically every database based application has to deal with \"non-active\" records. Either, soft-deletions or marking something as \"to be ignored\". I'm curious as to whether there are any radical alternatives thoughts on an `active' column (or a status column).\nFor e... |
I have compiled a CSS swf file which includes embedded skins for my Flex application. In our download product, this CSS works fine. On the web, a non-Flex container is loading the Flex application, and the CSS fails silently.
When the application is debugged, the following runtime error can be seen in the trace outpu... | It appears that the issue you are encountering is related to the CSS and SWF file not being able to locate or utilize certain components or skins when loaded in a non-Flex container. The errors you are seeing indicate that the CSS is attempting to apply styles to components that don't properly implement the required me... | 14,212 | [
{
"from": "human",
"value": "I have compiled a CSS swf file which includes embedded skins for my Flex application. In our download product, this CSS works fine. On the web, a non-Flex container is loading the Flex application, and the CSS fails silently.\nWhen the application is debugged, the following ru... |
I'm trying to store an xml serialized object in a cookie, but i get an error like this:
A potentially dangerous Request.Cookies value was detected from the client (KundeContextCookie="<?xml version="1.0" ...")
I know the problem from similiar cases when you try to store something that looks like javascript code in a f... | Storing serialized objects in cookies can lead to various issues, particularly with security restrictions put in place by ASP.NET to prevent potentially dangerous content in cookies. Here's a breakdown of your options and best practices for your situation:
### 1. **Using JSON Serialization**
JSON is a safer and more c... | 12,408 | [
{
"from": "human",
"value": "I'm trying to store an xml serialized object in a cookie, but i get an error like this:\nA potentially dangerous Request.Cookies value was detected from the client (KundeContextCookie=\"<?xml version=\"1.0\" ...\")\n\nI know the problem from similiar cases when you try to store ... |
I am looking for a free tool to load Excel data sheet into an Oracle database. I tried the Oracle SQL developer, but it keeps throwing a NullPointerException. Any ideas?
| If you're encountering issues with Oracle SQL Developer and want to load an Excel sheet into an Oracle database, there are several alternative tools and methods you can consider:
1. **SQL*Loader**: While this tool typically works with text files (like CSV), you can first save your Excel file as a CSV and then use SQL*... | 12,764 | [
{
"from": "human",
"value": "I am looking for a free tool to load Excel data sheet into an Oracle database. I tried the Oracle SQL developer, but it keeps throwing a NullPointerException. Any ideas?\n"
},
{
"from": "gpt",
"value": "If you're encountering issues with Oracle SQL Developer and want... |
How do you deal with source control management and automated deployment (configuration management) of database tables. I work in a SQL Server environment and it's pretty easy to script out drop and create files for stored procedures/triggers/functions even jobs. It's also easy to handle scripting out the creation of ... | Dealing with source control and automated deployment of database schema changes, especially in environments like SQL Server, can be a complex task, particularly when it comes to maintaining data integrity during modifications to existing tables. Here are some best practices and tools that can help you manage this proce... | 9,601 | [
{
"from": "human",
"value": "How do you deal with source control management and automated deployment (configuration management) of database tables. I work in a SQL Server environment and it's pretty easy to script out drop and create files for stored procedures/triggers/functions even jobs. It's also easy... |
There's alot of information out there on setting up LAMP stacks on a single box, or perhaps moving MySQL onto it's own box, but growing beyond that doesn't seem to be very well documented.
My current web environment is having capacity issues, and so I'm looking for best-practices regarding configuration tuning, determi... | It sounds like you have a solid foundation for your web environment, but there are always opportunities to improve performance and scalability. Below are some best practices and recommendations for optimizing your Apache web farm, tuning performance, addressing security, and preparing for future growth.
### Performanc... | 9,055 | [
{
"from": "human",
"value": "There's alot of information out there on setting up LAMP stacks on a single box, or perhaps moving MySQL onto it's own box, but growing beyond that doesn't seem to be very well documented.\nMy current web environment is having capacity issues, and so I'm looking for best-practic... |
What actually happens to the file system when you do a Subclipse Share Project on an Eclipse project that was externally checked out from Subversion? All the .svn folders are already in place. I get an error when I try to Share Project the right way, and I'd rather not delete and re-checkout the projects from the SVN... | When you use the "Share Project" feature in Subclipse on an Eclipse project that has already been checked out from Subversion (SVN), the following happens:
1. **SVN Metadata**: Eclipse's Subclipse plugin looks for the presence of Subversion metadata in the project. In a standard Subversion working directory, this meta... | 12,612 | [
{
"from": "human",
"value": "What actually happens to the file system when you do a Subclipse Share Project on an Eclipse project that was externally checked out from Subversion? All the .svn folders are already in place. I get an error when I try to Share Project the right way, and I'd rather not delete ... |
I have recently been doing a bit of investigation into the different types of Model View architectures, and need to decide which one to pursue for future in-house development. As I'm currently working in a Microsoft shop that has ASP.NET skills, it seems my options are between ASP.NET MVC and WCSF (Monorail is probably... | You're diving into an important decision for your development process, and it's great to see you're considering the nuances of ASP.NET MVC and WCSF (Web Client Software Factory). Here are some additional considerations, clarifications, and insights based on your observations:
### Clarifications on Your Points:
1. **P... | 6,824 | [
{
"from": "human",
"value": "I have recently been doing a bit of investigation into the different types of Model View architectures, and need to decide which one to pursue for future in-house development. As I'm currently working in a Microsoft shop that has ASP.NET skills, it seems my options are between A... |
Has anyone been able to successfully unit test methods that are, by necessity, coupled to the System.Windows.Forms.Form class?
I've recently been working on a C# winforms application, trying to build it with an MVC structure. This is difficult enough, given that the framework isn't really built with this in mind.
Howe... | Testing UI code, especially when using WinForms, can indeed be challenging. Here are several strategies you might consider to effectively unit test methods that interact with `System.Windows.Forms.Form` while adhering to best practices in software design:
### 1. Use an Abstraction Layer
Create an interface or an abst... | 11,234 | [
{
"from": "human",
"value": "Has anyone been able to successfully unit test methods that are, by necessity, coupled to the System.Windows.Forms.Form class?\nI've recently been working on a C# winforms application, trying to build it with an MVC structure. This is difficult enough, given that the framework ... |
Java is one of my programming languages of choice. I always run into the problem though of distributing my application to end-users.
Giving a user a JAR is not always as user friendly as I would like and using Java WebStart requires that I maintain a web server.
What's the best way to distribute a Java application? W... | Distributing a Java application in a user-friendly manner can indeed be a challenge, especially when you want to ensure a smooth installation process for end users. Here are several approaches and tools you can consider for packaging and distributing your Java applications:
### 1. **Java Packager (jpackage)**
Java 14... | 10,975 | [
{
"from": "human",
"value": "Java is one of my programming languages of choice. I always run into the problem though of distributing my application to end-users.\nGiving a user a JAR is not always as user friendly as I would like and using Java WebStart requires that I maintain a web server.\nWhat's the be... |
I have a Java process that opens a file using a FileReader. How can I prevent another (Java) process from opening this file, or at least notify that second process that the file is already opened? Does this automatically make the second process get an exception if the file is open (which solves my problem) or do I have... | To achieve mutual exclusion between two Java processes (the `ReadApp` and `WriteApp`) that operate on the same files, you can implement file locking using Java's `FileChannel`. This approach allows one process to lock a file while the other process attempts to access it. If the file is already locked, the second proces... | 11,200 | [
{
"from": "human",
"value": "I have a Java process that opens a file using a FileReader. How can I prevent another (Java) process from opening this file, or at least notify that second process that the file is already opened? Does this automatically make the second process get an exception if the file is op... |
I'm pretty sure the answer to this question is no, but in case there's some PHP guru
is it possible to write a function in a way where invalid arguments or non existent variables can be passed in and php will not error without the use of '@'
Much like empty and isset do. You can pass in a variable you just made up and ... | In PHP, when you create a function and pass an argument to it that is undefined, you will typically receive a notice or warning if error reporting is enabled (which is often the case in development environments). However, you can write your function in a way that it handles undefined variables without throwing errors. ... | 14,377 | [
{
"from": "human",
"value": "I'm pretty sure the answer to this question is no, but in case there's some PHP guru\nis it possible to write a function in a way where invalid arguments or non existent variables can be passed in and php will not error without the use of '@'\nMuch like empty and isset do. You c... |
I have a function that passes an array to another function as an argument, there will be multiple data types in this array but I want to know how to pass a function or a reference to a function so the other function can call it at any time.
ex.
function A:
add(new Array("hello", some function));
function B:
public fun... | To pass a function (or a reference to a function) as an argument in JavaScript, you can use function expressions, function declarations, or arrow functions. Below is an example of how you can accomplish this with your structure.
Here's how to define function A that passes an array containing a string and a function r... | 15,209 | [
{
"from": "human",
"value": "I have a function that passes an array to another function as an argument, there will be multiple data types in this array but I want to know how to pass a function or a reference to a function so the other function can call it at any time.\nex.\nfunction A:\nadd(new Array(\"hel... |
I need to find out time taken by a function in my application. Application is a MS VIsual Studio 2005 solution, all C code.
I used thw windows API GetLocalTime(SYSTEMTIME *) to get the current system time before and after the function call which I want to measure time of.
But this has shortcoming that it lowest resolu... | To measure the time taken by a function in microseconds or even nanoseconds on Windows, you can use the `QueryPerformanceCounter` and `QueryPerformanceFrequency` functions. These functions provide a high-resolution performance counter that is more precise than the standard timing functions like `time()` or `GetLocalTim... | 14,263 | [
{
"from": "human",
"value": "I need to find out time taken by a function in my application. Application is a MS VIsual Studio 2005 solution, all C code. \nI used thw windows API GetLocalTime(SYSTEMTIME *) to get the current system time before and after the function call which I want to measure time of.\nBut... |
From what I can find online about using VS2008 to create a integration/reporting services project it appears I need to have SQL 2008. Does anyone know of a work-around that would allow me to use VS2008 with SQL 2005?
| Using Visual Studio 2008 (VS2008) with SQL Server 2005 for creating Integration Services (SSIS) and Reporting Services (SSRS) projects can be challenging due to compatibility issues. Visual Studio 2008 was primarily designed for SQL Server 2008, and while it’s possible to work with SQL Server 2005, certain features and... | 12,346 | [
{
"from": "human",
"value": "From what I can find online about using VS2008 to create a integration/reporting services project it appears I need to have SQL 2008. Does anyone know of a work-around that would allow me to use VS2008 with SQL 2005?\n"
},
{
"from": "gpt",
"value": "Using Visual Stu... |
When the autocomplete listbox/dropdown is displayed in Aqua Data Studio, you have to hit enter in order for the current hightlighted item to complete the identifier. Is there a way that I can hit the tab key to autocomplete instead? This is the default behavior for Visual Studio and I cannot find the keyboard shortcuts... | In Aqua Data Studio, the default behavior for autocompletion typically requires you to hit Enter to select the highlighted item, and this can be different from other IDEs like Visual Studio that allow the use of the Tab key for autocompletion.
As of my last update in October 2023, Aqua Data Studio does not have a buil... | 13,631 | [
{
"from": "human",
"value": "When the autocomplete listbox/dropdown is displayed in Aqua Data Studio, you have to hit enter in order for the current hightlighted item to complete the identifier. Is there a way that I can hit the tab key to autocomplete instead? This is the default behavior for Visual Studio... |
Using C#
How do you remove a specific node from an XMLDocument using XPATH?
| To remove a specific node from an `XmlDocument` using XPath in C#, you can follow these steps:
1. Load the XML document.
2. Use an XPath expression to select the node you want to remove.
3. Use the `RemoveChild` method to remove the selected node from its parent.
Here is an example demonstrating how to achieve this:
... | 14,767 | [
{
"from": "human",
"value": "Using C#\nHow do you remove a specific node from an XMLDocument using XPATH?\n"
},
{
"from": "gpt",
"value": "To remove a specific node from an `XmlDocument` using XPath in C#, you can follow these steps:\n\n1. Load the XML document.\n2. Use an XPath expression to se... |
We have an ASP.NET application that manages it's own User, Roles and Permission database and we have recently added a field to the User table to hold the Windows domain account.
I would like to make it so that the user doesn't have to physically log in to our application, but rather would be automatically logged in ... | Yes, it is possible to implement automatic log-in in an ASP.NET Web Forms application based on the currently logged-in Windows domain account, without prompting the user with a Windows challenge screen. Here is a general approach on how you can achieve this:
### Steps to Implement Automatic Login for Windows Domain Us... | 7,206 | [
{
"from": "human",
"value": "We have an ASP.NET application that manages it's own User, Roles and Permission database and we have recently added a field to the User table to hold the Windows domain account. \nI would like to make it so that the user doesn't have to physically log in to our application, bu... |
Just installed the latest SDK for iPhone 2.1. When I go to File -> New Project in Xcode, under the iPhone OS Application selection, I don't see a template icon for "Cocoa Touch Application". Am I missing something? Anything else I need to download other than the iPhone SDK? If not, how do I add it to the "iPhone OS App... | It sounds like you might be experiencing an issue related to the installation of the iPhone SDK or Xcode configuration. Here are a few steps you can take to troubleshoot and resolve this:
1. **Check Installation**: Ensure that you have properly installed the iPhone SDK. You can confirm this by checking if the SDK appe... | 13,691 | [
{
"from": "human",
"value": "Just installed the latest SDK for iPhone 2.1. When I go to File -> New Project in Xcode, under the iPhone OS Application selection, I don't see a template icon for \"Cocoa Touch Application\". Am I missing something? Anything else I need to download other than the iPhone SDK? If... |
I have an ASP.Net page that will be hosted on a couple different servers, and I want to get the URL of the page (or even better: the site where the page is hosted) as a string for use in the code-behind. Any ideas?
| To retrieve the URL of the current page or the site where your ASP.NET page is hosted, you can use the `HttpRequest` object from the `System.Web` namespace. This object provides properties that can help you build the complete URL.
Here’s a simple example of how to get the full URL of the current page in the code-behin... | 9,262 | [
{
"from": "human",
"value": "I have an ASP.Net page that will be hosted on a couple different servers, and I want to get the URL of the page (or even better: the site where the page is hosted) as a string for use in the code-behind. Any ideas?\n"
},
{
"from": "gpt",
"value": "To retrieve the U... |
What is a smart pointer and when should I use one?
| A smart pointer is an abstraction that encapsulates a raw pointer and automatically manages the memory it points to. Smart pointers are a feature of C++ that help manage dynamic memory in a safer and more efficient way, reducing the risk of memory leaks and dangling pointers. They provide automatic memory management by... | 6,842 | [
{
"from": "human",
"value": "What is a smart pointer and when should I use one?\n"
},
{
"from": "gpt",
"value": "A smart pointer is an abstraction that encapsulates a raw pointer and automatically manages the memory it points to. Smart pointers are a feature of C++ that help manage dynamic memor... |
Visual Studio 2008's XAML editor (SP1) cannot reformat the XML into a consistent style.
Which tools can I use to get a nicely formatted XAML file? Studio integration preferred.
| If you're using Visual Studio 2008 (SP1) and looking for tools to format XAML files nicely, here are some options that you can consider:
1. **XAML Styler**: This is a Visual Studio extension specifically designed for formatting XAML files. While it was primarily developed for newer versions of Visual Studio, you might... | 14,730 | [
{
"from": "human",
"value": "Visual Studio 2008's XAML editor (SP1) cannot reformat the XML into a consistent style.\nWhich tools can I use to get a nicely formatted XAML file? Studio integration preferred.\n"
},
{
"from": "gpt",
"value": "If you're using Visual Studio 2008 (SP1) and looking for... |
I'm writing a WCF service for the first time. The service and all of its clients (at least for now) are written in C#. The service has to do a lot of input validation on the data it gets passed, so I need to have some way to indicate invalid data back to the client. I've been reading a lot about faults and exception... | Your approach to handling input validation in your WCF service by using a `ValidationFault` class is a reasonable way to communicate validation errors back to clients. WCF provides the capability to define custom faults through the use of `FaultContract`, which you are already using. Let's clarify some concepts and out... | 9,553 | [
{
"from": "human",
"value": "I'm writing a WCF service for the first time. The service and all of its clients (at least for now) are written in C#. The service has to do a lot of input validation on the data it gets passed, so I need to have some way to indicate invalid data back to the client. I've been... |
I have a large source repository split across multiple projects. I would like to produce a report about the health of the source code, identifying problem areas that need to be addressed.
Specifically, I'd like to call out routines with a high cyclomatic complexity, identify repetition, and perhaps run some lint-like s... | Creating a health report for a large source repository involves several steps and tools. Here’s a structured approach to identify problem areas like high cyclomatic complexity, code repetition, and suspicious constructs through lint-like analysis.
### Step 1: Tool Selection
1. **Cyclomatic Complexity Measurement**
... | 8,102 | [
{
"from": "human",
"value": "I have a large source repository split across multiple projects. I would like to produce a report about the health of the source code, identifying problem areas that need to be addressed.\nSpecifically, I'd like to call out routines with a high cyclomatic complexity, identify re... |
When I print "\[\e[34m\]sometext" I get some text in blue, but can I specify the shade of blue somewhere?
| In terminal environments that support ANSI escape codes, you can customize the color output using extended color codes. The standard ANSI escape code for blue is `\e[34m`, which gives you the standard blue color. However, if you want to specify different shades of blue, you have a couple of options:
1. **Extended Colo... | 14,711 | [
{
"from": "human",
"value": "When I print \"\\[\\e[34m\\]sometext\" I get some text in blue, but can I specify the shade of blue somewhere?\n"
},
{
"from": "gpt",
"value": "In terminal environments that support ANSI escape codes, you can customize the color output using extended color codes. The... |
Python for Unix and Linux System Administration is aimed at sysadmins.
Any other favorites besides this.
| Certainly! Here are some other popular books and resources that are valuable for system administrators, particularly those using Python for automation and management tasks in Unix and Linux environments:
1. **"Automate the Boring Stuff with Python" by Al Sweigart** - This book is great for beginners and covers practic... | 15,233 | [
{
"from": "human",
"value": "Python for Unix and Linux System Administration is aimed at sysadmins.\nAny other favorites besides this.\n"
},
{
"from": "gpt",
"value": "Certainly! Here are some other popular books and resources that are valuable for system administrators, particularly those using... |
What's the easiest way to print a stacktrace from a debugging printout? Often during testing you would like to know the callstack leading up to the situation provoking a debug message.
| Printing a stack trace during debugging can help you identify the sequence of function calls that led to a particular point in your code. The exact method to do this depends on the programming language you're using. Below are examples for several popular languages:
### Python
In Python, you can use the `traceback` mo... | 13,068 | [
{
"from": "human",
"value": "What's the easiest way to print a stacktrace from a debugging printout? Often during testing you would like to know the callstack leading up to the situation provoking a debug message.\n"
},
{
"from": "gpt",
"value": "Printing a stack trace during debugging can help ... |
Visual Studio 2005 doesn't provide an interface for creating relationships between tables in a SQL Server CE database (I'm using version 3.0) and you can't open a Compact Edition DB using Management Studio as far as I know. Any ideas?
| Creating relationships between tables in a SQL Server Compact Edition (SQL CE) database can be a bit challenging since it doesn't have a graphical interface for managing relationships like SQL Server Management Studio does for the full SQL Server. However, you can create relationships programmatically or by using SQL s... | 12,772 | [
{
"from": "human",
"value": "Visual Studio 2005 doesn't provide an interface for creating relationships between tables in a SQL Server CE database (I'm using version 3.0) and you can't open a Compact Edition DB using Management Studio as far as I know. Any ideas?\n"
},
{
"from": "gpt",
"value": ... |
Is there such a thing as having the most prefered design pattern for building applications in TDD or the iterative mode?
| In the context of Test-Driven Development (TDD) and iterative development, there isn't a universally "most preferred" design pattern, but there are several patterns that align well with the principles of TDD and iterative approaches. The choice of design pattern often depends on the specific requirements of the applica... | 12,514 | [
{
"from": "human",
"value": "Is there such a thing as having the most prefered design pattern for building applications in TDD or the iterative mode?\n"
},
{
"from": "gpt",
"value": "In the context of Test-Driven Development (TDD) and iterative development, there isn't a universally \"most prefe... |
In SQL Server 2005 I have an "id" field in a table that has the "Is Identity" property set to 'Yes'. So, when an Insert is executed on that table the "id" gets set automatically to the next incrementing integer. Is there an easy way when the Insert is executed to get what the "id" was set to without having to do a Sele... | Yes, in SQL Server 2005, you can retrieve the identity value of a newly inserted row without needing to execute a separate `SELECT` statement after the `INSERT`. You can use the `SCOPE_IDENTITY()` function immediately after your `INSERT` statement to get the last identity value generated for the current session and the... | 14,499 | [
{
"from": "human",
"value": "In SQL Server 2005 I have an \"id\" field in a table that has the \"Is Identity\" property set to 'Yes'. So, when an Insert is executed on that table the \"id\" gets set automatically to the next incrementing integer. Is there an easy way when the Insert is executed to get what ... |
I am creating a service that needs to run on Windows 2000, XP, 2003, 2008 & Vista. The service needs to access a network share as part of its processing. For XP and beyond the service can be running as the Network Service account but what's the equivalent in Windows 2000?
| In Windows 2000, the equivalent of the Network Service account, which is available in later versions of Windows, is the Local System account. However, using the Local System account will provide the service with extensive privileges and access to the local machine, which might not be ideal for your scenario.
If you w... | 15,873 | [
{
"from": "human",
"value": "I am creating a service that needs to run on Windows 2000, XP, 2003, 2008 & Vista. The service needs to access a network share as part of its processing. For XP and beyond the service can be running as the Network Service account but what's the equivalent in Windows 2000?\n"
}... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.