instruction
stringlengths
14
27.6k
completion
stringlengths
3
38.3k
__original_row_idx
int64
0
50k
conversations
listlengths
2
2
Users are occassionally getting the above error when using our application (VB.Net, Winforms, using v2 of the framework). I'm not able to reproduce it. The callstack is as follows: : System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. ...
The `System.AccessViolationException` you are encountering indicates that your application is trying to read or write to memory that it is not authorized to access. This can often occur due to a few common issues in WinForms applications, particularly in the context of overriding `WndProc` in custom controls such as yo...
31,412
[ { "from": "human", "value": "Users are occassionally getting the above error when using our application (VB.Net, Winforms, using v2 of the framework). I'm not able to reproduce it. The callstack is as follows:\n: System.AccessViolationException: Attempted to read or write protected memory. This is often an ...
We need some input on what is a good design pattern on using AJAX in a Java application. Consider a simple scenario: User clicks a button which sends a request to a Java method to fetch data from DB. Java object is returned by method and needs to be converted into a HTML table. HTML table is shown on JSP. What we cu...
Your current approach has its merits, but there are definitely improvements you can make to better align with best practices in separation of concerns, maintainability, and scalability. Here’s a breakdown of your current approach and suggestions for an improved design pattern: ### Current Approach: - You have a "middl...
30,709
[ { "from": "human", "value": "We need some input on what is a good design pattern on using AJAX in a Java application. \nConsider a simple scenario:\n\nUser clicks a button which sends a request to a Java method to fetch data from DB.\nJava object is returned by method and needs to be converted into a HTML t...
My source data is stored as (000000000000054390-) which denotes -543.90 I need the destination as -543.90. How this can be done using SSIS? Thanks Arif
To transform the data from the format `(000000000000054390-)` to `-543.90` in SQL Server Integration Services (SSIS), you can follow these steps: ### Steps to Transform the Data in SSIS: 1. **Data Flow Task**: Start by creating a Data Flow Task in your SSIS package. 2. **Source Component**: Add a source component (e...
31,457
[ { "from": "human", "value": "My source data is stored as (000000000000054390-) which denotes -543.90 I need the destination as -543.90. How this can be done using SSIS?\nThanks \nArif\n" }, { "from": "gpt", "value": "To transform the data from the format `(000000000000054390-)` to `-543.90` in S...
I have a set of mercurial repositories being served online with hgwebdir.cgi. I would like to be able to show a graphical representation of the branches and merges in the same way that this site does. I can't seem to find any reference to how to do that though. Does the functionality only exist in hgweb and not hgwebdi...
The graphical representation of branches and merges that you are referring to is typically provided by the `hgweb` functionality in Mercurial, which can render a more visual representation of the repository's history. However, `hgwebdir.cgi`, which serves multiple repositories, does not provide the same level of detail...
34,277
[ { "from": "human", "value": "I have a set of mercurial repositories being served online with hgwebdir.cgi. I would like to be able to show a graphical representation of the branches and merges in the same way that this site does. I can't seem to find any reference to how to do that though. Does the function...
I have a toolstrip containing, among other things, a ToolStripComboBox and a ToolStripButton. I want to add a ContextMenuStrip to both of them, but I don't have direct access to the toolstrip or its other contents, so I can't set the context menu of the toolstrip. Setting the ContextMenuStrip for the ToolStripComboBox...
To add a `ContextMenuStrip` to a `ToolStripButton` in a `ToolStrip`, you can use the `DropDown` property of the `ToolStripButton`. The `DropDown` property can accept a `ToolStripDropDown`, which you can use to create your `ContextMenuStrip` functionality. However, since you want a context menu that appears when the u...
34,811
[ { "from": "human", "value": "I have a toolstrip containing, among other things, a ToolStripComboBox and a ToolStripButton. I want to add a ContextMenuStrip to both of them, but I don't have direct access to the toolstrip or its other contents, so I can't set the context menu of the toolstrip.\nSetting the ...
I have recently had the need to write a fluent interface for C# that will essentially mirror SQL. Yes, I am aware of LINQ to SQL, but I'm interesting in getting "closer to the metal"--having something that essentially provides nothing more than an Intellisensified SQL shim within C#. E.g., var fq = new FluentQuery(); ...
Creating a fluent interface that closely mirrors SQL in C# is an interesting challenge. While there are various libraries and frameworks (like LINQ) that simplify data querying, building a custom fluent interface that emphasizes SQL syntax can be a unique learning experience. ### EBNF to Fluent Interface Generator Wh...
28,513
[ { "from": "human", "value": "I have recently had the need to write a fluent interface for C# that will essentially mirror SQL. Yes, I am aware of LINQ to SQL, but I'm interesting in getting \"closer to the metal\"--having something that essentially provides nothing more than an Intellisensified SQL shim wi...
I need to get the File version information from an exe file originally written in C++ from a C# program. Using Assembly.LoadFile(fullpath).GetName().Version results in a BadImageFormatException. Can anyone help? Cheers, Dan
Hi Dan, The `BadImageFormatException` you're encountering typically happens because the file you are trying to load with `Assembly.LoadFile()` is a native executable (EXE) and not a .NET assembly. To retrieve the file version information from a native EXE, you should use the `FileVersionInfo` class available in the `S...
27,435
[ { "from": "human", "value": "I need to get the File version information from an exe file originally written in C++ from a C# program.\nUsing Assembly.LoadFile(fullpath).GetName().Version results in a BadImageFormatException. \nCan anyone help?\nCheers,\nDan\n" }, { "from": "gpt", "value": "Hi Da...
There are apparently many ways to iterate over a collection. Curious if there are any differences, or why you'd use one way over the other. First type: List<string> someList = <some way to init> foreach(string s in someList) { <process the string> } Other Way: List<string> someList = <some way to init> someList.For...
You're correct that there are multiple ways to iterate over a collection in C#. Let's explore the two methods you've mentioned: the `foreach` loop and the `List<T>.ForEach` method. Each has its own advantages and use cases. ### 1. `foreach` Loop ```csharp List<string> someList = new List<string> { "item1", "item2", "...
31,858
[ { "from": "human", "value": "There are apparently many ways to iterate over a collection. Curious if there are any differences, or why you'd use one way over the other.\nFirst type:\nList<string> someList = <some way to init>\nforeach(string s in someList) {\n <process the string>\n}\n\nOther Way:\nList<s...
I have a div container and have defined its style as follows: div#tbl-container { width: 600px; overflow: auto; scrollbar-base-color:#ffeaff } This gives me both horizontal and vertical scroll bars automatically once I populate my table which is contained by this div. I just want only horizontal sc...
To ensure that only the horizontal scrollbar appears in your div container while the vertical scrollbar is hidden, you need to adjust the `overflow` property. You can set the vertical overflow to `hidden` while allowing horizontal overflow to be scrollable. Here’s how you can modify your CSS for the `div#tbl-container...
31,812
[ { "from": "human", "value": "I have a div container and have defined its style as follows:\ndiv#tbl-container \n{\n width: 600px; \n overflow: auto; \n scrollbar-base-color:#ffeaff\n}\n\nThis gives me both horizontal and vertical scroll bars automatically once I populate my table which is cont...
I had setup my clients & server for passwordless login. Like passwordless login by copying RSA key of server to all client's /root/.ssh/id-rsa.pub. but this, I have done manually. I like to automate this process using shell script and providing password to the machines through script. If this problem is solved then I a...
To automate passwordless SSH login by copying the RSA public key from the server to multiple client machines, you can use a shell script combined with tools like `sshpass` (for providing passwords in a non-interactive way). Below is a step-by-step guide along with a sample script. ### Prerequisites 1. Install `sshpass...
32,058
[ { "from": "human", "value": "I had setup my clients & server for passwordless login.\nLike passwordless login by copying RSA key of server to all client's /root/.ssh/id-rsa.pub. but this, I have done manually. I like to automate this process using shell script and providing password to the machines through ...
With C#, How do I play (Pause, Forward...) a sound file (mp3, ogg)? The file could be on the hard disk, or on the internet. Is there any library or Class out there that can ease me the work ?
To play audio files in C#, you can use several libraries, but one of the most popular and straightforward options is to use **NAudio** for local files and **NAudio.Wave** to handle MP3 and OGG file formats. If you want to stream audio files from the internet, NAudio will also work for that. ### Setup NAudio 1. **Inst...
23,147
[ { "from": "human", "value": "With C#, How do I play (Pause, Forward...) a sound file (mp3, ogg)? The file could be on the hard disk, or on the internet.\nIs there any library or Class out there that can ease me the work ?\n" }, { "from": "gpt", "value": "To play audio files in C#, you can use se...
How flexible should a programmer be if a client requests requirements that is not in the project scope?
The flexibility of a programmer regarding client requests that fall outside the project scope can depend on several factors, including the nature of the request, the overall project context, and the client relationship. Here are some considerations for managing such situations: 1. **Communication**: The first step is ...
30,473
[ { "from": "human", "value": "How flexible should a programmer be if a client requests requirements that is not in the project scope?\n" }, { "from": "gpt", "value": "The flexibility of a programmer regarding client requests that fall outside the project scope can depend on several factors, inclu...
I've heard that projects developed using TDD are easier to refactor because the practice yields a comprehensive set of unit tests, which will (hopefully) fail if any change has broken the code. All of the examples I've seen of this, however, deal with refactoring implementation - changing an algorithm with a more effic...
You've raised some very insightful points regarding Test-Driven Development (TDD) and the challenges of refactoring, especially in the early stages of a project when the architecture is still evolving. Let's break this down. ### Refactoring with TDD 1. **Changing Tests**: In TDD, it is indeed expected that you will ch...
26,894
[ { "from": "human", "value": "I've heard that projects developed using TDD are easier to refactor because the practice yields a comprehensive set of unit tests, which will (hopefully) fail if any change has broken the code. All of the examples I've seen of this, however, deal with refactoring implementation ...
I have a batch process that reads data from multiple tables into a dataset based on a common key. I then build a second dataset of the destination data querying on the same key. At this point I have two Datasets that are structurally identical (from a table/column layout perspective). I then have a process that adds...
The error message you’re encountering suggests that the DataAdapter is having trouble determining how to perform the update operation because it cannot identify the unique key or identifier column in the destination table. Here are some steps and suggestions that might help resolve the issue: ### 1. Ensure Primary Key...
31,549
[ { "from": "human", "value": "I have a batch process that reads data from multiple tables into a dataset based on a common key. I then build a second dataset of the destination data querying on the same key. \nAt this point I have two Datasets that are structurally identical (from a table/column layout pers...
From MSDN: The CancelWaitableTimer function does not change the signaled state of the timer. It stops the timer before it can be set to the signaled state and cancels outstanding APCs. Therefore, threads performing a wait operation on the timer remain waiting until they time out or the timer is reactivated and its st...
In Windows, when dealing with waitable timers, you are correct that calling `CancelWaitableTimer` will stop the timer but will not change its signaled state. Additionally, manual-reset waitable timers do not allow you to reset their state to non-signaled directly, as you mentioned that `ResetEvent` does not work with w...
31,702
[ { "from": "human", "value": "From MSDN: \n\nThe CancelWaitableTimer function does not change the signaled state of the timer. It stops the timer before it can be set to the signaled state and cancels outstanding APCs. Therefore, threads performing a wait operation on the timer remain waiting until they time...
I recently purchased SQL compare 7.1 pro for the command line capabilities. We have been using the GUI version with no problems for some time now. I am trying to exclude items from the sync, however its not working. I am using the .scp file created from the GUI. My syntax is: SQLCompare.exe /pr:"file.scp" /v sync >> Lo...
It sounds like you're encountering an issue with the command line exclusions in SQL Compare when using the .scp file. Your experience points to a misunderstanding of how the `/exclude` option works in conjunction with the .scp file settings. ### Understanding the .scp File Behavior 1. **Selected vs. Deselected Items*...
33,977
[ { "from": "human", "value": "I recently purchased SQL compare 7.1 pro for the command line capabilities. We have been using the GUI version with no problems for some time now. I am trying to exclude items from the sync, however its not working.\nI am using the .scp file created from the GUI. My syntax is:\n...
I have just installed VMWare Server 2.0 on a fresh Fedora Core 8 install. The ports for the web access console of VMWare are 8222 and 8333 (like the defaults). When I try a remote http access to myserver:8222 it fails. But when I run /sbin/service iptables stop access becomes possibles (although not very satisfactory)...
It looks like you're on the right track with your iptables configuration. However, there are a few potential issues that could be preventing access to the VMWare server management interface. Here are some troubleshooting steps and suggestions to help you resolve the issue: 1. **Correct Order of Rules**: The order of ...
26,580
[ { "from": "human", "value": "I have just installed VMWare Server 2.0 on a fresh Fedora Core 8 install. The ports for the web access console of VMWare are 8222 and 8333 (like the defaults).\nWhen I try a remote http access to myserver:8222 it fails. But when I run\n/sbin/service iptables stop\n\naccess becom...
I am trying to add different styles within a textarea eg bold, different colors etc WYSIWYG editors (eg tinyMCE) used in web pages typically do this but I am having trouble working out how they do it. You cannot do this: alt text http://www.yart.com.au/test/html.gif So how do they achieve it?
WYSIWYG (What You See Is What You Get) editors like TinyMCE allow users to format text within a textarea-like interface using rich HTML content, which is typically achieved by using a contenteditable attribute or a custom-built HTML interface instead of a standard `<textarea>`. Here’s how they usually accomplish this: ...
27,017
[ { "from": "human", "value": "I am trying to add different styles within a textarea eg bold, different colors etc\nWYSIWYG editors (eg tinyMCE) used in web pages typically do this but I am having trouble working out how they do it.\nYou cannot do this:\nalt text http://www.yart.com.au/test/html.gif\nSo how d...
On the Python side, I can create new numpy record arrays as follows: numpy.zeros((3,), dtype=[('a', 'i4'), ('b', 'U5')]) How do I do the same from a C program? I suppose I have to call PyArray_SimpleNewFromDescr(nd, dims, descr), but how do I construct a PyArray_Descr that is appropriate for passing as the third argu...
To create a NumPy record array in C, you indeed need to use the `PyArray_SimpleNewFromDescr` function from the NumPy C API. The crucial step is to construct a `PyArray_Descr` for the record array. Here's a step-by-step guide to creating a NumPy record array from C, along with a code example: 1. **Initialize the NumPy...
31,016
[ { "from": "human", "value": "On the Python side, I can create new numpy record arrays as follows:\nnumpy.zeros((3,), dtype=[('a', 'i4'), ('b', 'U5')])\n\nHow do I do the same from a C program? I suppose I have to call PyArray_SimpleNewFromDescr(nd, dims, descr), but how do I construct a PyArray_Descr that ...
Does anyone know of any DLLs (preferably .net) that encapsulate the lua 5.1 compiler? I'm working on a .net project where part of it needs to compile lua scripts, and i would rather have a DLL that i could send script code to instead of sending the script to a temporary file and running luac.exe. Edit: I'd need a .NET...
If you are looking for a .NET library that can compile Lua scripts directly to bytecode (similar to how `luac.exe` does), there are a few options to consider, though they might not be straightforward to find. Here are some recommendations: ### 1. **NLua** [NLua](https://github.com/NLua/NLua) is a .NET library that all...
32,481
[ { "from": "human", "value": "Does anyone know of any DLLs (preferably .net) that encapsulate the lua 5.1 compiler? I'm working on a .net project where part of it needs to compile lua scripts, and i would rather have a DLL that i could send script code to instead of sending the script to a temporary file an...
I am trying to convert all DateTime values in a DataTable to strings. Here is the method I use: private static void ConvertDateTimesToStrings(DataTable dataTable) { if (dataTable == null) { return; } for (int rowIndex = 0; rowIndex < dataTable.Rows.Count; rowIndex++ ) { for (int i =...
The behavior you're experiencing is due to the fact that a `DataTable` maintains strict data types for its columns. When you retrieve a value from a `DataTable`, you retrieve it as its stored type (in this case, `DateTime`), and when you assign a value back to it, the `DataTable` expects the data type to match the orig...
31,784
[ { "from": "human", "value": "I am trying to convert all DateTime values in a DataTable to strings. Here is the method I use:\nprivate static void ConvertDateTimesToStrings(DataTable dataTable)\n{\n if (dataTable == null)\n {\n return;\n }\n\n for (int rowIndex = 0; rowIndex < dataTable.Ro...
I have an ASP.NET web page with a Login control on it. When I hit Enter, the Login button doesn't fire; instead the page submits, doing nothing. The standard solution to this that I've found online is to enclose the Login control in a Panel, then set the Panel default button. But apparently that doesn't work so well ...
Yes, it is possible to set the default button of a panel containing a Login control in an ASP.NET Web Forms application, even when using a master page. Here’s how you can achieve it with C# code behind. ### Using ASP.NET Panel Control 1. **Wrap the Login Control in a Panel**: First, ensure that your `Login` contro...
28,003
[ { "from": "human", "value": "I have an ASP.NET web page with a Login control on it. When I hit Enter, the Login button doesn't fire; instead the page submits, doing nothing.\nThe standard solution to this that I've found online is to enclose the Login control in a Panel, then set the Panel default button. ...
By default Windows (XP) shows the underlined hotkeys only, when ALT is pressed. This can be changed in display-properties in the subdialog "Effects" so, that the hotkeys are always underlined How can it be changed programmatically? Which API-call or registry-setting can be used to change this setting?
In Windows XP, the setting for displaying hotkeys (or access keys) can be adjusted in the Control Panel, but it can also be manipulated programmatically. This setting is stored in the Windows Registry, which means you can change it using the Registry Editor or by programmatically modifying the registry using APIs or sc...
25,454
[ { "from": "human", "value": "By default Windows (XP) shows the underlined hotkeys only, when ALT is pressed. This can be changed in display-properties in the subdialog \"Effects\" so, that the hotkeys are always underlined\nHow can it be changed programmatically? Which API-call or registry-setting can be us...
Is there any technology out there that will allow you to do side-by-side updates of production schemas? The goal is to have zero down time when applying updates to a schema in production. Weblogic 10 has a similar feature for their Java EE apps where by you deploy the new version of the app and new connections go to th...
In Oracle databases, achieving zero downtime for schema updates can be quite complex, but there are several strategies and technologies that you can use to minimize downtime during production schema updates. Here are some options: 1. **Oracle Edition-Based Redefinition (EBR)**: - This feature allows you to create ...
28,899
[ { "from": "human", "value": "Is there any technology out there that will allow you to do side-by-side updates of production schemas?\nThe goal is to have zero down time when applying updates to a schema in production.\nWeblogic 10 has a similar feature for their Java EE apps where by you deploy the new vers...
I'm looking for a broad overview of what I need to do and in what order to migrate a W2003 Server to a virtual server environment. Specifically: How does it work in general? Do I need to prepare my disks in any way? What do I install first? The toolkit? Virtual Server? Can I install linux later? etc. Any pointers welco...
Migrating a Windows Server 2003 (W2003) environment to a virtual server environment involves a series of steps to ensure a smooth transition. Here’s a broad overview of the process along with answers to your specific questions: ### General Overview of Migration Process 1. **Planning**: Assess the current W2003 enviro...
25,805
[ { "from": "human", "value": "I'm looking for a broad overview of what I need to do and in what order to migrate a W2003 Server to a virtual server environment. Specifically:\nHow does it work in general?\nDo I need to prepare my disks in any way?\nWhat do I install first? The toolkit? Virtual Server?\nCan I...
I'm writing a MFC app that uses the MS Mappoint OCX. I need to display the locations of people and vehicles on the map and the best of doing this appears to be with Pushpin objects. I have no problem displaying a stock pushpin icon with some text but want to change the icon to a custom designed one. From the limited am...
When dealing with the MS MapPoint OCX in MFC and using custom icons for pushpins, it’s essential to ensure that you are handling the symbol and pushpin objects correctly. The code snippet you've provided suggests a misunderstanding of how to initialize and use the `CSymbols` and `CSymbol` classes, which may be leading ...
31,252
[ { "from": "human", "value": "I'm writing a MFC app that uses the MS Mappoint OCX. I need to display the locations of people and vehicles on the map and the best of doing this appears to be with Pushpin objects. I have no problem displaying a stock pushpin icon with some text but want to change the icon to a...
I am currently working for a company that has a website running mysql/php (all tables are also using the MYISAM table type). We would like to implement replication, but I have read in the mysql docs and elsewhere on the internet that this will lock the tables when doing the writes to the binary log (which the slave dbs...
Using MySQL replication with the MYISAM storage engine can present challenges, especially in a write-heavy environment. Here’s a breakdown of what to expect regarding locks and replication, along with some potential solutions. ### Locks in MySQL Replication 1. **Binary Logging and Table Locking**: When using MYISAM, ...
34,082
[ { "from": "human", "value": "I am currently working for a company that has a website running mysql/php (all tables are also using the MYISAM table type).\nWe would like to implement replication, but I have read in the mysql docs and elsewhere on the internet that this will lock the tables when doing the wri...
In ASP.NET MVC, I'm trying to create a link that includes an anchor tag (that is, directing the user to a page, and a specific section of the page). The URL I am trying to create should look like the following: <a href="/category/subcategory/1#section12">Title for a section on the page</a> My routing is set up with th...
To achieve the desired URL format with an anchor tag in ASP.NET MVC, you can concatenate the anchor directly to the URL generated by the `Html.ActionLink` method. Here's how you can modify your code to include the `#section12` part in your link: Instead of using `Html.ActionLink` to generate the entire anchor link, yo...
31,861
[ { "from": "human", "value": "In ASP.NET MVC, I'm trying to create a link that includes an anchor tag (that is, directing the user to a page, and a specific section of the page).\nThe URL I am trying to create should look like the following:\n<a href=\"/category/subcategory/1#section12\">Title for a section ...
What do the terms mean in each of the above languages? Why do the languages differ (wherever they do, if at all they do) in this respect?
It seems like you're referring to specific terms or concepts in various languages, but I don't have the specific terms or languages you're talking about. To provide an accurate and helpful response, could you please specify the terms and the languages you're interested in? That way, I can explain their meanings and any...
36,250
[ { "from": "human", "value": "What do the terms mean in each of the above languages? Why do the languages differ (wherever they do, if at all they do) in this respect?\n" }, { "from": "gpt", "value": "It seems like you're referring to specific terms or concepts in various languages, but I don't h...
How can I check whether a variable is defined in Ruby? Is there an isset-type method available?
In Ruby, you can check if a variable is defined using the `defined?` method. This method is often used to determine if a variable, method, constant, or other expression is defined without raising an error if it's not. Here's how you can use it for a variable: ```ruby # Example variable my_variable = "Hello, world!" ...
34,952
[ { "from": "human", "value": "How can I check whether a variable is defined in Ruby? Is there an isset-type method available?\n" }, { "from": "gpt", "value": "In Ruby, you can check if a variable is defined using the `defined?` method. This method is often used to determine if a variable, method...
I'm writing an app in C# (.net 3.5) and I have a question about class design: I'd like to create a class which accesses a file (read, write) and provides its content to the users (instanciators) of the class. The most common operation on an instance will be to retrieve a certain value from the file. The actual read an...
To design a thread-safe class in C# that reads from a file and allows multiple instances to share the file content while being unit-testable, you can follow these principles: 1. **Singleton Design Pattern**: Use a singleton pattern to ensure that there's only one instance of the class that manages the file content. Th...
32,101
[ { "from": "human", "value": "I'm writing an app in C# (.net 3.5) and I have a question about class design: \nI'd like to create a class which accesses a file (read, write) and provides its content to the users (instanciators) of the class. The most common operation on an instance will be to retrieve a certa...
Does anyone have experience with a query language for the web? I am looking for project, commercial or not, that does a good job at making a webpage queryable and that even follows links on it to aggregate information from a bunch of pages. I would prefere a sql or linq like syntax. I could of course download a webpage...
There are several query languages and libraries that you might find useful for querying web content in a more abstract way than just using raw HTML parsing or XPATH. While WebSQL is interesting, it may not be the best fit for your needs. Here are some alternatives that provide a SQL-like or LINQ-like experience: ### 1...
31,390
[ { "from": "human", "value": "Does anyone have experience with a query language for the web?\nI am looking for project, commercial or not, that does a good job at making a webpage queryable and that even follows links on it to aggregate information from a bunch of pages.\nI would prefere a sql or linq like s...
Does anyone know what will be in .NET 4.0? I found tuples on codeplex: .... // NOTE : this is a TEMPORARY and a very minimalistic implementation of Tuple'2, // as defined in http://devdiv/sites/docs/NetFX4/CLR/Specs/Base Class Libraries/Tuple Spec.docx // We will remove this after we move to v4 and Tuple is actually i...
.NET Framework 4.0 introduced several new features and enhancements to the platform. Here are some of the key features you can expect in .NET 4.0: 1. **Dynamic Language Runtime (DLR)**: This allows for dynamic typing and dynamic method invocation, enabling developers to work with dynamic types and use dynamic features...
33,220
[ { "from": "human", "value": "Does anyone know what will be in .NET 4.0?\nI found tuples on codeplex:\n....\n// NOTE : this is a TEMPORARY and a very minimalistic implementation of Tuple'2, \n// as defined in http://devdiv/sites/docs/NetFX4/CLR/Specs/Base Class Libraries/Tuple Spec.docx\n// We will remove th...
I'm planning to add XML support to application, but I'm not familiar with XML programming in Delphi. Basically I need to create objects based on XML nodes and generate XML file based on objects. Which XML component library I should use? Are there any good tutorials for XML with Delphi?
In Delphi, there are several libraries and components you can use for XML processing. Two of the most popular ones are: 1. **MSXML**: This is a Microsoft library that allows you to work with XML documents. It provides a COM interface which can be accessed from Delphi. 2. **XMLDoc**: This is a native Delphi library in...
30,746
[ { "from": "human", "value": "I'm planning to add XML support to application, but I'm not familiar with XML programming in Delphi.\nBasically I need to create objects based on XML nodes and generate XML file based on objects.\nWhich XML component library I should use? Are there any good tutorials for XML wit...
Is there any way to change the color of an underline in a RichTextBox? I've tried this but it doesn't seem to work. Anybody know where did those enum values came from? Didn't see any documentation for it. Thanks.
In a standard `RichTextBox` control in Windows Forms, changing the color of the underline directly isn't supported. The `RichTextBox` control allows you to change the color of the text, but the underline is always rendered in the same color as the text. If you want to create underlined text with a different color, you...
19,655
[ { "from": "human", "value": "Is there any way to change the color of an underline in a RichTextBox?\nI've tried this but it doesn't seem to work. Anybody know where did those enum values came from? Didn't see any documentation for it.\nThanks.\n" }, { "from": "gpt", "value": "In a standard `Rich...
I'm deploying a JSF (myfaces, restfaces, and richfaces) app to OC4J. I don't want the jsessionid to appear in the status bar or the URL address. I have managed to suppress it in almost all cases. The one case that I still have problems with is when the site is first visited with a "clean" browser (with no cache, histor...
The issue you're facing with the `JSESSIONID` appearing in the URL when first visiting your JSF application in a "clean" browser is a common problem with session management in servlet-based applications. This occurs because the session has not yet been created, and when a new session is initiated, the servlet container...
23,201
[ { "from": "human", "value": "I'm deploying a JSF (myfaces, restfaces, and richfaces) app to OC4J. I don't want the jsessionid to appear in the status bar or the URL address. I have managed to suppress it in almost all cases. The one case that I still have problems with is when the site is first visited with...
When I try to allocate a Texture2D the app just crashes. I've stepped through the code where the crash occurs... all I can tell is "EXC BAD ACCESS". Here is the line in the app delegate that makes it crash: _textures[myTex] = [[Texture2D alloc] initWithImage: [UIImage imageNamed:@"sometex.png"]]; sometex.png has bee...
When you're encountering a crash with `EXC_BAD_ACCESS`, it typically indicates that you're trying to access memory that has either been deallocated or is otherwise invalid. Here are several things you can check and debug to solve the issue with the `Texture2D` allocation: 1. **Check Texture2D Initialization**: Make...
31,185
[ { "from": "human", "value": "When I try to allocate a Texture2D the app just crashes. I've stepped through the code where the crash occurs... all I can tell is \"EXC BAD ACCESS\". Here is the line in the app delegate that makes it crash:\n_textures[myTex] = [[Texture2D alloc] initWithImage: [UIImage image...
Im having trouble using a .NET COM in vb6, It compiles ok and I use regasm to register it, add a reference to it in the vb6 project, it even has intellisense. But when I try to make make an instance it gives me an 'Automation Error'. Any one can help? Thanks in advance.
When encountering an "Automation Error" while trying to use a .NET COM object in a VB6 project, there are several areas to check for potential issues. Here’s a guide to help you troubleshoot and resolve the issue: ### 1. **Check .NET Framework Compatibility** Ensure that the target .NET Framework version is compatible...
30,508
[ { "from": "human", "value": "Im having trouble using a .NET COM in vb6, It compiles ok and I use regasm to register it, add a reference to it in the vb6 project, it even has intellisense. But when I try to make make an instance it gives me an 'Automation Error'. Any one can help?\nThanks in advance.\n" },...
I am writing a desktop application written in Swing developed using Java 1.5. Some of the users seem to be using Mac, but I am interested in Java 6's scripting feature (Java 6 ships with Rhino). Java 6, although it came out almost 2 years ago, doesn't seem to be widely in use. I also hear Apple ships Java 6 only for In...
Java 6 (also known as Java SE 6) introduced many enhancements over Java 5, including improvements in performance, the addition of the scripting API (JSR 223), and various new libraries and features. However, as you noted, adoption of Java 6 was initially slow, especially on the Mac platform, where Apple was slow to rel...
30,837
[ { "from": "human", "value": "I am writing a desktop application written in Swing developed using Java 1.5. Some of the users seem to be using Mac, but I am interested in Java 6's scripting feature (Java 6 ships with Rhino). Java 6, although it came out almost 2 years ago, doesn't seem to be widely in use. I...
On Linq to SQL's DataContext I am able to call SubmitChanges() to submit all changes. What I want is to somehow reject all changes in the datacontext and rollback all changes (preferable without going to the database). Is this possible?
In LINQ to SQL, once you make changes to the `DataContext`, those changes are tracked until you call `SubmitChanges()`. If you want to "rollback" or discard all changes made to the `DataContext` without hitting the database, you can simply create a new instance of the `DataContext` instead of trying to revert the chang...
34,358
[ { "from": "human", "value": "On Linq to SQL's DataContext I am able to call SubmitChanges() to submit all changes.\nWhat I want is to somehow reject all changes in the datacontext and rollback all changes (preferable without going to the database).\nIs this possible?\n" }, { "from": "gpt", "valu...
I have my J2EE application deployed into a JBossAS. My Application has to respond to two different hostnames (https://foo.com/myApp and https://bar.com/myApp). It is the same instance of the app serving those two hostnames. But I don't know how to configure the keystores. I need different keystores for each hostname. I...
To serve different hostnames from the same instance of a J2EE application deployed on JBoss AS with separate keystores for HTTPS, you can achieve this through the configuration of the `server.xml` or `standalone.xml` (depending on your JBoss version and configuration setup). You can use separate connectors for each hos...
31,881
[ { "from": "human", "value": "I have my J2EE application deployed into a JBossAS. My Application has to respond to two different hostnames (https://foo.com/myApp and https://bar.com/myApp). It is the same instance of the app serving those two hostnames.\nBut I don't know how to configure the keystores. I nee...
Following up on this question, I'm working on a large Delphi 7 codebase which was not written very nicely. I'm looking at code like this, as a small example: if FMode=mdCredit then begin Panel8.Caption:='Credit'; SpeedButton3.Enabled:=false; SpeedButton4.Enabled:=false; SpeedButton5.Enabled:=false; ...
In Delphi 7, renaming components and updating their references throughout the code can be a bit of a challenge, especially in a large codebase. While GExperts and Castalia are great tools, they indeed have limitations regarding the renaming of existing components and their event handlers. Here are some suggestions and...
30,261
[ { "from": "human", "value": "Following up on this question, I'm working on a large Delphi 7 codebase which was not written very nicely. \nI'm looking at code like this, as a small example:\n if FMode=mdCredit then begin\n Panel8.Caption:='Credit';\n SpeedButton3.Enabled:=false;\n SpeedButton4.Enab...
If anyone has done this, please let me know. I don't know anything about lucene.net. I have never used it, but I heard about it. I was wondering how something like that would integrate with the Linq entity framework?
Lucene.NET is a powerful information retrieval library that can be used to implement full-text search capabilities in .NET applications. It allows you to create, search, and manage an index of documents efficiently. Integrating Lucene.NET with Entity Framework (EF) can enhance your application's search functionality wh...
27,399
[ { "from": "human", "value": "If anyone has done this, please let me know. I don't know anything about lucene.net. I have never used it, but I heard about it. I was wondering how something like that would integrate with the Linq entity framework?\n" }, { "from": "gpt", "value": "Lucene.NET is a p...
Possible Duplicate: Where do I find the current C or C++ standard documents? I want to use STL with the current program I'm working on and the vendor doesn't support what I feel is a reasonable STL, working is not my idea of reasonable. I have been unable to find a C++ Standard or an STL standard that is not just a...
To access the current C++ standard and STL specifications, you can consider the following resources: 1. **ISO C++ Standard**: The most authoritative source for the C++ standard is the ISO/IEC standard document itself, which is published by the International Organization for Standardization (ISO). The latest version as...
33,415
[ { "from": "human", "value": "\nPossible Duplicate:\nWhere do I find the current C or C++ standard documents? \n\nI want to use STL with the current program I'm working on and the vendor doesn't support what I feel is a reasonable STL, working is not my idea of reasonable. I have been unable to find a C++ S...
I have multiple logos of various companies in various formats that needs to be added to other PDFs. The format of these logos is not specified at the moment but it could be locked down to only certain formats if it causes issues. These other PDFs will be mostly posters and will be printed off by the user. Question: Wh...
To add logos to PDF poster artwork while ensuring that the final output retains high quality for printing, you can follow these steps. You have a few options depending on the tools and technologies you want to use. Here are some of the best approaches: ### Option 1: Use PDF Editing Software **Tools:** Adobe Acrobat, P...
26,537
[ { "from": "human", "value": "I have multiple logos of various companies in various formats that needs to be added to other PDFs. The format of these logos is not specified at the moment but it could be locked down to only certain formats if it causes issues.\nThese other PDFs will be mostly posters and will...
What are the differences between a wiki and a CMS? Is there any?
Yes, there are several key differences between a wiki and a Content Management System (CMS). While both are tools for managing and organizing content, they serve different purposes and have distinct characteristics. Here are the primary differences: ### 1. Purpose: - **Wiki**: A wiki is designed for collaborative con...
32,795
[ { "from": "human", "value": "What are the differences between a wiki and a CMS? Is there any?\n" }, { "from": "gpt", "value": "Yes, there are several key differences between a wiki and a Content Management System (CMS). While both are tools for managing and organizing content, they serve differ...
Yes we're talking about ASCII codes. My appologies I'm not the Delphi dev here.
No problem! ASCII codes are a way to represent characters in computers, with each character assigned a unique numeric value. If you have any questions or need assistance with ASCII codes, feel free to ask, and I’ll do my best to help!
36,748
[ { "from": "human", "value": "Yes we're talking about ASCII codes. My appologies I'm not the Delphi dev here.\n" }, { "from": "gpt", "value": "No problem! ASCII codes are a way to represent characters in computers, with each character assigned a unique numeric value. If you have any questions or ...
How do I enable double-buffering of a control using C# (Windows forms)? I have a panel control which I am drawing stuff into and also an owner-drawn tab control. Both suffer from flicker, so how can I enable double-buffering?
To enable double-buffering in a Windows Forms application to reduce flickering, you can use a couple of approaches. One common method is to create a custom panel and override its `OnPaintBackground` method. This approach is particularly effective for a `Panel` control. For owner-drawn controls like a `TabControl`, you ...
33,438
[ { "from": "human", "value": "How do I enable double-buffering of a control using C# (Windows forms)?\nI have a panel control which I am drawing stuff into and also an owner-drawn tab control. Both suffer from flicker, so how can I enable double-buffering?\n" }, { "from": "gpt", "value": "To enab...
We recently upgraded an application that that contained web services using the WSE 2.0 to .NET 3.5. When we converted the project in Visual Studio 2008, It did not mention anything about the removing and/or modifying the WSE 2.0 namespaces. Here is the basic architecture of the web services in the .NET 1.1 project. W...
Upgrading a web service from .NET 1.1 with WSE 2.0 to .NET 3.5 can lead to several challenges, especially given the architectural changes and improvements in the framework over that time. Here are some potential issues and considerations that you may encounter during such an upgrade: ### Key Considerations 1. **Remov...
30,910
[ { "from": "human", "value": "We recently upgraded an application that that contained web services using the WSE 2.0 to .NET 3.5. When we converted the project in Visual Studio 2008, It did not mention anything about the removing and/or modifying the WSE 2.0 namespaces. Here is the basic architecture of th...
With the following file reading code: using (FileStream fileStream = new FileStream(fileName, FileMode.Open, FileAccess.Read, FileShare.None)) { using (TextReader tr = new StreamReader(fileStream)) { string fileContents = tr.ReadToEnd(); } } And the following file write code: using (TextWriter tw =...
The exception you are encountering occurs because the `FileStream` in your reader code is opened with `FileShare.None`, which means that no other process can access the file while it's being read. When you attempt to write to the file using the `StreamWriter`, it raises an exception because the file is already locked b...
31,722
[ { "from": "human", "value": "With the following file reading code:\nusing (FileStream fileStream = new FileStream(fileName, FileMode.Open, FileAccess.Read, FileShare.None))\n{\n using (TextReader tr = new StreamReader(fileStream))\n {\n string fileContents = tr.ReadToEnd();\n }\n}\n\nAnd the...
I'm about to begin an ASP.NET application that will be targeted towards iPhones, Blackberries, and Windows Mobile browsers. Aside from the iPhone, I haven't been able to find much information on what technologies these platforms support. Since I'm used to developing for desktop browsers, I like using things like jQuery...
It's great that you're looking to expand your ASP.NET application to support mobile devices! Developing for mobile browsers can indeed present some challenges compared to desktop browsers, but there are resources and frameworks that can help you. ### Resources for Mobile Browser Compatibility 1. **QuirksMode Mobile**:...
32,972
[ { "from": "human", "value": "I'm about to begin an ASP.NET application that will be targeted towards iPhones, Blackberries, and Windows Mobile browsers. Aside from the iPhone, I haven't been able to find much information on what technologies these platforms support.\nSince I'm used to developing for desktop...
In my database, in one of the table I have a GUID column with allow nulls. I have a method with a Guid? parameter that inserts a new data row in the table. However when I say myNewRow.myGuidColumn = myGuid I get the following error: Cannot implicitly convert type 'System.Guid?' to 'System.Guid'.
The error you are encountering stems from trying to assign a nullable `Guid?` to a non-nullable `Guid` property. In C#, a nullable type (`Guid?`) can represent either a `Guid` value or `null`, while a non-nullable `Guid` must always contain a valid `Guid`. If your `myGuidColumn` in the data row is defined as `Guid` (n...
31,406
[ { "from": "human", "value": "In my database, in one of the table I have a GUID column with allow nulls. I have a method with a Guid? parameter that inserts a new data row in the table. However when I say myNewRow.myGuidColumn = myGuid I get the following error:\nCannot implicitly convert type 'System.Guid?...
Now that Java is open source, one of the first things I would like to do is to disable array bounds checking for certain blocks of code, where I'm dead sure I cannot go offbounds and where performance heavily matters. Now, I'm not a compilers/grammar expert, so any syntax would be good enough for me: Here's one that I ...
Disabling array bounds checking in Java is a significant modification that goes against the fundamental design principles of the language, which prioritize safety and portability. The built-in array bounds checking is a key feature to prevent errors that could lead to crashes or data corruption. However, if you're com...
26,465
[ { "from": "human", "value": "Now that Java is open source, one of the first things I would like to do is to disable array bounds checking for certain blocks of code, where I'm dead sure I cannot go offbounds and where performance heavily matters.\nNow, I'm not a compilers/grammar expert, so any syntax would...
How can I detect whether or not an input box is currently a jQuery UI autocomplete? There doesn't seem to be a native method for this, but I'm hoping there is something simple like this: if ($("#q").autocomplete) { //Do something } That conditional, however, seems to always return true.
In jQuery UI, there isn't a built-in method to check directly if an input box is currently enhanced with the autocomplete widget. However, you can determine if an element is an autocomplete by checking if it has the relevant jQuery UI data associated with it. You can use the `.data()` method to check if the autocomple...
31,559
[ { "from": "human", "value": "How can I detect whether or not an input box is currently a jQuery UI autocomplete? There doesn't seem to be a native method for this, but I'm hoping there is something simple like this:\nif ($(\"#q\").autocomplete)\n{\n //Do something\n}\n\nThat conditional, however, seems to...
We have a service that handles authorization based on a User Name and Password. Instead of making the username and password part of the call, we place it in the SOAP header. In a typical scenario, a Web Service calls the Authorization service at the start of execution to check that the caller is allowed to call it. ...
Your approach to caching the authorization state through a Security Token that can be validated locally is a good starting point for optimizing the process. However, as you've identified, it raises some critical concerns regarding security and fine-grained access control, especially in scenarios where services may have...
27,443
[ { "from": "human", "value": "We have a service that handles authorization based on a User Name and Password. Instead of making the username and password part of the call, we place it in the SOAP header. \nIn a typical scenario, a Web Service calls the Authorization service at the start of execution to chec...
im using httpclient and last-modified header in order to retrieve the last updated date of an html file however when i try this on a linux box it returns yesterdays date but when i use a windows machine it returns todays date. is anyone aware of issues using this header field in linux?
The discrepancy you're experiencing with the `Last-Modified` header while using `HttpClient` on different operating systems (Linux vs. Windows) is likely not due to the operating systems themselves, but rather how the HTTP request is being formed or processed, or potentially due to server behavior. Here are a few fact...
32,249
[ { "from": "human", "value": "im using httpclient and last-modified header in order to retrieve the last updated date of an html file however when i try this on a linux box it returns yesterdays date but when i use a windows machine it returns todays date. is anyone aware of issues using this header field i...
I have two related question regarding Scrum. Our company is trying to implement it and sure we are jumping over hoops. Both question are about "done means Done!" 1) It's really easy to define "Done" for tasks which are/have - clear test acceptance criterias - completely standalone - tested at the end by testers What s...
Hi Victor, Your questions touch on some common challenges in Scrum, especially when it comes to defining "Done" for tasks that aren't strictly feature-based. Let's break down your questions one by one. ### 1) Defining "Done" for Internal Tasks (Architecture Design, Refactoring, etc.) For internal tasks such as archi...
28,452
[ { "from": "human", "value": "I have two related question regarding Scrum.\nOur company is trying to implement it and sure we are jumping over hoops.\nBoth question are about \"done means Done!\"\n1) It's really easy to define \"Done\" for tasks which are/have\n- clear test acceptance criterias\n- completely...
Calling the Pear Mail class in some instances automatically attempts to read /dev/urandom, however access is restricted due to an open_basedir setting. Is it safe to add /dev to open_basedir? Or is there a better way around this?
Adding `/dev` to the `open_basedir` setting is generally not recommended. The `open_basedir` directive in PHP is used to limit the files that can be accessed by PHP scripts, enhancing security by preventing scripts from accessing sensitive areas of the filesystem. Allowing access to `/dev` can expose your system to var...
32,665
[ { "from": "human", "value": "Calling the Pear Mail class in some instances automatically attempts to read /dev/urandom, however access is restricted due to an open_basedir setting. Is it safe to add /dev to open_basedir? Or is there a better way around this?\n" }, { "from": "gpt", "value": "Ad...
This is a slightly.. vain question, but BuildBot's output isn't particularly nice to look at.. For example, compared to.. phpUnderControl Jenkins Hudson CruiseControl.rb ..and others, BuildBot looks rather.. archaic I'm currently playing with Hudson, but it is very Java-centric (although with this guide, I found it...
It sounds like you've been exploring various Continuous Integration (CI) tools for Python projects, and you've had a good experience with Hudson (now Jenkins). You're right that many CI systems can produce very visually appealing outputs, especially with the right plugins and configurations. Here are some additional C...
30,407
[ { "from": "human", "value": "This is a slightly.. vain question, but BuildBot's output isn't particularly nice to look at..\nFor example, compared to..\n\nphpUnderControl\nJenkins\n\nHudson\n\nCruiseControl.rb\n\n..and others, BuildBot looks rather.. archaic\nI'm currently playing with Hudson, but it is ver...
I thought I understood Java generics pretty well, but then I came across the following in java.lang.Enum: class Enum<E extends Enum<E>> Could someone explain how to interpret this type parameter? Bonus points for providing other examples of where a similar type parameter could be used.
The type parameter `E extends Enum<E>` in the declaration of the `Enum` class in Java is an example of a self-referential type parameter. This means that the type parameter `E` is constrained to be a subtype of `Enum<E>` itself. ### Understanding the Declaration - **`E`**: This is a type parameter that will be replac...
30,573
[ { "from": "human", "value": "I thought I understood Java generics pretty well, but then I came across the following in java.lang.Enum:\nclass Enum<E extends Enum<E>>\n\nCould someone explain how to interpret this type parameter? Bonus points for providing other examples of where a similar type parameter cou...
I'm VERY new to WPF, and still trying to wrap my head around binding in XAML. I'd like to populate a combobox with the values of a string collection in my.settings. I can do it in code like this: Me.ComboBox1.ItemsSource = My.Settings.MyCollectionOfStrings ...and it works. How can I do this in my XAML? is it possible? ...
Yes, it is possible to bind a ComboBox to a collection stored in your application settings in WPF using XAML. However, you'll need to expose your settings as a property in your view model or code-behind to enable data binding in XAML. Here's a step-by-step guide on how to do it: ### Step 1: Create a ViewModel It's a...
33,188
[ { "from": "human", "value": "I'm VERY new to WPF, and still trying to wrap my head around binding in XAML.\nI'd like to populate a combobox with the values of a string collection in my.settings. I can do it in code like this:\nMe.ComboBox1.ItemsSource = My.Settings.MyCollectionOfStrings\n...and it works.\nH...
I'm working on a small UML editor project, in Java, that I started a couple of months ago. After a few weeks, I got a working copy for a UML class diagram editor. But now, I'm redesigning it completely to support other types of diagrams, such a sequence, state, class, etc. This is done by implementing a graph construct...
Your approach to implementing an undo/redo functionality for your UML editor project is on the right track, and you’re correctly applying the Command and Memento patterns to manage the state of your diagram elements. However, let's address some of the concerns you raised and refine your design a bit for better maintain...
29,647
[ { "from": "human", "value": "I'm working on a small UML editor project, in Java, that I started a couple of months ago. After a few weeks, I got a working copy for a UML class diagram editor.\nBut now, I'm redesigning it completely to support other types of diagrams, such a sequence, state, class, etc. This...
A "static" query is one that remains the same at all times. For example, the "Tags" button on Stackoverflow, or the "7 days" button on Digg. In short, they always map to a specific database query, so you can create them at design time. But I am trying to figure out how to do "dynamic" queries where the user basically ...
Creating dynamic queries can indeed be tricky, especially when considering SQL injection risks and the complexity of combining multiple conditions that may span different tables. Here are some strategies to help you implement dynamic queries safely and effectively. ### 1. **Parameterized Queries** Even when construct...
31,943
[ { "from": "human", "value": "A \"static\" query is one that remains the same at all times. For example, the \"Tags\" button on Stackoverflow, or the \"7 days\" button on Digg. In short, they always map to a specific database query, so you can create them at design time. \nBut I am trying to figure out how t...
I have a PHP class that creates a PNG image on the fly and sends it to browser. PHP manual says that I need to make sure that imagedestroy function is called at end to release the memory. Now, if I weren't using a class, I would have some code like this: function shutdown_func() { global $img; if ($img) ...
In PHP, destructors (defined by the `__destruct()` method) are called automatically when an object is destroyed, which typically occurs when there are no more references to that object, or when the script execution ends. However, destructors are not guaranteed to run in all situations, especially when script execution ...
31,825
[ { "from": "human", "value": "I have a PHP class that creates a PNG image on the fly and sends it to browser. PHP manual says that I need to make sure that imagedestroy function is called at end to release the memory. Now, if I weren't using a class, I would have some code like this:\nfunction shutdown_func(...
I have a query like this: SELECT TABLE_NAME, COLUMN_NAME, IS_NULLABLE, DATA_TYPE FROM MY_DB.INFORMATION_SCHEMA.COLUMNS WHERE COLUMN_NAME = 'OrderId' ORDER BY TABLE_NAME GO The OrderId column is of user-defined data type. But DATA_TYPE in the query shows underlying system type (i.e. bigint). How can I show the user-def...
To retrieve the user-defined data type (UDT) name for columns in SQL Server, you need to join the `INFORMATION_SCHEMA.COLUMNS` with the `sys.columns` and `sys.types` system catalog views. This approach allows you to access additional metadata about the columns, including any user-defined types. Here's how you can modi...
31,188
[ { "from": "human", "value": "I have a query like this:\nSELECT TABLE_NAME, COLUMN_NAME, IS_NULLABLE, DATA_TYPE\nFROM MY_DB.INFORMATION_SCHEMA.COLUMNS\nWHERE COLUMN_NAME = 'OrderId'\nORDER BY TABLE_NAME\nGO\n\nThe OrderId column is of user-defined data type. But DATA_TYPE in the query shows underlying system...
I can think of plenty of good reasons to using it; however, what are the downsides to it? (Apart from buying another server) What are some advantages to using a daily build instead of it?
It sounds like you might be comparing the use of a particular software package, framework, or system (potentially related to development or server usage) with the use of daily builds. While you haven't specified exactly what "it" refers to, I can provide a general overview of potential downsides of using a stable relea...
32,040
[ { "from": "human", "value": "I can think of plenty of good reasons to using it; however, what are the downsides to it?\n(Apart from buying another server)\nWhat are some advantages to using a daily build instead of it?\n" }, { "from": "gpt", "value": "It sounds like you might be comparing the us...
I am trying to share DTO's from my datalayer assembly between the client and WCF service. This works using svcutil, but doesn't work when using VS2008. VS2008 generates it's own DTO objects whereas svcutil uses the shared data type. The svcutil parameters I used are: "C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin...
When you use Visual Studio 2008 to generate WCF client proxies, it may indeed call SvcUtil internally, but it also has its own logic for generating data types. This behavior can lead to a mismatch between the DTOs you define in your data layer and the DTOs that are generated by Visual Studio. Here are a few potential r...
33,472
[ { "from": "human", "value": "I am trying to share DTO's from my datalayer assembly between the client and WCF service. This works using svcutil, but doesn't work when using VS2008. VS2008 generates it's own DTO objects whereas svcutil uses the shared data type.\nThe svcutil parameters I used are:\n\"C:\\P...
First some background. I recently went for an interview and some of the questions asked to me was about Enterprise Content Management. Obviously, I did not have any experience and did not get the offer. But, it increased my curiosity and tried Internet to get some info on the topic. Wikipedia made me more confused wit...
Enterprise Content Management (ECM) can indeed be confusing, especially with the myriad of buzzwords and product-focused marketing materials. Let's break down the concept into simpler terms to help clarify your understanding. ### What is ECM? **Enterprise Content Management (ECM)** is a set of strategies, methods, an...
28,674
[ { "from": "human", "value": "First some background. I recently went for an interview and some of the questions asked to me was about Enterprise Content Management. Obviously, I did not have any experience and did not get the offer. \nBut, it increased my curiosity and tried Internet to get some info on the ...
I want to change item's height and width according to a slider, but as far as I know, there's no measureitem method as CListBox. How can I fix this? Thank you!
In a `CListBox`, you are correct that there is no built-in `MeasureItem` method like there is in `CListCtrl`. However, you can achieve a similar effect by handling the drawing of the items yourself, especially if you're using a custom control. To change an item's height and width dynamically based on a slider, you can...
31,569
[ { "from": "human", "value": "I want to change item's height and width according to a slider, but as far as I know, there's no measureitem method as CListBox. How can I fix this?\nThank you!\n" }, { "from": "gpt", "value": "In a `CListBox`, you are correct that there is no built-in `MeasureItem` ...
In which cases would you use which? Is there much of a difference? Which I typically used by persistence engines to store booleans?
In programming and data storage, the term "which" is often used in specific contexts, typically related to decision-making or selection among options. However, the way you have phrased your question seems to be asking about the use of certain terms or data types, especially in relation to persistence engines and boolea...
34,521
[ { "from": "human", "value": "In which cases would you use which? Is there much of a difference? Which I typically used by persistence engines to store booleans?\n" }, { "from": "gpt", "value": "In programming and data storage, the term \"which\" is often used in specific contexts, typically re...
Let's say I have defined a route: routes.Add(new Route("Users/{id}", new MvcRouteHandler()) { Defaults = new RouteValueDictionary(new { controller ="UserInfo", action = "UserInformation", id = ""}), }); So, how am I going to create a unit test to ensure t...
To create a unit test that verifies that the correct action method is called with the correct parameters when the URL `Users/123` is requested, you can use a framework such as NUnit or xUnit in conjunction with ASP.NET Core's routing features. ### Example of a Unit Test Here's an example of how you might write a unit...
26,197
[ { "from": "human", "value": "Let's say I have defined a route:\n routes.Add(new Route(\"Users/{id}\", new MvcRouteHandler())\n {\n Defaults = new RouteValueDictionary(new { controller =\"UserInfo\", action = \"UserInformation\",\n id = \"\"}),\n });...
When I have a child .ASCX control that needs to affect something in the parent page I'm not completely sure how I am supposed to handle the event flow in the case where I need to update something in the parent page. What I've always ended up doing is putting logic into the 'Pre_Render' event handler. Since this is proc...
In ASP.NET Web Forms, managing interactions between user controls (.ascx) and their parent pages can sometimes lead to the issues you're describing. Using the `PreRender` event to handle state changes from user controls is not typically the best practice, as it can lead to confusion about the intended purpose of that l...
30,251
[ { "from": "human", "value": "When I have a child .ASCX control that needs to affect something in the parent page I'm not completely sure how I am supposed to handle the event flow in the case where I need to update something in the parent page.\nWhat I've always ended up doing is putting logic into the 'Pre...
Is it only to allow logical grouping?
It seems like you're asking about a specific context, but your question is a bit vague. Logical grouping can refer to different concepts in various fields such as programming, data organization, or even project management. Could you please provide more details about what you mean by "logical grouping"? This will help m...
36,368
[ { "from": "human", "value": "Is it only to allow logical grouping?\n" }, { "from": "gpt", "value": "It seems like you're asking about a specific context, but your question is a bit vague. Logical grouping can refer to different concepts in various fields such as programming, data organization, o...
In my views.py, I'm building a list of two-tuples, where the second item in the tuple is another list, like this: [ Product_Type_1, [ product_1, product_2 ], Product_Type_2, [ product_3, product_4 ]] In plain old Python, I could iteration the list like this: for product_type, products in list: print product_type...
In Django templates, tuple unpacking as you would do in regular Python loops isn't directly supported. Instead, you should use a different approach to pass your data structure to the template. You can modify your data structure or use a dictionary for better access in the template. Here's how to handle your scenario: ...
32,391
[ { "from": "human", "value": "In my views.py, I'm building a list of two-tuples, where the second item in the tuple is another list, like this:\n[ Product_Type_1, [ product_1, product_2 ],\n Product_Type_2, [ product_3, product_4 ]]\n\nIn plain old Python, I could iteration the list like this:\nfor product_...
I have a win form, have some controls. I want to handle all keypress in the form keypress event. Is it possible without writing keypress for all the controls?
Yes, you can handle all keypress events for a WinForms application in a centralized manner by subscribing to the `KeyPress` event for the form itself and forwarding it to the relevant controls. This way, you won't need to write separate `KeyPress` event handlers for each control. Here’s how to do it: 1. Set the `KeyP...
34,713
[ { "from": "human", "value": "I have a win form, have some controls. I want to handle all keypress in the form keypress event. Is it possible without writing keypress for all the controls?\n" }, { "from": "gpt", "value": "Yes, you can handle all keypress events for a WinForms application in a cen...
At Java SE Downloads I may for example download: Java SE Runtime Environment (JRE) 6 Update 10 Java SE Development Kit (JDK) 6 Update 10 But I can't find any source code for update 10. If I click Java SE 6 JDK Source Code on the Java SE Downloads page it seems I can only download source for "JDK 6u3 Source". Where ca...
The Java SE Development Kit (JDK) includes source code for the version you are using, but sometimes the sources available for download may not be fully aligned with the latest updates due to the way Oracle (or previously Sun Microsystems) has distributed them. In general, for each update of the JDK, Oracle provides th...
32,958
[ { "from": "human", "value": "At Java SE Downloads I may for example download:\n\nJava SE Runtime Environment (JRE) 6 Update 10\nJava SE Development Kit (JDK) 6 Update 10\n\nBut I can't find any source code for update 10. If I click Java SE 6 JDK Source Code on the Java SE Downloads page it seems I can only ...
I'm investigating SUDS as a SOAP client for python. I want to inspect the methods available from a specified service, and the types required by a specified method. The aim is to generate a user interface, allowing users to select a method, then fill in values in a dynamically generated form. I can get some information...
To inspect the methods available from a specified SOAP service and the types required by a specific method using the `zeep` library in Python, you can follow these steps. I'll provide some sample code to help you parse the methods and their respective input types. ### Step 1: Install the Zeep Library If you haven't al...
31,327
[ { "from": "human", "value": "I'm investigating SUDS as a SOAP client for python. I want to inspect the methods available from a specified service, and the types required by a specified method.\nThe aim is to generate a user interface, allowing users to select a method, then fill in values in a dynamically ...
Is there an easy way to tell Windows not to display popups on a headless server machine? Currently occasional application popups are causing my app to freeze because no one is available to press 'Okay' on the console. Just logging to the eventlog would be more than sufficient.
On a headless server, managing popups from applications can indeed be a challenge. Here are some strategies to prevent popups from blocking your applications: ### 1. **Modify Application Settings:** Some applications provide options to suppress popups. Check the configuration or settings for the application that's cau...
31,709
[ { "from": "human", "value": "Is there an easy way to tell Windows not to display popups on a headless server machine?\nCurrently occasional application popups are causing my app to freeze because no one is available to press 'Okay' on the console. Just logging to the eventlog would be more than sufficient.\...
We have a Win32 application that hosts the .NET runtime and opens up .NET managed forms from the Win32 portion of the application. These windows are always opened as modal windows. On some machines, when these windows are closed, the Win32 window that lies behind does not get focus, but gets sent behind Word, Outlook, ...
The issue you are encountering with modal windows in your Win32 application that hosts the .NET runtime seems to stem from a combination of focus management and the way Windows handles window Z-ordering and modality across different themes or configurations. Here are some suggestions to help troubleshoot and potentiall...
31,984
[ { "from": "human", "value": "We have a Win32 application that hosts the .NET runtime and opens up .NET managed forms from the Win32 portion of the application.\nThese windows are always opened as modal windows.\nOn some machines, when these windows are closed, the Win32 window that lies behind does not get ...
Imagine that you want to develop a non-trivial end-user desktop (not web) application in Python. What is the best way to structure the project's folder hierarchy? Desirable features are ease of maintenance, IDE-friendliness, suitability for source control branching/merging, and easy generation of install packages. In p...
When structuring a Python desktop application, it's essential to create a folder hierarchy that enhances maintainability, usability with IDEs, supports source control practices, and facilitates packaging. Below is a suggested folder structure that meets these criteria: ``` my_app/ ├── src/ # Sour...
27,439
[ { "from": "human", "value": "Imagine that you want to develop a non-trivial end-user desktop (not web) application in Python. What is the best way to structure the project's folder hierarchy?\nDesirable features are ease of maintenance, IDE-friendliness, suitability for source control branching/merging, and...
I am using C# 2.0 with Nunit Test. I have some object that needs to be serialized. These objects are quite complex (inheritance at different levels and contains a lot of objects, events and delegates). How can I create a Unit Test to be sure that my object is safely serializable?
To ensure that your objects are safely serializable in C# (especially with complex structures), you can create unit tests that serialize and deserialize the objects, then compare the original and deserialized objects for equality. Here’s a step-by-step guide on how you can achieve this using NUnit. ### Step 1: Define ...
30,853
[ { "from": "human", "value": "I am using C# 2.0 with Nunit Test. I have some object that needs to be serialized. These objects are quite complex (inheritance at different levels and contains a lot of objects, events and delegates).\nHow can I create a Unit Test to be sure that my object is safely serializabl...
I'm experimenting with a personal finance application, and I'm thinking about what approach to take to update running balances when entering a transaction in an account. Currently the way I'm using involves retrieving all records more recent than the inserted/modified one, and go one by one incrementing their running b...
You're on the right track in thinking about how to efficiently update running balances in your personal finance application. It’s common to face the challenge of ensuring that running balances remain accurate after inserting new transactions. ### Approach for Updating Running Balances As you've described, the simples...
24,942
[ { "from": "human", "value": "I'm experimenting with a personal finance application, and I'm thinking about what approach to take to update running balances when entering a transaction in an account.\nCurrently the way I'm using involves retrieving all records more recent than the inserted/modified one, and ...
Are there any good books for a relatively new but not totally new *nix user to get a bit more in depth knowledge (so no "Linux for dummies")? For the most part, I'm not looking for something to read through from start to finish. Rather, I'd rather have something that I can pick up and read in chunks when I need to k...
Here are some books that can deepen your understanding of Unix-like systems and are suitable for your needs: ### Command Line Administration 1. **"The Linux Command Line: A Complete Introduction" by William E. Shotts, Jr.** - This book provides a comprehensive introduction to the command line interface and is suita...
32,107
[ { "from": "human", "value": "Are there any good books for a relatively new but not totally new *nix user to get a bit more in depth knowledge (so no \"Linux for dummies\")? For the most part, I'm not looking for something to read through from start to finish. Rather, I'd rather have something that I can ...
My client has an old MS SQL 2000 database that uses varchar(50) fields to store names. He tried to use this database to capture some data (via a web form). Some of the form-fillers are from other countries, and the varchar fields went nutty when some of these folks entered their names. Is it possible to recover the dat...
The issues you're experiencing with the varchar fields in the MS SQL 2000 database stem from a character encoding mismatch. It appears that the web form is using UTF-8 encoding (as indicated by the `<meta>` tag), but the database fields defined as `varchar` can only store single-byte character representations, which ca...
31,214
[ { "from": "human", "value": "My client has an old MS SQL 2000 database that uses varchar(50) fields to store names. He tried to use this database to capture some data (via a web form). Some of the form-fillers are from other countries, and the varchar fields went nutty when some of these folks entered their...
(This question specifically in C#, but applies generally to .NET) I have a largish application that has a fairly good design, and is broken into major sections over interfaces (this was done to assist parallel development). We now have a primary set of concrete classes that implement the required interfaces, but we al...
To achieve a configuration-based approach for choosing concrete implementations of interfaces in your .NET application, you can use the Dependency Injection (DI) pattern along with a configuration library. Here’s a step-by-step guide on how to implement this solution. ### 1. Define your configuration structure Start ...
27,819
[ { "from": "human", "value": "(This question specifically in C#, but applies generally to .NET) \nI have a largish application that has a fairly good design, and is broken into major sections over interfaces (this was done to assist parallel development).\nWe now have a primary set of concrete classes that i...
I've spent a good part of the day searching, writing and finally scrapping a script that I can use with my Inno Setup install script that will download and install the appropriate .NET 2.0 Framework if needed. There are definitely a number of examples out there, but they: Want to install Internet Explorer if needed wh...
It sounds like you are trying to create an installer with Inno Setup that addresses the requirements for installing the .NET Framework 2.0 in a robust way. Here’s a general approach to help you handle this: ### Steps to Create the Inno Setup Script 1. **Check for Existing .NET Framework Installation**: You need to...
23,088
[ { "from": "human", "value": "I've spent a good part of the day searching, writing and finally scrapping a script that I can use with my Inno Setup install script that will download and install the appropriate .NET 2.0 Framework if needed.\nThere are definitely a number of examples out there, but they:\n\nWa...
I have a loop that reads each line in a file using getline(): istream is; string line; while (!getline(is, line).eof()) { // ... } I noticed that calling getline() like this also seems to work: while (getline(is, line)) What's going on here? getline() returns a stream reference. Is it being converted to a pointer...
The behavior you're observing in the two forms of the `getline()` usage relates to how the `getline()` function interacts with the state of the stream. Let's clarify both versions of the loop you posted. ### Version 1: ```cpp while (!getline(is, line).eof()) { // ... } ``` In this version, you call `getline(is, l...
34,764
[ { "from": "human", "value": "I have a loop that reads each line in a file using getline():\nistream is;\nstring line;\nwhile (!getline(is, line).eof())\n{\n // ...\n}\n\nI noticed that calling getline() like this also seems to work:\nwhile (getline(is, line))\n\nWhat's going on here? getline() returns a ...
i know this should be db 101, but its just not as clear as it can be for me. I am using SQL2005 express and i want to copy data from databaseA to databaseB. DatabaseB already contains existing data - it may even contain data with pk's that have changed or dont exist - for example: DataBase A pk1 = peaches pk2 = apple...
Migrating data between databases, especially when dealing with primary keys (PKs), foreign keys (FKs), and existing records, can indeed be challenging. Below are a few approaches you can consider for your scenario of copying data from Database A to Database B in SQL Server 2005 Express. ### 1. SQL Scripts You can wri...
30,572
[ { "from": "human", "value": "i know this should be db 101, but its just not as clear as it can be for me. I am using SQL2005 express and i want to copy data from databaseA to databaseB. DatabaseB already contains existing data - it may even contain data with pk's that have changed or dont exist - for exam...
Do you know any applications to synchronize two databases - during development sometimes it's required to add one or two table rows or new table or column. Usually I write every sql statement in some file and during uploading path I evecute those lines on my production database (earlier backing it up). I work with myS...
Synchronizing databases, especially in a development and production environment, can be a complex task. There are several approaches and tools that can help automate this process for both MySQL and PostgreSQL. Here are some practices and tools that you might find useful: ### Practices 1. **Version Control for Databas...
27,233
[ { "from": "human", "value": "Do you know any applications to synchronize two databases - during development sometimes it's required to add one or two table rows or new table or column.\nUsually I write every sql statement in some file and during uploading path I evecute those lines on my production database...
I had experience with struts, and briefly experimented with tiles. I know that within a layout each tile is a separate jsp page. Suppose I hit a button on each of four tiles, and each tile was (indirectly) calling a different web service. Would the tiles refresh asynchronously as results came in at different times?...
In a traditional Struts and Tiles setup, the rendering of JSP pages (including tiles) occurs on the server side, and once the server processes the request and generates the response, the entire HTML page is sent back to the client. This means that if you click a button on each of the tiles that causes a request to diff...
34,643
[ { "from": "human", "value": "I had experience with struts, and briefly experimented with tiles. I know that within a layout each tile is a separate jsp page. Suppose I hit a button on each of four tiles, and each tile was (indirectly) calling a different web service. Would the tiles refresh asynchronous...
I know you can do it for jQuery using jQuery.noConflict. Is there a way to do something similar with Dojo?
Yes, Dojo has a way to manage its global namespace, similar to jQuery's `noConflict`. In Dojo, you can achieve a similar effect by using the `dojo.require` and `dojo.addOnLoad` functions to load and manage your modules in a scoped way. However, if you want to avoid conflicts with global variables, you can encapsulate y...
29,242
[ { "from": "human", "value": "I know you can do it for jQuery using jQuery.noConflict. Is there a way to do something similar with Dojo?\n" }, { "from": "gpt", "value": "Yes, Dojo has a way to manage its global namespace, similar to jQuery's `noConflict`. In Dojo, you can achieve a similar effec...
How would I reset the primary key counter on a sql table and update each row with a new primary key?
Resetting the primary key counter and updating each row with a new primary key in a SQL table can vary depending on the SQL database system you are using (e.g., MySQL, PostgreSQL, SQL Server, etc.). Below are generalized steps and a sample approach that should work on most SQL databases. Please ensure you back up your ...
23,824
[ { "from": "human", "value": "How would I reset the primary key counter on a sql table and update each row with a new primary key?\n" }, { "from": "gpt", "value": "Resetting the primary key counter and updating each row with a new primary key in a SQL table can vary depending on the SQL database ...
If I have class names such as "left", "right", "clear" and xhtml like <a href="index.php" class="right continueLink">Continue</a> With CSS like .right { float: right; } I know it's not a semantic name, but it does make things much easier sometimes. Anyway, what are your thoughts?
Using class names like "left," "right," and "clear" can indeed simplify the development process when it comes to layout, especially in a context like CSS where the visual design often requires such positioning. However, there are several factors to consider when deciding whether to use these types of class names: ### ...
32,979
[ { "from": "human", "value": "If I have class names such as \"left\", \"right\", \"clear\" and xhtml like\n<a href=\"index.php\" class=\"right continueLink\">Continue</a>\n\nWith CSS like\n.right {\nfloat: right;\n}\n\nI know it's not a semantic name, but it does make things much easier sometimes.\nAnyway, w...
I have a file in cvs that has Sticky Options set to -kk. This replaces all cvs keywords with just the keyword name to facilitate diffs. For example, $Author: Alex B$ becomes $Author$. How do I disable the -kk behavior and get back to "normal" cvs where keywords are substituted in? I've tried rm'ing the file an...
If you want to disable the sticky options that you’ve set in CVS (like `-kk`), you can use the `cvs update` command to reset them back to their default behavior. Here's how to do that: 1. **Update with the default options**: Use the `-kk` option in the update command to remove the sticky options. This will reset your ...
35,199
[ { "from": "human", "value": "I have a file in cvs that has Sticky Options set to -kk. This replaces all cvs keywords with just the keyword name to facilitate diffs. For example, $Author: Alex B$ becomes $Author$. \nHow do I disable the -kk behavior and get back to \"normal\" cvs where keywords are sub...
once you have a commit that contains a submodule object, you pretty much cannot get git-svn to commit past it. Any ideas, workarounds, anything that is not "don't use submodules with git-svn"? So far the answer seems to be a big NO. Is there any way to at least allow existing git commits containing submodule data to be...
Using `git-svn` with submodules can be tricky, as you've discovered. While there isn't a perfect solution that allows you to keep submodules intact while using `git-svn`, you can indeed work around the issue by rewriting the history to remove submodule references before pushing to SVN. Here's a step-by-step guide on ho...
29,489
[ { "from": "human", "value": "once you have a commit that contains a submodule object, you pretty much cannot get git-svn to commit past it.\nAny ideas, workarounds, anything that is not \"don't use submodules with git-svn\"?\nSo far the answer seems to be a big NO.\nIs there any way to at least allow existi...
I am writing a macro for Visual studio that will generate some code. I would like for the macro to generate for both C# and VB, is there a way to determine what language is being used in the active (current) document?
Yes, you can determine the language of the active document in Visual Studio by using the DTE (Development Tools Environment) object model provided by Visual Studio's automation model. You can access the active document and then check its language. Here's a basic example of how you might structure your macro to check t...
34,395
[ { "from": "human", "value": "I am writing a macro for Visual studio that will generate some code.\nI would like for the macro to generate for both C# and VB, is there a way to determine what language is being used in the active (current) document?\n" }, { "from": "gpt", "value": "Yes, you can de...
I have a new VPS server, and I'm trying to get it to connect to another server at the same ISP. When I connect via mysql's command line tool, the connection is very fast. When I use PHP to connect to the remote DB, the connection time may take up to 5 seconds. Queries after this are executed quickly. This is not limi...
It sounds like you are experiencing a delay when your PHP scripts initiate connections, despite the actual queries and subsequent operations being fast. This issue could be related to several configuration options or environmental factors in your PHP setup. Here are some potential areas to investigate: 1. **PHP Config...
30,768
[ { "from": "human", "value": "I have a new VPS server, and I'm trying to get it to connect to another server at the same ISP. When I connect via mysql's command line tool, the connection is very fast.\nWhen I use PHP to connect to the remote DB, the connection time may take up to 5 seconds. Queries after t...
I'm trying to print to Dot Matrix printers (various models) out of C#, currently I'm using Win32 API (you can find alot of examples online) calls to send escape codes directly to the printer out of my C# application. This works great, but... My problem is because I'm generating the escape codes and not relying on the w...
Printing to Dot Matrix printers while maintaining precise alignment can indeed be challenging, especially when transitioning from direct escape codes to using higher-level printing abstractions like GDI+. Here are some strategies you could consider to achieve formatted printing without relying on direct escape codes: ...
28,719
[ { "from": "human", "value": "I'm trying to print to Dot Matrix printers (various models) out of C#, currently I'm using Win32 API (you can find alot of examples online) calls to send escape codes directly to the printer out of my C# application. This works great, but...\nMy problem is because I'm generating...
I am just beginning to write an application. Part of what it needs to do is to run queries on a database of nutritional information. What I have is the USDA's SR21 Datasets in the form of flat delimited ASCII files. What I need is advice. I am looking for the best way to import this data into the app and have it easily...
When working with nutritional data and user-specific persistent storage in a .NET application, you have several options to consider for importing, storing, and querying the data. Here's a structured approach to help you design your application effectively: ### Step 1: Importing Data 1. **Read ASCII Files**: First, yo...
29,157
[ { "from": "human", "value": "I am just beginning to write an application. Part of what it needs to do is to run queries on a database of nutritional information. What I have is the USDA's SR21 Datasets in the form of flat delimited ASCII files.\nWhat I need is advice. I am looking for the best way to import...
I have a site, foo.com, that makes ajax requests to bar.foo.com. Will this work. Also, if foo is a secure connection, https, does bar.foo.com need to be https too? Can these two sites use different certificates?
Yes, your site `foo.com` can make AJAX requests to `bar.foo.com`, as they are both subdomains of the same domain. However, you need to be mindful of cross-origin resource sharing (CORS) policies that may be in place, which could prevent these requests if not configured properly. ### Regarding HTTPS: 1. **Secure Conne...
35,583
[ { "from": "human", "value": "I have a site, foo.com, that makes ajax requests to bar.foo.com. Will this work.\nAlso, if foo is a secure connection, https, does bar.foo.com need to be https too? Can these two sites use different certificates?\n" }, { "from": "gpt", "value": "Yes, your site `foo.c...