instruction
stringlengths
14
27.6k
completion
stringlengths
3
38.3k
__original_row_idx
int64
0
50k
conversations
listlengths
2
2
I am a C# developer. Still learning. I had not learn all the features of C# 2.0 and now the new version of c# is being released. how do we cope up with this.what is the best option to cope up with the latest programming skills.
As a C# developer, keeping your skills up-to-date is essential, especially with the rapid evolution of the language and the .NET ecosystem. Here are some strategies to help you cope with the new features and improve your programming skills: ### 1. **Understand the Basics Well** - Ensure that you have a solid unders...
12,519
[ { "from": "human", "value": "I am a C# developer. Still learning. I had not learn all the features of C# 2.0 and now the new version of c# is being released. how do we cope up with this.what is the best option to cope up with the latest programming skills.\n" }, { "from": "gpt", "value": "As a C...
Just a quick question. I'm looking for a simple strip chart (aka. graphing) control similar to the windows task manager 'Performance' view. And have found a few, but they all rely on MFC or .NET :( Am hoping that someone here might have or know where to get a simple strip chart Win32 control that is not MFC. Thanks....
If you are looking for a simple strip chart control for Win32 that doesn't rely on MFC or .NET, you have a couple of options: 1. **Custom Implementation**: You can create a simple strip chart using basic GDI (Graphics Device Interface) functions in Win32. This would involve handling the drawing in the `WM_PAINT` messa...
14,797
[ { "from": "human", "value": "Just a quick question.\nI'm looking for a simple strip chart (aka. graphing) control similar to the windows task manager 'Performance' view. And have found a few, but they all rely on MFC or .NET :(\nAm hoping that someone here might have or know where to get a simple strip c...
I have an installation program (just a regular C++ MFC program, not Windows Installer based) that needs to set some registry values based on the type of Internet connection: broadband, dialup, and/or wireless. Right now this information is being determined by asking a series of yes or no questions. The problem is tha...
To programmatically determine the type of Internet connection in Windows (especially for versions like XP and up), you can use the Windows API to check the network connections and their properties. Below, I'll outline a general approach for identifying if the connection is broadband, dial-up, or wireless. ### Step-by-...
10,601
[ { "from": "human", "value": "I have an installation program (just a regular C++ MFC program, not Windows Installer based) that needs to set some registry values based on the type of Internet connection: broadband, dialup, and/or wireless. Right now this information is being determined by asking a series of...
To create a new event handler on a control you can do this c.Click += new EventHandler(mainFormButton_Click); or this c.Click += mainFormButton_Click; and to remove an event handler you can do this c.Click -= mainFormButton_Click; But how do you remove all event handlers from an event?
In C#, there's no direct way to remove all event handlers from an event. The typical approach to remove an event handler is to reference each handler specifically, as shown in your example. However, if you control the event's backing field (for example, if you're working with a class you created), you can set it to `n...
13,017
[ { "from": "human", "value": "To create a new event handler on a control you can do this\nc.Click += new EventHandler(mainFormButton_Click);\n\nor this\nc.Click += mainFormButton_Click;\n\nand to remove an event handler you can do this\nc.Click -= mainFormButton_Click;\n\nBut how do you remove all event hand...
I would like TortoiseSVN (1.5.3) to ignore certain folders, their contents and certain other files wherever they might appear in my directory hierarchy but I cannot get the global ignore string right. Whatever I do, it either adds to much or ignores too much What is the correct 'Global ignore pattern' to ignore.... Fol...
To set up a global ignore pattern in TortoiseSVN 1.5.3 on Windows that will correctly ignore the specified folders and file types, you'll need to format your global ignore string in a specific way. Given your requirements, the global ignore pattern should look like this: ``` bin/ obj/ release/ compile/ *.bak *.user *...
15,816
[ { "from": "human", "value": "I would like TortoiseSVN (1.5.3) to ignore certain folders, their contents and certain other files wherever they might appear in my directory hierarchy but I cannot get the global ignore string right.\nWhatever I do, it either adds to much or ignores too much\nWhat is the correc...
This is my setting: I have written a .NET application for local client machines, which implements a feature that could also be used on a webpage. To keep this example simple, assume that the client installs a software into which he can enter some data and gets some data back. The idea is to create a webpage that holds...
You're facing a common challenge when building applications that require high performance but need to invoke heavy processes. The startup time for applications like those built on Mono can indeed lead to performance bottlenecks when they are launched repeatedly for every request. Here are several strategies and conside...
12,806
[ { "from": "human", "value": "This is my setting: I have written a .NET application for local client machines, which implements a feature that could also be used on a webpage. To keep this example simple, assume that the client installs a software into which he can enter some data and gets some data back. \n...
I'm currently convering my ASP.NET v2 application to serialize/deserialize it's objects because I want to shift from inproc session state to stateserver. This is because my host, webhost4life, has a nasty tendency to recycle the worker process frequently thus causing session timeouts. Anyway... the question... I'm tryi...
When you serialize and then deserialize an object in .NET, the behavior of fields that are initialized with `New` will depend on how the serialization is done and what is considered "serializable." In your case, you have a field `RollbackQueue` that is initialized with `New Queue(Of DataServer.Rollback)`. If you do n...
13,616
[ { "from": "human", "value": "I'm currently convering my ASP.NET v2 application to serialize/deserialize it's objects because I want to shift from inproc session state to stateserver. This is because my host, webhost4life, has a nasty tendency to recycle the worker process frequently thus causing session tim...
What is the nest PHP thumbnailer/resizer class that preferably works on most shared hosts? Clarification: I'm looking for a PHP class/wrapper (eg. phpThumb(), Asido), so I don't have to run GD or ImageMagick functions directly. I'm specifically looking for resizing and framing functions.
If you are looking for a PHP class that simplifies the process of creating thumbnails and resizing images, here are a few popular options that work well on shared hosting environments: ### 1. **phpThumb** - **Website:** [phpThumb](http://phpthumb.sourceforge.net/) - **Description:** phpThumb is a popular image manipul...
11,523
[ { "from": "human", "value": "What is the nest PHP thumbnailer/resizer class that preferably works on most shared hosts?\nClarification: I'm looking for a PHP class/wrapper (eg. phpThumb(), Asido), so I don't have to run GD or ImageMagick functions directly. I'm specifically looking for resizing and framing ...
In Visual Studio 2003 you could jump to the next bookmark with Ctrl + K, Ctrl + N; it stayed within the same file and wrapped around to the top of the file when there were no furter bookmarks in the file. Now in VS 2008 this seems to have changed, and Ctrl + K, Ctrl + N jumps to other files with bookmarks. How can I ch...
In Visual Studio 2008, the default behavior for navigating bookmarks was indeed changed to allow jumping to bookmarks across different files, which can be less convenient if you're primarily working within a single file. While there is no direct option to revert this behavior back to that of Visual Studio 2003, you can...
13,738
[ { "from": "human", "value": "In Visual Studio 2003 you could jump to the next bookmark with Ctrl + K, Ctrl + N; it stayed within the same file and wrapped around to the top of the file when there were no furter bookmarks in the file. Now in VS 2008 this seems to have changed, and Ctrl + K, Ctrl + N jumps to...
How to check if a folder (directory) exists in Cocoa using Objective-C?
In Cocoa using Objective-C, you can check if a folder (directory) exists by using the `NSFileManager` class. Here’s how you can do that: ```objective-c #import <Foundation/Foundation.h> - (BOOL)folderExistsAtPath:(NSString *)folderPath { NSFileManager *fileManager = [NSFileManager defaultManager]; BOOL isDire...
14,836
[ { "from": "human", "value": "How to check if a folder (directory) exists in Cocoa using Objective-C?\n" }, { "from": "gpt", "value": "In Cocoa using Objective-C, you can check if a folder (directory) exists by using the `NSFileManager` class. Here’s how you can do that:\n\n```objective-c\n#impor...
I am writing a web application that requires user interaction via email. I'm curious if there is a best practice or recommended source for learning about processing email. I am writing my application in Python, but I'm not sure what mail server to use or how to format the message or subject line to account for automa...
Processing email interactions in a web application is a common requirement, and there are indeed best practices and tools you can use. Here's a comprehensive guide covering your concerns about email processing, including suggestions for mail servers, message formatting, and handling bouncebacks. ### 1. Mail Server Opt...
8,642
[ { "from": "human", "value": "I am writing a web application that requires user interaction via email. I'm curious if there is a best practice or recommended source for learning about processing email. I am writing my application in Python, but I'm not sure what mail server to use or how to format the mess...
What is the best way to backup VMWare Servers (1.0.x)? The virtual machines in question are our development environment, and run isololated from the main network (so you can't just copy data from virtual to real servers). The image files are normally in use and locked when the server is running, so it is difficult to ...
Backing up VMware Servers, especially older versions like 1.0.x, can be challenging due to the limitations regarding image file access when the virtual machines (VMs) are running. Here are several strategies to enhance your backup process, ideally eliminating the need to manually pause VMs: 1. **VMware Snapshot Featur...
10,591
[ { "from": "human", "value": "What is the best way to backup VMWare Servers (1.0.x)? \nThe virtual machines in question are our development environment, and run isololated from the main network (so you can't just copy data from virtual to real servers).\nThe image files are normally in use and locked when th...
I need to have a thread signal another if the user wishes to interrupt execution, however I'm unsure about how to implement the signaling/signal-checking mechanism. I wouldn't like to have a singleton in my project (like a global bool), but is there an alternative? In this thread people suggest proper structures for th...
In .NET, you can effectively manage inter-thread signaling without using a singleton or global variable by utilizing the `CancellationToken` and `CancellationTokenSource` classes. This approach is safe, easy to implement, and allows for a clean mechanism to signal cancellation to your running thread. ### Implementatio...
9,519
[ { "from": "human", "value": "I need to have a thread signal another if the user wishes to interrupt execution, however I'm unsure about how to implement the signaling/signal-checking mechanism. I wouldn't like to have a singleton in my project (like a global bool), but is there an alternative?\nIn this thre...
Does anyone know how I can get rid of the following assembler warning? Code is x86, 32 bit: int test (int x) { int y; // do a bit-rotate by 8 on the lower word. leave upper word intact. asm ("rorw $8, %0\n\t": "=q"(y) :"0"(x)); return y; } If I compile it I get the following (very valid) warning: Warning: usin...
The warning you're encountering is due to the way the `asm` statement interprets the operand modifier you are using (`"q"`). The `"q"` constraint allows the compiler to choose any 32-bit register (`EAX`, `EBX`, `ECX`, or `EDX`), and when you use `rorw`, it translates the operation to the 16-bit sub-register `%ax`, resu...
12,494
[ { "from": "human", "value": "Does anyone know how I can get rid of the following assembler warning?\nCode is x86, 32 bit:\nint test (int x)\n{\n int y;\n // do a bit-rotate by 8 on the lower word. leave upper word intact.\n asm (\"rorw $8, %0\\n\\t\": \"=q\"(y) :\"0\"(x));\n return y;\n}\n\nIf I compile...
I currently have an existing database and I am using the LINQtoSQL generator tool to create the classes for me. The tool is working fine for this database and there are no errors with that tool. When I run a LINQ to SQL query against the data, there is a row that has some invalid data somehow within the table and it is...
A `System.FormatException` in LINQ to SQL typically occurs when the data being fetched from the database does not match the expected format for the data type in your entity classes. This can happen if you have a value in your database that cannot be converted into the corresponding .NET type, for example, if a string v...
9,394
[ { "from": "human", "value": "I currently have an existing database and I am using the LINQtoSQL generator tool to create the classes for me. The tool is working fine for this database and there are no errors with that tool.\nWhen I run a LINQ to SQL query against the data, there is a row that has some inval...
I know most people think that as a bad practice but when you are trying to make your class public interface only work with references, keeping pointers inside and only when necessary, I think there is no way to return something telling that the value you are looking doesn't exist in the container. class list { pub...
The design you’re considering raises important questions about error handling in C++, especially regarding returning references to potentially non-existent values. When working with data structures where you want to encapsulate internal pointers or raw memory access, you need a robust way to signal that a requested val...
11,753
[ { "from": "human", "value": "I know most people think that as a bad practice but when you are trying to make your class public interface only work with references, keeping pointers inside and only when necessary, I think there is no way to return something telling that the value you are looking doesn't exis...
I have a pretty complicated Linq query that I can't seem to get into a LinqDataSsource for use in a GridView: IEnumerable<ticket> tikPart = ( from p in db.comments where p.submitter == me.id && p.ticket.closed == DateTime.Parse("1/1/2001") && p.ticket.originating_group != me.sub_unit ...
To use your LINQ query with a `LinqDataSource` for a `GridView`, you'll need to do a couple of things to properly set it up. First, you will need to define a `LinqDataSource` that will encapsulate your LINQ query. In your case, since you're working with a `IEnumerable<ticket>`, you might need to ensure your query is ...
11,406
[ { "from": "human", "value": "I have a pretty complicated Linq query that I can't seem to get into a LinqDataSsource for use in a GridView:\nIEnumerable<ticket> tikPart = (\n from p in db.comments where \n p.submitter == me.id && \n p.ticket.closed == DateTime.Parse(\"1/1/2001\") && \n ...
We've inherited a WCF web service that has a custom MessageFormatter that constructs a custom Message subclass in the SerializeReply Method. class OurMessageFormatter : MessageFormatter { public Message SerializeReply(MessageVersion messageVersion, object[] parameters, object result) { OurResponse ourResponse =...
Adding WS-Security headers to a WCF service with a custom message formatter and message implementation can be complex. Here are some steps and recommendations to help you achieve this: 1. **Ensure Correct MessageVersion**: Verify that the `MessageVersion` you're using supports WS-Security headers. For WS-Security, you...
10,922
[ { "from": "human", "value": "We've inherited a WCF web service that has a custom MessageFormatter that constructs a custom Message subclass in the SerializeReply Method.\nclass OurMessageFormatter : MessageFormatter\n{\n public Message SerializeReply(MessageVersion messageVersion, object[] parameters, obje...
Doesn't work with other modules, but to give an example. I installed Text::CSV_XS with a CPAN setting: 'makepl_arg' => q[PREFIX=~/lib], When I try running a test.pl script: $ perl test.pl #!/usr/bin/perl use lib "/homes/foobar/lib/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi"; use Text::CSV_XS; print "te...
It appears that you're encountering an issue related to loading the `Text::CSV_XS` module in Perl, specifically regarding the shared object file `CSV_XS.so`. Since you've confirmed that `CSV_XS.so` exists in the specified directory but you're getting a "cannot open shared object file" error, there are several possible ...
12,728
[ { "from": "human", "value": "Doesn't work with other modules, but to give an example. I installed Text::CSV_XS with a CPAN setting:\n'makepl_arg' => q[PREFIX=~/lib],\n\nWhen I try running a test.pl script:\n\n$ perl test.pl\n\n#!/usr/bin/perl\n\nuse lib \"/homes/foobar/lib/lib64/perl5/site_perl/5.8.8/x86_64...
I want to know which tool can be used to measure the cyclomatic complexity of a C source. I have seen other post which ask the same question but I want to know specific tool for C source only.
There are several tools specifically designed to measure cyclomatic complexity for C source code. Here are a few you can consider: 1. **CCM (C/C++ Complexity Measure)**: This is a command-line tool that analyzes C and C++ code to calculate cyclomatic complexity. It provides detailed metrics about the complexity of you...
15,010
[ { "from": "human", "value": "I want to know which tool can be used to measure the cyclomatic complexity of a C source.\nI have seen other post which ask the same question but I want to know specific tool for C source only.\n" }, { "from": "gpt", "value": "There are several tools specifically des...
I'm using lucene in my project. Here is my question: should I use lucene to replace the whole search module which has been implemented with sql using a large number of like statement and accurate search by id or sth, or should I just use lucene in fuzzy search(i mean full text search)?
Using Apache Lucene as a replacement for your current search module depends on several factors, including the specific requirements of your application, the types of searches you need to perform, and the volume of data you're handling. Here are some points to consider: ### When to Use Lucene for Full Search: 1. **Ful...
14,038
[ { "from": "human", "value": "I'm using lucene in my project.\nHere is my question:\nshould I use lucene to replace the whole search module which has been implemented with sql using a large number of like statement and accurate search by id or sth, \nor should I just use lucene in fuzzy search(i mean full te...
I'm using Visual Studio (2005 and up). I am looking into trying out making an application where the user can change language for all menues, input formats and such. How would I go on doing this, as I suppose that there is some complete feature within .Net that can help me with this? I need to take the following into ac...
To create a multi-language application in .NET (specifically starting from Visual Studio 2005), you can leverage .NET's built-in globalization and localization features. Here's a step-by-step guide that outlines how to achieve this, taking into account your requirements for strings, input data parsing, and ease of addi...
5,790
[ { "from": "human", "value": "I'm using Visual Studio (2005 and up). I am looking into trying out making an application where the user can change language for all menues, input formats and such. How would I go on doing this, as I suppose that there is some complete feature within .Net that can help me with t...
I have an Access 2003 application that communicates with a Webservice to get articles from a central database. It runs fine in a full Access install but when I make runtime install with Package Wizard included in Access 2003 developer extensions, it fails with the error message "429 cannot create an object in the activ...
The error message you're encountering indicates that there is an issue with ActiveX components, specifically related to the `mssoap30.dll` DLL, which is used for SOAP communications in your Access application. Here are a few steps you can take to troubleshoot and potentially resolve the issue: ### 1. **Check the Depen...
10,683
[ { "from": "human", "value": "I have an Access 2003 application that communicates with a Webservice to get articles from a central database. It runs fine in a full Access install but when I make runtime install with Package Wizard included in Access 2003 developer extensions, it fails with the error message ...
How to add child rows in datagrid c#.net windows forms?
To add child rows in a DataGridView in a Windows Forms application in C#, you can use the `DataGridView` in a hierarchical manner. One common approach is to utilize a combination of a `DataTable` and a `BindingSource`, or simply to handle the rows directly in the `DataGridView`. Here’s a step-by-step guide to implemen...
9,378
[ { "from": "human", "value": "How to add child rows in datagrid c#.net windows forms?\n" }, { "from": "gpt", "value": "To add child rows in a DataGridView in a Windows Forms application in C#, you can use the `DataGridView` in a hierarchical manner. One common approach is to utilize a combination...
My problem is: I have a perl script which uses lot of memory (expected behaviour because of caching). But, I noticed that the more I do caching, slower it gets and the process spends most of the time in sleep mode. I thought pre-allocating memory to the process might speed up the performance. Does someone have any idea...
In a Solaris environment, you can manage memory allocation and process performance in a few ways. Here are several strategies you could consider to help optimize the memory usage of your Perl script and ensure it gets the resources it needs: ### 1. **Use `priocntl` to Set Process Priority** You can use `priocntl` to s...
10,848
[ { "from": "human", "value": "My problem is:\nI have a perl script which uses lot of memory (expected behaviour because of caching). But, I noticed that the more I do caching, slower it gets and the process spends most of the time in sleep mode.\nI thought pre-allocating memory to the process might speed up ...
I need to replace character (say) x with character (say) P in a string, but only if it is contained in a quoted substring. An example makes it clearer: axbx'cxdxe'fxgh'ixj'k -> axbx'cPdPe'fxgh'iPj'k Let's assume, for the sake of simplicity, that quotes always come in pairs. The obvious way is to just process the str...
You can indeed solve this problem using regular expressions in C#. The goal is to match the parts of the string that are within quotes and then perform the replacement only within those quoted sections. Here's a step-by-step approach using C#: 1. Use a regular expression to match the quoted substrings. 2. For each ma...
12,056
[ { "from": "human", "value": "I need to replace character (say) x with character (say) P in a string, but only if it is contained in a quoted substring.\nAn example makes it clearer:\naxbx'cxdxe'fxgh'ixj'k -> axbx'cPdPe'fxgh'iPj'k\n\nLet's assume, for the sake of simplicity, that quotes always come in pairs...
This question is similar to my earlier question. I have used ASP .Net in Visual Studio 2005 about 4 years ago. How long would it take to get back up to speed with the latest versions?
The time it takes to get back up to speed with the latest versions of ASP.NET can vary based on several factors, including your familiarity with programming concepts, your previous experience with ASP.NET, and how much the technology has evolved since you last used it. Here are some points to consider: 1. **Familiarit...
15,953
[ { "from": "human", "value": "This question is similar to my earlier question.\nI have used ASP .Net in Visual Studio 2005 about 4 years ago. How long would it take to get back up to speed with the latest versions?\n" }, { "from": "gpt", "value": "The time it takes to get back up to speed with t...
I have written a ruby script which opens up dlink admin page in firefox and does a ADSL connection or disconnection. I could run this script in the terminal without any problem. But if I put it as cron job, it doesn't fire up firefox. This is the entry I have in crontab # connect to dataone 55 17 * * * ruby /home/ragua...
Running graphical applications like Firefox from a cron job can be challenging because cron jobs execute in a non-interactive environment and may not have access to the user's graphical session (X server). Here are some steps and suggestions to get your Ruby script to work when called from a cron job: ### Solutions 1...
11,661
[ { "from": "human", "value": "I have written a ruby script which opens up dlink admin page in firefox and does a ADSL connection or disconnection.\nI could run this script in the terminal without any problem. But if I put it as cron job, it doesn't fire up firefox.\nThis is the entry I have in crontab\n# con...
I need to increment a number in a source file from an Ant build script. I can use the ReplaceRegExp task to find the number I want to increment, but how do I then increment that number within the replace attribute? Heres what I've got so far: <replaceregexp file="${basedir}/src/path/to/MyFile.java" match="MY_PROPER...
In Apache Ant, there isn't a built-in way to directly perform arithmetic operations within the `replace` attribute of the `replaceregexp` task. However, you can achieve the desired functionality by using a combination of tasks to extract the value, increment it, and then replace it back in the file. Here’s a step-by-s...
12,601
[ { "from": "human", "value": "I need to increment a number in a source file from an Ant build script. I can use the ReplaceRegExp task to find the number I want to increment, but how do I then increment that number within the replace attribute?\nHeres what I've got so far:\n<replaceregexp file=\"${basedir}/s...
I want to take a QTMovie that I have and export it with the audio fading in and fading out for a predetermined amount of time. I want to do this within Cocoa as much as possible. The movie will likely only have audio in it. My research has turned up a couple of possibilities: Use the newer Audio Context Insert APIs. h...
When working with audio in QuickTime movies within a Cocoa application, you have a few different strategies at your disposal. While the methods you've identified are valid, there are a couple more streamlined approaches you might consider. Here's a breakdown of your options: 1. **Core Audio & Audio Units**: You can le...
6,149
[ { "from": "human", "value": "I want to take a QTMovie that I have and export it with the audio fading in and fading out for a predetermined amount of time. I want to do this within Cocoa as much as possible. The movie will likely only have audio in it. My research has turned up a couple of possibilities:\n\...
I'm trying to create a Crystal Reports formula field (to calculate the percentage change in a price) that will return "N/A" if a particular report field is null, but return a number to two decimal places using accounting format (negative numbers surrounded by parentheses) if it is not. The closest I have been able to m...
In Crystal Reports, you cannot directly use format strings in the `ToText` function to achieve the accounting format with parentheses for negative values. Instead, you can create a formula field that checks the value and formats it accordingly using `If` conditions. Here’s how you can construct your formula: 1. Check...
15,708
[ { "from": "human", "value": "I'm trying to create a Crystal Reports formula field (to calculate the percentage change in a price) that will return \"N/A\" if a particular report field is null, but return a number to two decimal places using accounting format (negative numbers surrounded by parentheses) if i...
Lets say I have the following code: abstract class Animal case class Dog(name:String) extends Animal var foo:Animal = Dog("rover") var bar:Dog = foo //ERROR! How do I fix the last line of this code? Basically, I just want to do what, in a C-like language would be done: var bar:Dog = (Dog) foo
In Scala, you can't directly assign a variable of type `Animal` to a variable of type `Dog` without casting because the compiler doesn't know that `foo` is actually an instance of `Dog`. To safely convert or cast `foo` to `Dog`, you can use pattern matching or type casting. Here are two common approaches to achieve wha...
14,832
[ { "from": "human", "value": "Lets say I have the following code:\nabstract class Animal\ncase class Dog(name:String) extends Animal\nvar foo:Animal = Dog(\"rover\")\nvar bar:Dog = foo //ERROR!\n\nHow do I fix the last line of this code? Basically, I just want to do what, in a C-like language would be done:...
Sampling with Activity Monitor/Instruments/Shark will show stack traces full of C functions for the Python interpreter. I would be helpful to see the corresponding Python symbol names. Is there some DTrace magic that can do that? Python's cProfile module can be useful for profiling individual subtrees of Python calls, ...
Yes, you can use DTrace to capture Python function calls and map them back to Python symbols, providing a clearer picture of the performance of your Python application, even when you're deep within C functions of the Python interpreter. Below are steps and an example of how you can achieve this. ### Prerequisites 1. ...
13,466
[ { "from": "human", "value": "Sampling with Activity Monitor/Instruments/Shark will show stack traces full of C functions for the Python interpreter. I would be helpful to see the corresponding Python symbol names. Is there some DTrace magic that can do that? Python's cProfile module can be useful for profil...
I have never used octal numbers in my code nor come across any code that used it (hexadecimal and bit twiddling notwithstanding). I started programming in C/C++ about 1994 so maybe I'm too young for this? Does older code use octal? C includes support for these by prepending a 0, but where is the code that uses these ba...
You're right that octal (base 8) numbers are less common in modern programming practices compared to decimal (base 10) and hexadecimal (base 16) numbers. Here’s a bit of context regarding the use of octal numbers, especially in C/C++ and older code: ### Historical Context 1. **Historical Use**: Octal was more commonl...
12,028
[ { "from": "human", "value": "I have never used octal numbers in my code nor come across any code that used it (hexadecimal and bit twiddling notwithstanding).\nI started programming in C/C++ about 1994 so maybe I'm too young for this? Does older code use octal? C includes support for these by prepending a 0...
There was a post this morning asking about how many people disable JavaScript. Then I began to wonder what techniques might be used to determine if the user has it disabled. Does anyone know of some short/simple ways to detect if JavaScript is disabled? My intention is to give a warning that the site is not able to fu...
Detecting if JavaScript is disabled can be accomplished using a simple technique that relies on the `<noscript>` HTML tag. This tag is specifically designed for situations when JavaScript is not enabled in the user's browser. Here's a straightforward way to implement this: ### Using the `<noscript>` Tag You can incl...
9,674
[ { "from": "human", "value": "There was a post this morning asking about how many people disable JavaScript. Then I began to wonder what techniques might be used to determine if the user has it disabled. \nDoes anyone know of some short/simple ways to detect if JavaScript is disabled? My intention is to give...
I have a Java program that loads thirdparty class files (classes I did not write) and executes them. These classes often use java.util.Random, which by default generates random starting seed values every time it gets instantiated. For reasons of reproducability, I want to give these classes the same starting seed every...
Given your requirements and constraints, one feasible approach to control the seed for `java.util.Random` in third-party classes without modifying their source or the Java environment directly is to use the concept of a Java Agent. A Java Agent allows you to intercept class loading and modify the behavior of certain cl...
6,908
[ { "from": "human", "value": "I have a Java program that loads thirdparty class files (classes I did not write) and executes them. These classes often use java.util.Random, which by default generates random starting seed values every time it gets instantiated. For reasons of reproducability, I want to give t...
I initially designed my system following the s# architecture example outlined in this codeproject article (Unfortunately, I am not using NHibernate). The basic idea is that for each domain object that would need to communicate with the persistence layer you would have a corresponding Data Access Object in a different ...
It sounds like you're grappling with a common challenge in software architecture: balancing flexibility and maintainability against complexity and verbosity. Your existing design of having a dedicated Data Access Object (DAO) for each domain object offers a high degree of abstraction and adheres to the Dependency Inver...
12,405
[ { "from": "human", "value": "I initially designed my system following the s# architecture example outlined in this codeproject article (Unfortunately, I am not using NHibernate). The basic idea is that for each domain object that would need to communicate with the persistence layer you would have a corresp...
I wonder how long it would usually take for: Professional Average Beginner to setup and configure CI for a new project?
The time it takes to set up and configure Continuous Integration (CI) for a new project can vary significantly based on the experience level of the individual or team, the complexity of the project, and the tools being used. Here are some general estimates: ### Professional - **Time Estimate**: 1-3 hours - **Factors**...
14,387
[ { "from": "human", "value": "I wonder how long it would usually take for:\n\nProfessional\nAverage\nBeginner\n\nto setup and configure CI for a new project?\n" }, { "from": "gpt", "value": "The time it takes to set up and configure Continuous Integration (CI) for a new project can vary significa...
I have a web application written in C# that consumes several internal web services. We have a development tier, a testing tier, and a production tier. Also, we use the WSDL.exe command to generate a Proxies.cs file for a given tier's web services. When we are ready to deploy our code up the stack from development to ...
Yes, there are several approaches you can take to automate the generation of proxy classes from WSDL files when deploying your C# web application across different tiers (development, testing, production). Here are some general strategies that you can implement: ### 1. **Use Build Scripts:** You can use build automatio...
8,041
[ { "from": "human", "value": "I have a web application written in C# that consumes several internal web services. We have a development tier, a testing tier, and a production tier. Also, we use the WSDL.exe command to generate a Proxies.cs file for a given tier's web services.\nWhen we are ready to deploy ...
My Techie Bretheren (and Sisteren, of course!), I have a LinqToSql data model that has the following entities: data model http://danimal.acsysinteractive.com/images/advisor.jpg I need to retrieve all advisors for a specific office, ordered by their sequence within the office. I've got the first part working with a join...
To order the advisors by their sequence within the office, you need to include the `Sequence` property from the `OfficeAdvisors` table in your query. You can achieve this by modifying your existing query to include the `OrderBy` clause, like this: ```csharp public static List<Advisor> GetOfficeEmployees(int OfficeID) ...
16,372
[ { "from": "human", "value": "My Techie Bretheren (and Sisteren, of course!),\nI have a LinqToSql data model that has the following entities:\ndata model http://danimal.acsysinteractive.com/images/advisor.jpg\nI need to retrieve all advisors for a specific office, ordered by their sequence within the office....
How do you create a hardlink (as opposed to a symlink or a Mac OS alias) in OS X that points to a directory? I already know the command "ln target destination" but that only works when the target is a file. I know that Mac OS, unlike other Unix environments, does allow hardlinking to folders (this is used for Time Mach...
Creating a hard link to a directory in macOS is not typically supported by users, and it's generally discouraged because it can lead to complications with the filesystem and its organization. While macOS does implement this for its Time Machine backups, the typical Unix/Linux command `ln` will not work for directories ...
12,468
[ { "from": "human", "value": "How do you create a hardlink (as opposed to a symlink or a Mac OS alias) in OS X that points to a directory? I already know the command \"ln target destination\" but that only works when the target is a file. I know that Mac OS, unlike other Unix environments, does allow hardlin...
Can ZK easily be integrated in a struts web application?
Yes, ZK can be integrated into a Struts web application, although it may require some effort to bridge the two technologies because they are based on different paradigms. Here are some points to consider for integration: 1. **Architecture Understanding**: Struts is an MVC (Model-View-Controller) framework that relies ...
13,579
[ { "from": "human", "value": "Can ZK easily be integrated in a struts web application?\n" }, { "from": "gpt", "value": "Yes, ZK can be integrated into a Struts web application, although it may require some effort to bridge the two technologies because they are based on different paradigms. Here a...
I want to setup my local development machine so that any requests for *.local are redirected to localhost. The idea is that as I develop multiple sites, I can just add vhosts to Apache called site1.local, site2.local etc, and have them all resolve to localhost, while Apache serves a different site accordingly. I am on ...
To set up your local development environment on Windows XP so that requests for `*.local` resolve to `localhost`, you can follow these steps: ### Step 1: Modify the `hosts` file 1. **Open the `hosts` file**: - Navigate to `C:\Windows\System32\drivers\etc\`. - Open the `hosts` file in a text editor with administ...
11,517
[ { "from": "human", "value": "I want to setup my local development machine so that any requests for *.local are redirected to localhost. The idea is that as I develop multiple sites, I can just add vhosts to Apache called site1.local, site2.local etc, and have them all resolve to localhost, while Apache serv...
On a particular project we're working with a total of 10 team members. After about a year working on the project (and using Mantis as a bug-/feature-tracker eversince), the bugtracker gets more and more difficult to use, as no standard has been setup that explains how to create new tasks, how to comment tasks etc. Thi...
Organizing a bug tracker effectively is crucial for maintaining clarity and efficiency in your project management. Here are some best practices you could consider adopting for your Mantis bug tracker: ### 1. **Establish Clear Guidelines** - **Documentation**: Create a comprehensive guide that outlines how to use th...
13,047
[ { "from": "human", "value": "On a particular project we're working with a total of 10 team members. \nAfter about a year working on the project (and using Mantis as a bug-/feature-tracker eversince), the bugtracker gets more and more difficult to use, as no standard has been setup that explains how to creat...
If I wish to simply rename a column (not change its type or constraints, just its name) in an SQL database using SQL, how do I do that? Or is it not possible? This is for any database claiming to support SQL, I'm simply looking for an SQL-specific query that will work regardless of actual database implementation.
Renaming a column in an SQL database is a common task, but the specific syntax can vary between different database systems. Unfortunately, there is no single SQL command that universally applies to all SQL databases for renaming a column. However, most modern SQL databases provide a way to do this. Here are some examp...
15,756
[ { "from": "human", "value": "If I wish to simply rename a column (not change its type or constraints, just its name) in an SQL database using SQL, how do I do that? Or is it not possible?\nThis is for any database claiming to support SQL, I'm simply looking for an SQL-specific query that will work regardle...
I've used db4o with much success on many projects in the past. Over time it seems to have evolved greatly, and with modern trends like LINQ on everyone's tongue it has peaked my interest again, especially now that I know that it is starting to support transparent activation and persistence which intrigue me quite a bit...
You've raised some important points about the challenges of using an object database like db4o for complex reporting tasks, particularly when compared to relational databases (RDBMS) which excel in handling complex queries and aggregations. Here are some approaches to consider when generating reports in db4o while addr...
10,016
[ { "from": "human", "value": "I've used db4o with much success on many projects in the past. Over time it seems to have evolved greatly, and with modern trends like LINQ on everyone's tongue it has peaked my interest again, especially now that I know that it is starting to support transparent activation and ...
Okay, so I'm making a table right now for "Box Items". Now, a Box Item, depending on what it's being used for/the status of the item, may end up being related to a "Shipping" box or a "Returns" box. A Box Item may be defective:if it is, a flag will be set in the Box Item's row (IsDefective), and the Box Item will be pu...
This is a classic database design scenario where you need to balance normalization, clarity, and efficiency. You've already touched on some valid points, but let’s break it down further to help clarify your decision: ### Option 1: Separate Fields for Shipping and Return Boxes ```plaintext BoxItemID Description IsDefec...
11,740
[ { "from": "human", "value": "Okay, so I'm making a table right now for \"Box Items\".\nNow, a Box Item, depending on what it's being used for/the status of the item, may end up being related to a \"Shipping\" box or a \"Returns\" box.\nA Box Item may be defective:if it is, a flag will be set in the Box Item...
When I turn an image (<img>) into a hyperlink (by wrapping it in <a>), Firefox adds a black border around the image. Safari does not display the same border. What CSS declaration would be best to eliminate the border?
The black border around an image wrapped in a hyperlink is a default style applied by some browsers. To remove this border in a cross-browser compatible way, you can use the following CSS declaration: ```css a img { border: none; } ``` Alternatively, you can use the shorthand property for the `border` to set it t...
17,346
[ { "from": "human", "value": "When I turn an image (<img>) into a hyperlink (by wrapping it in <a>), Firefox adds a black border around the image. Safari does not display the same border. \nWhat CSS declaration would be best to eliminate the border?\n" }, { "from": "gpt", "value": "The black bor...
Q.: How to get a cellular phone SMS "Long code" for use by U.S. carrier subscribers within U.S.? 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 via SMS, addressing the web app via an SMS "Long code"...
To send and receive SMS messages using long codes in the U.S., you typically have to consider several options since long code SMS services might not be straightforward due to regulations and limitations imposed by carriers. Here’s how to get started: ### 1. **Understand Long Codes vs Short Codes** - **Long Codes**:...
13,005
[ { "from": "human", "value": "Q.: How to get a cellular phone SMS \"Long code\" for use by U.S. carrier subscribers within U.S.?\nBackground: 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 via SMS, a...
It seems that everybody is jumping on the dynamic, non-compiled bandwagon lately. I've mostly only worked in compiled, static typed languages (C, Java, .Net). The experience I have with dynamic languages is stuff like ASP (Vb Script), JavaScript, and PHP. Using these technologies has left a bad taste in my mouth whe...
Your observations and experiences with dynamic languages resonate with many developers, especially those who have primarily worked with statically typed, compiled languages. However, the resurgence of dynamic languages like Ruby, Python, and JavaScript (along with frameworks like Ruby on Rails and Node.js) can be attri...
6,383
[ { "from": "human", "value": "It seems that everybody is jumping on the dynamic, non-compiled bandwagon lately. I've mostly only worked in compiled, static typed languages (C, Java, .Net). The experience I have with dynamic languages is stuff like ASP (Vb Script), JavaScript, and PHP. Using these technolo...
In every MVC framework I've tried (Rails, Merb, Waves, Spring, and Struts), the idea of a Request (and Response) is tied to the HTTP notion of a Request. That is, even if there is an AbstractRequest that is a superclass of Request, the AbstractRequest has things like headers, request method (GET, POST, etc.), and all ...
Creating a multi-channel request-response cycle framework that operates over various media like SMS, Twitter, and email is a compelling idea. While most traditional MVC frameworks are tightly coupled with HTTP, there are ways to design a more flexible system that abstracts away the specifics of the communication medium...
9,181
[ { "from": "human", "value": "In every MVC framework I've tried (Rails, Merb, Waves, Spring, and Struts), the idea of a Request (and Response) is tied to the HTTP notion of a Request. That is, even if there is an AbstractRequest that is a superclass of Request, the AbstractRequest has things like headers, r...
I can't quite figure this out. Microsoft Access 2000, on the report total section I have totals for three columns that are just numbers. These =Sum[(ThisColumn1)], 2, 3, etc and those grand totls all work fine. I want to have another column that says =Sum([ThisColumn1])+Sum([ThisColumn2]) + Sum([ThisColumn3]) but can...
In Microsoft Access reports, it can be a bit tricky to correctly calculate totals from multiple columns. Let's go through the steps to create a calculated field that sums multiple columns. Here’s how you can do it: 1. **Make Sure the Control Source is Set Correctly:** - Ensure that you are in the design view of yo...
13,141
[ { "from": "human", "value": "I can't quite figure this out. Microsoft Access 2000, on the report total section I have totals for three columns that are just numbers. These =Sum[(ThisColumn1)], 2, 3, etc and those grand totls all work fine. \nI want to have another column that says =Sum([ThisColumn1])+Sum([...
I've found jCache and some other home-grown methods using associative arrays. If you've had experience with jCache, were there any limitations?
jCache, a Java-based caching API, provides a standardized way to handle caching in Java applications. While it can be quite powerful, there are some limitations and considerations to keep in mind when using jCache or any caching solution: 1. **Complexity**: Implementing jCache correctly can add complexity to your appl...
14,273
[ { "from": "human", "value": "I've found jCache and some other home-grown methods using associative arrays. If you've had experience with jCache, were there any limitations?\n" }, { "from": "gpt", "value": "jCache, a Java-based caching API, provides a standardized way to handle caching in Java a...
so, I'm running Apache on my laptop. If I go to "localhost", I get the page that says, If you can see this, it means that the installation of the Apache web server software on this system was successful. You may now add content to this directory and replace this page. except, I can't add content and replace that pag...
It sounds like you're running into a few common issues when trying to set up Apache locally. Let's break down the issues and how to resolve them step-by-step. ### 1. Default Document Root First, you need to know where Apache is looking for files to serve. By default, Apache serves content from a specific directory kn...
9,825
[ { "from": "human", "value": "so, I'm running Apache on my laptop.\nIf I go to \"localhost\", I get the page that says, \n\nIf you can see this, it means that the installation of the Apache web server software on this system was successful. You may now add content to this directory and replace this page.\n\n...
As someone who is only barely proficient in javascript, is jQuery right for me? Is there a better library to use? I've seen lots of posts related to jQuery and it seems to be the most effective way to incorporate javascript into ASP.NET applications. I've been out to jQuery's site and have found the tutorials and oth...
jQuery can be a good choice for someone who is only barely proficient in JavaScript. It simplifies many common tasks and provides a more user-friendly interface for working with the DOM (Document Object Model), handling events, making AJAX requests, and performing animations. Here are some points to consider: ### Pros...
12,407
[ { "from": "human", "value": "As someone who is only barely proficient in javascript, is jQuery right for me? Is there a better library to use? I've seen lots of posts related to jQuery and it seems to be the most effective way to incorporate javascript into ASP.NET applications.\nI've been out to jQuery's...
I have a 2D model where each row represents a frame in a video, and each column represents an object. The object can have different states on each frame, and this is stored in the model. Then I have a QTableView that shows this data. The model has header data, so each row has a header like "frame k" and each column has...
Yes, you can achieve this by creating a custom list view or using a suitable data structure that allows you to retrieve and display the header data from your model instead of the first column of each row. Here's a general approach to implement this: 1. **Connect the View to the Model:** Ensure that your list view is ...
12,313
[ { "from": "human", "value": "I have a 2D model where each row represents a frame in a video, and each column represents an object. The object can have different states on each frame, and this is stored in the model. Then I have a QTableView that shows this data. The model has header data, so each row has a ...
I'm going through the problems on projecteuler.net to learn how to program in Erlang, and I am having the hardest time creating a prime generator that can create all of the primes below 2 million, in less than a minute. Using the sequential style, I have already written three types of generators, including the Sieve of...
Your attempt at creating a prime generator using concurrency in Erlang is on the right track, but there are a few issues in your code that need to be addressed to ensure that it runs correctly and efficiently. ### Issues in Your Code 1. **Bad Arity Messages**: The `badarity` message generally occurs when a function i...
5,768
[ { "from": "human", "value": "I'm going through the problems on projecteuler.net to learn how to program in Erlang, and I am having the hardest time creating a prime generator that can create all of the primes below 2 million, in less than a minute. Using the sequential style, I have already written three ty...
I understand the main function of the lock key word from MSDN lock Statement (C# Reference) The lock keyword marks a statement block as a critical section by obtaining the mutual-exclusion lock for a given object, executing a statement, and then releasing the lock. When should the lock be used? For instan...
The `lock` statement in C# is indeed primarily intended for use in multi-threaded applications to provide mutual exclusion when accessing shared resources. Here's a breakdown of your questions and considerations regarding the use of `lock` in single-threaded applications and design patterns for the future: ### When to...
8,670
[ { "from": "human", "value": "I understand the main function of the lock key word from MSDN\n\nlock Statement (C# Reference)\nThe lock keyword marks a statement\n block as a critical section by\n obtaining the mutual-exclusion lock\n for a given object, executing a\n statement, and then releasing the\n ...
I have a handful of projects that all use one project for the data model. Each of these projects has its own applicationContext.xml file with a bunch of repetitive data stuff within it. I'd like to have a modelContext.xml file and another for my ui.xml, etc. Can I do this?
Yes, you can certainly create separate configuration files for different parts of your Spring application, such as one for your data model (`modelContext.xml`) and another for your UI components (`uiContext.xml`). This approach allows you to organize your configuration better, reduce repetition, and enhance maintainabi...
12,842
[ { "from": "human", "value": "I have a handful of projects that all use one project for the data model. Each of these projects has its own applicationContext.xml file with a bunch of repetitive data stuff within it.\nI'd like to have a modelContext.xml file and another for my ui.xml, etc.\nCan I do this?\n"...
I have an idea for a simple application which will monitor a group of folders, index any files it finds. A gui will allow me quickly tag new files and move them into a single database for storage and also provide an easy mechanism for querying the db by tag, name, file type and date. At the moment I have about 100+ GB ...
Your project sounds interesting and quite useful! When choosing an open-source database for a single-user application that needs to handle a significant amount of files and support full-text search, you have several options. Here are a few recommendations: ### 1. **PostgreSQL** - **Pros**: It's robust and supports ful...
11,935
[ { "from": "human", "value": "I have an idea for a simple application which will monitor a group of folders, index any files it finds. A gui will allow me quickly tag new files and move them into a single database for storage and also provide an easy mechanism for querying the db by tag, name, file type and ...
About 6 months ago I rolled out a site where every request needed to be over https. The only way at the time I could find to ensure that every request to a page was over https was to check it in the page load event. If the request was not over http I would response.redirect("https://example.com") Is there a better wa...
Yes, you can enforce HTTPS for your entire site more effectively using the `web.config` file in an ASP.NET application. Instead of checking for HTTPS in the page load event, you can utilize URL rewrite rules or the `httpRedirect` settings within the `web.config` file. This approach is more efficient and easier to manag...
14,401
[ { "from": "human", "value": "About 6 months ago I rolled out a site where every request needed to be over https. The only way at the time I could find to ensure that every request to a page was over https was to check it in the page load event. If the request was not over http I would response.redirect(\"...
Have you managed to get Aptana Studio debugging to work? I tried following this, but I don't see Windows -> Preferences -> Aptana -> Editors -> PHP -> PHP Interpreters in my menu (I have PHP plugin installed) and any attempt to set up the servers menu gives me "socket error" when I try to debug. Xdebug is installed, co...
Debugging with Aptana Studio can sometimes be tricky, especially when dealing with PHP interpreters and Xdebug. Here are some steps you can follow to troubleshoot your setup and get the debugging feature working correctly. ### Verify PHP Interpreter Configuration 1. **Check PHP Installation**: - Ensure that PHP is...
10,843
[ { "from": "human", "value": "Have you managed to get Aptana Studio debugging to work? I tried following this, but I don't see Windows -> Preferences -> Aptana -> Editors -> PHP -> PHP Interpreters in my menu (I have PHP plugin installed) and any attempt to set up the servers menu gives me \"socket error\" w...
Is there an equivalent to Java's Robot class (java.awt.Robot) for Perl?
Yes, while Perl does not have a built-in equivalent to Java's `java.awt.Robot` class, you can achieve similar functionality using external modules. For simulating keyboard and mouse events, you can use the `Win32::GuiTest` module on Windows or `X11::GUITest` on Linux/Unix systems. ### For Windows To simulate keyboard...
10,007
[ { "from": "human", "value": "Is there an equivalent to Java's Robot class (java.awt.Robot) for Perl?\n" }, { "from": "gpt", "value": "Yes, while Perl does not have a built-in equivalent to Java's `java.awt.Robot` class, you can achieve similar functionality using external modules. For simulating...
I'm using C# and i have written a locally installed application that dynamically generates files which need to be on an FTP server. Do i generate them to disk then upload them to the FTP server? or is there a way to open a stream to an FTP server and write the files directly?
In C#, you typically have two main approaches for uploading files to an FTP server: 1. **Generate Files on Disk and Then Upload**: This is the traditional approach where you first write the files to the local disk and then use an FTP client to upload those files to the server. This approach can be simpler and works we...
12,691
[ { "from": "human", "value": "I'm using C# and i have written a locally installed application that dynamically generates files which need to be on an FTP server.\nDo i generate them to disk then upload them to the FTP server? or is there a way to open a stream to an FTP server and write the files directly?\n...
What is the best algorithm to take array like below: A {0,1,2,3} I expected to order it like array below: B {3,1,0,2} Any ideas?
To transform the array \( A = \{0, 1, 2, 3\} \) into the desired order \( B = \{3, 1, 0, 2\} \), you can use a mapping array that specifies the new positions for the elements of array \( A \). Here's how you can achieve this in a step-by-step manner: 1. **Define the desired order in an index mapping**: Create an arr...
11,900
[ { "from": "human", "value": "What is the best algorithm to take array like below:\nA {0,1,2,3}\nI expected to order it like array below:\nB {3,1,0,2} \nAny ideas?\n" }, { "from": "gpt", "value": "To transform the array \\( A = \\{0, 1, 2, 3\\} \\) into the desired order \\( B = \\{3, 1, 0, 2\\} ...
In SQL Server 2005, is there a way of deleting rows and being told how many were actually deleted? I could do a select count(*) with the same conditions, but I need this to be utterly trustworthy. My first guess was to use the @@ROWCOUNT variables - but that isn't set, e.g. delete from mytable where datefield = '...
In SQL Server 2005, you can indeed use the `OUTPUT` clause with a `DELETE` statement to capture information about the rows being deleted. However, your syntax for capturing into a temporary table seems to be causing the issue. To accomplish your goal of deleting rows and knowing how many were deleted, you can do it i...
15,413
[ { "from": "human", "value": "In SQL Server 2005, is there a way of deleting rows and being told how many were actually deleted? \nI could do a select count(*) with the same conditions, but I need this to be utterly trustworthy. \nMy first guess was to use the @@ROWCOUNT variables - but that isn't set, e.g....
This is a follow-up to the question: Should the folders in a solution match the namespace? The consensus on that question was a qualified "yes": that is, folders == namespaces, generally, but not slavishly (the way java requires). Indeed, that's how I set up projects. But setting up source control has made me hesitate...
In your scenario, the way you've structured your folders and namespaces generally aligns well with best practices, but it can be further refined based on your deployment strategy and the way you want to manage your source control. Here are some considerations and strategies to think about: ### 1. **Group by Deployment...
12,536
[ { "from": "human", "value": "This is a follow-up to the question:\nShould the folders in a solution match the namespace? \nThe consensus on that question was a qualified \"yes\": that is, folders == namespaces, generally, but not slavishly (the way java requires).\nIndeed, that's how I set up projects.\nBut...
I'm trying to implement some drag and drop functionality for a material system being developed at my work. Part of this system includes a 'Material Library' which acts as a repository, divided into groups, of saved materials on the user's hard drive. As part of some UI polish, I was hoping to implement a 'highlight' ty...
It sounds like you're facing a common issue with drawing in MFC applications, where the background of a window is not properly invalidated and redrawn when dragging and dropping. When you change the background color based on the drag state, the area that was previously drawn does not get automatically redrawn, leading ...
13,578
[ { "from": "human", "value": "I'm trying to implement some drag and drop functionality for a material system being developed at my work. Part of this system includes a 'Material Library' which acts as a repository, divided into groups, of saved materials on the user's hard drive.\nAs part of some UI polish, ...
I need to change the credentials of an already existing Windows service using C#. I am aware of two different ways of doing this. ChangeServiceConfig, see ChangeServiceConfig on pinvoke.net ManagementObject.InvokeMethod using Change as the method name. Neither seems a very "friendly" way of doing this and I was wonde...
Changing the credentials of an existing Windows service can indeed be done using either the `ChangeServiceConfig` function from the Windows API or the `ManagementObject.InvokeMethod` approach using WMI. However, there are also some additional options you might consider for modifying service credentials in a more friend...
10,690
[ { "from": "human", "value": "I need to change the credentials of an already existing Windows service using C#. I am aware of two different ways of doing this.\n\nChangeServiceConfig, see ChangeServiceConfig on pinvoke.net\nManagementObject.InvokeMethod using Change as the method name.\n\nNeither seems a ver...
I've written a simple Flash player for a Shoutcast stream. At first it seemed to work reliably, however about 5% of the time users experience slow playback where the stream plays at roughly half of normal speed. All files being streamed are MP3, encoded at 128kbps/44.1kHz, the same settings as used in the Shoutcast con...
Hi Alan, It's interesting that you've encountered this playback speed issue with your Flash-based Shoutcast stream player, especially considering that it occurs only during the initial loading phase and not mid-stream. Here are some potential avenues to explore and suggestions that may help you troubleshoot or mitigat...
12,040
[ { "from": "human", "value": "I've written a simple Flash player for a Shoutcast stream. At first it seemed to work reliably, however about 5% of the time users experience slow playback where the stream plays at roughly half of normal speed.\nAll files being streamed are MP3, encoded at 128kbps/44.1kHz, the ...
I have a swing gui with a tabbed pane in the north. Several key events are added to its input map: InputMap paneInputMap = pane.getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT); paneInputMap.put( KeyStroke.getKeyStroke( KeyEvent.VK_E, KeyEvent.CTRL_MASK ), "finish"); paneInputMap.put( KeyStroke.getKeyStroke( ...
The behavior you're experiencing is due to the way the `ToolTipManager` in Swing handles the `Ctrl+F1` key combination. As you've discovered, when a component with a tooltip is focused, the `ToolTipManager` intercepts the `Ctrl+F1` key press to show the tooltip instead of allowing it to trigger your action. If you wan...
12,027
[ { "from": "human", "value": "I have a swing gui with a tabbed pane in the north. Several key events are added to its input map:\nInputMap paneInputMap = pane.getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT);\npaneInputMap.put( KeyStroke.getKeyStroke( KeyEvent.VK_E, KeyEvent.CTRL_MASK ), \"finish\"...
I'm getting the following error when trying to build my app using Team Foundation Build: C:\WINDOWS\Microsoft.NET\Framework\v3.5\Microsoft.Common.targets(1682,9): error MSB3554: Cannot write to the output file "obj\Release\Company.Redacted.BlahBlah.Localization.Subsystems. Startup_Shutdown_Processing.StartupShutdown...
The error you are encountering is due to the Windows file path length limitations, specifically the limitation of 260 characters for fully qualified file names. In your case, the Team Foundation Build (TF Build) is likely using a longer path structure for storing build outputs compared to your local development machine...
9,060
[ { "from": "human", "value": "I'm getting the following error when trying to build my app using Team Foundation Build:\n\nC:\\WINDOWS\\Microsoft.NET\\Framework\\v3.5\\Microsoft.Common.targets(1682,9): error MSB3554: Cannot write to the output file \"obj\\Release\\Company.Redacted.BlahBlah.Localization.Subsys...
I have a quandary. My web application (C#, .Net 3.0, etc) has Themes, CSS sheets and, of course, inline style definitions. Now that's alot of chefs adding stuff to the soup. All of this results, not surprisingly, in my pages having bizarre styling on occasion. I am sure that all these styles are applied in a hierarc...
It sounds like you're dealing with a common issue in web development, where the cascading nature of CSS leads to unexpected styling results. Here's how you can tackle the problem of identifying and managing styles in your web application: ### Understanding CSS Specificity and Cascade CSS applies styles based on speci...
9,731
[ { "from": "human", "value": "I have a quandary. My web application (C#, .Net 3.0, etc) has Themes, CSS sheets and, of course, inline style definitions. Now that's alot of chefs adding stuff to the soup. All of this results, not surprisingly, in my pages having bizarre styling on occasion.\nI am sure that...
Is it possible to create patch installers for web deployment installers generated in VS2005? I have a situation in which it is undesirable to perform a complete uninstall/reinstall of a web site, but in which periodic bug fixes and minor upgrades are made. I've tried following the instructions in various online posts a...
Creating patch installers for web deployment projects in Visual Studio 2005 can be quite challenging due to the limitations of Windows Installer technology, especially since web deployment projects do not have an administrative installation concept. However, here are some strategies you can use to manage updates and a...
14,302
[ { "from": "human", "value": "Is it possible to create patch installers for web deployment installers generated in VS2005?\nI have a situation in which it is undesirable to perform a complete uninstall/reinstall of a web site, but in which periodic bug fixes and minor upgrades are made.\nI've tried following...
I start to write a client - server application using .net (C#) for both client and server side. Unfortunately, my company refuse to pay for Windows licence on server box meaning that I need to rewrite my code in Java, or go to the Mono way. Is there any good way to translate C# code in Java ? The server application use...
Translating a C# application to Java can be challenging but is feasible, especially if your C# code is already written with cross-platform libraries in mind. Here are several steps and considerations to assist you in the process: ### 1. Evaluate the Codebase - **Identify Dependencies**: List all external libraries and...
12,068
[ { "from": "human", "value": "I start to write a client - server application using .net (C#) for both client and server side.\nUnfortunately, my company refuse to pay for Windows licence on server box meaning that I need to rewrite my code in Java, or go to the Mono way.\nIs there any good way to translate C...
For a small project I have to parse pdf files and take a specific part of them (a simple chain of characters). I'd like to use python to do this and I've found several libraries that are capable of doing what I want in some ways. But now after a few researches, I'm wondering what is the real structure of a pdf file, do...
Yes, the structure of a PDF file is defined by the PDF specification published by Adobe. The PDF format is quite complex, but understanding its structure can be very beneficial for tasks like parsing and extracting specific information. ### PDF Specification The official specification for PDF files is available on the...
7,606
[ { "from": "human", "value": "For a small project I have to parse pdf files and take a specific part of them (a simple chain of characters). I'd like to use python to do this and I've found several libraries that are capable of doing what I want in some ways.\nBut now after a few researches, I'm wondering wh...
I need to rearrange some content in various directories but it's a bit of a pain. In order to debug the application I'm working on (a ruby app) I need to move my gems into my gem folder one at a time (long story; nutshell: one is broken and I can't figure out which one). So I need to do something like: sudo mv backup/g...
You can create a simple shell script that takes a gem name as an argument and performs the `mv` operations for you. Here's how you can do it: 1. Open your terminal. 2. Create a new file for your script. You can call it `gemMove.sh`: ```bash nano gemMove.sh ``` 3. Copy and paste the following script into th...
14,672
[ { "from": "human", "value": "I need to rearrange some content in various directories but it's a bit of a pain. In order to debug the application I'm working on (a ruby app) I need to move my gems into my gem folder one at a time (long story; nutshell: one is broken and I can't figure out which one).\nSo I n...
How should I determine what to use for a listening socket's backlog parameter? Is it a problem to simply specify a very large number?
The backlog parameter in a listening socket's `listen()` function defines the maximum number of connections that can be queued up before the operating system starts rejecting new connections. Determining the appropriate value for this parameter involves considering a few key factors: 1. **Expected Traffic Volume**: An...
13,243
[ { "from": "human", "value": "How should I determine what to use for a listening socket's backlog parameter? Is it a problem to simply specify a very large number?\n" }, { "from": "gpt", "value": "The backlog parameter in a listening socket's `listen()` function defines the maximum number of con...
How would I drainstop one of the nodes in a MS NLB via command line and then get notified of its completion? If there's no way to callback, is there an easy way to poll?
In Microsoft Network Load Balancing (NLB), you can stop one of the nodes in the NLB cluster from the command line using the `NLB.exe` command-line utility or PowerShell. Below are the steps to drain stop a node, followed by options to get notified of its completion. ### Step 1: Drainstop the Node You can drainstop a ...
10,664
[ { "from": "human", "value": "How would I drainstop one of the nodes in a MS NLB via command line and then get notified of its completion? \nIf there's no way to callback, is there an easy way to poll?\n" }, { "from": "gpt", "value": "In Microsoft Network Load Balancing (NLB), you can stop one of...
In my environment here I use Java to serialize the result set to XML. It happens basically like this: //foreach column of each row xmlHandler.startElement(uri, lname, "column", attributes); String chars = rs.getString(i); xmlHandler.characters(chars.toCharArray(), 0, chars.length()); xmlHandler.endElement(uri, lname, "...
The issue you're encountering with the XML serialization is related to invalid character references in your data. Specifically, the character `&#26;` is not a valid XML character reference, as XML only allows certain character references that correspond to the Unicode character set. In XML, certain characters and cont...
12,942
[ { "from": "human", "value": "In my environment here I use Java to serialize the result set to XML.\nIt happens basically like this:\n//foreach column of each row\nxmlHandler.startElement(uri, lname, \"column\", attributes);\nString chars = rs.getString(i);\nxmlHandler.characters(chars.toCharArray(), 0, char...
I would like to display multiple colors (and potentially shapes and sizes) of data points in a Google Chart scatter chart. Does anyone have an example of how to do so?
Certainly! In Google Charts, you can customize the appearance of data points in a scatter chart using options like color, shape, and size. Below is an example that demonstrates how to achieve this using Google Charts. You can customize the colors and sizes of the data points by adding additional data columns for color...
12,958
[ { "from": "human", "value": "I would like to display multiple colors (and potentially shapes and sizes) of data points in a Google Chart scatter chart. Does anyone have an example of how to do so?\n" }, { "from": "gpt", "value": "Certainly! In Google Charts, you can customize the appearance of d...
We are looking to do some heavy security requirements on our project, and we need to do a lot of encryption that is highly performant. I think that I know that PKI is much slower and more complex than symmetric encryption, but I can't find the numbers to back up my feelings.
You're correct that in general, symmetric encryption is faster and more efficient than asymmetric encryption (often implemented with Public Key Infrastructure or PKI). Here are some key points and comparisons to help illustrate the performance differences: ### 1. **Encryption Types**: - **Symmetric Encryption**: Us...
11,604
[ { "from": "human", "value": "We are looking to do some heavy security requirements on our project, and we need to do a lot of encryption that is highly performant.\nI think that I know that PKI is much slower and more complex than symmetric encryption, but I can't find the numbers to back up my feelings.\n"...
After watching The Dark Knight I became rather enthralled with the concept of the Prisoner's Dilemma. There must be an algorithm that that maximizes one's own gain given a situation. For those that find this foreign: http://en.wikipedia.org/wiki/Prisoner%27s_dilemma Very, very interesting stuff. Edit: The question is, ...
The Prisoner's Dilemma is a fascinating problem in game theory that illustrates the conflict between individual self-interest and mutual cooperation. In the context of strategies for the Prisoner's Dilemma, several approaches have been proposed, and some are quite effective depending on the scenario. ### Iterated Pris...
11,238
[ { "from": "human", "value": "After watching The Dark Knight I became rather enthralled with the concept of the Prisoner's Dilemma. There must be an algorithm that that maximizes one's own gain given a situation.\nFor those that find this foreign: http://en.wikipedia.org/wiki/Prisoner%27s_dilemma\nVery, very...
Does beautiful soup work with iron python? If so with which version of iron python? How easy is it to distribute a windows desktop app on .net 2.0 using iron python (mostly c# calling some python code for parsing html)?
Beautiful Soup is a Python library designed for web scraping, and it generally works well with CPython. IronPython is an implementation of Python that is integrated with the .NET Framework, which allows for interoperability between Python and .NET languages (like C#). ### Compatibility of Beautiful Soup with IronPytho...
12,151
[ { "from": "human", "value": "Does beautiful soup work with iron python?\nIf so with which version of iron python?\nHow easy is it to distribute a windows desktop app on .net 2.0 using iron python (mostly c# calling some python code for parsing html)? \n" }, { "from": "gpt", "value": "Beautiful S...
I'm not even sure if it's possible but say I have some XML: <source> <list> <element id="1"/> </list> </source> And I would like to insert into list: <element id="2"/> Can I write an XSLT to do this?
Yes, you can certainly use XSLT to insert an XML element into an existing XML structure. In your case, you want to add `<element id="2"/>` into the `<list>` within the `<source>`. Here’s how you can accomplish that using XSLT. ### Example XSLT: ```xml <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1....
11,912
[ { "from": "human", "value": "I'm not even sure if it's possible but say I have some XML:\n <source>\n <list>\n <element id=\"1\"/>\n </list>\n </source>\n\nAnd I would like to insert into list:\n<element id=\"2\"/>\n\nCan I write an XSLT to do this?\n" }, { "from": "gpt...
I am looking for a tool that can take a unit test, like IPerson p = new Person(); p.Name = "Sklivvz"; Assert.AreEqual("Sklivvz", p.Name); and generate, automatically, the corresponding stub class and interface interface IPerson // inferred from IPerson p = new Person(); { string Name { get; ...
Creating a tool to automatically infer a stub class and interface from unit tests is an interesting challenge. Since there doesn't seem to be an existing tool that fully meets your requirements as described, let’s discuss how you could implement such a tool from scratch. The main steps involved would be parsing the C# ...
12,179
[ { "from": "human", "value": "I am looking for a tool that can take a unit test, like \nIPerson p = new Person();\np.Name = \"Sklivvz\";\nAssert.AreEqual(\"Sklivvz\", p.Name);\n\nand generate, automatically, the corresponding stub class and interface\ninterface IPerson // inferred from IPerson p = ne...
If I want to send mail not via SMTP, but rather via sendmail, is there a library for python that encapsulates this process? Better yet, is there a good library that abstracts the whole 'sendmail -versus- smtp' choice? I'll be running this script on a bunch of unix hosts, only some of which are listening on localhost:25...
For your use case, there are libraries in Python that can help abstract sending emails via either SMTP or `sendmail`, while also taking care of header injection and other security concerns. One of the most popular libraries for sending emails in Python is `email`, which is part of the standard library, but it does not...
11,386
[ { "from": "human", "value": "If I want to send mail not via SMTP, but rather via sendmail, is there a library for python that encapsulates this process?\nBetter yet, is there a good library that abstracts the whole 'sendmail -versus- smtp' choice?\nI'll be running this script on a bunch of unix hosts, only ...
In some languages you can override the "new" keyword to control how types are instantiated. You can't do this directly in .NET. However, I was wondering if there is a way to, say, handle a "Type not found" exception and manually resolve a type before whoever "new"ed up that type blows up? I'm using a serializer that ...
In .NET, you cannot directly override the `new` keyword to control instantiation of types. However, you can use some techniques to handle the situation when the serializer tries to instantiate a type and encounters a "Type not found" exception. One common way to intercept or handle type resolution is to utilize a comb...
12,024
[ { "from": "human", "value": "In some languages you can override the \"new\" keyword to control how types are instantiated. You can't do this directly in .NET. However, I was wondering if there is a way to, say, handle a \"Type not found\" exception and manually resolve a type before whoever \"new\"ed up t...
If I have two dates (ex. '8/18/2008' and '9/26/2008'), what is the best way to get the number of days between these two dates?
To calculate the number of days between two dates in Python, you can use the `datetime` module. Here's how you can do it: ```python from datetime import datetime # Define the two dates as strings date_str1 = '8/18/2008' date_str2 = '9/26/2008' # Convert the strings to datetime objects date_format = '%m/%d/%Y' date1 ...
15,988
[ { "from": "human", "value": "If I have two dates (ex. '8/18/2008' and '9/26/2008'), what is the best way to get the number of days between these two dates?\n" }, { "from": "gpt", "value": "To calculate the number of days between two dates in Python, you can use the `datetime` module. Here's how ...
I like how SQLite library can be included into an application and the application has a full-fledged database to use. Similarly, is there an open source versioning library that I can include into my application so that I can save versions of files as well as do diffs and merges?
Yes, there are several open-source libraries that you can include in your application to manage versioning of files, perform diffs, and handle merges. Here are a few popular options: 1. **Git**: While Git is primarily known as a version control system for code, it can be used programmatically via libraries and binding...
14,443
[ { "from": "human", "value": "I like how SQLite library can be included into an application and the application has a full-fledged database to use.\nSimilarly, is there an open source versioning library that I can include into my application so that I can save versions of files as well as do diffs and merges...
I have a form with some radio buttons that are disabled by default. When a value gets entered into a text box, the radio buttons are enabled via javascript. The user then selects one of the radio buttons and clicks on a submit button which posts back to the server. When I get back to the server, the radio button that ...
It sounds like you're encountering an issue with the state of the radio button when the form is submitted. When you enable the radio button with JavaScript and then submit the form, the server-side code does not recognize the state of the radio button as checked. Here are a few steps to troubleshoot and fix the issue:...
13,280
[ { "from": "human", "value": "I have a form with some radio buttons that are disabled by default. \nWhen a value gets entered into a text box, the radio buttons are enabled via javascript. The user then selects one of the radio buttons and clicks on a submit button which posts back to the server.\nWhen I get...
If unit-test names can become outdated over time and if you consider that the test itself is the most important thing, then is it important to choose wise test names? ie [Test] public void ShouldValidateUserNameIsLessThan100Characters() {} verse [Test] public void UserNameTestValidation1() {}
Yes, choosing wise and meaningful test names is important, even if the tests themselves are the main focus. Well-named tests provide several benefits: 1. **Clarity**: A descriptive name helps you and other developers quickly understand what the test is validating without having to dive into the implementation details....
14,501
[ { "from": "human", "value": "If unit-test names can become outdated over time and if you consider that the test itself is the most important thing, then is it important to choose wise test names?\nie \n[Test]\npublic void ShouldValidateUserNameIsLessThan100Characters() {}\n\nverse \n[Test]\npublic void User...
What's the best way to extend the User model (bundled with Django's authentication app) with custom fields? I would also possibly like to use the email as the username (for authentication purposes). I've already seen a few ways to do it, but can't decide on which one is the best.
Extending the default User model in Django is a common requirement, especially when you need to add custom fields or change the way users authenticate. Here are the primary methods to extend Django's User model, along with the recommended approach for your scenario: ### Recommended Approach: Custom User Model The bes...
11,118
[ { "from": "human", "value": "What's the best way to extend the User model (bundled with Django's authentication app) with custom fields? I would also possibly like to use the email as the username (for authentication purposes).\nI've already seen a few ways to do it, but can't decide on which one is the bes...
Anyone have a quick method for de-duplicating a generic List in C#?
Certainly! You can easily de-duplicate a generic `List<T>` in C# using the `Distinct` method from LINQ. Here’s a quick example of how you can do this: First, make sure to include the necessary namespace: ```csharp using System; using System.Collections.Generic; using System.Linq; ``` Then you can use the following c...
14,756
[ { "from": "human", "value": "Anyone have a quick method for de-duplicating a generic List in C#?\n" }, { "from": "gpt", "value": "Certainly! You can easily de-duplicate a generic `List<T>` in C# using the `Distinct` method from LINQ. Here’s a quick example of how you can do this:\n\nFirst, make ...
I'm using this code to let the user enter in names while the program stores them in an array until they enter an empty string (they must press enter after each name): people = [] info = 'a' # must fill variable with something, otherwise loop won't execute while not info.empty? info = gets.chomp people += [Pers...
Ruby doesn't have a built-in `do ... while` loop, but you can achieve the same functionality using a `begin ... end while` loop. This structure allows you to execute the block of code at least once and then check the condition at the end. Here's how you can refactor your code using `begin ... end while`: ```ruby peop...
17,077
[ { "from": "human", "value": "I'm using this code to let the user enter in names while the program stores them in an array until they enter an empty string (they must press enter after each name):\npeople = []\ninfo = 'a' # must fill variable with something, otherwise loop won't execute\n\nwhile not info.emp...
Or, actually establishing a build process when there isn't much of one in place to begin with. Currently, that's pretty much the situation my group faces. We do web-app development primarily (but no desktop development at this time). Software deployments are ugly and unwieldy even with our modest apps, and we've had ...
Establishing a solid build process is a critical step toward improving software quality, enhancing team productivity, and facilitating smoother deployments. Here are some suggestions to help you refine your build process and address the issues you're facing: ### 1. **Define Your Build Process Clearly** - **Document...
6,798
[ { "from": "human", "value": "Or, actually establishing a build process when there isn't much of one in place to begin with.\nCurrently, that's pretty much the situation my group faces. We do web-app development primarily (but no desktop development at this time). Software deployments are ugly and unwieldy...
I have downloaded a font that looks less than desirable if it is not anti-aliased. I can not figure out how to enable anti-aliasing in VS, I have changed the 'Smooth Edges of Screen Fonts' in the system performance options but that does not seem to help. VS2008 on XP SP3. What am I missing?
In Visual Studio 2008 on Windows XP, there are a few steps you can follow to ensure that fonts are properly anti-aliased: 1. **System Settings**: It sounds like you've already adjusted the "Smooth Edges of Screen Fonts" option in your system settings. Just to confirm: - Right-click on "My Computer" and select "Prop...
12,383
[ { "from": "human", "value": "I have downloaded a font that looks less than desirable if it is not anti-aliased. I can not figure out how to enable anti-aliasing in VS, I have changed the 'Smooth Edges of Screen Fonts' in the system performance options but that does not seem to help.\nVS2008 on XP SP3.\nWha...
One of the first things I do when I'm on a new project is design a database model. To visualize the model I use a 7 year old version of Smartdraw. Maybe it's time for something new. What is the ultimate program to make a drawing of a database model. Smartdraw is for Windows only. Is there something that can be used on ...
There are several modern tools that can help you design and visualize database models, and many of them are cross-platform, meaning they can be used on Unix-based systems as well. Here are some options: 1. **dbdiagram.io**: This is an online tool that allows you to create and visualize database diagrams easily. It sup...
14,790
[ { "from": "human", "value": "One of the first things I do when I'm on a new project is design a database model. To visualize the model I use a 7 year old version of Smartdraw. Maybe it's time for something new. What is the ultimate program to make a drawing of a database model. Smartdraw is for Windows only...
If our server (running on a device) starts before a DHCP lease had been acquired then it can never connect using a hostname. If that happens it can find hosts by IP address but not by DNS. I initially thought that the Curl DNS cache was at fault as the curl connections failed. But I used CURLOPT_DNS_CACHE_TIMEOUT to pr...
The issue you're experiencing seems to be related to your server's inability to resolve hostnames through DNS when it starts up before acquiring a DHCP lease. Here are a few points to consider that may help address the problem: ### Understanding the Problem 1. **Network Initialization**: If your server boots up before...
10,304
[ { "from": "human", "value": "If our server (running on a device) starts before a DHCP lease had been acquired then it can never connect using a hostname.\nIf that happens it can find hosts by IP address but not by DNS.\nI initially thought that the Curl DNS cache was at fault as the curl connections failed....
I have inherited a VB6/Access application that we have developed and sold for many years. We're going to SQL Server 2005 Express Edition and .Net. The application can be multi-user. Currently the setup is simple for the customer -- Navigate to the folder to create the database on first launch; second user browses t...
Migrating from a VB6/Access application to a SQL Server 2005 Express Edition and .NET framework can significantly improve your application's performance, security, and scalability. However, as you rightly noted, transitioning to SQL Server will require some changes in how you handle installation and support for your cu...
8,834
[ { "from": "human", "value": "I have inherited a VB6/Access application that we have developed and sold for many years. We're going to SQL Server 2005 Express Edition and .Net.\nThe application can be multi-user. Currently the setup is simple for the customer -- Navigate to the folder to create the databa...