instruction
stringlengths
14
27.6k
completion
stringlengths
3
38.3k
__original_row_idx
int64
0
50k
conversations
listlengths
2
2
We've been using selenium with great success to handle high-level website testing (in addition to extensive python doctests at a module level). However now we're using extjs for a lot of pages and its proving difficult to incorporate Selenium tests for the complex components like grids. Has anyone had success writing...
Testing Ext JS applications with Selenium can be challenging due to the dynamic nature of the framework, especially with components like grids. However, there are some strategies and best practices you can employ to improve the reliability and maintainability of your tests. Here are some tips that have worked for other...
7,468
[ { "from": "human", "value": "We've been using selenium with great success to handle high-level website testing (in addition to extensive python doctests at a module level). However now we're using extjs for a lot of pages and its proving difficult to incorporate Selenium tests for the complex components li...
This one will take some explaining. What I've done is create a specific custom message queue in SQL Server 2005. I have a table with messages that contain timestamps for both acknowledgment and completion. The stored procedure that callers execute to obtain the next message in their queue also acknowledges the message....
Yes, your explanation makes sense, and you've pointed out a common concurrency issue when dealing with message queues in a high-throughput environment. In your current implementation, it's indeed possible for multiple executions of the stored procedure to read the same message from the `UnacknowledgedDemands` table be...
8,210
[ { "from": "human", "value": "This one will take some explaining. What I've done is create a specific custom message queue in SQL Server 2005. I have a table with messages that contain timestamps for both acknowledgment and completion. The stored procedure that callers execute to obtain the next message in t...
I've worked with Cruise Control as the CI framework in my last project. Any recommendations on some other tools? (Not that i found CruiseControl lacking, just wanted to know if someone did some comparisons)
Certainly! While CruiseControl was one of the early continuous integration (CI) tools, there are now many modern alternatives with various features and integrations. Here are some popular CI/CD tools you might consider, along with brief comparisons: 1. **Jenkins**: - **Overview**: One of the most widely used CI/CD ...
8,006
[ { "from": "human", "value": "I've worked with Cruise Control as the CI framework in my last project.\nAny recommendations on some other tools?\n(Not that i found CruiseControl lacking, just wanted to know if someone did some comparisons)\n" }, { "from": "gpt", "value": "Certainly! While CruiseCo...
I'm always wondering who should do it. In Ruby, we have the Daemons library which allows Ruby scripts to daemonize themselves. And then, looking at God (a process monitoring tool, similar to monit) page, I see that God can daemonize processes. Any definitive answer out there?
The question of who should daemonize a process—whether it's the application itself or a process management tool like God—can depend on several factors, including your use case, design philosophy, and operational requirements. Here are some considerations to help you decide: ### When to Daemonize the Application: 1. *...
10,092
[ { "from": "human", "value": "I'm always wondering who should do it. In Ruby, we have the Daemons library which allows Ruby scripts to daemonize themselves. And then, looking at God (a process monitoring tool, similar to monit) page, I see that God can daemonize processes.\nAny definitive answer out there?...
With the plethora of communication methods available to co-workers, how do you manage to keep distractions at bay for a large enough block of time to accomplish some focused programming? Do you quit or close all communications, have you informed people that an away message really means you are a way, or something else?...
Managing distractions in a work environment, especially in programming or other focused tasks, can be challenging given the various communication methods available. Here are some strategies to help maintain focus while balancing communication: 1. **Establish Clear Boundaries**: Inform your team about your focused work...
9,383
[ { "from": "human", "value": "With the plethora of communication methods available to co-workers, how do you manage to keep distractions at bay for a large enough block of time to accomplish some focused programming?\nDo you quit or close all communications, have you informed people that an away message real...
I am having a frequent problems with my web hosting (its shared) I am not able to delete or change permission for a particular directory. The response is, Cannot delete. Directory may not be empty I checked the permissions and it looks OK. There are 100's of files in this folder which I don't want. I contacted my sup...
It sounds like you're encountering a persistent issue with file permissions on your shared hosting server. Since you've already contacted support and they addressed the problem but it has reappeared, there are a few things you can try to resolve the issue yourself. 1. **Check Ownership and Permissions**: Use SSH (i...
9,302
[ { "from": "human", "value": "I am having a frequent problems with my web hosting (its shared)\nI am not able to delete or change permission for a particular directory. The response is,\nCannot delete. Directory may not be empty\n\nI checked the permissions and it looks OK. There are 100's of files in this f...
It looks quite easy to find such a tool for Java (Checkstyle, JCSC), but I can't seem to find one for C/C++. I am not looking for a lint-like static code analyzer, I only would like to check against coding standards like variable naming, capitalization, spacing, identation, bracket placement, and so on.
For C/C++ coding standard enforcement, you have several options that focus on style checks rather than comprehensive static analysis. Here are a few tools that can help you enforce coding standards like variable naming, indentation, spacing, and bracket placement: 1. **ClangFormat**: - Part of the LLVM project, Cla...
10,172
[ { "from": "human", "value": "It looks quite easy to find such a tool for Java (Checkstyle, JCSC), but I can't seem to find one for C/C++. I am not looking for a lint-like static code analyzer, I only would like to check against coding standards like variable naming, capitalization, spacing, identation, brac...
This is one of the possible ways I come out: struct RetrieveKey { template <typename T> typename T::first_type operator()(T keyValuePair) const { return keyValuePair.first; } }; map<int, int> m; vector<int> keys; // Retrieve all keys transform(m.begin(), m.end(), back_inserter(keys), RetrieveK...
Yes, there are several other ways to achieve the retrieval of keys or values from a `std::map`. While your approach using a functor works, it can be simplified using STL algorithms and existing features of the `std::map`. Here are a few alternative methods to retrieve keys and values without the need for custom functor...
8,256
[ { "from": "human", "value": "This is one of the possible ways I come out:\nstruct RetrieveKey\n{\n template <typename T>\n typename T::first_type operator()(T keyValuePair) const\n {\n return keyValuePair.first;\n }\n};\n\nmap<int, int> m;\nvector<int> keys;\n\n// Retrieve all keys\ntrans...
With web services it is considered a good practice to batch several service calls into one message to reduce a number of remote calls. Is there any way to do this with RESTful services?
Yes, it is indeed possible to batch multiple service calls into a single request with RESTful services, though the approach can differ from traditional RPC-style batching. Here are several methods to accomplish this: 1. **Batch Endpoint**: Create a special endpoint (e.g., `/batch`) that accepts a single request contai...
7,634
[ { "from": "human", "value": "With web services it is considered a good practice to batch several service calls into one message to reduce a number of remote calls. Is there any way to do this with RESTful services?\n" }, { "from": "gpt", "value": "Yes, it is indeed possible to batch multiple ser...
For photos, I use Flickr. But for other documents...Which web based online application (hosted or to install on your personal web site) do you use for PDF or word files ? If there is a user management it would be also great (for example you decide that some persons, or everyone, can see some of your documents...).
There are several web-based applications and services that you can use to manage and share PDF and Word files, each with user management features. Here are some popular options: 1. **Google Drive**: - Allows you to upload and share documents in various formats, including PDFs and Word files. - You can set permi...
10,589
[ { "from": "human", "value": "For photos, I use Flickr. But for other documents...Which web based online application (hosted or to install on your personal web site) do you use for PDF or word files ? If there is a user management it would be also great (for example you decide that some persons, or everyone,...
We have some legacy code that needs to identify in the Page_Load which event caused the postback. At the moment this is implemented by checking the Request data like this... if (Request.Form["__EVENTTARGET"] != null && (Request.Form["__EVENTTARGET"].IndexOf("BaseGrid") > -1 // BaseGrid event ( e.g. sort)        || Requ...
To improve the way you identify the cause of postbacks in your legacy ASP.NET Web Forms application, you can take advantage of the built-in event handling mechanism, rather than directly checking the `Request.Form` values. While you cannot avoid the need to perform checks in `Page_Load` due to the requirements, you can...
10,441
[ { "from": "human", "value": "We have some legacy code that needs to identify in the Page_Load which event caused the postback.\nAt the moment this is implemented by checking the Request data like this...\nif (Request.Form[\"__EVENTTARGET\"] != null\n&& (Request.Form[\"__EVENTTARGET\"].IndexOf(\"BaseGrid\") ...
I am using Java back end for creating an XML string which is passed to the browser. Currently I am using simple string manipulation to produce this XML. Is it essential that I use some XML library in Java to produce the XML string? I find the libraries very difficult to use compared to what I need.
While it is technically possible to construct XML strings using simple string manipulation in Java, it is generally not recommended for several reasons: 1. **Correctness**: Manually constructing XML can lead to errors such as forgetting to escape special characters (e.g., `<`, `>`, `&`, etc.), which can result in malf...
2,083
[ { "from": "human", "value": "I am using Java back end for creating an XML string which is passed to the browser. Currently I am using simple string manipulation to produce this XML. Is it essential that I use some XML library in Java to produce the XML string?\nI find the libraries very difficult to use com...
I have a flash movie with a dynamic text that supposedly is Arial, and in my windows machine it displays as Arial. But when I tried it in a Mac, it shows as something like Times New Roman. I tried every property available and can't seem to get it to show as Arial on the Mac. I found another movie I had that didn't have...
The issue you’re encountering with the dynamic text in your Flash movie may be related to font substitution on different operating systems. Here are a few points to consider when troubleshooting: 1. **Font Availability**: First, ensure that the Arial font is installed and available on the Mac. If it's missing, Flash w...
9,717
[ { "from": "human", "value": "I have a flash movie with a dynamic text that supposedly is Arial, and in my windows machine it displays as Arial. But when I tried it in a Mac, it shows as something like Times New Roman.\nI tried every property available and can't seem to get it to show as Arial on the Mac.\nI...
I found a problem with the XML Serialization of C#. The output of the serializer is inconsistent between normal Win32 and WinCE (but surprisingly WinCE has the IMO correcter output). Win32 simply ignores the Class2 XmlRoot("c2") Attribute. Does anyone know a way how to get the WinCE like output on Win32 (because i don...
The behavior you're observing regarding the `XmlSerializer` generating different output for WinCE and Win32 can be quite frustrating, especially if you're aiming for consistent XML output across platforms. However, you can control the serialization output on Win32 to match the expected format using the `XmlType` attrib...
10,863
[ { "from": "human", "value": "I found a problem with the XML Serialization of C#. The output of the serializer is inconsistent between normal Win32 and WinCE (but surprisingly WinCE has the IMO correcter output). Win32 simply ignores the Class2 XmlRoot(\"c2\") Attribute.\nDoes anyone know a way how to get t...
I want to programmatically edit file content using windows command line (cmd.exe). In *nix there is sed for this tasks. Are there any useful native equivalents (cmd or ps) in windows?
In Windows, there are several ways to programmatically edit file content using the command line (cmd.exe) or PowerShell. While there is no direct equivalent to `sed` in cmd, you can use a combination of built-in commands and PowerShell for text manipulation. Here are some options: ### Using `findstr` and `for` in CMD ...
10,227
[ { "from": "human", "value": "I want to programmatically edit file content using windows command line (cmd.exe). In *nix there is sed for this tasks. Are there any useful native equivalents (cmd or ps) in windows?\n" }, { "from": "gpt", "value": "In Windows, there are several ways to programmatic...
I know that it's possible to replace the browse button, which is generated in html, when you use input tag with type="file. I'm not sure what is the best way, so if someone has experience with this please contribute.
Yes, it is indeed possible to customize the appearance of the file input button in HTML. The default file input button is styled by the browser and can be difficult to customize directly. However, a common approach is to use CSS and a little bit of JavaScript to create a custom-styled button while still maintaining the...
8,590
[ { "from": "human", "value": "I know that it's possible to replace the browse button, which is generated in html, when you use input tag with type=\"file.\nI'm not sure what is the best way, so if someone has experience with this please contribute. \n" }, { "from": "gpt", "value": "Yes, it is ind...
Are there any IQueriable implementaions for linq-to-objects that perform better than the default O(n) linear search performance that you get when calling myEnumerable.AsQueriable()? I've had a look at http://www.codeplex.com/i4o/ which has better performance, but seems to rely on using extension methods on IndexedColle...
When it comes to LINQ to Objects and the default implementation of `IQueryable<T>` that you get from calling `AsQueryable()` on an `IEnumerable<T>`, you're correct that it typically results in O(n) performance for searches. This is because the default `IQueryable` implementation does not provide any optimization for qu...
8,740
[ { "from": "human", "value": "Are there any IQueriable implementaions for linq-to-objects that perform better than the default O(n) linear search performance that you get when calling myEnumerable.AsQueriable()?\nI've had a look at http://www.codeplex.com/i4o/ which has better performance, but seems to rely ...
running git instaweb in my repository opens a page that says "403 Forbidden - No projects found". What am I missing?
The "403 Forbidden - No projects found" message when running `git instaweb` usually indicates that the server can't find any repositories to display. Here are some steps you can follow to troubleshoot this issue: 1. **Check Git Installation**: Make sure that you have `git` installed correctly on your system and that `...
10,932
[ { "from": "human", "value": "running git instaweb in my repository opens a page that says \"403 Forbidden - No projects found\". What am I missing?\n" }, { "from": "gpt", "value": "The \"403 Forbidden - No projects found\" message when running `git instaweb` usually indicates that the server can...
Seems like there are so many different ways of automating one's build/deployment that it becomes difficult to parse through all the different scenarios that people support in tutorials on the web. So I wanted to present the question to the stackoverflow crowd ... what would be the best way to set up an automated build...
Setting up an automated build and deployment system with the specified tools can indeed be tricky, especially with older technologies like Visual Studio 2008 and CruiseControl.NET. However, with a good plan and strategy, you can streamline your build and deployment process. Here's a suggested approach to handle your sc...
8,770
[ { "from": "human", "value": "Seems like there are so many different ways of automating one's build/deployment that it becomes difficult to parse through all the different scenarios that people support in tutorials on the web. So I wanted to present the question to the stackoverflow crowd ... what would be ...
I need to determine if a Class object representing an interface extends another interface, ie: package a.b.c.d; public Interface IMyInterface extends a.b.d.c.ISomeOtherInterface{ } according to the spec Class.getSuperClass() will return null for an Interface. If this Class represents either the Object cl...
To determine if a Java interface extends another interface, you can use the `Class.getInterfaces()` method. This method returns an array of `Class` objects that represent all the interfaces implemented or extended by the class or interface. Here's how you can check if `IMyInterface` extends `ISomeOtherInterface`: ``...
10,473
[ { "from": "human", "value": "I need to determine if a Class object representing an interface extends another interface, ie:\n package a.b.c.d;\n public Interface IMyInterface extends a.b.d.c.ISomeOtherInterface{\n }\n\naccording to the spec Class.getSuperClass() will return null for an Interface. \n\...
I'm using the field.camelcase in my mapping files to setting things like collections, dependant entities, etc. and exposing the collections as readonly arrays. I know the access strategy does not affect the lazy loading, I just want confirm that this will still be cached: private ISet<AttributeValue> attributes; publ...
In your mapping files, when you use `field.camelcase` to map your collections and expose them as read-only arrays, it is essential to consider how lazy loading and caching work in the context of your ORM (e.g., NHibernate). Given your property: ```csharp private ISet<AttributeValue> attributes; public virtual Attribu...
9,765
[ { "from": "human", "value": "I'm using the field.camelcase in my mapping files to setting things like collections, dependant entities, etc. and exposing the collections as readonly arrays. I know the access strategy does not affect the lazy loading, I just want confirm that this will still be cached:\npri...
I'm getting the following error when trying to run a JSP. I'm using Tomcat 6.0.18, and I'd like to use the latest version of JSTL. What version of JSTL should I use, and which URL goes with which version of JSTL? I'm getting this error "According to TLD or attribute directive in tag file, attribute key does not accept ...
To resolve the issue you're facing with using JSTL in your JSP, you need to consider a couple of things regarding JSTL versions and their corresponding TLD (Tag Library Descriptor) URIs. ### JSTL Version Compatibility Tomcat 6.0.18 is a relatively older servlet container, and you should choose a version of JSTL that ...
7,582
[ { "from": "human", "value": "I'm getting the following error when trying to run a JSP.\nI'm using Tomcat 6.0.18, and I'd like to use the latest version of JSTL.\nWhat version of JSTL should I use, and which URL goes with which version of JSTL?\nI'm getting this error\n\"According to TLD or attribute directi...
I have a Word 2003 .dot template that changes its menu based on the condition of the active document. The DocumentChange, DocumentOpen and NewDocument events of Word.Application trigger setting the .Visible and .Enabled properties of CommandBarButton controls. On switching active documents, controls exposed by changin...
In Word 2003, if you’re encountering issues with the menu and command bar button states not visually updating as expected, you can try to force a repaint of the CommandBars using the Windows API. Unfortunately, there's no direct way to invalidate the command bar for redrawing, but you can attempt to refresh the user in...
7,457
[ { "from": "human", "value": "I have a Word 2003 .dot template that changes its menu based on the condition of the active document.\nThe DocumentChange, DocumentOpen and NewDocument events of Word.Application trigger setting the .Visible and .Enabled properties of CommandBarButton controls. \nOn switching ac...
I'm new to developing things on the web. So far, I'm spending a lot of time (50% or so) to try and prevent bad people from putting things like sql injection into my input forms and validating it server side. Is this normal?
Yes, spending time on security, especially in the context of web development, is quite normal and very important. Web applications are common targets for various types of attacks, including SQL injection, cross-site scripting (XSS), and cross-site request forgery (CSRF), among others. Here are some key points to consid...
8,577
[ { "from": "human", "value": "I'm new to developing things on the web. So far, I'm spending a lot of time (50% or so) to try and prevent bad people from putting things like sql injection into my input forms and validating it server side. Is this normal? \n" }, { "from": "gpt", "value": "Yes, s...
Does the latest version of the enterprise library (http://msdn.microsoft.com/en-us/library/cc512464.aspx) come with the updater application block?
As of my last knowledge update in October 2023, the Enterprise Library is a collection of reusable software components designed to assist in the development of enterprise-level applications. The Updater Application Block was part of an earlier version of the Enterprise Library, but it is not included in the later relea...
14,226
[ { "from": "human", "value": "Does the latest version of the enterprise library (http://msdn.microsoft.com/en-us/library/cc512464.aspx) come with the updater application block?\n" }, { "from": "gpt", "value": "As of my last knowledge update in October 2023, the Enterprise Library is a collection ...
Now, before you say it: I did Google and my hbm.xml file is an Embedded Resource. Here is the code I am calling: ISession session = GetCurrentSession(); var returnObject = session.Get<T>(Id); Here is my mapping file for the class: <?xml version="1.0" encoding="utf-8" ?> <hibernate-mapping xmlns="urn:nhibernate-mappi...
It looks like you've already identified a potential cause of the issue related to the mapping configuration and assembly settings in your NHibernate setup. The error message indicates that NHibernate is unable to find a persister for the `HQData.Objects.SubCategory` class, which typically suggests that the mapping for ...
8,961
[ { "from": "human", "value": "Now, before you say it: I did Google and my hbm.xml file is an Embedded Resource. \nHere is the code I am calling:\nISession session = GetCurrentSession();\nvar returnObject = session.Get<T>(Id);\n\nHere is my mapping file for the class:\n<?xml version=\"1.0\" encoding=\"utf-8\...
It says in this article that: Making a class final because it is immutable is a good reason to do so. I'm a bit puzzled by this... I understand that immutability is a good thing from the POV of thread-safety and simplicity, but it seems that these concerns are somewhat orthogonal to extensibility. So, why is immutab...
You bring up an important point regarding the relationship between immutability and extensibility in object-oriented programming. Let's clarify why making an immutable class `final` can be considered a good practice. ### 1. Immutability and Thread-Safety First, let's reiterate the benefits of immutability. Immutable o...
11,768
[ { "from": "human", "value": "It says in this article that: \n\nMaking a class final because it is immutable is a good reason to do so.\n\nI'm a bit puzzled by this... I understand that immutability is a good thing from the POV of thread-safety and simplicity, but it seems that these concerns are somewhat or...
The "ResolveManifestFiles" task failed unexpectedly. System.ArgumentException: Illegal characters in path. at System.Security.Permissions.FileIOPermission.HasIllegalCharacters(String[] str) at System.Security.Permissions.FileIOPermission.AddPathList(FileIOPermissionAccess access, AccessControlActions control, Str...
The error message you provided indicates that there are illegal characters in the path of the files being passed to the "ResolveManifestFiles" task in your build process. This typically occurs in a .NET project when one or more file paths in the `@(NativeReferenceFile)` or `@(_DeploymentNativePrerequisite)` collections...
9,734
[ { "from": "human", "value": "The \"ResolveManifestFiles\" task failed unexpectedly.\nSystem.ArgumentException: Illegal characters in path.\n at System.Security.Permissions.FileIOPermission.HasIllegalCharacters(String[] str)\n at System.Security.Permissions.FileIOPermission.AddPathList(FileIOPermissionAc...
I'm teaching/helping a student to program. I remember the following process always helped me when I started; It looks pretty intuitive and I wonder if someone else have had a similar approach. Read the problem and understand it ( of course ) . Identify possible "functions" and variables. Write how would I do it step b...
It's great to hear that you've developed a systematic approach to problem-solving in programming, and it's even more rewarding that you're sharing it with a student! Your method aligns well with many widely accepted practices in software development and programming education. Many learners and experienced programmers...
10,249
[ { "from": "human", "value": "I'm teaching/helping a student to program.\nI remember the following process always helped me when I started; It looks pretty intuitive and I wonder if someone else have had a similar approach.\n\nRead the problem and understand it ( of course ) .\nIdentify possible \"functions\...
Suppose I want to store many small configuration objects in XML, and I don't care too much about the format. The XMLDecoder class built into the JDK would work, and from what I hear, XStream works in a similar way. What are the advantages to each library?
When comparing the built-in `XMLDecoder` class in the Java Development Kit (JDK) with the XStream library for storing small configuration objects in XML, there are several advantages and considerations for each approach: ### XMLDecoder (JDK) **Advantages:** 1. **Built-in**: Since `XMLDecoder` is part of the JDK, the...
9,276
[ { "from": "human", "value": "Suppose I want to store many small configuration objects in XML, and I don't care too much about the format. The XMLDecoder class built into the JDK would work, and from what I hear, XStream works in a similar way.\nWhat are the advantages to each library?\n" }, { "from"...
I am having trouble deciding on whether to classify my application as 'real time' or 'near real time', or perhaps even something else. The software receives data immediately as it is generated from the source, then based on certain rules, raises an alert when certain conditions are met. It takes the approach of checkin...
The distinction between "real-time" and "near real-time" can often be somewhat subjective and dependent on the specific context and application requirements. Here’s a general breakdown of both terms that might help you categorize your application: ### Real-Time - **Definition**: A real-time system responds to inputs o...
11,799
[ { "from": "human", "value": "I am having trouble deciding on whether to classify my application as 'real time' or 'near real time', or perhaps even something else.\nThe software receives data immediately as it is generated from the source, then based on certain rules, raises an alert when certain conditions...
How can I create an empty one-dimensional string array?
In many programming languages, you can create an empty one-dimensional string array in various ways. Here are examples in a few common languages: ### Python In Python, you can create an empty list (which can be used as a dynamic array): ```python empty_array = [] ``` ### Java In Java, you can create an empty string a...
12,380
[ { "from": "human", "value": "How can I create an empty one-dimensional string array?\n" }, { "from": "gpt", "value": "In many programming languages, you can create an empty one-dimensional string array in various ways. Here are examples in a few common languages:\n\n### Python\nIn Python, you ca...
Is there a portable, not patent-restricted way to play compressed sound files in C# / .Net? I want to play short "jingle" sounds on various events occuring in the program. System.Media.SoundPlayer can handle only WAV, but those are typically to big to embed in a downloadable apllication. MP3 is protected with patents, ...
You're correct in your assessment of various audio formats and libraries when it comes to playing compressed sound files in a C# / .NET environment. Let’s explore your options for handling audio playback in a way that is not patent-restricted and is portable across platforms. ### Using Ogg Vorbis One viable option fo...
8,431
[ { "from": "human", "value": "Is there a portable, not patent-restricted way to play compressed sound files in C# / .Net? I want to play short \"jingle\" sounds on various events occuring in the program.\nSystem.Media.SoundPlayer can handle only WAV, but those are typically to big to embed in a downloadable ...
I would like to install SQLExpress2005 as an instance "SQLExpress" and install SQLExpresss2008 as "SQLExpress2008" instance. Is there any problem with doing this on the same machine?
Yes, you can install SQL Server Express 2005 and SQL Server Express 2008 on the same machine as separate instances without any major issues. SQL Server is designed to support multiple instances on a single machine, allowing you to run different versions simultaneously. ### Considerations: 1. **Instance Names**: Make s...
12,746
[ { "from": "human", "value": "I would like to install SQLExpress2005 as an instance \"SQLExpress\"\nand install SQLExpresss2008 as \"SQLExpress2008\" instance.\nIs there any problem with doing this on the same machine?\n" }, { "from": "gpt", "value": "Yes, you can install SQL Server Express 2005 ...
I have built a web page which contains a Crystal Report built using the Crystal libraries included in Visual Studio 2008. It 'works on my machine' but when deployed to the web server the icons (Export, Print etc) on the Crystal Report toolbar do not display or work. Just seeing the 'red X' where the button image sho...
It sounds like you've already done quite a bit of troubleshooting for the missing icons on the Crystal Report viewer. Since the images are in the correct location, but you're still encountering issues, here are a few additional steps you can take to resolve the problem: ### 1. Verify the Path: Ensure that the path to ...
6,519
[ { "from": "human", "value": "I have built a web page which contains a Crystal Report built using the Crystal libraries included in Visual Studio 2008. \nIt 'works on my machine' but when deployed to the web server the icons (Export, Print etc) on the Crystal Report toolbar do not display or work. Just see...
Suppose I have some XAML like this: <Window.Resources> <v:MyClass x:Key="whatever" Text="foo\nbar" /> </Window.Resources> Obviously I want a newline character in the MyClass.Text property, but the XAML parser constructs the object with the literal string "foo\nbar". Is there (a) a way to convince the parser to trans...
The XAML parser does treat escape sequences as literal characters, meaning that `\n` will be interpreted as the two characters `\` and `n`, rather than a newline. Unfortunately, there is no built-in XAML feature to interpret escape sequences directly. However, you can achieve the desired effect by using a custom valu...
8,867
[ { "from": "human", "value": "Suppose I have some XAML like this:\n<Window.Resources>\n <v:MyClass x:Key=\"whatever\" Text=\"foo\\nbar\" />\n</Window.Resources>\n\nObviously I want a newline character in the MyClass.Text property, but the XAML parser constructs the object with the literal string \"foo\\nbar...
Are there any good programs for dealing with reading large CSV files? Some of the datafiles I deal with are in the 1 GB range. They have too many lines for Excel to even deal with. Using Access can be a little slow, as you have to actually import them into a database to work with them directly. Is there a program tha...
Yes, there are several programs and tools designed to efficiently handle large CSV files that are too big for traditional spreadsheet software like Excel. Here are some popular options: 1. **CSVed**: This is a powerful and user-friendly CSV editor that can open large files. It offers features for searching, sorting, a...
11,910
[ { "from": "human", "value": "Are there any good programs for dealing with reading large CSV files? Some of the datafiles I deal with are in the 1 GB range. They have too many lines for Excel to even deal with. Using Access can be a little slow, as you have to actually import them into a database to work wi...
So essentially does margin collapsing occur when you don't set any margin or padding or border to a given div element?
Margin collapsing is a behavior in CSS where vertical margins of adjacent block-level elements combine into a single margin, rather than adding together. This can happen under specific conditions, including when elements are adjacent to each other, and certain layout contexts are met. Here are some important points re...
11,133
[ { "from": "human", "value": "So essentially does margin collapsing occur when you don't set any margin or padding or border to a given div element?\n" }, { "from": "gpt", "value": "Margin collapsing is a behavior in CSS where vertical margins of adjacent block-level elements combine into a singl...
I have a number of users with multi-megabyte files that need to be processed before they can be uploaded. I am trying to find a way to do this without having to install any executable software on their machines. If every machine shipped with, say, Python it would be easy. I could have a Python script do everything. Th...
You're correct that JavaScript running in web browsers has restrictions, particularly around file system access due to security reasons. However, there are some approaches you can take to process files using JavaScript in a cross-platform, cross-browser manner without the need to install any additional software. ### 1...
5,954
[ { "from": "human", "value": "I have a number of users with multi-megabyte files that need to be processed before they can be uploaded. I am trying to find a way to do this without having to install any executable software on their machines. \nIf every machine shipped with, say, Python it would be easy. I co...
I am using the mootools based Rokbox plugin, on one of my sites, and I can't figure out how to close it with javascript. I triggered the click event on the close button, but that did not work. I found the code in the rokbox source that is used to add the click listener this.closeButton.addEvent('click',function(e){new ...
In the code you provided, `this` refers to the instance of the RokBox object that is currently in context, likely a RokBox instance that is being used to display the modal. The `this.closeButton` represents the close button of that RokBox instance, and the click event is bound to that button. To programmatically close...
9,022
[ { "from": "human", "value": "I am using the mootools based Rokbox plugin, on one of my sites, and I can't figure out how to close it with javascript.\nI triggered the click event on the close button, but that did not work.\nI found the code in the rokbox source that is used to add the click listener\nthis.c...
I have a process in Linux that's getting a segmentation fault. How can I tell it to generate a core dump when it fails?
To generate a core dump for a process that encounters a segmentation fault in Linux, you can follow these steps: ### 1. Set Core Dump File Size Limit First, check and modify the core dump file size limit using the `ulimit` command. By default, the core dump size may be set to zero, which prevents the creation of core...
8,307
[ { "from": "human", "value": "I have a process in Linux that's getting a segmentation fault. How can I tell it to generate a core dump when it fails?\n" }, { "from": "gpt", "value": "To generate a core dump for a process that encounters a segmentation fault in Linux, you can follow these steps:\...
We have project PrjDb.dll in vb 6.0 that has a reference to ado 2.5. The project is built on Machine A. Now when we generate an interop for PrjDb.dll on another machine B, we end up with a new ADODB.dll with ver 2.5 in version field instead of linking it with the Primary Interop Assembly adodb.dll ( found under 'Progra...
The issue you're experiencing seems to stem from the way that the interop assembly generation process is handling the ADO reference on Machine B compared to Machine A. The generation of a new interop assembly for ADO, instead of using the Primary Interop Assembly (PIA) present in the Global Assembly Cache (GAC), may oc...
8,869
[ { "from": "human", "value": "We have project PrjDb.dll in vb 6.0 that has a reference to ado 2.5. The project is built on Machine A. Now when we generate an interop for PrjDb.dll on another machine B, we end up with a new ADODB.dll with ver 2.5 in version field instead of linking it with the Primary Interop...
Typing Ctrl+O twice in editor when a java type is selected pops-up an outline context dialog that displays the members && inherited members. How can I have this in the main outline view?
In many Java IDEs, such as Eclipse or IntelliJ IDEA, the "outline" view is a feature that provides a structured view of the classes, methods, and other members of your Java code. If you want to see the members and inherited members in the main outline view, follow these steps depending on the IDE you're using: ### In ...
8,096
[ { "from": "human", "value": "Typing Ctrl+O twice in editor when a java type is selected pops-up an outline context dialog that displays the members && inherited members. How can I have this in the main outline view?\n" }, { "from": "gpt", "value": "In many Java IDEs, such as Eclipse or IntelliJ ...
Python gives us the ability to create 'private' methods and variables within a class by prepending double underscores to the name, like this: __myPrivateMethod(). How, then, can one explain this >>>> class MyClass: ... def myPublicMethod(self): ... print 'public method' ... def __myPrivateMethod(sel...
You've made an excellent observation about Python's approach to encapsulation and the concept of "private" methods. Let's delve deeper into the topic to clarify what is happening and how it fits into Python's design philosophy. ### Explanation of Name Mangling In Python, when you prefix a method or variable name with...
8,604
[ { "from": "human", "value": "Python gives us the ability to create 'private' methods and variables within a class by prepending double underscores to the name, like this: __myPrivateMethod(). How, then, can one explain this\n>>>> class MyClass:\n... def myPublicMethod(self):\n... print 'publ...
I really enjoy Chrome, and the sheer exercise of helping a port would boost my knowledge-base. Where do I start? What are the fundamental similarities and differences between the code which will operated under Windows and Linux? What skills and software do I need? Note: The official website is Visual Studio oriented! ...
It's great to hear that you're interested in contributing to an open-source project like Chrome! Here's a breakdown of where to start, the similarities and differences between the Windows and Linux versions, and the skills and software you may need. ### Getting Started 1. **Get Involved with the Community**: - Joi...
5,140
[ { "from": "human", "value": "I really enjoy Chrome, and the sheer exercise of helping a port would boost my knowledge-base.\nWhere do I start?\nWhat are the fundamental similarities and differences between the code which will operated under Windows and Linux?\nWhat skills and software do I need?\n\nNote:\nT...
Hey, I'm using Levenshteins algorithm to get distance between source and target string. also I have method which returns value from 0 to 1: /// <summary> /// Gets the similarity between two strings. /// All relation scores are in the [0, 1] range, /// which means that if the score gets a maximum value (equal to 1) //...
Improving the accuracy of string matching in your algorithm for tagging music titles is indeed a challenging task, particularly when dealing with varying formats and noise in the data. Here are several approaches you can consider to enhance your existing solution: ### 1. Use Tokenization and Weighted Similarity Inste...
6,825
[ { "from": "human", "value": "Hey, I'm using Levenshteins algorithm to get distance between source and target string.\nalso I have method which returns value from 0 to 1:\n/// <summary>\n/// Gets the similarity between two strings.\n/// All relation scores are in the [0, 1] range, \n/// which means that if t...
Whenever I try to add a new project to my SourceSafe repository it creates 3 folders with the same name nested within each other. There is only one folder on my drive yet in Sourcesafe there are 3?? Can anyone suggest what may be causing this? Thanks
The issue you're experiencing with SourceSafe creating nested folders is often due to misconfiguration or user error during the add process. Here are a few potential reasons and solutions: 1. **Wrong Path Configuration**: Ensure that when you are adding the project to SourceSafe, you are selecting the correct director...
10,959
[ { "from": "human", "value": "Whenever I try to add a new project to my SourceSafe repository it creates 3 folders with the same name nested within each other. There is only one folder on my drive yet in Sourcesafe there are 3??\nCan anyone suggest what may be causing this?\nThanks\n" }, { "from": "...
Let's say we have 0.33, we need to output 1/3. If we have 0.4, we need to output 2/5. The idea is to make it human-readable to make the user understand "x parts out of y" as a better way of understanding data. I know that percentages is a good substitute but I was wondering if there was a simple way to do this?
Converting decimal values to fractions can indeed make them more intuitive for users to understand proportions. To achieve this, you can follow a few steps to convert decimals into human-readable fractions. ### Steps to Convert Decimal to Fraction 1. **Identify the Decimal**: Start with your decimal value (e.g., 0.33...
9,096
[ { "from": "human", "value": "Let's say we have 0.33, we need to output 1/3. \nIf we have 0.4, we need to output 2/5.\nThe idea is to make it human-readable to make the user understand \"x parts out of y\" as a better way of understanding data.\nI know that percentages is a good substitute but I was wonderin...
I have a web form with a button and a DetailsView control on it. In the button's click event I change the DetailsView control to insert mode so I can add records: DetailsView1.ChangeMode(DetailsViewMode.Insert) Everything works fine, except for a checkbox in the DetailsView. When the DetailsView goes into insert mode, ...
The issue you are facing with the text description for your checkbox disappearing when the `DetailsView` control switches to insert mode is likely due to how the `DetailsView` control handles the templates for different modes (Edit, Insert, and ReadOnly). When you switch to insert mode using `DetailsView1.ChangeMode(D...
8,525
[ { "from": "human", "value": "I have a web form with a button and a DetailsView control on it. In the button's click event I change the DetailsView control to insert mode so I can add records:\nDetailsView1.ChangeMode(DetailsViewMode.Insert)\nEverything works fine, except for a checkbox in the DetailsView. W...
Does anyone have a suggestion for where to find archives or collections of everyday English text for use in a small corpus? I have been using Gutenberg Project books for a working prototype, and would like to incorporate more contemporary language. A recent answer here pointed indirectly to a great archive of usenet ...
It sounds like you are on the right track with exploring various sources for a more contemporary corpus. Here are several additional suggestions for where to find everyday English text that may fit your needs: 1. **Common Crawl**: This is a non-profit organization that crawls the web and freely provides its archives. ...
10,400
[ { "from": "human", "value": "Does anyone have a suggestion for where to find archives or collections of everyday English text for use in a small corpus? I have been using Gutenberg Project books for a working prototype, and would like to incorporate more contemporary language. A recent answer here pointed...
I am trying to use a stringstream object in VC++ (VStudio 2003) butI am getting an error when I use the overloaded << operator to try and set some manipulators. I am trying the following: int SomeInt = 1; stringstream StrStream; StrStream << std::setw(2) << SomeInt; This will not compile (error C2593: 'opera...
The issue you're encountering with the `stringstream` in Visual Studio 2003 (VC++ 6.0) is likely due to the way the standard library and its manipulators are implemented in that version. The error you are seeing (`C2593: 'operator <<' is ambiguous`) often arises when there is ambiguity in function resolution for overlo...
7,775
[ { "from": "human", "value": "I am trying to use a stringstream object in VC++ (VStudio 2003) butI am getting an error when I use the overloaded << operator to try and set some manipulators. \nI am trying the following: \nint SomeInt = 1; \nstringstream StrStream; \nStrStream << std::setw(2) << SomeInt; ...
I have a large exiting C++ project involving: 4 applications 50+ libraries 20+ third party libraries The project uses QMake (part of Trolltech's Qt) to build the production version on Linux, but I've been playing around at building it on MacOS. I can build in on MacOS using QMake just fine but I'm having trouble prod...
Creating a `.app` bundle for a Qt application on macOS can be a bit tricky, especially when dealing with multiple libraries and frameworks. While using `install_name_tool` is a common approach to modify the dynamic linker paths, automating this process can streamline your workflow. Here’s a general guide on how you can...
7,109
[ { "from": "human", "value": "I have a large exiting C++ project involving:\n\n4 applications\n50+ libraries\n20+ third party libraries\n\nThe project uses QMake (part of Trolltech's Qt) to build the production version on Linux, but I've been playing around at building it on MacOS.\nI can build in on MacOS u...
First off, I'm working on an app that's written such that some of your typical debugging tools can't be used (or at least I can't figure out how :). JavaScript, html, etc are all "cooked" and encoded (I think; I'm a little fuzzy on how the process works) before being deployed, so I can't attach VS 2005 to ie, and fire...
It looks like you're encountering a classic problem with event handling and DOM manipulation in Internet Explorer, especially given the quirks associated with older versions of IE (such as IE6 and IE7). Here are several potential issues and solutions that you can try: ### 1. Event Bubbling/Propagation Ensure that the ...
10,017
[ { "from": "human", "value": "First off, I'm working on an app that's written such that some of your typical debugging tools can't be used (or at least I can't figure out how :). \nJavaScript, html, etc are all \"cooked\" and encoded (I think; I'm a little fuzzy on how the process works) before being deploye...
How do I intercept a paste event in an editbox, possibly before the value is transferred to the object?
Intercepting a paste event in an edit box can be achieved through various methods depending on the technology stack you're using. Below are a few common ways to do this in different environments: ### 1. **HTML / JavaScript (Web)** If you're working with an HTML input or textarea, you can intercept the paste event usi...
9,330
[ { "from": "human", "value": "How do I intercept a paste event in an editbox, possibly before the value is transferred to the object?\n" }, { "from": "gpt", "value": "Intercepting a paste event in an edit box can be achieved through various methods depending on the technology stack you're using. ...
We have 3 tasks running at different priorities: A (120), B (110), C (100). A takes a mutex semaphore with the Inversion Safe flag. Task B does a semTake, which causes Task A's priority to be elevated to 110. Later, task C does a semTake. Task A's priority is now 100. At this point, A releases the semaphore and C grabs...
In your scenario, the behavior of task priorities and semaphore handling depends on the specific implementation of priority inheritance or priority ceiling protocols in the operating system or real-time operating system (RTOS) you are using. Let's break down what typically happens with priority inversion and how the sy...
8,557
[ { "from": "human", "value": "We have 3 tasks running at different priorities: A (120), B (110), C (100).\nA takes a mutex semaphore with the Inversion Safe flag.\nTask B does a semTake, which causes Task A's priority to be elevated to 110.\nLater, task C does a semTake. Task A's priority is now 100.\nAt thi...
Back in the old days, Help was not trivial but possible: generate some funky .rtf file with special tags, run it through a compiler, and you got a WinHelp file (.hlp) that actually works really well. Then, Microsoft decided that WinHelp was not hip and cool anymore and switched to CHM, up to the point they actually axe...
You’ve raised some valid concerns regarding help documentation formats. While CHM files were once a standard, their limitations—especially regarding network access and security—have made them less viable for many users. Here are a few alternative options you might consider for implementing help files in a user-friendly...
3,530
[ { "from": "human", "value": "Back in the old days, Help was not trivial but possible: generate some funky .rtf file with special tags, run it through a compiler, and you got a WinHelp file (.hlp) that actually works really well.\nThen, Microsoft decided that WinHelp was not hip and cool anymore and switched...
I've just inherited some old Struts code. If Struts (1.3) follows the MVC pattern, how do the Action classes fill the View with variables to render in HTML ? So far, I've seen the Action classes push variables in (1) the HTTP request with request.setAttribute("name", user.getName()) (2) in ActionForm classes, using me...
In Struts 1.3, the Model-View-Controller (MVC) pattern is implemented using Action classes, ActionForms, and JSPs as the view layer. Your understanding of how to pass data from Action classes to the view layer is mostly correct, and each approach you've mentioned has its purpose. 1. **Setting Attributes in the HTTP Re...
10,290
[ { "from": "human", "value": "I've just inherited some old Struts code.\nIf Struts (1.3) follows the MVC pattern, how do the Action classes fill the View with variables to render in HTML ?\nSo far, I've seen the Action classes push variables in (1) the HTTP request with\nrequest.setAttribute(\"name\", user.g...
I have an image of a basic game map. Think of it as just horizontal and vertical walls which can't be crossed. How can I go from a png image of the walls to something in code easily? The hard way is pretty straight forward... it's just if I change the image map I would like an easy way to translate that to code. Than...
To convert a PNG image of a game map with walls into code (specifically, a representation you can use in a game), you have several options that can help you automate the process and make it easier to update in the future. Here’s a general approach to achieve this: ### Step 1: Load the Image Use a programming language...
10,510
[ { "from": "human", "value": "I have an image of a basic game map. Think of it as just horizontal and vertical walls which can't be crossed. How can I go from a png image of the walls to something in code easily?\nThe hard way is pretty straight forward... it's just if I change the image map I would like a...
I need to concatenate two String arrays in Java. void f(String[] first, String[] second) { String[] both = ??? } Which is the easiest way to do this?
To concatenate two String arrays in Java, you can use the `System.arraycopy` method or leverage the `Arrays` class along with `Stream` for a more modern approach. Below are two simple methods to achieve this: ### Method 1: Using `System.arraycopy` This method uses `System.arraycopy` to copy the elements of both array...
12,222
[ { "from": "human", "value": "I need to concatenate two String arrays in Java.\nvoid f(String[] first, String[] second) {\n String[] both = ???\n}\n\nWhich is the easiest way to do this?\n" }, { "from": "gpt", "value": "To concatenate two String arrays in Java, you can use the `System.arraycop...
How solid is Mono for C# development on Linux and OS X? I've been thinking about learning C# on the side, and was wondering if learning using Mono would suffice.
Mono is quite solid for C# development on Linux and macOS (formerly OS X). It provides a compatible runtime and a set of libraries that allow you to run and develop .NET applications on these platforms. Here are some points to consider regarding using Mono for C# development: ### Advantages of Using Mono: 1. **Cross-P...
8,966
[ { "from": "human", "value": "How solid is Mono for C# development on Linux and OS X? I've been thinking about learning C# on the side, and was wondering if learning using Mono would suffice.\n" }, { "from": "gpt", "value": "Mono is quite solid for C# development on Linux and macOS (formerly OS ...
Is it possible to write code in a Flex application that will only be run in a debug build, or when running through the debugger? Does Flex provide a way to actually remove code entirely from release builds, like C-style #defines? The app is not necessarily running in a web page.
Yes, in Adobe Flex (which is based on ActionScript), you can write code that will only be executed in a debug build or when running through the debugger. However, Flex does not provide a built-in mechanism to completely remove code from release builds in the same way that C-style `#define` directives can be used to exc...
10,531
[ { "from": "human", "value": "Is it possible to write code in a Flex application that will only be run in a debug build, or when running through the debugger?\nDoes Flex provide a way to actually remove code entirely from release builds, like C-style #defines?\nThe app is not necessarily running in a web pag...
I'm a little confused about how the standard library will behave now that Python (from 3.0) is unicode-based. Will modules such as CGI and urllib use unicode strings or will they use the new 'bytes' type and just provide encoded data?
In Python 3.x, the standard library has been updated to better handle Unicode and bytes, and the distinction between these two types is more clearly enforced than in Python 2.x. Here's how it generally works with modules like `cgi` and `urllib`: 1. **Text vs. Bytes**: - In Python 3, there are two distinct types: `...
10,534
[ { "from": "human", "value": "I'm a little confused about how the standard library will behave now that Python (from 3.0) is unicode-based. Will modules such as CGI and urllib use unicode strings or will they use the new 'bytes' type and just provide encoded data?\n" }, { "from": "gpt", "value": ...
I need to create sql dependency on a table in sql server 2000 in my asp.net 2.0 pages. What are the required actions and what is the best way? Thanks..
Creating an SQL dependency in SQL Server 2000 requires a series of steps to ensure that your ASP.NET 2.0 application can listen for changes in the database. SQL dependency allows your application to receive notifications when the data in a specified table changes. Below are the steps to set this up: ### Step 1: Enable...
6,159
[ { "from": "human", "value": "I need to create sql dependency on a table in sql server 2000 in my asp.net 2.0 pages.\nWhat are the required actions and what is the best way? Thanks..\n" }, { "from": "gpt", "value": "Creating an SQL dependency in SQL Server 2000 requires a series of steps to ensur...
In Java you can give the number zero as a single parameter for the Socket or DatagramSocket constructor. Java binds that Socket to a free port then. Is it possible to limit the port lookup to a specific range?
In Java, when you create a `Socket` or `DatagramSocket` with a port number of 0, the operating system assigns an available port dynamically. However, the Java standard library does not provide a built-in way to limit the port lookup to a specific range directly via the constructor. To achieve a port allocation within ...
8,999
[ { "from": "human", "value": "In Java you can give the number zero as a single parameter for the Socket or DatagramSocket constructor. Java binds that Socket to a free port then. Is it possible to limit the port lookup to a specific range?\n" }, { "from": "gpt", "value": "In Java, when you create...
What makes a module/service/bit of application functionality a particularly good candidate for an OSGi module? I'm interested in using OSGi in my applications. We're a Java shop and we use Spring pretty extensively, so I'm leaning toward using Spring Dynamic Modules for OSGi(tm) Service Platforms. I'm looking for a go...
When deciding which part of your application to convert into an OSGi module (or "bundle"), here are some factors to consider that can help you identify a good candidate: ### 1. **Modularity** - **Independent Functionality**: Choose a module that encapsulates a well-defined set of functionality or business logic. T...
6,655
[ { "from": "human", "value": "What makes a module/service/bit of application functionality a particularly good candidate for an OSGi module? \nI'm interested in using OSGi in my applications. We're a Java shop and we use Spring pretty extensively, so I'm leaning toward using Spring Dynamic Modules for OSGi(t...
I am using bash in os X Terminal app, and my custom $PS1 breaks when I scroll through my history. PS1="${BLUE}\u${CYAN}@${RED}\h${BLUE}\w\n\[${red}\$${NC}\]" also tried PS1="${BLUE}\u${CYAN}@${RED}\h${BLUE}\w\r\n[${red}\$${NC}]" The problem seems to be in the newline. I have used this bash prompt on Slackware n...
The issue you're encountering is likely due to how the terminal interprets escape sequences and the need for proper handling of non-printable characters in your custom `$PS1` prompt. In Bash, when you include non-printable characters (like color codes) in your prompt, you need to wrap them in `\[` and `\]` to inform th...
10,496
[ { "from": "human", "value": "I am using bash in os X Terminal app, and my custom $PS1 breaks when I scroll through my history.\nPS1=\"${BLUE}\\u${CYAN}@${RED}\\h${BLUE}\\w\\n\\[${red}\\$${NC}\\]\"\n\nalso tried \n PS1=\"${BLUE}\\u${CYAN}@${RED}\\h${BLUE}\\w\\r\\n[${red}\\$${NC}]\" \nThe problem seems to ...
Say I have an array of records which I want to sort based on one of the fields in the record. What's the best way to achieve this? TExample = record SortOrder : integer; SomethingElse : string; end; var SomeVar : array of TExample;
To sort an array of records in Pascal based on a specific field (in this case, `SortOrder`), you can use a sorting algorithm. A common and straightforward approach is to use the `TArray.Sort` method if you are using a modern version of Delphi or Free Pascal, as it simplifies the process. If you are using an older versi...
7,559
[ { "from": "human", "value": "Say I have an array of records which I want to sort based on one of the fields in the record. What's the best way to achieve this?\nTExample = record\n SortOrder : integer;\n SomethingElse : string;\nend;\n\nvar SomeVar : array of TExample;\n\n" }, { "from": "gpt", ...
Why prefer composition instead of inheritance? What trade-offs are there for each approach? And the converse question: when should I choose inheritance instead of composition?
Composition and inheritance are both fundamental concepts in object-oriented programming, and each has its own advantages and trade-offs. Here’s a comparison to help you understand when to prefer one over the other: ### Composition **Advantages:** 1. **Flexibility**: Composition allows you to create more flexible and...
7,691
[ { "from": "human", "value": "Why prefer composition instead of inheritance? What trade-offs are there for each approach? And the converse question: when should I choose inheritance instead of composition?\n" }, { "from": "gpt", "value": "Composition and inheritance are both fundamental concept...
I have a VS2008 solution using xml documentation, and we have warnings as errors turned on for release mode (a nice feature IMHO); this results, however, in long lists of 'missing xml comment' errors for such things as every element of a (self describing) enum. Does anyone know of an attribute or similar which switches...
In Visual Studio, specifically for C# projects, there is no built-in way to suppress XML documentation comments for specific sections of code directly using attributes. However, you can manage XML documentation warnings more broadly or utilize some workarounds. Here are a few approaches you can consider: 1. **Suppress...
10,648
[ { "from": "human", "value": "I have a VS2008 solution using xml documentation, and we have warnings as errors turned on for release mode (a nice feature IMHO); this results, however, in long lists of 'missing xml comment' errors for such things as every element of a (self describing) enum.\nDoes anyone know...
I'm trying to figure out a way to make user controls run in their own UI threads. Is this possible? I'm trying to prevent a module-based application from crashing due to a single module. Any thoughts?
Running user controls (or any UI components) in their own UI threads is generally not straightforward in traditional desktop application frameworks like Windows Forms or WPF, because they are designed around a single-threaded UI model. However, there are some approaches you can take to isolate modules in a way that mig...
6,664
[ { "from": "human", "value": "I'm trying to figure out a way to make user controls run in their own UI threads. Is this possible? I'm trying to prevent a module-based application from crashing due to a single module.\nAny thoughts?\n" }, { "from": "gpt", "value": "Running user controls (or any UI...
I've been developing Winforms applications in C# for a few years now and have been interested in moving future development toward WPF, mainly because of the positive things I've been hearing about it. But, I'm wondering what sort of hurdles others have had to overcome as they migrated to WPF. Was there a significant ...
Transitioning from WinForms to WPF can be a rewarding journey, but it does come with its own set of challenges and learning curves. Here are some common hurdles developers typically face during this migration: 1. **Learning Curve**: WPF is quite different from WinForms in terms of architecture and concepts. Understand...
7,809
[ { "from": "human", "value": "I've been developing Winforms applications in C# for a few years now and have been interested in moving future development toward WPF, mainly because of the positive things I've been hearing about it. But, I'm wondering what sort of hurdles others have had to overcome as they m...
Given an instance of System.Reflection.Assembly.
In .NET, the `System.Reflection.Assembly` class represents an assembly, which is a compiled code library used for deployment, versioning, and security. An assembly can contain one or more managed types and is the primary building block of .NET applications. If you have an instance of `System.Reflection.Assembly`, you ...
9,343
[ { "from": "human", "value": "Given an instance of System.Reflection.Assembly.\n" }, { "from": "gpt", "value": "In .NET, the `System.Reflection.Assembly` class represents an assembly, which is a compiled code library used for deployment, versioning, and security. An assembly can contain one or mo...
I am looking for a way to connect to Facebook by allowing the user to enter in their username and password and have our app connect to their account and get their contacts so that they can invite them to join their group on our site. I have written a Facebook app before, but this is not an app as much as it is a conne...
To connect to Facebook and invite users' friends to join your site, it's important to follow Facebook's policies and use their APIs properly. Facebook has strict guidelines and methods for accessing user data, especially concerning privacy and user permissions. ### Here’s a general approach to achieve what you're look...
8,403
[ { "from": "human", "value": "I am looking for a way to connect to Facebook by allowing the user to enter in their username and password and have our app connect to their account and get their contacts so that they can invite them to join their group on our site. I have written a Facebook app before, but th...
In C#, I can do this: class Program { static void Main(string[] args) { List<Animal> animals = new List<Animal>(); animals.Add(new Dog()); animals.Add(new Cat()); foreach (Animal a in animals) { Console.WriteLine(a.MakeNoise()); a.Sleep(); ...
In Ruby, you can achieve polymorphism and utilize methods on different objects without the need for explicit type definitions, thanks to Ruby's dynamic and duck-typed nature. In Ruby, if an object responds to a method, you can call that method on it without worrying about its type. Here's how you could implement a simi...
10,818
[ { "from": "human", "value": "In C#, I can do this:\nclass Program\n{\n static void Main(string[] args)\n {\n List<Animal> animals = new List<Animal>();\n\n animals.Add(new Dog());\n animals.Add(new Cat());\n\n foreach (Animal a in animals)\n {\n Console.Wr...
I have a small form displaying the DataLayoutControl component. If I use a GridControl the objects get saved. If I use the DataLayoutControl (which shows them individually) they do not get saved after they are changed. The underlying object is changed after the user interface edits, but doesn't get saved. How can I e...
When working with the `DataLayoutControl` in DevExpress, you might encounter issues with saving changes if the control isn't properly linked to the underlying data source or if the `UnitOfWork` isn't aware of the changes made in the UI. Here are some steps to help you troubleshoot and resolve the issue: ### 1. Ensure ...
7,121
[ { "from": "human", "value": "I have a small form displaying the DataLayoutControl component. \nIf I use a GridControl the objects get saved. If I use the DataLayoutControl (which shows them individually) they do not get saved after they are changed. The underlying object is changed after the user interface ...
My project has some money to spend before the end of the fiscal year and we are considering replacing a Sun-Fire-V490 server we've had for a few years. One option we are looking at is the CoolThreads technology. All I know is the Sun marketing, which may not be 100% unbiased. Has anyone actually played with one of t...
It sounds like you're in the process of evaluating a new server solution, and I can understand your hesitance given your current workload and usage patterns. Let's break down a few key points about CoolThreads technology, especially in the context of your use case. 1. **CoolThreads Technology Overview**: Sun's CoolThr...
9,460
[ { "from": "human", "value": "My project has some money to spend before the end of the fiscal year and we are considering replacing a Sun-Fire-V490 server we've had for a few years. One option we are looking at is the CoolThreads technology. All I know is the Sun marketing, which may not be 100% unbiased. ...
I have a simple WPF (XAML) file that has some animated shapes and text. The animation has no interactive behavior. I want to record this animation as a video file that I later intend to use as the "intro" screen to a screencast. What I think I need: C# code that takes an input XAML file and spits out a high quality WMV...
To record your WPF animation as a high-quality video file such as WMV, you can use the MediaEncoder library, which allows you to encode video from your WPF application. Below is a simplified example demonstrating how to render a WPF visual to a video file. You'll need to follow these steps to create the code: 1. **A...
7,701
[ { "from": "human", "value": "I have a simple WPF (XAML) file that has some animated shapes and text. The animation has no interactive behavior. I want to record this animation as a video file that I later intend to use as the \"intro\" screen to a screencast.\nWhat I think I need: C# code that takes an inpu...
I'm coding the shutdown of a multithreaded server.If everything goes as it should all the threads exit by their own, but there's a small chance that a thread gets stuck.In this case it would be convenient to have a non-blocking join so I could do. Is there a way of doing a non-blocking pthread_join? Some sort of timed ...
In the POSIX Threads (pthreads) library, there isn't a built-in non-blocking version of `pthread_join`, but you can implement a timed join using `pthread_timedjoin_np`, which is a non-standard extension available in some implementations of pthreads, like GNU libc. If your implementation does not provide this function, ...
9,274
[ { "from": "human", "value": "I'm coding the shutdown of a multithreaded server.If everything goes as it should all the threads exit by their own, but there's a small chance that a thread gets stuck.In this case it would be convenient to have a non-blocking join so I could do.\nIs there a way of doing a non-...
Running into a problem where on certain servers we get an error that the directory name is invalid when using Path.GetTempFileName. Further investigation shows that it is trying to write a file to c:\Documents and Setting\computername\aspnet\local settings\temp (found by using Path.GetTempPath). This folder exists so...
It sounds like you're encountering an issue with ASP.NET trying to access the temporary files directory, which could indeed be related to permissions. Let's break this down: ### Temporary Directory for ASP.NET 1. **`Path.GetTempPath()`**: This method returns the path to the temporary folder for the current user. For A...
9,385
[ { "from": "human", "value": "Running into a problem where on certain servers we get an error that the directory name is invalid when using Path.GetTempFileName. Further investigation shows that it is trying to write a file to c:\\Documents and Setting\\computername\\aspnet\\local settings\\temp (found by u...
I'm running the java cocoon 2 and castor oql. I'm trying to filter my oql query by today's date, but I can't seem to figure out (or find in google) the syntax of the date. The database is mySql, but the oql is mapped by the java classes... so doing a search on field_date >= Now() doesn't work. Any ideas? I really ca...
When working with OQL (Object Query Language) and trying to filter by date, you typically want to leverage the Date object from your Java classes. Since you're using Castor with Java, you will need to make sure you're working with `java.util.Date` or `java.sql.Date`, depending on how you have your date fields defined i...
10,246
[ { "from": "human", "value": "I'm running the java cocoon 2 and castor oql. I'm trying to filter my oql query by today's date, but I can't seem to figure out (or find in google) the syntax of the date. The database is mySql, but the oql is mapped by the java classes... so doing a search on field_date >= No...
I'm using this formula to calculate the distance between entries in my (My)SQL database which have latitude and longitude fields in decimal format: 6371 * ACOS(SIN(RADIANS( %lat1% )) * SIN(RADIANS( %lat2% )) + COS(RADIANS( %lat1% )) * COS(RADIANS( %lat2% )) * COS(RADIANS( %lon2% ) - RADIANS( %lon1% ))) Substituting ...
Your formula for calculating the distance between two geographic coordinates using the Haversine formula is a solid approach for MySQL databases. Here are some suggestions for improvements and additional considerations that you might find helpful: ### 1. Use a Subquery If you need to calculate distances for many entri...
10,293
[ { "from": "human", "value": "I'm using this formula to calculate the distance between entries in my (My)SQL database which have latitude and longitude fields in decimal format:\n6371 * ACOS(SIN(RADIANS( %lat1% )) * SIN(RADIANS( %lat2% )) + \nCOS(RADIANS( %lat1% )) * COS(RADIANS( %lat2% )) * COS(RADIANS( %lo...
Any online links / resources?
Sure! Here are some categories of resources you might find helpful: ### Online Learning Platforms 1. **Coursera** - [coursera.org](https://www.coursera.org) 2. **edX** - [edx.org](https://www.edx.org) 3. **Khan Academy** - [khanacademy.org](https://www.khanacademy.org) 4. **Udacity** - [udacity.com](https://www.udacit...
9,455
[ { "from": "human", "value": "Any online links / resources?\n" }, { "from": "gpt", "value": "Sure! Here are some categories of resources you might find helpful:\n\n### Online Learning Platforms\n1. **Coursera** - [coursera.org](https://www.coursera.org)\n2. **edX** - [edx.org](https://www.edx.org...
I'm finding that I can't access the admin shares on an XP64 box when there's no network connection. Trying to browse to \\localhost\c$ fails (although obviously browsing c: works). Reason for the question is that the NANT build script for our application uses this format to copy files from one local directory to anothe...
Accessing the admin shares (like `C$`) on a local machine using `\\localhost` or `\\127.0.0.1` can sometimes be problematic in certain configurations of Windows, especially in XP64, particularly when there is no active network connection. Here are a few suggestions that may help you resolve the issue: ### Suggestions ...
11,178
[ { "from": "human", "value": "I'm finding that I can't access the admin shares on an XP64 box when there's no network connection. Trying to browse to \\\\localhost\\c$ fails (although obviously browsing c: works).\nReason for the question is that the NANT build script for our application uses this format to ...
Does Server Core 2008 support asp.net? I see references online saying that it isn't supported, but they are all old references from CTPs.
Windows Server 2008 Server Core does not officially support ASP.NET. While Server Core is a minimal installation option that provides a reduced server environment for certain roles and features, it does not include the full framework necessary to run ASP.NET applications. ASP.NET relies on a number of components that ...
13,539
[ { "from": "human", "value": "Does Server Core 2008 support asp.net? I see references online saying that it isn't supported, but they are all old references from CTPs.\n" }, { "from": "gpt", "value": "Windows Server 2008 Server Core does not officially support ASP.NET. While Server Core is a mini...
anyone out there have a moodle module for dotnetnuke, or some kind of integration setup that at least allows SSO?
As of my last update in October 2023, there are no widely recognized Moodle modules specifically designed for DotNetNuke (DNN) integration. However, implementing Single Sign-On (SSO) between Moodle and DNN can be accomplished through various methods, even if there isn't a dedicated module. Here are some general approac...
12,156
[ { "from": "human", "value": "anyone out there have a moodle module for dotnetnuke, or some kind of integration setup that at least allows SSO?\n" }, { "from": "gpt", "value": "As of my last update in October 2023, there are no widely recognized Moodle modules specifically designed for DotNetNuke...
Is there any way to create a ODBC DSN with C#? Maybe a P/invoke?
Yes, you can create an ODBC DSN (Data Source Name) programmatically in C# using P/Invoke to call the appropriate Windows API functions. The typical approach is to use the `SQLConfigDataSource` function from the `odbc32.dll` library, which allows you to configure ODBC data sources. Here's a basic example of how to crea...
8,719
[ { "from": "human", "value": "Is there any way to create a ODBC DSN with C#?\nMaybe a P/invoke?\n" }, { "from": "gpt", "value": "Yes, you can create an ODBC DSN (Data Source Name) programmatically in C# using P/Invoke to call the appropriate Windows API functions. The typical approach is to use t...
There are three places where menus show up in the new MFC functionality (Feature Pack): In menu bars (CMFCMenuBar) In popup menus (CMFCPopupMenu) In the 'dropdown menu' version of CMFCButton I want to put icons (high-color and with transparancy) in the menus in all of them. I have found CFrameWndEx::OnDrawMenuImage()...
In MFC, adding icons (especially high-color and with transparency) to menus can be a bit tricky, especially if you're working with custom drawing for menus in a way that you might not find entirely convenient. Here’s a guide on how to set icons for the three menu types you've mentioned: menu bars, popup menus, and drop...
8,381
[ { "from": "human", "value": "There are three places where menus show up in the new MFC functionality (Feature Pack):\n\nIn menu bars (CMFCMenuBar)\nIn popup menus (CMFCPopupMenu)\nIn the 'dropdown menu' version of CMFCButton\n\nI want to put icons (high-color and with transparancy) in the menus in all of th...
I maintain an old PC-only application written in Delphi 7. Although Delphi has served me very well in the past I now only use it for this one application and find my skills with the language diminishing. Its syntax is too different from my 'day job' languages of Java/Ruby so it takes me longer to get into the groove of...
Migrating a legacy application from Delphi 7 to a more modern environment like C# can certainly be a worthwhile endeavor, especially considering your familiarity with Java and Ruby. However, it's important to carefully evaluate the available tools for code conversion, as they vary in quality and capability. ### Automa...
8,580
[ { "from": "human", "value": "I maintain an old PC-only application written in Delphi 7. Although Delphi has served me very well in the past I now only use it for this one application and find my skills with the language diminishing. Its syntax is too different from my 'day job' languages of Java/Ruby so it ...
I have the following class public class Car { public Name {get; set;} } and I want to bind this programmatically to a text box. How do I do that? Shooting in the dark: ... Car car = new Car(); TextEdit editBox = new TextEdit(); editBox.DataBinding.Add("Name", car, "Car - Name"); ... I get the following error "C...
To bind a property of a class (like `Car` with property `Name`) to a text box (like `TextEdit`), you need to make a few adjustments in your approach. Based on your example, it looks like you are trying to use a data-binding system typical in frameworks like WinForms or WPF, but there are some issues that need to be cor...
8,788
[ { "from": "human", "value": "I have the following class\n\npublic class Car\n{\n public Name {get; set;}\n}\n\nand I want to bind this programmatically to a text box.\nHow do I do that?\nShooting in the dark:\n\n...\nCar car = new Car();\nTextEdit editBox = new TextEdit();\neditBox.DataBinding.Add(\"Name\...
I am pretty sure that the settings that I am using are correct, so all possible things can be wrong which I should check out so that I can make authentication with our Active Directory work.
When troubleshooting authentication issues with Active Directory (AD), there are multiple areas you can check to identify the root cause. Here’s a list of potential issues and considerations that you should review: ### 1. **Credentials** - Verify the username and password for correctness. - Ensure that the accou...
6,186
[ { "from": "human", "value": "I am pretty sure that the settings that I am using are correct, so all possible things can be wrong which I should check out so that I can make authentication with our Active Directory work.\n" }, { "from": "gpt", "value": "When troubleshooting authentication issues ...
I want to have a text box that the user can type in that shows an Ajax-populated list of my model's names, and then when the user selects one I want the HTML to save the model's ID, and use that when the form is submitted. I've been poking at the auto_complete plugin that got excised in Rails 2, but it seems to have no...
Certainly! For implementing an autocomplete feature with Ajax in a Rails application, especially for a more complex requirement like associating user input with model IDs, you might want to consider using a combination of JavaScript libraries (like jQuery UI or Select2) along with Rails controllers. Here’s a step-by-s...
5,975
[ { "from": "human", "value": "I want to have a text box that the user can type in that shows an Ajax-populated list of my model's names, and then when the user selects one I want the HTML to save the model's ID, and use that when the form is submitted.\nI've been poking at the auto_complete plugin that got e...
It is obviosly some Perl extensions. Perl version is 5.8.8. I found Error.pm, but now I'm looking for Core.pm. While we're at it: how do you guys search for those modules. I tried Google, but that didn't help much. Thanks. And finally, after I built everything, running: ./Build install gives me: Running make instal...
It looks like you're dealing with some specific Perl module installation issues on an older version of Perl (5.8.8) and possibly on a Slackware system. Here are some suggestions to help you out: ### 1. Finding Perl Modules To locate Perl modules like `Core.pm`, you can try the following: - **CPAN**: The Comprehensive...
7,738
[ { "from": "human", "value": "It is obviosly some Perl extensions. Perl version is 5.8.8.\nI found Error.pm, but now I'm looking for Core.pm. \nWhile we're at it: how do you guys search for those modules. I tried Google, but that didn't help much. Thanks.\n\nAnd finally, after I built everything, running: \n...
Below is part of the XML which I am processing with PHP's XSLTProcessor: <result> <uf x="20" y="0"/> <uf x="22" y="22"/> <uf x="4" y="3"/> <uf x="15" y="15"/> </result> I need to know how many "uf" nodes exist where x == y. In the above example, that would be 2. I've tried looping and incrementing a co...
To count the number of `<uf>` nodes where `x` equals `y` in your XML using XSLT, you can use an XPath expression in combination with the `count()` function. Here’s a simple XSLT template that will achieve this: ```xml <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/199...
11,061
[ { "from": "human", "value": "Below is part of the XML which I am processing with PHP's XSLTProcessor:\n<result>\n <uf x=\"20\" y=\"0\"/>\n <uf x=\"22\" y=\"22\"/>\n <uf x=\"4\" y=\"3\"/>\n <uf x=\"15\" y=\"15\"/>\n</result>\n\nI need to know how many \"uf\" nodes exist where x == y.\nIn the abov...
I'm able to successfully uninstall a third-party application via the command line and via a custom Inno Setup installer. Command line Execution: MSIEXEC.exe /x {14D74337-01C2-4F8F-B44B-67FC613E5B1F} /qn Inno Setup Command: [Run] Filename: msiexec.exe; Flags: runhidden waituntilterminated; Parameters: "/x {{14D74337-...
The issue you're facing where the uninstallation works in a debug environment but fails when run as a Windows Service can be attributed to several potential factors. Below are some common reasons for this behavior and possible solutions: 1. **Service Context**: The Windows Service is running under the Local System acc...
9,483
[ { "from": "human", "value": "I'm able to successfully uninstall a third-party application via the command line and via a custom Inno Setup installer. \nCommand line Execution:\nMSIEXEC.exe /x {14D74337-01C2-4F8F-B44B-67FC613E5B1F} /qn\n\nInno Setup Command:\n[Run]\nFilename: msiexec.exe; Flags: runhidden wa...
temp2, temp1 are pointers to some struct x: struct FunkyStruct x; struct FunkyStruct *temp1 = &x, *temp2 = &x; Now, after execution of following lines: temp2=temp1; temp1=temp1->nxt; ...Will temp2 and temp1 still point to the same memory location? If not, please explain why they would be different.
To determine whether `temp2` and `temp1` still point to the same memory location after executing the provided lines of code, we need to analyze the operations performed on the pointers: 1. **Initial Setup**: - You have a structure `FunkyStruct`, and a variable `x` of that type. - Both `temp1` and `temp2` are ini...
7,851
[ { "from": "human", "value": "temp2, temp1 are pointers to some struct x:\nstruct FunkyStruct x;\nstruct FunkyStruct *temp1 = &x, *temp2 = &x;\n\nNow, after execution of following lines:\ntemp2=temp1;\ntemp1=temp1->nxt;\n\n...Will temp2 and temp1 still point to the same memory location? If not, please explai...
I need to retrieve all rows from a table where 2 columns combined are all different. So I want all the sales that do not have any other sales that happened on the same day for the same price. The sales that are unique based on day and price will get updated to an active status. So I'm thinking: UPDATE sales SET status ...
Your query approach is on the right track, but there are a few issues that need to be addressed for it to work properly. In SQL, you cannot use `DISTINCT` with multiple columns in the way you've shown in your subquery, and the `HAVING` clause needs to be used properly with a `GROUP BY` clause. Here's how you can retr...
10,318
[ { "from": "human", "value": "I need to retrieve all rows from a table where 2 columns combined are all different. So I want all the sales that do not have any other sales that happened on the same day for the same price. The sales that are unique based on day and price will get updated to an active status.\...
I've actually solved this, but I'm posting it for posterity. I ran into a very odd issue with the DataGridView on my dual-monitor system. The issue manifests itself as an EXTREMELY slow repaint of the control (like 30 seconds for a full repaint), but only when it is on one of my screens. When on the other, the repaint ...
Thank you for sharing your experience with the DataGridView performance issue in a dual-monitor setup. It’s a common scenario where hardware and software interactions can lead to unexpected behavior, and your solution provides valuable insight for others who may encounter a similar issue. To summarize and help others ...
11,764
[ { "from": "human", "value": "I've actually solved this, but I'm posting it for posterity.\nI ran into a very odd issue with the DataGridView on my dual-monitor system. The issue manifests itself as an EXTREMELY slow repaint of the control (like 30 seconds for a full repaint), but only when it is on one of m...
I want to take the url: http://www.mydomain.com/signup-12345 And actually give them: http://www.mydomain.com/signup/?aff=12345 I have NO history with mod_rewrite, HELP!
Sure! To accomplish this URL redirection using mod_rewrite, you'll need to have access to the `.htaccess` file in the root directory of your website (or the appropriate directory where your web server configuration allows for it). Here’s a step-by-step guide on how to set it up: 1. **Access the .htaccess File**: Use ...
10,250
[ { "from": "human", "value": "I want to take the url:\nhttp://www.mydomain.com/signup-12345\nAnd actually give them:\nhttp://www.mydomain.com/signup/?aff=12345\nI have NO history with mod_rewrite, HELP!\n" }, { "from": "gpt", "value": "Sure! To accomplish this URL redirection using mod_rewrite, y...
From a Joel's post on Copilot: Direct Connect! We’ve always done everything we can to make sure that Fog Creek Copilot can connect in any networking situation, no matter what firewalls or NATs are in place. To make this happen, both parties make outbound connections to our server, which relays traffic...
In the described process, the transition from a server connection to a peer-to-peer (P2P) connection is facilitated through a series of steps that take advantage of both the initial server-based communication and subsequent network negotiation. 1. **Initial Connection**: When two users initiate a session in Copilot, b...
11,760
[ { "from": "human", "value": "From a Joel's post on Copilot:\n\nDirect Connect! We’ve always done\n everything we can to make sure that \n Fog Creek Copilot can connect in any\n networking situation, no matter what\n firewalls or NATs are in place. To\n make this happen, both parties make\n outbound ...
I have a SharePoint virtual machine in one active directory domain (for example domain1) and I want to transfer all the sites it has to another active directory domain (domain2). I don’t know which could be the best procedure to do this, if I detach and attach my virtual machine from domain1 to domain2 it probably didn...
Moving SharePoint sites from one Active Directory domain to another, particularly when the domains are not trusted and are not in the same network, can be a challenging task. Below are several approaches that you could consider, along with their pros and cons: ### 1. **Backup and Restore Method (STSADM or PowerShell)*...
9,340
[ { "from": "human", "value": "I have a SharePoint virtual machine in one active directory domain (for example domain1) and I want to transfer all the sites it has to another active directory domain (domain2).\nI don’t know which could be the best procedure to do this, if I detach and attach my virtual machin...