instruction
stringlengths
14
27.6k
completion
stringlengths
3
38.3k
__original_row_idx
int64
0
50k
conversations
listlengths
2
2
I am trying to store an xml value in my app.config file. The app.config does not like this and I cannot use the <![CDATA[ construct to ignore the XML'ness of my value. Is there a way to do it? Value example:<FieldRef Name='LinkfileName' Nullable='True'/><FieldRef Name='Web' Nullable='True'/>
Storing XML values in an `app.config` file can indeed be tricky, especially if the XML contains special characters or is formatted in a way that makes it incompatible with XML syntax. Since the `app.config` file uses XML format, certain characters like `<`, `>`, and `&` must be escaped. If you cannot use `<![CDATA[` b...
15,957
[ { "from": "human", "value": "I am trying to store an xml value in my app.config file. \nThe app.config does not like this and I cannot use the <![CDATA[ construct to ignore the XML'ness of my value.\nIs there a way to do it?\nValue example:<FieldRef Name='LinkfileName' Nullable='True'/><FieldRef Name='Web' ...
I'm tidying up some older code that uses 'magic numbers' all over the place to set hardware registers, and I would like to use constants instead of these numbers to make the code somewhat more expressive (in fact they will map to the names/values used to document the registers). However, I'm concerned that with the vol...
In a C environment, you can achieve compile-time assertions using static assertions available in C11 or by using preprocessor checks in older C standards. ### Using Static Assertions in C11 If your compiler supports C11, you can use the `static_assert` feature. Here's how you can do that: ```c #include <assert.h> /...
15,541
[ { "from": "human", "value": "I'm tidying up some older code that uses 'magic numbers' all over the place to set hardware registers, and I would like to use constants instead of these numbers to make the code somewhat more expressive (in fact they will map to the names/values used to document the registers)....
When you paste the following URL into IE: http://technet.microsoft.com/en-us/sysinternals/bb897434.aspx, the link on the right of the page cleanly says "Download Zoomit (77 KB)". If you paste the link into an Office document (Word, Excel, PowerPoint -- tested using Office 2003), and activate the link from the document...
The issue you're encountering is related to how different applications interpret character encodings, especially when it comes to non-breaking spaces (`&nbsp;`). This can lead to unexpected characters being displayed when content is copied or linked across different environments, such as from a web page to an Office do...
16,854
[ { "from": "human", "value": "When you paste the following URL into IE: http://technet.microsoft.com/en-us/sysinternals/bb897434.aspx, the link on the right of the page cleanly says \"Download Zoomit (77 KB)\". If you paste the link into an Office document (Word, Excel, PowerPoint -- tested using Office 200...
I'm working on a something related to roughset right now. The project uses alot of sets operation and manipulation. I've been using string operations as a stop gap measure for set operation. It has worked fine until we need to process some ungodly amount of data ( 500,000 records with about 40+ columns each ) through t...
In .NET 3.5, there still isn't a native set data structure specifically designated for set operations like you would find in some other languages (e.g., Python's `set`). However, the .NET framework includes collections that can be used to perform set-like operations, such as `HashSet<T>`, which was introduced in .NET 3...
15,160
[ { "from": "human", "value": "I'm working on a something related to roughset right now. The project uses alot of sets operation and manipulation. I've been using string operations as a stop gap measure for set operation. It has worked fine until we need to process some ungodly amount of data ( 500,000 record...
My colleagues and I have tried to build a project containing several thousand classes , but we're getting a LNK1102 error ( Linker out of memory ) . I've seen several tips on the internet , such as increasing the virtual memory . We tried but this didn't help . We've also seen some as enabling different warning levels ...
The LNK1102 error ("Linker out of memory") is a common issue when working on large projects with many classes. Here are several strategies you can try to resolve the problem: ### 1. Increase Virtual Memory Since you mentioned you've already attempted this, ensure you have allocated sufficient virtual memory and that y...
15,328
[ { "from": "human", "value": "My colleagues and I have tried to build a project containing several thousand classes , but we're getting a LNK1102 error ( Linker out of memory ) . I've seen several tips on the internet , such as increasing the virtual memory . We tried but this didn't help . We've also seen s...
I am writing a C program in Linux. Commands like execv() require a path in the form of a C string. Is there a command that will return the current path in the form of a C-style string?
Yes, in C, you can obtain the current working directory as a C string using the `getcwd()` function from the `<unistd.h>` header. This function retrieves the current working directory and places it into a buffer you provide. Here's how you can use it: ```c #include <stdio.h> #include <unistd.h> #include <limits.h> // ...
14,396
[ { "from": "human", "value": "I am writing a C program in Linux. Commands like execv() require a path in the form of a C string. Is there a command that will return the current path in the form of a C-style string?\n" }, { "from": "gpt", "value": "Yes, in C, you can obtain the current working d...
I have this DataTable that has a varying set of columns except for a sequence number. | Sequence | Value | Tax | Duty | Total | Any number of columns should be accepted with unique column names. To display that table, I need to use an ObjectDataSource mapped to a presenter class with a Select method. class Presenter {...
Hi Carlos, The scenario you're facing is quite common when dealing with dynamically structured data. Since you can't guarantee the number of columns ahead of time, you need a more flexible approach for updating the `DataTable`. Below are a couple of suggested solutions: ### Option 1: Use a Dictionary for Update Param...
16,013
[ { "from": "human", "value": "I have this DataTable that has a varying set of columns except for a sequence number.\n| Sequence | Value | Tax | Duty | Total |\nAny number of columns should be accepted with unique column names.\nTo display that table, I need to use an ObjectDataSource mapped to a presenter cl...
I've an issue with the same piece of code running fine on my live website but not on my local development server. I've an Ajax function that updates a div. The following code works on the live site: self.xmlHttpReq.open("POST", PageURL, true); self.xmlHttpReq.setRequestHeader("Content-type", "application/x-www-form-url...
The issue you're encountering seems to be related to differences in how the two versions of IIS handle certain HTTP headers, particularly the `Content-length` header. Here are some considerations that might help you debug and resolve the issue: 1. **Content-Length Header**: The `Content-length` header is typically set...
14,566
[ { "from": "human", "value": "I've an issue with the same piece of code running fine on my live website but not on my local development server.\nI've an Ajax function that updates a div. The following code works on the live site:\nself.xmlHttpReq.open(\"POST\", PageURL, true);\nself.xmlHttpReq.setRequestHead...
I have used IPC in Win32 code a while ago - critical sections, events, and semaphores. How is the scene in the .NET environment? Are there any tutorial explaining all available options and when to use and why?
In the .NET environment, inter-process communication (IPC) can be accomplished using various mechanisms that are built into the framework. Here are some of the most commonly used IPC options in .NET, along with their use cases: ### 1. **Named Pipes** Named pipes allow for communication between processes, either on the...
14,940
[ { "from": "human", "value": "I have used IPC in Win32 code a while ago - critical sections, events, and semaphores.\nHow is the scene in the .NET environment?\nAre there any tutorial explaining all available options and when to use and why?\n" }, { "from": "gpt", "value": "In the .NET environmen...
How do you select a datagridview row on a right-click?
To select a DataGridView row on a right-click in a WinForms application using C#, you can handle the `MouseDown` event of the DataGridView. Here's how you can do it: 1. Subscribe to the `MouseDown` event of your DataGridView. 2. In the event handler, check if the mouse button pressed is the right mouse button. 3. Use ...
16,710
[ { "from": "human", "value": "How do you select a datagridview row on a right-click?\n" }, { "from": "gpt", "value": "To select a DataGridView row on a right-click in a WinForms application using C#, you can handle the `MouseDown` event of the DataGridView. Here's how you can do it:\n\n1. Subscri...
I'm trying to find a good way to print leading 0, such as 01001 for a ZIP Code. While the number would be stored as 1001, what is a good way to do it? I thought of using either case statements or if to figure out how many digits the number is and then convert it to an char array with extra 0's for printing, but I can't...
You can easily achieve the desired output using the `printf` format syntax in C. The format specifier for printing integers can include a width and a leading zero, which will automatically pad the number with zeros. In your case, if you want to print a ZIP code (which is typically 5 digits), you can use the `%05d` for...
19,034
[ { "from": "human", "value": "I'm trying to find a good way to print leading 0, such as 01001 for a ZIP Code. While the number would be stored as 1001, what is a good way to do it?\nI thought of using either case statements or if to figure out how many digits the number is and then convert it to an char arra...
I have an XML document: var xml:XML = new XML(<rootNode> <head> <meta name="template" content="Default" /> </head> <mainSection> <itemList> <item> <video src={this.vid...
It sounds like you are running into an issue with the way you're trying to insert the new node into the XML structure. When you're specifying `contentNode` as `new XML(xml.mainSection.itemList.item);`, you're creating an XML instance that only references the first `<item>` node under `<itemList>`. This doesn't allow yo...
17,470
[ { "from": "human", "value": "I have an XML document:\nvar xml:XML = new XML(<rootNode> \n <head> \n <meta name=\"template\" content=\"Default\" />\n </head>\n <mainSection>\n <itemList>\n <it...
I'm using Spring.net with NHiberante (HibernateTemplate) to implement my DAO's. I also have some integration tests, that extend from 'AbstractTransactionalDbProviderSpringContextTests '. DI is working fine, and all test pass BUT sometimes they pass even when they shouldn't. For example if my hbm.xml files have an erro...
The issue you're experiencing is due to the way Hibernate handles mapping configuration errors in your Spring integration tests. Some errors, like a missing table, are detected at the time of session factory initialization, while others, like a missing column in a mapping, may not be detected until runtime when you act...
9,926
[ { "from": "human", "value": "I'm using Spring.net with NHiberante (HibernateTemplate) to implement my DAO's.\nI also have some integration tests, that extend from 'AbstractTransactionalDbProviderSpringContextTests '.\nDI is working fine, and all test pass BUT sometimes they pass even when they shouldn't. \n...
Why are some keywords highlighted blue and some gray in SQL Server Management Studio? And why does the UNION keyword highlight as gray when connected to a SQL Server 2000 database, but blue when connected to a SQL Server 2005 database?
In SQL Server Management Studio (SSMS), syntax highlighting is used to visually distinguish between different elements of SQL code, such as keywords, functions, data types, and identifiers. The colors assigned to these elements can vary depending on the version of SQL Server you are connected to and the specific contex...
14,871
[ { "from": "human", "value": "Why are some keywords highlighted blue and some gray in SQL Server Management Studio?\nAnd why does the UNION keyword highlight as gray when connected to a SQL Server 2000 database, but blue when connected to a SQL Server 2005 database?\n" }, { "from": "gpt", "value"...
I mean, this is Sakai, the open source project of a learning management system. But, really I'm clueless trying to estimate the hidden costs in one implementation project (on the technology side, not the pedagogy-stuff) in a small-medium scale institution. Deployment (1 engineer two or three months, with experience in...
Estimating the Total Cost of Ownership (TCO) for an open-source Learning Management System (LMS) implementation, such as Sakai or Moodle, requires considering several components beyond just initial deployment costs. Here’s a comprehensive breakdown of what to consider: ### 1. **Initial Costs** - **Deployment Costs*...
9,960
[ { "from": "human", "value": "I mean, this is Sakai, the open source project of a learning management system. But, really I'm clueless trying to estimate the hidden costs in one implementation project (on the technology side, not the pedagogy-stuff) in a small-medium scale institution.\n\nDeployment (1 engin...
This is the text from MSDN comment: "According to the book ATL Internals (2ed) the use of attributes is deprecated and should not be used in new ATL projects." But WHY?!!
The deprecation of attributes in ATL (Active Template Library) projects is largely due to several reasons: 1. **Complexity**: Attributes introduced additional complexity to the coding process. While they aimed to simplify COM (Component Object Model) programming by abstracting certain boilerplate code, they also added...
19,037
[ { "from": "human", "value": "This is the text from MSDN comment: \"According to the book ATL Internals (2ed) the use of attributes is deprecated and should not be used in new ATL projects.\"\nBut WHY?!! \n" }, { "from": "gpt", "value": "The deprecation of attributes in ATL (Active Template Libra...
I'm used to doing basic password protection for Apache w/ the following method in Apache config files: AuthType Basic AuthName "By Invitation Only" AuthUserFile /path/to/.htpasswd Require valid-user However, I've been asked to put some protection on a subdirectory of a site running ColdFusion on top of IIS6, ...
To password protect a subdirectory in an IIS6 environment, you can use Basic Authentication. Here's how you can set it up for your ColdFusion application running on IIS6: ### Step 1: Enable Basic Authentication 1. **Open IIS Manager**: - Go to `Start` -> `Administrative Tools` -> `Internet Information Services (II...
15,368
[ { "from": "human", "value": "I'm used to doing basic password protection for Apache w/ the following method in Apache config files:\n\nAuthType Basic\n AuthName \"By Invitation Only\"\n AuthUserFile /path/to/.htpasswd\n Require valid-user \n\nHowever, I've been asked to put some protection on a subdirec...
I want to display the TIME field from my mysql table on my website, but rather than showing 21:00:00 etc I want to show 8:00 PM. I need a function/code to do this or even any pointers in the right direction. Will mark the first reply with some code as the correct reply.
To display the TIME field from your MySQL table in the format of `8:00 PM`, you can format the time using PHP after fetching it from the database. Here's a step-by-step guide along with a code example. ### Step-by-step guide: 1. **Fetch the TIME data from the MySQL database**. 2. **Use PHP's DateTime class** to forma...
16,301
[ { "from": "human", "value": "I want to display the TIME field from my mysql table on my website, but rather than showing 21:00:00 etc I want to show 8:00 PM. I need a function/code to do this or even any pointers in the right direction. Will mark the first reply with some code as the correct reply.\n" }, ...
From my understanding of the CSS spec, a table above or below a paragraph should collapse vertical margins with it. However, that's not happening here: table { margin: 100px; border: solid red 2px; } p { margin: 100px } <table> <tr> <td> This is a one-celled table with 100px margin all arou...
In CSS, margin collapsing is a behavior that affects certain types of elements under specific conditions. The rules of margin collapsing can sometimes lead to confusion, especially with block containers like `<p>` and `<table>`. Here’s a brief overview of how margin collapsing works and why the behavior you observed i...
16,765
[ { "from": "human", "value": "From my understanding of the CSS spec, a table above or below a paragraph should collapse vertical margins with it. However, that's not happening here:\n\n\ntable {\r\n margin: 100px;\r\n border: solid red 2px;\r\n}\r\np {\r\n margin: 100px\r\n}\n<table>\r\n <tr>\r\n <td>...
Does anyone know if there is a c# Console app, similar to the Python or Ruby console? I know the whole "Compiled versus Interpreted" difference, but with C#'s reflection power I think it could be done. UPDATE Well, it only took about 200 lines, but I wrote a simple one...It works a lot like osql. You enter commands and...
It sounds like you've made great progress with your project, SharpConsole! While C# is primarily a compiled language, there are indeed ways to create interactive console applications that mimic the behavior of interpreted languages like Python and Ruby. If you're looking for a C# REPL (Read-Eval-Print Loop) similar to...
14,550
[ { "from": "human", "value": "Does anyone know if there is a c# Console app, similar to the Python or Ruby console? I know the whole \"Compiled versus Interpreted\" difference, but with C#'s reflection power I think it could be done.\nUPDATE\nWell, it only took about 200 lines, but I wrote a simple one...It ...
I find my self having a repeater control which is being databound to an xml document. My client is now requesting that the Textbox's which are being repeater can be either a Textbox or a Checkbox. I cannot seem to find an easyway to essentially do the following: if ((System.Xml.XmlNode)e.Item.DataItem.Attributes["type"...
To achieve the desired functionality of conditionally rendering either a `TextBox` or a `CheckBox` within an `asp:Repeater`, you can leverage the `ItemDataBound` event. In this event, you can determine the type of control to create based on the attributes in your XML data. Below is a step-by-step approach to implement ...
11,233
[ { "from": "human", "value": "I find my self having a repeater control which is being databound to an xml document. My client is now requesting that the Textbox's which are being repeater can be either a Textbox or a Checkbox.\nI cannot seem to find an easyway to essentially do the following:\nif ((System.Xm...
I have a Virtual Machine in Virtual PC 2007. To start it from the desktop, I have the following command in a batch file: "c:\program files\Microsoft Virtual PC\Virtual PC.exe" -pc "MY-PC" -launch But that leaves a dos prompt on the host machine until the virtual machine shuts down, and I exit out of the Virtual PC con...
Yes, you can use the `START` command to launch a program with multiple command-line arguments, but you need to format it correctly. The syntax for the `START` command requires that if you provide a title for the new window (which is what the first argument after `START` is interpreted as), you should enclose it in quot...
19,845
[ { "from": "human", "value": "I have a Virtual Machine in Virtual PC 2007.\nTo start it from the desktop, I have the following command in a batch file:\n\"c:\\program files\\Microsoft Virtual PC\\Virtual PC.exe\" -pc \"MY-PC\" -launch\n\nBut that leaves a dos prompt on the host machine until the virtual mach...
A good while ago, I read an article by the creator of viemu, clearing up a lot of the misconceptions about vi, as well as explaining why it's a good idea (and why it's been very popular for the last 30 years+). The same guy also has a great set of graphical cheat sheets that teach the basics a few bits at a time. I'm c...
It sounds like you're on a great path to embracing Vim! Many users face the same challenge when transitioning to Vim from more traditional editors, but here are some strategies to help ease the learning curve: ### 1. **Start Small** - **Basic Commands:** Familiarize yourself with the most common commands first (e.g...
13,721
[ { "from": "human", "value": "A good while ago, I read an article by the creator of viemu, clearing up a lot of the misconceptions about vi, as well as explaining why it's a good idea (and why it's been very popular for the last 30 years+). The same guy also has a great set of graphical cheat sheets that tea...
I'm looking for a corporate collaboration tool to help bring together my team, who are geographically and organisationally distributed. Some team members operate on client sites, behind corporate firewalls and similar. The restrictions I have are: Must allow creation of persistent 'channels' (i.e. not just one-to-one...
Based on your requirements, here are several collaboration tools that may fit your criteria: 1. **Slack (Free Tier)**: - **Persistent Channels**: Yes, you can create multiple channels for different topics. - **Cost**: Free tier available with some limitations (e.g., message history is limited). - **Firewall C...
13,004
[ { "from": "human", "value": "I'm looking for a corporate collaboration tool to help bring together my team, who are geographically and organisationally distributed. Some team members operate on client sites, behind corporate firewalls and similar.\nThe restrictions I have are:\n\nMust allow creation of per...
I am looking for a .NET implementation of a priority queue or heap data structure Priority queues are data structures that provide more flexibility than simple sorting, because they allow new elements to enter a system at arbitrary intervals. It is much more cost-effective to insert a new job into a priority queue tha...
You're correct that the .NET Framework does not provide a built-in priority queue implementation in its standard library as of October 2023. However, you have several options: 1. **Use a Third-Party Library**: There are several libraries available that provide priority queue implementations. Some popular ones include:...
10,071
[ { "from": "human", "value": "I am looking for a .NET implementation of a priority queue or heap data structure\n\nPriority queues are data structures that provide more flexibility than simple sorting, because they allow new elements to enter a system at arbitrary intervals. It is much more cost-effective to...
I'm using Zend Studio for Eclipse (Linux), and I'm trying to generate getter and setters methods in a PHP class. I try to do this: http://files.zend.com/help/Zend-Studio-Eclipse-Help/creating_getters_and_setters.htm but I haven't "Generate Getters and Setters" option in Source Menu, it's missed! Could u help me? Thank...
If you don't see the "Generate Getters and Setters" option in the Source menu of Zend Studio for Eclipse, here are a few things you can check and try to resolve the issue: 1. **Check File Type**: Ensure that you are working within a PHP class file. The "Generate Getters and Setters" option typically only appears in fi...
15,903
[ { "from": "human", "value": "I'm using Zend Studio for Eclipse (Linux), and I'm trying to generate getter and setters methods in a PHP class.\nI try to do this: http://files.zend.com/help/Zend-Studio-Eclipse-Help/creating_getters_and_setters.htm \nbut I haven't \"Generate Getters and Setters\" option in Sou...
We have an application where users enter prices all day. These prices are recorded in a table with a timestamp and then used for producing charts of how the price has moved. Every now and then, the user enters a price wrongly (e.g. puts in a zero too many or too few) which somewhat ruins the chart (you get big spikes)....
To analyze the prices effectively and exclude values that deviate significantly from the norm, you can consider using several statistical methods. Here are some options that may suit your needs: ### 1. **Z-Score Method** The Z-score method measures how many standard deviations an element is from the mean. You can use ...
10,811
[ { "from": "human", "value": "We have an application where users enter prices all day. These prices are recorded in a table with a timestamp and then used for producing charts of how the price has moved. Every now and then, the user enters a price wrongly (e.g. puts in a zero too many or too few) which somew...
Our build process uses Visual Studios 2003 link.exe for linking. On one machine we're seeing the following error: _X86_Win32/Debug/Intermediate/OurApp.exe LINK: extra operand `/subsystem:windows' Try `LINK --help' for more information It appears to be using the same version of visual studios as the other machines. H...
The error you're encountering suggests that there may be an issue with the way the `link.exe` command is being executed on the problematic machine. The error message indicates that there is an "extra operand" issue with the `/subsystem:windows` argument. Here are some steps to help troubleshoot and resolve the issue: ...
15,086
[ { "from": "human", "value": "Our build process uses Visual Studios 2003 link.exe for linking. On one machine we're seeing the following error:\n_X86_Win32/Debug/Intermediate/OurApp.exe LINK: extra operand `/subsystem:windows' Try `LINK --help' for more information\n\nIt appears to be using the same version...
I have a generic Repository<T> class I want to use with an ObjectDataSource. Repository<T> lives in a separate project called DataAccess. According to this post from the MS newsgroups (relevant part copied below): Internally, the ObjectDataSource is calling Type.GetType(string) to get the type, so we need to follow ...
The issue you're encountering with the `ObjectDataSource` control in ASP.NET likely stems from how the `ObjectDataSource` attempts to resolve the `TypeName` at runtime. Although the designer in Visual Studio can locate the type correctly, there are nuances in how types, especially generic types, are referenced in ASP.N...
5,444
[ { "from": "human", "value": "I have a generic Repository<T> class I want to use with an ObjectDataSource. Repository<T> lives in a separate project called DataAccess. According to this post from the MS newsgroups (relevant part copied below):\n\nInternally, the ObjectDataSource is calling Type.GetType(strin...
Our team is setting up nightly and continuous integration builds. We own Team Foundation Server and could use Team Foundation Build. I'm more familiar with CC.Net and lean that way but management sees all the money spent on TFS and wants to use it. Some things I like better about CC.Net is the flexibility of notifica...
Choosing between Team Foundation Build (now known as Azure DevOps Pipelines for cloud or TFS Build for on-premises Team Foundation Server) and CruiseControl.NET (CC.NET) depends on several factors including team size, specific needs, and long-term goals. Here’s a comparison based on different aspects: ### 1. Integrati...
11,124
[ { "from": "human", "value": "Our team is setting up nightly and continuous integration builds. We own Team Foundation Server and could use Team Foundation Build. I'm more familiar with CC.Net and lean that way but management sees all the money spent on TFS and wants to use it.\nSome things I like better a...
On occasion, I find myself wanting to search the text of changelist descriptions in Perforce. There doesn't appear to be a way to do this in P4V. I can do it by redirecting the output of the changes command to a file... p4 changes -l > p4changes.txt ...(the -l switch tells it to dump the full text of the changelist ...
If you're looking for a more efficient way to search through changelist descriptions in Perforce using P4V or command line without redirecting output to a file each time, you might consider the following approaches: ### Using P4 Command Line 1. **Use `p4 changes` with grep**: You can combine the `p4 changes` comma...
15,140
[ { "from": "human", "value": "On occasion, I find myself wanting to search the text of changelist descriptions in Perforce. There doesn't appear to be a way to do this in P4V. I can do it by redirecting the output of the changes command to a file...\np4 changes -l > p4changes.txt\n\n...(the -l switch tells...
We all know what virtual functions are in C++, but how are they implemented at a deep level? Can the vtable be modified or even directly accessed at runtime? Does the vtable exist for all classes, or only those that have at least one virtual function? Do abstract classes simply have a NULL for the function pointer of ...
In C++, virtual functions enable dynamic polymorphism through a mechanism typically implemented using a "vtable" (virtual table) and a "vptr" (virtual pointer). Here's a detailed breakdown of your questions: ### How are virtual functions implemented at a deep level? 1. **Vtable and Vptr:** - Each class that contai...
14,579
[ { "from": "human", "value": "We all know what virtual functions are in C++, but how are they implemented at a deep level?\nCan the vtable be modified or even directly accessed at runtime?\nDoes the vtable exist for all classes, or only those that have at least one virtual function? \nDo abstract classes sim...
I want to emulate the delete confirmation page behavior before saving certain models in the admin. In my case if I change one object, certain others should be deleted as they depend upon the object's now out-of-date state. I understand where to implement the actual cascaded updates (inside the parent model's save...
Implementing a confirmation step in the Django admin before saving a model that leads to cascading deletions is a nuanced requirement. Here are some strategies you could consider that are cleaner than implementing a two-phase save directly in the `save()` method: ### Option 1: Custom Admin Action Instead of modifying...
10,045
[ { "from": "human", "value": "I want to emulate the delete confirmation page behavior before saving \ncertain models in the admin. In my case if I change one object, \ncertain others should be deleted as they depend upon the object's now \nout-of-date state. \nI understand where to implement the actual casc...
I want to insert say 50,000 records into sql server database 2000 at a time. How to accomplish this?
Inserting a large number of records into a SQL Server database in batches can help improve performance and reduce the load on the server. You can use a combination of a loop and parameterized queries to accomplish this. Below are two common approaches to achieve this: using T-SQL or using a programming language like C#...
14,569
[ { "from": "human", "value": "I want to insert say 50,000 records into sql server database 2000 at a time. How to accomplish this?\n" }, { "from": "gpt", "value": "Inserting a large number of records into a SQL Server database in batches can help improve performance and reduce the load on the ser...
Let me start off with a bit of background. This morning one of our users reported that Testuff's setup file has been reported as infected with a virus by the CA antivirus. Confident that this was a false positive, I looked on the web and found that users of another program (SpyBot) have reported the same problem. A now...
When dealing with binary files and trying to identify similarities or specific sequences that might trigger a false positive in antivirus software, using a more efficient approach is crucial since the `SequenceMatcher` from the `difflib` library might not be the best fit for large binary files. Here are a few suggestio...
12,414
[ { "from": "human", "value": "Let me start off with a bit of background.\nThis morning one of our users reported that Testuff's setup file has been reported as infected with a virus by the CA antivirus. Confident that this was a false positive, I looked on the web and found that users of another program (Spy...
The class method to create an index path with one or more nodes is: + (id)indexPathWithIndexes:(NSUInteger *)indexes length:(NSUInteger)length How do we create the "indexes" required in the first parameter? The documentation listed it as Array of indexes to make up the index path but it is expecting a (NSUinteger *)....
In Objective-C, when you're working with methods that expect a pointer to a C-style array, such as `NSUInteger *`, you need to create an array in memory and then pass a pointer to that array. To create an `NSIndexPath` for the indexes `1, 2, 3, 4`, you can follow these steps: 1. Create an array of `NSUInteger` to hol...
19,390
[ { "from": "human", "value": "The class method to create an index path with one or more nodes is:\n+ (id)indexPathWithIndexes:(NSUInteger *)indexes length:(NSUInteger)length\n\nHow do we create the \"indexes\" required in the first parameter? \nThe documentation listed it as Array of indexes to make up the i...
As far as I understand, CouchDB indexes are updated when a view is queried. Assuming there are more reads than writes, isn't this bad for scaling? How would I configure CouchDB to update indexes on writes, or better yet, on a schedule?
CouchDB is designed to handle large amounts of data and scale effectively, even if it does update views when they are queried. When a view is queried, CouchDB ensures that the index is up to date before returning the results. This approach can lead to delays in response times for views that haven't been accessed recent...
16,873
[ { "from": "human", "value": "As far as I understand, CouchDB indexes are updated when a view is queried. Assuming there are more reads than writes, isn't this bad for scaling? How would I configure CouchDB to update indexes on writes, or better yet, on a schedule?\n" }, { "from": "gpt", "value...
I've encountered multiple third party .Net component-vendors that use a licensing scheme. On an evaluation copy, the components show up with a nag-screen or watermark or some such indicator. On a licensed machine, a Licenses.licx is created - with what appears to be just the assembly full name/identifiers. This file ha...
The licensing scheme you're encountering with third-party .NET components is a common approach used by component vendors to manage the usage rights of their software. Here’s how this model typically works from both the vendor's and users' perspectives, along with an explanation of the `.licx` file and best practices re...
10,425
[ { "from": "human", "value": "I've encountered multiple third party .Net component-vendors that use a licensing scheme. On an evaluation copy, the components show up with a nag-screen or watermark or some such indicator. On a licensed machine, a Licenses.licx is created - with what appears to be just the ass...
Basically I'm trying to accomplish the same thing that "mailto:bgates@microsoft.com" does in Internet Explorer Mobile. But I want to be able to do it from a managed Windows Mobile application. I don't want to send an email pro grammatically in the background. I want to be able to create the email in Pocket Outlook and ...
To create an email in Pocket Outlook from a managed Windows Mobile application, you can use the `Email` application via the `EmailComposeTask` class, which is part of the Windows Phone SDK. However, for older versions of Windows Mobile (like Windows Mobile 6.x), you can use the `System.Diagnostics.Process` class to lau...
15,480
[ { "from": "human", "value": "Basically I'm trying to accomplish the same thing that \"mailto:bgates@microsoft.com\" does in Internet Explorer Mobile.\nBut I want to be able to do it from a managed Windows Mobile application. I don't want to send an email pro grammatically in the background.\nI want to be ab...
I was having a heck of a time figuring out how to login and logout using response objects from Rails. The standard blogs were ok, but I finally diagnosed it, and I wanted to record it here. app.get '/' assert_response :success app.get '/auth_only_url' assert_response 302 user = User.find(:user_to_login) app.post '/sign...
Thank you for sharing your experience and insights on handling login and logout using response objects in Rails. It's always valuable to document findings for future reference and for others facing similar challenges. Let's summarize and clarify the steps you've provided, along with some additional context that may be ...
12,043
[ { "from": "human", "value": "I was having a heck of a time figuring out how to login and logout using response objects from Rails. The standard blogs were ok, but I finally diagnosed it, and I wanted to record it here.\napp.get '/'\nassert_response :success\napp.get '/auth_only_url'\nassert_response 302\nus...
What am I doing wrong here? string q = "john s!"; string clean = Regex.Replace(q, @"([^a-zA-Z0-9]|^\s)", string.Empty); // clean == "johns". I want "john s";
Your regular expression is currently designed to remove any character that is not a letter or number, as well as any leading whitespace. This is why you end up with "johns" instead of "john s". The pattern `[^a-zA-Z0-9]` matches any character that is not an English letter or a digit, and the `|^\s` part attempts to m...
19,075
[ { "from": "human", "value": "What am I doing wrong here?\nstring q = \"john s!\";\nstring clean = Regex.Replace(q, @\"([^a-zA-Z0-9]|^\\s)\", string.Empty);\n// clean == \"johns\". I want \"john s\";\n\n" }, { "from": "gpt", "value": "Your regular expression is currently designed to remove any ch...
I've been trying to create a Windows Media Player plugin in Visual Studio 2008, and am having great difficulty finding the correct template. MSDN provides advice here, but it does not appear to be relevant to VS2008. Can anyone suggest how to start a WMP plugin in Visual Studio? EDIT: Ive accepted this answer because i...
Creating a Windows Media Player (WMP) plugin can be a bit tricky, especially in Visual Studio 2008, as there are no built-in templates for WMP plugins. However, you can still create a plugin using the steps below. Here's a general outline of how to get started: ### Step 1: Set Up Your Project 1. **Create a New Projec...
15,060
[ { "from": "human", "value": "I've been trying to create a Windows Media Player plugin in Visual Studio 2008, and am having great difficulty finding the correct template. MSDN provides advice here, but it does not appear to be relevant to VS2008.\nCan anyone suggest how to start a WMP plugin in Visual Studio...
Please note that the problem described below is almost the exact opposite to the common problem of "my control shows the same value every time the page loads. I understand the behavior expressed is generally not desirable. I have a listbox which is being databound in the page load event even on postback. When the even...
The behavior you're experiencing is due to the ASP.NET page lifecycle and how data binding works in the context of postbacks. Let's break down what's happening: 1. **Page Lifecycle**: When a postback occurs, ASP.NET processes the page lifecycle in a specific order: - `Load` event: This is where controls are bound t...
16,092
[ { "from": "human", "value": "Please note that the problem described below is almost the exact opposite to the common problem of \"my control shows the same value every time the page loads. I understand the behavior expressed is generally not desirable.\nI have a listbox which is being databound in the page...
Hi i want to write a game with a main game form and lot of other normal forms. What is the best way to manage update-paint cycle in that case? Should the game form paint loop only should be overriden? or should i do an application.do events() in the main method? Please guide me regarding this. i am new to windows forms...
When developing a game using Windows Forms, managing the update and paint cycle is crucial for maintaining performance and responsiveness. Here’s a breakdown of how you can effectively manage this cycle, especially with a main game form and multiple other forms. ### Key Concepts 1. **Game Loop**: A game loop generall...
13,617
[ { "from": "human", "value": "Hi i want to write a game with a main game form and lot of other normal forms. What is the best way to manage update-paint cycle in that case?\nShould the game form paint loop only should be overriden? or should i do an application.do events() in the main method?\nPlease guide m...
A WebDAV library I'm using is issuing this request MKCOL /collection HTTP/1.1 To which apache is issuing a 301 because /collection exists HTTP/1.1 301 Location: /collection/ Rather than a HTTP/1.1 405 Method Not Allowed The spec is a bit vague on this (or it could be my reading of it), but when issuing an MKCOL...
The behavior you are observing relates to how HTTP and WebDAV handle the creation of collections and their URLs. According to the WebDAV specification (RFC 4918), a `MKCOL` request is used to create a new collection (akin to a directory). ### Understanding the Request 1. **MKCOL and URL Structure**: The `MKCOL` meth...
17,779
[ { "from": "human", "value": "A WebDAV library I'm using is issuing this request\n\nMKCOL /collection HTTP/1.1\n\nTo which apache is issuing a 301 because /collection exists \n\nHTTP/1.1 301\nLocation: /collection/\n\nRather than a \n\nHTTP/1.1 405 Method Not Allowed\n\nThe spec is a bit vague on this (or it...
I have a ListView which sometimes I need to put around 10000 items in. ListViews don't really handle this well, and they lock up for a couple of seconds while they sort the items and draw them. If you add the items in individually, it's even worse, locking up for nearly a minute. To get around this, I thought I'd try p...
When dealing with large amounts of data in a ListView, performance can become an issue. Here are several strategies to improve the performance and user experience when displaying large lists of items in a ListView: 1. **Virtualization**: Use virtualization techniques to only create UI elements for items that are visib...
15,824
[ { "from": "human", "value": "I have a ListView which sometimes I need to put around 10000 items in. ListViews don't really handle this well, and they lock up for a couple of seconds while they sort the items and draw them. If you add the items in individually, it's even worse, locking up for nearly a minute...
I have some scheduled SSRS reports (integrated mode) that get emailed by subscription. All of a sudden the reports have stopped being emailed. I get the error: Failure sending mail: Report Server has encountered a SharePoint error. I don't even know where to start to look as I can't get into SSRS and my Sharepoint kn...
Certainly! The error message you're encountering indicates an issue with the SSRS (SQL Server Reporting Services) integrated with SharePoint, specifically related to email subscriptions. Here are some steps to help you troubleshoot and resolve the issue: ### 1. **Check SharePoint Configuration** - **SMTP Configurat...
10,452
[ { "from": "human", "value": "I have some scheduled SSRS reports (integrated mode) that get emailed by subscription. \nAll of a sudden the reports have stopped being emailed. I get the error:\nFailure sending mail: Report Server has encountered a SharePoint error.\n\nI don't even know where to start to look ...
When trying to call Close or Dispose on an SqlDataReader i get a timeout expired exception. If you have a DbConnection to SQL Server, you can reproduce it yourself with: String CRLF = "\r\n"; String sql = "SELECT * " + CRLF + "FROM (" + CRLF + " SELECT (a.Number * 256) + b.Number AS Number" + CRLF + ...
The timeout expired exception you are experiencing when trying to close or dispose of an `SqlDataReader` is likely due to the nature of the SQL query being executed. The query you have included contains a full outer join that could result in a very large result set, and this is combined with a potential infinite loop c...
13,848
[ { "from": "human", "value": "When trying to call Close or Dispose on an SqlDataReader i get a timeout expired exception. If you have a DbConnection to SQL Server, you can reproduce it yourself with:\nString CRLF = \"\\r\\n\";\nString sql = \n \"SELECT * \" + CRLF +\n \"FROM (\" + CRLF +\n \" SELE...
I recently inherited a small Java program that takes information from a large database, does some processing and produces a detailed image regarding the information. The original author wrote the code using a single thread, then later modified it to allow it to use multiple threads. In the code he defines a constant; ...
Your understanding of setting the number of threads to the number of available processors (or cores) is a common practice in multi-threaded applications. This approach helps to ensure that each thread can run concurrently on its own core without contention, which can lead to better CPU utilization. ### Key Points to C...
14,203
[ { "from": "human", "value": "I recently inherited a small Java program that takes information from a large database, does some processing and produces a detailed image regarding the information. The original author wrote the code using a single thread, then later modified it to allow it to use multiple thre...
What are the potential pros and cons of each of these queries given different databases, configurations, etc? Is there ever a time when one would be more efficient than the other? Vice versa? Is there an even better way to do it? Can you explain why? Query 1: SELECT * FROM table_a, table_b, table_c WHERE tab...
The two SQL queries you've provided are functionally equivalent, as both are designed to retrieve data from three tables (`table_a`, `table_b`, and `table_c`) based on a joining condition and a filtering condition. However, they are written differently: the first uses an implicit join (comma-separated tables in the `FR...
11,203
[ { "from": "human", "value": "What are the potential pros and cons of each of these queries given different databases, configurations, etc? Is there ever a time when one would be more efficient than the other? Vice versa? Is there an even better way to do it? Can you explain why?\nQuery 1:\nSELECT \n *\...
Does anyone know of papers/books/etc. that document patterns for databases? For example, one common rule of thumb is that every table should have a primary key and that the key should be devoid of information content. So I was wondering if anyone had written a book or published papers regarding design patterns for de...
There are several resources that discuss design patterns and best practices for relational database design. Here are some key books and papers that you might find useful in your exploration of database design patterns: ### Books 1. **"Database Design for Mere Mortals" by Michael J. Hernandez** This book is a com...
11,909
[ { "from": "human", "value": "Does anyone know of papers/books/etc. that document patterns for databases? For example, one common rule of thumb is that every table should have a primary key and that the key should be devoid of information content. So I was wondering if anyone had written a book or publishe...
In my model I have: validate :my_custom_validation def my_custom_validation errors.add_to_base("error message") if condition.exists? end I would like to add some parameters to mycustomer vaildation like so: validate :my_custom_validation, :parameter1 => x, :parameter2 => y How do I write the mycustomvalidation func...
To achieve parameterized custom validations in your model, you can use a lambda or a block to capture the parameters you want to pass to your custom validation method. Here’s how you can do it in Rails: ### Step 1: Modify the Validation Call Change the validation call to pass a block that includes the parameters you ...
17,785
[ { "from": "human", "value": "In my model I have:\nvalidate :my_custom_validation\n\ndef my_custom_validation\n errors.add_to_base(\"error message\") if condition.exists?\nend\n\nI would like to add some parameters to mycustomer vaildation like so:\nvalidate :my_custom_validation, :parameter1 => x, :paramete...
I realize that since UNIX sockets are platform-specific, there has to be some non-Java code involved. Specifically, we're interested in using JDBC to connect to a MySQL instance which only has UNIX domain sockets enabled. It doesn't look like this is supported, but from what I've read it should be at least possible ...
Using JDBC to connect to a MySQL instance via UNIX domain sockets in Java does indeed require some additional work because standard JDBC drivers typically support only TCP/IP connections. However, it is possible to create a custom socket factory to facilitate this. Here are some approaches and considerations: ### 1. *...
14,265
[ { "from": "human", "value": "I realize that since UNIX sockets are platform-specific, there has to be some non-Java code involved. Specifically, we're interested in using JDBC to connect to a MySQL instance which only has UNIX domain sockets enabled. \nIt doesn't look like this is supported, but from what...
Where can I find a Perl module for converting a Perl data structure into a JavaScript one? e.g. this is my code (Mason): % # convert our @cti data structure into a javascript one var cti = [ % foreach my $cti_category (@cti) { { label: "<% $cti_category->{'label'} %>", v...
Yes, there are Perl modules that can help you convert Perl data structures into JavaScript Object Notation (JSON), which can then be used in JavaScript. The most commonly used module for this purpose is `JSON`. You can install it from CPAN (Comprehensive Perl Archive Network) if you haven't already. Here’s how you can...
18,495
[ { "from": "human", "value": "Where can I find a Perl module for converting a Perl data structure into a JavaScript one?\ne.g. this is my code (Mason):\n% # convert our @cti data structure into a javascript one\n var cti = [\n% foreach my $cti_category (@cti) {\n {\n label: \"<% ...
I have a fairly large codebase that depends on MooTools v1.11 and am about to convert to version 1.2. Since this is a pretty major overhaul, I've toyed with the idea of converting to jQuery. Anyone have advice on whether to update to jQuery or just stick with MooTools? I mostly use MooTools for Ajax, drag and drop, ...
Deciding whether to update your MooTools codebase to a newer version or switch to jQuery depends on several factors, including project requirements, team familiarity, long-term maintenance, and future-proofing your codebase. Here are some points to consider for both options: ### Sticking with MooTools 1. **Familiarity...
16,104
[ { "from": "human", "value": "I have a fairly large codebase that depends on MooTools v1.11 and am about to convert to version 1.2. Since this is a pretty major overhaul, I've toyed with the idea of converting to jQuery. \nAnyone have advice on whether to update to jQuery or just stick with MooTools?\nI mo...
Is it possible to create in a table of database a foreign key to a column of table in another database in SQL 2005 ?
In SQL Server 2005, it is not possible to create a foreign key constraint that directly references a column in a table of a different database. Foreign key constraints are designed to maintain referential integrity within the same database. However, you can work around this limitation by using application logic to en...
19,173
[ { "from": "human", "value": "Is it possible to create in a table of database a foreign key to a column of table in another database in SQL 2005 ?\n" }, { "from": "gpt", "value": "In SQL Server 2005, it is not possible to create a foreign key constraint that directly references a column in a tabl...
I have a XML response from an HTTPService call with the e4x result format. <?xml version="1.0" encoding="utf-8"?> <Validation Error="Invalid Username/Password Combination" /> I have tried: private function callback(event:ResultEvent):void { if(event.result..@Error) { // error attr present } el...
In ActionScript, when using E4X (ECMAScript for XML), accessing attributes and their values can sometimes lead to unexpected results if not handled correctly. In your case, the issue seems to arise from the way you're checking for the existence of the `Error` attribute. To determine if the `Error` attribute is present...
17,087
[ { "from": "human", "value": "I have a XML response from an HTTPService call with the e4x result format.\n\n\n<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<Validation Error=\"Invalid Username/Password Combination\" />\n\n\nI have tried:\n\n\nprivate function callback(event:ResultEvent):void {\n if(event.re...
I've setup a static website on GAE using hints found elsewhere, but can't figure out how to return a 404 error. My app.yaml file looks like - url: (.*)/ static_files: static\1/index.html upload: static/index.html - url: / static_dir: static with all the static html/jpg files stored under the static directory. T...
To handle 404 errors in your Google App Engine (GAE) static site setup, you can create a simple Python script that returns a 404 error when the requested file is not found. You can set up your `app.yaml` file to route requests for non-existing static files to this script. Here's how to do it: ### Step 1: Create a Pyth...
16,944
[ { "from": "human", "value": "I've setup a static website on GAE using hints found elsewhere, but can't figure out how to return a 404 error. My app.yaml file looks like\n- url: (.*)/\n static_files: static\\1/index.html\n upload: static/index.html\n\n- url: /\n static_dir: static\n\nwith all the static h...
I made a rotating image fader using Javascript and CSS to show images and unload them. I wanted to use transparent PNG's, I didn't expect or care if they looked good in IE 6, but IE 7 and 8 treated them with the same disrespect. Firefox and other modern browsers looked great. Every picture with image.filter = alpha(...
What you're experiencing with transparent PNGs in IE7 and IE8 is a known issue related to how these versions of Internet Explorer handle alpha transparency. Unlike modern browsers that have improved support for PNG transparency, IE6, 7, and 8 implement transparency differently, which can lead to artifacts and noise aro...
15,334
[ { "from": "human", "value": "I made a rotating image fader using Javascript and CSS to show images and unload them. I wanted to use transparent PNG's, I didn't expect or care if they looked good in IE 6, but IE 7 and 8 treated them with the same disrespect. Firefox and other modern browsers looked great. ...
We're trying to analyse flow around circular cylinder and we have a set of Cp values that we got from wind tunnel experiment. Initially, we started off with a sample frequency of 20 Hz and tried to find the frequency of vortex shedding using FFT in matlab. We got a frequency of around 7 Hz. Next, we did the same experi...
The situation you're describing indicates that there might be an issue with how the Fast Fourier Transform (FFT) is being applied to your data, particularly in relation to the sampling frequency and how it impacts the frequency domain representation of your signals. When performing FFT, the frequency resolution and th...
14,746
[ { "from": "human", "value": "We're trying to analyse flow around circular cylinder and we have a set of Cp values that we got from wind tunnel experiment. Initially, we started off with a sample frequency of 20 Hz and tried to find the frequency of vortex shedding using FFT in matlab. We got a frequency of ...
I want to use the Date::ABBR_MONTHS constant in my rails application. I see the Ruby stdlib documentation at http://www.ruby-doc.org/stdlib/ which does not seem to have this constant. However, this constant is there at http://stdlib.rubyonrails.org/ What is the difference between these two libraries? This constant is ...
The `Date::ABBR_MONTHS` constant is part of Ruby's standard library for handling date and time, but its availability can differ based on the version of Ruby you are using, as well as whether you're using Rails or just Ruby. Here’s an explanation of the different aspects of your question: ### Ruby Standard Library vs. ...
14,463
[ { "from": "human", "value": "I want to use the Date::ABBR_MONTHS constant in my rails application. I see the Ruby stdlib documentation at http://www.ruby-doc.org/stdlib/ which does not seem to have this constant. \nHowever, this constant is there at http://stdlib.rubyonrails.org/\nWhat is the difference bet...
I have a page which is largely created by DOM script, which generates a table of images (normal img elements) from several webcams (helping out a friend with a pet boarding and my HTML/DOM is a bit rusty). It works fine in FF3 or Chrome, but not in IE7, In fact, the whole table is not visible in IE (but the body backg...
You're correct in diagnosing the issue with Internet Explorer 7. The problem arises from the lack of a `<tbody>` element when dynamically creating tables. While modern browsers are more lenient with the HTML structure, older versions of Internet Explorer, like IE7, are less forgiving and may not render the table correc...
14,513
[ { "from": "human", "value": "I have a page which is largely created by DOM script, which generates a table of images (normal img elements) from several webcams (helping out a friend with a pet boarding and my HTML/DOM is a bit rusty).\nIt works fine in FF3 or Chrome, but not in IE7, In fact, the whole tabl...
I have implemented this Graph: ListenableDirectedWeightedGraph<String, MyWeightedEdge> g = new ListenableDirectedWeightedGraph<String, MyWeightedEdge>(MyWeightedEdge.class); In order to show what the class name says; a simple listenable directed weighted graph. I want to change the label of the edges and instea...
To customize the label of your edges in a `ListenableDirectedWeightedGraph`, you can override the `toString()` method in your `MyWeightedEdge` class. By default, the edge's string representation may not show the weight, so you can modify this to include it. ### Steps to Show Weight in Edge Labels 1. **Override the `t...
17,832
[ { "from": "human", "value": "I have implemented this Graph: \nListenableDirectedWeightedGraph<String, MyWeightedEdge> g = \n new ListenableDirectedWeightedGraph<String, MyWeightedEdge>(MyWeightedEdge.class); \n\nIn order to show what the class name says; a simple listenable directed weighted graph. I wan...
Has anyone had success automating testing directly on embedded hardware? Specifically, I am thinking of automating a battery of unit tests for hardware layer modules. We need to have greater confidence in our hardware layer code. A lot of our projects use interrupt driven timers, ADCs, serial io, serial SPI devices (fl...
Automating testing directly on embedded hardware can be quite challenging but is also highly beneficial in improving confidence in your hardware layer code. Many teams have successfully implemented automated testing frameworks for embedded systems, and the effort can be worth it, especially for complex projects with cr...
14,964
[ { "from": "human", "value": "Has anyone had success automating testing directly on embedded hardware?\nSpecifically, I am thinking of automating a battery of unit tests for hardware layer modules. We need to have greater confidence in our hardware layer code. A lot of our projects use interrupt driven timer...
I'm not looking so much for language-specific answers, just general models for implementing a plugin system (if you want to know, I'm using Python). I have my own idea (register callbacks, and that's about it), but I know others exist. What's normally used, and what else is reasonable? What do you mean by a plugin sys...
A plugin system allows you to extend the functionality of an application by adding new features (or plugins) without modifying the core codebase. This is a common design pattern used in many software applications. Here are some general models and patterns for implementing a plugin system: ### 1. **Callback Registratio...
15,078
[ { "from": "human", "value": "I'm not looking so much for language-specific answers, just general models for implementing a plugin system (if you want to know, I'm using Python). I have my own idea (register callbacks, and that's about it), but I know others exist. What's normally used, and what else is reas...
I am interested to know whether anyone has written an application that takes advantage of a GPGPU by using, for example, nVidia CUDA. If so, what issues did you find and what performance gains did you achieve compared with a standard CPU?
Yes, many developers and researchers have written applications that leverage General-Purpose computing on Graphics Processing Units (GPGPU) using technologies like NVIDIA's CUDA. GPGPU programming has gained popularity in various domains, such as deep learning, scientific computing, image processing, and simulations, d...
9,362
[ { "from": "human", "value": "I am interested to know whether anyone has written an application that takes advantage of a GPGPU by using, for example, nVidia CUDA. If so, what issues did you find and what performance gains did you achieve compared with a standard CPU?\n" }, { "from": "gpt", "val...
My current place of employment is currently in a transition, new ownership has taken over, things are finally getting standardized and proper guidelines are being enforced. But we are still using VSS, there really isn't any reason for using it other then that's what whats initially setup. We don't use Visual Studio, ...
Making a case for transitioning from Visual SourceSafe (VSS) to a more modern version control system like Subversion (SVN) can be compelling, especially given the context of new ownership and the push for standardization. Here are some key arguments you can use: ### 1. **Outdated Technology** - **Support and Update...
12,034
[ { "from": "human", "value": "My current place of employment is currently in a transition, new ownership has taken over, things are finally getting standardized and proper guidelines are being enforced. \nBut we are still using VSS, there really isn't any reason for using it other then that's what whats ini...
I was wondering if there is a clean way to represent an is-a relationship as illustrated by this example: This DB stores recording times for three types of programs: movies, game shows, drama. In an object oriented sense each of these is-a program. Each of these subclasses have different properties. Here are the tables...
In relational databases, representing an is-a relationship where you have different subclasses (like movies, game shows, and dramas) can be tricky, especially when trying to maintain normalization and avoid redundancy. However, there are ways to design your schema that can help consolidate tables while keeping normaliz...
13,327
[ { "from": "human", "value": "I was wondering if there is a clean way to represent an is-a relationship as illustrated by this example:\nThis DB stores recording times for three types of programs: movies, game shows, drama. In an object oriented sense each of these is-a program. Each of these subclasses have...
Does anyone know any implementation of a templated cache of objects? You use a key to find object (the same as in std::map<>) You specify a maximum number of objects that can be in the cache at the same time There are facilities to create an object not found in the cache There are facilities to know when an object is ...
Certainly! You can implement a simple cache with the features you specified using C++. Below is a basic implementation of a templated cache that supports LRU (Least Recently Used) eviction policy. This implementation uses a combination of `std::unordered_map` for fast lookups and a doubly linked list to keep track of t...
12,562
[ { "from": "human", "value": "Does anyone know any implementation of a templated cache of objects?\n\nYou use a key to find object (the same as in std::map<>)\nYou specify a maximum number of objects that can be in the cache at the same time\nThere are facilities to create an object not found in the cache\nT...
I've been getting this undefined symbol building with this command line: $ gcc test.cpp Undefined symbols: "___gxx_personality_v0", referenced from: etc... test.cpp is simple and should build fine. What is the deal?
The error message you're encountering, specifically about `___gxx_personality_v0`, suggests that the compiler is treating your file as C instead of C++. This typically happens when you use `gcc`, which is the GNU C compiler, instead of `g++`, which is the GNU C++ compiler. In your case, since you're trying to compile ...
20,012
[ { "from": "human", "value": "I've been getting this undefined symbol building with this command line:\n$ gcc test.cpp\nUndefined symbols:\n \"___gxx_personality_v0\", referenced from:\n etc...\n\ntest.cpp is simple and should build fine. What is the deal?\n" }, { "from": "gpt", "value": "The ...
Is it possible to have one application binary build for multiple mobile devices (on BREW platform), rather than making a separate build for each device using build script with conditional compilation. In particular is is possible to use single BREW application build for multiple screen resolutions? Note that the goal i...
Creating a single application binary for multiple mobile devices on the BREW platform can be quite challenging, especially when it comes to handling different screen resolutions and device capabilities. BREW (Binary Runtime Environment for Wireless) allows for some level of abstraction, but there are certain limitation...
15,919
[ { "from": "human", "value": "Is it possible to have one application binary build for multiple mobile devices (on BREW platform), rather than making a separate build for each device using build script with conditional compilation.\nIn particular is is possible to use single BREW application build for multipl...
I need to upload some data to a server using HTTP PUT method in Python. From my brief reading of the urllib2 docs, it only does HTTP POST. Is there any way to do an HTTP PUT in Python?
Yes, you can perform an HTTP PUT request in Python using several libraries, including `requests`, which is a popular and user-friendly HTTP library. While `urllib2` (Python 2) or `urllib` (Python 3) can be used, `requests` simplifies the process significantly. Here's how to perform an HTTP PUT request using the `reque...
15,464
[ { "from": "human", "value": "I need to upload some data to a server using HTTP PUT method in Python. From my brief reading of the urllib2 docs, it only does HTTP POST.\nIs there any way to do an HTTP PUT in Python?\n" }, { "from": "gpt", "value": "Yes, you can perform an HTTP PUT request in Pyth...
I am in the position of having to make a technology choice early in a project which is targetted at mobile phones. I saw that there is a python derivative for S60 and wondered whether anyone could share experiences, good and bad, and suggest appropriate IDE's and emulators. Please don't tell me that I should be develo...
When it comes to developing mobile applications for Symbian S60 using Python, you're looking at an option called **PyS60** (or **Python for S60**). Here are some experiences, both good and bad, as well as suggestions for IDEs and emulators: ### Pros of Using Python for S60: 1. **Ease of Use**: Python is known for its ...
14,970
[ { "from": "human", "value": "I am in the position of having to make a technology choice early in a project which is targetted at mobile phones. I saw that there is a python derivative for S60 and wondered whether anyone could share experiences, good and bad, and suggest appropriate IDE's and emulators.\nPl...
I just tried FxCop. It does detect unused private methods, but not unused public. Is there a custom rule that I can download, plug-in that will detect public methods that aren't called from within the same assembly?
FxCop is a static code analysis tool primarily focused on .NET code, and while it does provide many built-in rules to help developers improve their code quality, it does not inherently provide a mechanism for detecting unused public methods. However, you can achieve this functionality through a few different approaches...
18,064
[ { "from": "human", "value": "I just tried FxCop. It does detect unused private methods, but not unused public. Is there a custom rule that I can download, plug-in that will detect public methods that aren't called from within the same assembly?\n" }, { "from": "gpt", "value": "FxCop is a stati...
I am trying to create a horizontal menu with the elements represented by <span>'s. The menu itself (parent <div>) has a fixed width, but the elements number is always different. I would like to have child <span>'s of the same width, independently of how many of them are there. What I've done so far: added a float: left...
To create a horizontal menu where each `<span>` (menu item) has the same width, regardless of how many items there are, you can use CSS Flexbox. Flexbox is a great solution for evenly distributing elements within a container, and it handles the problem of width distribution nicely. Here’s a simple example of how to ac...
14,497
[ { "from": "human", "value": "I am trying to create a horizontal menu with the elements represented by <span>'s. The menu itself (parent <div>) has a fixed width, but the elements number is always different.\nI would like to have child <span>'s of the same width, independently of how many of them are there.\...
How do you calculate the least common multiple of multiple numbers? So far I've only been able to calculate it between two numbers. But have no idea how to expand it to calculate 3 or more numbers. So far this is how I did it LCM = num1 * num2 / gcd ( num1 , num2 ) With gcd is the function to calculate the greatest...
To calculate the least common multiple (LCM) of three or more numbers, you can use the same concept you've used for two numbers. The key is to iteratively apply the LCM function to pairs of numbers. The formula you are using for two numbers, \( \text{LCM}(a, b) = \frac{a \times b}{\text{GCD}(a, b)} \), can be extended...
13,424
[ { "from": "human", "value": "How do you calculate the least common multiple of multiple numbers?\nSo far I've only been able to calculate it between two numbers. But have no idea how to expand it to calculate 3 or more numbers.\nSo far this is how I did it \nLCM = num1 * num2 / gcd ( num1 , num2 )\n\nWith...
I'm working on the K&R book. I've read farther ahead than I've done exercises, mostly for lack of time. I'm catching up, and have done almost all the exercises from chapter 1, which is the tutorial. My issue was exercise 1-18. The exercise is to: Write a program to remove trailing blanks and tabs from line of input...
It's great that you're working through K&R and tackling exercises to reinforce your learning! Your implementation is mostly correct, but I understand your concern about the readability and efficiency of the `trim` function. As you rightly pointed out, you are looping through the string three times, which can be seen as...
13,537
[ { "from": "human", "value": "I'm working on the K&R book. I've read farther ahead than I've done exercises, mostly for lack of time. I'm catching up, and have done almost all the exercises from chapter 1, which is the tutorial.\nMy issue was exercise 1-18. The exercise is to:\n\nWrite a program to remove tr...
I have a C++ program that when run, by default, displays the X in the upper right corner. Clicking X, minimizes the program. I've added code using the SHInitDialog function to change the X to OK, so that clicking OK exits the program. My question: Is there a better method that applies to the window, since SHInitDialog ...
Yes, there are better methods to handle the close button of a standard window in a C++ application without relying on `SHInitDialog`, which is more suited for dialog boxes. If you are working with a standard Win32 application and want to replace the close button (the "X" in the title bar) with an "OK" button or simply ...
13,793
[ { "from": "human", "value": "I have a C++ program that when run, by default, displays the X in the upper right corner. Clicking X, minimizes the program. I've added code using the SHInitDialog function to change the X to OK, so that clicking OK exits the program.\nMy question: Is there a better method that ...
I'm using spring 2.5, and am using annotations to configure my controllers. My controller works fine if I do not implement any additional interfaces, but the spring container doesn't recognize the controller/request mapping when I add interface implementations. I can't figure out why adding an interface implementation...
The issue you're experiencing is likely related to the `ValidatingController` class that you're extending. In Spring, any class that is a controller should be properly recognized by the Spring MVC framework. However, if the `ValidatingController` is implemented in such a way that it interferes with the Spring's mechani...
15,653
[ { "from": "human", "value": "I'm using spring 2.5, and am using annotations to configure my controllers. My controller works fine if I do not implement any additional interfaces, but the spring container doesn't recognize the controller/request mapping when I add interface implementations.\nI can't figure ...
This seems like a pretty softball question, but I always have a hard time looking up this function because there seem there are so many variations regarding the referencing of char and tchar.
It seems like you're asking about character types in C and C++ programming, specifically regarding `char` and `tchar`. Let's break down these concepts for clarity: 1. **`char`**: This is the standard character type in C and C++. It typically represents a single byte (8 bits) and is used to store characters (like lette...
18,123
[ { "from": "human", "value": "This seems like a pretty softball question, but I always have a hard time looking up this function because there seem there are so many variations regarding the referencing of char and tchar.\n" }, { "from": "gpt", "value": "It seems like you're asking about characte...
Is it possible to specify a Java classpath that includes a JAR file contained within another JAR file?
In standard Java, the classpath cannot directly include a JAR file that is contained within another JAR file. This is because the Java classloader does not support loading classes from within nested JAR files directly. However, there are a few workarounds that you can consider: 1. **Extract the Inner JAR**: The simpl...
16,416
[ { "from": "human", "value": "Is it possible to specify a Java classpath that includes a JAR file contained within another JAR file?\n" }, { "from": "gpt", "value": "In standard Java, the classpath cannot directly include a JAR file that is contained within another JAR file. This is because the J...
I am attempting to use linq to shape list of data into a particular shape to be returned as Json from an ajax call. Given this data: var data = new List<string>(); data.Add("One"); data.Add("Two"); data.Add("Three"); And this code: ** Which is not correct and is what needs to be fixed!! ** var shaped = data.Select(c =...
To achieve your desired JSON structure where each element in the list becomes a key-value pair in an object, you can use a `Dictionary<string, string>` instead of using an anonymous type. In this way, the key and value will both correspond to each string in your list. Here's how you can modify your code: ```csharp va...
18,244
[ { "from": "human", "value": "I am attempting to use linq to shape list of data into a particular shape to be returned as Json from an ajax call.\nGiven this data:\nvar data = new List<string>();\ndata.Add(\"One\");\ndata.Add(\"Two\");\ndata.Add(\"Three\");\n\nAnd this code: ** Which is not correct and is wh...
I would like to remove the domain/computer information from a login id in C#. So, I would like to make either "Domain\me" or "Domain\me" just "me". I could always check for the existence of either, and use that as the index to start the substring...but I am looking for something more elegant and compact. Worse case s...
You can achieve a more compact and elegant solution by using the `LastIndexOf` method combined with `Substring`. This way, you can handle both cases (single backslash and double backslash) in a cleaner way. Here's an example of how to do that: ```csharp string ResourceLoginName = "Domain\\me"; // or "Domain\me" int la...
17,612
[ { "from": "human", "value": "I would like to remove the domain/computer information from a login id in C#. So, I would like to make either \"Domain\\me\" or \"Domain\\me\" just \"me\". I could always check for the existence of either, and use that as the index to start the substring...but I am looking for...
I've been trying this a couple of different ways, but it's not working for some reason. Is it even possible?
I’d be happy to help! Could you provide more details about what you’re trying to do? The more information you share, the better I can assist you.
21,045
[ { "from": "human", "value": "I've been trying this a couple of different ways, but it's not working for some reason. Is it even possible?\n" }, { "from": "gpt", "value": "I’d be happy to help! Could you provide more details about what you’re trying to do? The more information you share, the bet...
I have a function in which I get en external resource from the web using cocoa's Url object. And it works fine on the simulator, but occasionally fails on the device itself (it's a google query so the resource obviously does exist). Which leads me to believe that there is some internal timeout barrier on the hardware,...
When dealing with network requests in iOS applications, it's not uncommon to encounter differences in behavior between the simulator and actual devices. Several factors could be contributing to the occasional failures you're experiencing on a physical device, even if the resource is available: 1. **Network Conditions*...
16,982
[ { "from": "human", "value": "I have a function in which I get en external resource from the web using cocoa's Url object. And it works fine on the simulator, but occasionally fails on the device itself (it's a google query so the resource obviously does exist). Which leads me to believe that there is some ...
I am trying to POST a file to a server that replies with some basic status information in the body. Everything is easy from javascript but I was wondering if I could read the status information from the reply using flash. That way I can use the multifile picker flash provides and send several files at once. BTW would i...
Yes, you can use ActionScript in Flash to send files to a server and read the status information from the server's reply. Flash supports file uploads using the `FileReference` class, which allows you to upload files using either the `POST` or `PUT` method. Here's a basic outline of how to achieve this: 1. **Use the F...
16,581
[ { "from": "human", "value": "I am trying to POST a file to a server that replies with some basic status information in the body. Everything is easy from javascript but I was wondering if I could read the status information from the reply using flash. That way I can use the multifile picker flash provides an...
What do you do if members of your team are not cooperative during scrum meetings? They either provide a very high level definition of what they are currently working on, ("working on feature x"), or go into extremely irrelevant details, in spite of being well educated in SCRUM methodology. This causes the scrum meeting...
Dealing with uncooperative team members during scrum meetings can be challenging, but as a Scrum Master, you have several techniques at your disposal to promote engagement and maintain focus. Here are strategies to address each of your concerns: ### 1. **Facilitating Effective Communication** - **Set Clear Expectat...
13,678
[ { "from": "human", "value": "What do you do if members of your team are not cooperative during scrum meetings?\nThey either provide a very high level definition of what they are currently working on, (\"working on feature x\"), or go into extremely irrelevant details, in spite of being well educated in SCRU...
I wrote a PHP web-application using SQLite and sessions stored on filesystem. This is functionally fine and attractively low maintenance. But, now it needs to run on a shared host. All web-applications on the shared host run as the same user, so my users' session data is vulnerable, as is the database, code, etc. Many...
Running PHP as a CGI or using an alternative method such as PHP-FPM (FastCGI Process Manager) can indeed enhance security by allowing each web application to run under different user contexts. However, since you mentioned that your shared host uses `mod_php` and does not support PHP as CGI, your options are somewhat li...
15,678
[ { "from": "human", "value": "I wrote a PHP web-application using SQLite and sessions stored on filesystem.\nThis is functionally fine and attractively low maintenance. But, now it needs to run on a shared host.\nAll web-applications on the shared host run as the same user, so my users' session data is vuln...
I'm writing a small web server in Python, using BaseHTTPServer and a custom subclass of BaseHTTPServer.BaseHTTPRequestHandler. Is it possible to make this listen on more than one port? What I'm doing now: class MyRequestHandler(BaseHTTPServer.BaseHTTPRequestHandler): def doGET [...] class ThreadingHTTPServer(Threa...
To have a web server listen on multiple ports using `BaseHTTPServer` in Python, you cannot directly bind the same `HTTPServer` instance to multiple ports. However, you can create multiple server instances, each bound to a different port, and run them concurrently. One common approach is to create a new thread for eac...
14,020
[ { "from": "human", "value": "I'm writing a small web server in Python, using BaseHTTPServer and a custom subclass of BaseHTTPServer.BaseHTTPRequestHandler. Is it possible to make this listen on more than one port?\nWhat I'm doing now:\nclass MyRequestHandler(BaseHTTPServer.BaseHTTPRequestHandler):\n def do...
I have a subroutine that takes a filehandle as an argument. How do I make a filehandle from a file path specified on the command line? I don't want to do any processing of this file myself, I just want to pass it off to this other subroutine, which returns an array of hashes with all the parsed data from the file. He...
To create a filehandle from a file path specified on the command line in Perl, you can use the `open` function. You will need to open the file for reading and pass the filehandle to the `parse` subroutine. Here’s how you can do it: 1. Use the command line argument to get the file path. 2. Open the file using the `open...
17,720
[ { "from": "human", "value": "I have a subroutine that takes a filehandle as an argument. How do I make a filehandle from a file path specified on the command line? I don't want to do any processing of this file myself, I just want to pass it off to this other subroutine, which returns an array of hashes w...
I want to build a site where the user can enter text and format it in Markdown. The reason I'd like a Javascript solution is because I want to display a live preview, just like on StackOverflow. My site is not targeted at developers, however, so an editor control would be ideal. I gather that on StackOverflow, the WMD ...
Building a Markdown editor with live preview is a great idea, and there are several options available to achieve this with JavaScript. WMD and Showdown are indeed popular choices, but there are other alternatives that might suit your needs as well. ### WMD / Showdown - **WMD (What You Markdown)**: This is a Markdown e...
15,855
[ { "from": "human", "value": "I want to build a site where the user can enter text and format it in Markdown. The reason I'd like a Javascript solution is because I want to display a live preview, just like on StackOverflow.\nMy site is not targeted at developers, however, so an editor control would be ideal...
I'm trying to define a task that emits (using echo) a message when a target completes execution, regardless of whether that target was successful or not. Specifically, the target executes a task to run some unit tests, and I want to emit a message indicating where the results are available: <target name="mytarget"> ...
To achieve your goal of emitting a message regardless of the success or failure of the unit tests, and also ensuring that your Ant build fails if any tests fail, you can use a combination of the `<trycatch>` task and the `<fail>` task from Ant. Here's how you can structure your Ant target to accomplish this: ```xml ...
16,705
[ { "from": "human", "value": "I'm trying to define a task that emits (using echo) a message when a target completes execution, regardless of whether that target was successful or not. Specifically, the target executes a task to run some unit tests, and I want to emit a message indicating where the results ...
I'm currently having a major issue with a python script. The script runs arbitrary commands through a handler to convert incorrect error reporting into correct error reporting. The issue I'm having is getting the script to work correctly on windows with a command that contains ampersands in it's path. I've attempted qu...
When working with paths that contain ampersands (`&`) in Windows, you might encounter issues because `&` has special significance in the Windows command line environment. However, since you're using the `subprocess` module and passing the command as a list (which is a good practice), the handling should theoretically b...
15,807
[ { "from": "human", "value": "I'm currently having a major issue with a python script. The script runs arbitrary commands through a handler to convert incorrect error reporting into correct error reporting.\nThe issue I'm having is getting the script to work correctly on windows with a command that contains ...
Which log4j Version is bundled with latest OpenCms 7?
As of my last knowledge update in October 2023, OpenCms 7 typically bundled with Log4j 1.x series. However, specific version details can vary with updates and patches to the OpenCms platform. It's recommended to check the official OpenCms documentation or the release notes for the specific version you are interested in...
20,648
[ { "from": "human", "value": "Which log4j Version is bundled with latest OpenCms 7?\n" }, { "from": "gpt", "value": "As of my last knowledge update in October 2023, OpenCms 7 typically bundled with Log4j 1.x series. However, specific version details can vary with updates and patches to the OpenCm...
Does any one know how can I convert a BSTR to an int in VC++ 2008 Thanks in advance.
In Visual C++ 2008, to convert a BSTR (Binary String) to an integer, you can use the `SysStringLen` function to obtain the length of the BSTR, and then use `_wtoi` or `wstringstream` for the conversion. Here’s a simple example of how to do it: ```cpp #include <windows.h> #include <comdef.h> #include <iostream> int BS...
18,217
[ { "from": "human", "value": "Does any one know how can I convert a BSTR to an int in VC++ 2008\nThanks in advance.\n" }, { "from": "gpt", "value": "In Visual C++ 2008, to convert a BSTR (Binary String) to an integer, you can use the `SysStringLen` function to obtain the length of the BSTR, and t...
Does anyone know how to resize images proportionally using JavaScript? I have tried to modify the DOM by adding attributes height and width on the fly, but seems did not work on IE6.
Resizing images proportionally in JavaScript can be done by calculating the new dimensions while maintaining the original aspect ratio. Below is a simple example demonstrating how to do this. Additionally, this code will ensure compatibility with older browsers like IE6 by using basic DOM manipulation techniques. Here...
14,275
[ { "from": "human", "value": "Does anyone know how to resize images proportionally using JavaScript?\nI have tried to modify the DOM by adding attributes height and width on the fly, but seems did not work on IE6.\n" }, { "from": "gpt", "value": "Resizing images proportionally in JavaScript can b...
I am wanting to use the Facebox plugin for JQuery but am having a few issues getting it running how I want. The div that houses the facebox content is created outside of the tag so even though I am loading up some web controls none of them are firing back to the server. Has anyone dealt with this that can give me som...
Using the Facebox plugin with jQuery can be a great way to create modal popups for your content, but dealing with issues related to server controls can sometimes complicate things, especially when content is created outside the normal form flow. Here are some pointers to help you troubleshoot and ensure that your web c...
14,180
[ { "from": "human", "value": "I am wanting to use the Facebox plugin for JQuery but am having a few issues getting it running how I want. The div that houses the facebox content is created outside of the tag so even though I am loading up some web controls none of them are firing back to the server.\nHas a...
Today the blinkenlights stereoscope project starts as part of the nuit blanche art event in Toronto. The Toronto city hall is transferred into a giant matrix display. There are tools to create custom animations and an iphone application to view the live stream. I think this is a great example of using technology for ...
The Blinkenlights Stereoscope project sounds like an exciting fusion of art and technology! There are many other coding and programming projects that aim to create art and beauty. Here are a few notable examples: 1. **Generative Art**: Artists like Casey Reas and Joshua Davis create artworks using algorithms that gene...
16,463
[ { "from": "human", "value": "Today the blinkenlights stereoscope project starts as part of the nuit blanche art event in Toronto. The Toronto city hall is transferred into a giant matrix display. There are tools to create custom animations and an iphone application to view the live stream. \n\nI think this ...
Our web site (running Rails) freezes IE6 nearly every time. The same code, deployed on a different server, does not freeze IE6. Where and how should we start tracking this down?
Troubleshooting the issue of your Rails application freezing Internet Explorer 6 on one server but not another involves a systematic approach. Here are steps you can take to track down the problem: 1. **Check Server Differences**: - **Environment Configuration**: Compare the Ruby, Rails, and web server versions on ...
14,093
[ { "from": "human", "value": "Our web site (running Rails) freezes IE6 nearly every time. The same code, deployed on a different server, does not freeze IE6. Where and how should we start tracking this down?\n" }, { "from": "gpt", "value": "Troubleshooting the issue of your Rails application free...
I'm wondering what strategies people use for reduced sign on with legacy applications and how effective they have found them? We have an ASP.Net based intranet and own a lot of the legacy applications, but not all. We also have BizTalk and are considering the use of it's SSO engine too.
Implementing reduced sign-on (RSO) strategies for legacy applications can be challenging, especially when dealing with a mixture of old and modern technologies. Here are some effective strategies and approaches organizations often use, particularly in an environment like yours with ASP.NET and BizTalk: ### 1. **Single...
9,651
[ { "from": "human", "value": "I'm wondering what strategies people use for reduced sign on with legacy applications and how effective they have found them? \nWe have an ASP.Net based intranet and own a lot of the legacy applications, but not all. We also have BizTalk and are considering the use of it's SSO...