instruction
stringlengths
14
27.6k
completion
stringlengths
3
38.3k
__original_row_idx
int64
0
50k
conversations
listlengths
2
2
Is there any open source OCR library written in .NET, or written in any language but can be used in an ASP.NET application? Or is there any open source OCR API available in the market for image to tabular formats ?
Yes, there are several open-source OCR libraries that can be used in .NET applications, including ASP.NET. Here are some options: ### 1. **Tesseract** - **Description**: Tesseract is one of the most popular open-source OCR engines. It supports multiple languages and can recognize text from images. - **Usage in .NET**:...
18,927
[ { "from": "human", "value": "Is there any open source OCR library written in .NET, or written in any language but can be used in an ASP.NET application?\nOr is there any open source OCR API available in the market for image to tabular formats ?\n" }, { "from": "gpt", "value": "Yes, there are sev...
I could write this, but before I do, I wanted to check to see if there are existing solutions out there since it seems a lot of websites already do this, so I was wondering if there was a quick way to do this. Also, I am talking about "popout" windows, not "popup" windows. All JavaScript libraries support "popup" wind...
Creating a "popout" window that opens in the same browser window but can also be opened in a new browser window is indeed a unique use case. While there are plenty of libraries for managing popups, the distinction you're making does limit the available options. However, you can implement a solution fairly easily using ...
20,645
[ { "from": "human", "value": "I could write this, but before I do, I wanted to check to see if there are existing solutions out there since it seems a lot of websites already do this, so I was wondering if there was a quick way to do this.\nAlso, I am talking about \"popout\" windows, not \"popup\" windows. ...
i need to be able to produce a "pretty" printout of an individual list item's values, with the goals being: get rid of all navigation organize data as it would appear on a typical paper form (a customer requirement) i'm avoiding using InfoPath at this time due to other issues (which i'll post separate questions for.....
Creating a "pretty" printout version of a SharePoint list item's values can be achieved by creating a custom page to present the data in a structured, paper-form-like layout. Below are steps you can take to create a PrintForm.aspx page that meets your requirements: ### Steps to Create a Printable Version of List Items...
20,446
[ { "from": "human", "value": "i need to be able to produce a \"pretty\" printout of an individual list item's values, with the goals being:\n\nget rid of all navigation\norganize data as it would appear on a typical paper form (a customer requirement)\n\ni'm avoiding using InfoPath at this time due to other ...
I have an UPDATE sql command that modifies a Date/Time field in a particular table. This table has two keys, ProductionCode and TestTime, which is what is being modified. The Production Code never changes for a particular record, but often a user will find that they entered the wrong test time and need to change it. I ...
Your current approach, while functional, does introduce complexity and fragility, especially when dealing with the user's ability to edit and sort records. Here are several potential improvements and strategies you can consider to enhance the reliability and maintainability of your solution: ### 1. Retrieve Records in...
21,094
[ { "from": "human", "value": "I have an UPDATE sql command that modifies a Date/Time field in a particular table. This table has two keys, ProductionCode and TestTime, which is what is being modified. The Production Code never changes for a particular record, but often a user will find that they entered the ...
Our development uses lots of open-source code and I'm trying to figure out what the best way to manage these external dependencies. Our current configuration: we are developing for both linux and windows We use svn for our own code external dependencies (boost, log4cpp, etc) are not stored in svn. Instead I put them u...
Managing external dependencies in a software project can be challenging, especially when those dependencies are updated frequently and you need to ensure that modifications are tracked properly. Here are some recommendations to improve your current strategy for managing open-source dependencies: ### 1. Use Dependency ...
19,735
[ { "from": "human", "value": "Our development uses lots of open-source code and I'm trying to figure out what the best way to manage these external dependencies.\nOur current configuration:\n\nwe are developing for both linux and windows\nWe use svn for our own code\nexternal dependencies (boost, log4cpp, et...
What's the most efficient way to read a stream into another stream? In this case, I'm trying to read data in a Filestream into a generic stream. I know I could do the following: 1. read line by line and write the data to the stream 2. read chunks of bytes and write to the stream 3. etc I'm just trying to find the mos...
The most efficient way to read data from a `FileStream` and write it to another stream in .NET is to read and write in chunks using a buffer. This method minimizes the number of read and write operations and takes advantage of buffered I/O. Here’s a simple implementation using a buffer to transfer data from one stream...
21,724
[ { "from": "human", "value": "What's the most efficient way to read a stream into another stream? In this case, I'm trying to read data in a Filestream into a generic stream. I know I could do the following:\n1. read line by line and write the data to the stream\n2. read chunks of bytes and write to the st...
I've seen well-textured balls, planets, and other spherical objects in couple of games, last time in UFO: aftermath. If you just splatter a texture into latitude/longditude as u and w -coordinates you'll get lots of ugly texture distortion to poles. I can think myself an one way to implement a spherical map with minimu...
Mapping textures onto spherical objects without distortion is a common challenge in computer graphics. Here are some approaches to generate spherical maps, handle distortion, and render spheres effectively. ### 1. **Spherical Mapping Using Triangles** One way to minimize distortion is to use a geometric representatio...
21,022
[ { "from": "human", "value": "I've seen well-textured balls, planets, and other spherical objects in couple of games, last time in UFO: aftermath. If you just splatter a texture into latitude/longditude as u and w -coordinates you'll get lots of ugly texture distortion to poles.\nI can think myself an one wa...
If I have the following code (this was written in .NET) double i = 0.1 + 0.1 + 0.1; Why doesn't i equal 0.3? Any ideas?
The issue you're encountering is related to how floating-point numbers are represented in computers, specifically in the IEEE 754 standard, which is commonly used in programming languages including C# in .NET. In this case, the values `0.1` cannot be represented exactly as a binary floating-point number. When you perf...
22,651
[ { "from": "human", "value": "If I have the following code (this was written in .NET)\ndouble i = 0.1 + 0.1 + 0.1;\n\nWhy doesn't i equal 0.3?\nAny ideas?\n" }, { "from": "gpt", "value": "The issue you're encountering is related to how floating-point numbers are represented in computers, specific...
It seems that the System.Diagnostics.Debug, and System.Diagnostics.Trace are largely the same, with the notable exception that Debug usage is compiled out in a release configuration. When would you use one and not the other? The only answer to this I've dug up so far is just that you use the Debug class to gene...
You are correct that both `System.Diagnostics.Debug` and `System.Diagnostics.Trace` classes serve similar purposes in logging and diagnostics, but they are intended for different scenarios and use cases. Let's elaborate on when you might prefer one over the other: ### `System.Diagnostics.Debug` 1. **Debugging During ...
22,283
[ { "from": "human", "value": "It seems that the \n\nSystem.Diagnostics.Debug, and \nSystem.Diagnostics.Trace \n\nare largely the same, with the notable exception that Debug usage is compiled out in a release configuration. \nWhen would you use one and not the other? The only answer to this I've dug up so f...
What's the best way to detect an application crash in XP (produces the same pair of 'error' windows each time - each with same window title) and then restart it? I'm especially interested to hear of solutions that use minimal system resources as the system in question is quite old. I had thought of using a scripting l...
Given your scenario—detecting specific error dialogs and restarting an application on Windows XP—using a lightweight scripting language can be a viable approach. Since you mentioned minimizing system resource usage, here are a few options and tips that could work for you: ### Option 1: AutoIt Script AutoIt is well-su...
19,621
[ { "from": "human", "value": "What's the best way to detect an application crash in XP (produces the same pair of 'error' windows each time - each with same window title) and then restart it?\nI'm especially interested to hear of solutions that use minimal system resources as the system in question is quite ...
We'd like to override DataGridView's default behavior when using a mouse wheel with this control. By default, the DataGridView scrolls a number of rows equal the SystemInformation.MouseWheelScrollLines setting. What we'd like to do is scroll just one item at a time. (We display images in the DataGridView, which are...
It looks like you've already implemented a good solution for handling the mouse wheel scrolling in your `DataGridView` control. By using reflection to modify the `Handled` property of `HandledMouseEventArgs`, you've successfully overridden the default behavior to scroll one item at a time, which is especially useful fo...
21,671
[ { "from": "human", "value": "We'd like to override DataGridView's default behavior when using a mouse wheel with this control. By default, the DataGridView scrolls a number of rows equal the SystemInformation.MouseWheelScrollLines setting. What we'd like to do is scroll just one item at a time. \n(We dis...
It seems pretty common to want to let your javascript know a particular dom node corresponds to a record in the database. So, how do you do it? One way I've seen that's pretty common is to use a class for the type and an id for the id: <div class="thing" id="5"> <script> myThing = select(".thing#5") </script> There's...
You're right to consider the implications of using IDs and data attributes for associating DOM nodes with records in a database. Let's break down both approaches: ### Using IDs: ```html <div class="thing" id="5"> <script> myThing = select(".thing#5") </script> ``` **Pros:** - **Simplicity**: Using an ID makes it easy ...
21,984
[ { "from": "human", "value": "It seems pretty common to want to let your javascript know a particular dom node corresponds to a record in the database. So, how do you do it?\nOne way I've seen that's pretty common is to use a class for the type and an id for the id:\n<div class=\"thing\" id=\"5\">\n<script>...
Is there a command-line approach for having VS 2008 remove TFS source control bindings from a solution file and the constituent project files? I need something that I can run from a batch file so that I don't have to open the solution and click the 2 prompts to permanently remove the bindings. Edit: After deleting the...
Yes, you can automate the removal of TFS source control bindings from a Visual Studio 2008 solution and its project files using the `devenv` command-line tool. This tool can open a solution and execute commands such as removing source control bindings without requiring user interaction. However, Visual Studio 2008 doe...
18,795
[ { "from": "human", "value": "Is there a command-line approach for having VS 2008 remove TFS source control bindings from a solution file and the constituent project files? I need something that I can run from a batch file so that I don't have to open the solution and click the 2 prompts to permanently remo...
Let's look at an example - books. A book can have 1..n authors. An author can have 1..m books. What is a good way to represent all of the authors of a book? I came up with an idea to create a Books table and an Authors table. The Authors table has a primary AuthorID key the author's name. The Books table has a primary ...
To address the problem of modeling a many-to-many relationship between books and authors (where an author can have multiple books and a book can have multiple authors) while also accounting for variations in author names and linking them to a central representation of a person (such as an "interesting person"), you can...
18,815
[ { "from": "human", "value": "Let's look at an example - books. A book can have 1..n authors. An author can have 1..m books. What is a good way to represent all of the authors of a book?\nI came up with an idea to create a Books table and an Authors table. The Authors table has a primary AuthorID key the aut...
Background: In my job, we use SVN, C# and VisualStudio. Part of my task regularly involves global renames. Often I end up with a broken build after renaming something and then merging in changes. The question: is there a solution out there that can look at my changes, notice the global rename and then apply that to the...
What you are experiencing is a common challenge in collaborative software development, especially when using version control systems like SVN and working with a language that has strong typing and a complex type system like C#. While there's no perfect solution, there are a few strategies and tools you can consider to ...
21,942
[ { "from": "human", "value": "Background: In my job, we use SVN, C# and VisualStudio. Part of my task regularly involves global renames. Often I end up with a broken build after renaming something and then merging in changes.\nThe question: is there a solution out there that can look at my changes, notice th...
When using a UITableViewController, the initWithStyle: method automatically creates the underlying UITableView with - according to the documentation - "the correct dimensions". My problem is that these "correct dimensions" seem 320x460 (the iPhone's screen size), but I'm pushing this TableView/Controller pair into a UI...
It sounds like you're running into an issue where the `UINavigationController` is adjusting the size of the `UITableView` after it's been added to the view hierarchy, which can be a bit frustrating. The `UINavigationController` will typically adjust its child view controllers to fill the entire screen, which is why you...
21,897
[ { "from": "human", "value": "When using a UITableViewController, the initWithStyle: method automatically creates the underlying UITableView with - according to the documentation - \"the correct dimensions\".\nMy problem is that these \"correct dimensions\" seem 320x460 (the iPhone's screen size), but I'm pu...
I’m writing a prototype WCF enabled distributed app, to try and find out any issues I’ll have upgrading my existing “sending xml over tcp to communicate” apps I’ve got. I’m using Callback Contracts to register clients with a server (Singleton in ServiceHost) and so far all the communications between client and server ...
In your WCF application using `net.tcp`, there are a few different approaches you can take to log the timestamps for when messages are sent from the server and when they are received on the client. Here are some suggestions: ### 1. **Using a Custom Message Inspector:** WCF provides the ability to create custom messag...
21,444
[ { "from": "human", "value": "I’m writing a prototype WCF enabled distributed app, to try and find out any issues I’ll have upgrading my existing “sending xml over tcp to communicate” apps I’ve got. I’m using Callback Contracts to register clients with a server (Singleton in ServiceHost) and so far all the ...
I am trying to run a diff on two svn urls using SVNkit. The problem is that I get the error when diff.doDiff is called. org.tmatesoft.svn.core.SVNException: svn: Unable to create SVNRepository object for 'http://svn.codehaus.org/jruby/trunk/jruby/src/org/jruby/Finalizable.java' at org.tmatesoft.svn.core.int...
The error message you're encountering indicates that the `SVNRepository` object could not be created for the URL you're using in the `doDiff` method. There are several potential issues that could cause this error, which we'll go through below: 1. **Incorrect URL Format**: Ensure that the URLs you are using are properl...
21,667
[ { "from": "human", "value": "I am trying to run a diff on two svn urls using SVNkit. The problem is that I get the error when diff.doDiff is called.\n\norg.tmatesoft.svn.core.SVNException: svn: Unable to create\n SVNRepository object for\n 'http://svn.codehaus.org/jruby/trunk/jruby/src/org/jruby/Finaliza...
For example, launch Paint.NET. Then have a look on its memory usage with Task Manager: on my computer, it uses 36Mb. Then minimize Paint.NET: now it takes only a few more than 1Mb. This happens with every .NET Application. What happens when a .NET Application is minimized? Is a GC occurring?
When a .NET application is minimized, several factors can influence its memory usage, but it's important to clarify that the .NET Garbage Collector (GC) does not automatically trigger a collection just because an application is minimized. Here are some key points about what happens when you minimize a .NET application:...
24,895
[ { "from": "human", "value": "For example, launch Paint.NET. Then have a look on its memory usage with Task Manager: on my computer, it uses 36Mb.\nThen minimize Paint.NET: now it takes only a few more than 1Mb.\nThis happens with every .NET Application. What happens when a .NET Application is minimized? Is ...
My main JavaScript framework is jQuery, so I would like my unit test and mocking frameworks to be compatible with that. I'd rather not have to introduce another JavaScript framework. I am currently using QUnit for unit testing and Jack for mocking, but I am pretty new to the whole unit testing of JavaScript. Is there a...
If you are comfortable with jQuery and are looking for unit testing and mocking frameworks that align well with it, QUnit is actually a solid choice for unit testing as it is designed to work seamlessly with jQuery. Since you are already using QUnit, there may not be a pressing need to switch to another testing framewo...
21,277
[ { "from": "human", "value": "My main JavaScript framework is jQuery, so I would like my unit test and mocking frameworks to be compatible with that. I'd rather not have to introduce another JavaScript framework.\nI am currently using QUnit for unit testing and Jack for mocking, but I am pretty new to the wh...
Are you aware of any open source libraries/projects that offer audio watermarking capability?
Yes, there are several open-source libraries and projects that offer audio watermarking capabilities. Here are some of them: 1. **Audacity**: - While primarily an audio editing tool, Audacity has plugins and scripts that can be used for audio watermarking. You can check the community contributions for specific wate...
24,012
[ { "from": "human", "value": "Are you aware of any open source libraries/projects that offer audio watermarking capability?\n" }, { "from": "gpt", "value": "Yes, there are several open-source libraries and projects that offer audio watermarking capabilities. Here are some of them:\n\n1. **Audacit...
I need to match a string like "one. two. three. four. five. six. seven. eight. nine. ten. eleven" into groups of four sentences. I need a regular expression to break the string into a group after every fourth period. Something like: string regex = @"(.*.\s){4}"; System.Text.RegularExpressions.Regex exp = new...
To achieve the desired functionality of breaking a string into groups of four sentences based on periods, you can use a regular expression that specifically matches the periods while counting them. You can utilize a lookbehind assertion to ensure that you're only replacing the fourth period (and not the text preceding ...
25,679
[ { "from": "human", "value": "I need to match a string like \"one. two. three. four. five. six. seven. eight. nine. ten. eleven\" into groups of four sentences. I need a regular expression to break the string into a group after every fourth period. Something like: \n string regex = @\"(.*.\\s){4}\";\n\...
I just installed the first release candidate of Python 3.0 and got this error after typing: >>> help('modules foo') [...] LookupError: unknown encoding: uft-8 Notice that it says uft-8 and not utf-8 Is this a py3k specific bug or a misconfiguration on my part? I do not have any other versions of Python installed on th...
The error you're encountering (`LookupError: unknown encoding: uft-8`) appears to be a bug in the early release candidate of Python 3.0. The typo in the encoding name (`uft-8` instead of `utf-8`) suggests that there is likely a bug in the code that is handling character encodings. Since you mentioned that you are usi...
22,790
[ { "from": "human", "value": "I just installed the first release candidate of Python 3.0 and got this error after typing:\n>>> help('modules foo')\n\n[...]\nLookupError: unknown encoding: uft-8\nNotice that it says uft-8 and not utf-8\nIs this a py3k specific bug or a misconfiguration on my part? I do not ha...
Hi Anyone know of a simple system of getting xml formatted inside an editor. I mainly use textpad so that would be my main interest. What I'm really asking is that when I paste an xml string from a logfile or something into textpad that I can use a plugin or a third party tool to format the xml in textpad so it is re...
It's great to hear that you found a solution in EditPad Pro! For anyone still looking for options to format XML within TextPad or similar editors, here are a few suggestions you might consider: 1. **Online XML Formatters**: If you're open to using online tools, there are many XML beautifiers available. You can copy yo...
21,545
[ { "from": "human", "value": "Hi Anyone know of a simple system of getting xml formatted inside an editor. I mainly use textpad so that would be my main interest. What I'm really asking is that when I paste an xml string from a logfile or something into textpad that I can use a plugin or a third party tool...
My friend was given this free google website optimizer tshirt and came to me to try and figure out what the front logo meant. t-shirt So, I have a couple of guesses as to what it means, but I was just wondering if there is something more. My first guess is that each block represents a page layout, and the logo "You sho...
The Google Website Optimizer t-shirt you described likely features a logo that conveys the importance of A/B testing in web design, which aligns with the service the optimizer provided. Google Website Optimizer was a tool designed to help website owners improve their site's performance by allowing them to test differen...
25,890
[ { "from": "human", "value": "My friend was given this free google website optimizer tshirt and came to me to try and figure out what the front logo meant.\nt-shirt\nSo, I have a couple of guesses as to what it means, but I was just wondering if there is something more.\nMy first guess is that each block rep...
I've got a really large project I made for myself and rece3ntly a client asked for their own version of it with some modifications. The project name was rather silly and my client wants the source so I figured it'd be best if I renamed all my files from sillyname.h sillyname.cpp sillyname.dsp etc.. Unfortunatly afte...
Renaming a project and ensuring everything compiles correctly can sometimes be a bit tricky, especially when dealing with legacy projects. Here are some steps to help you rename your project and resolve the errors you're encountering: ### Step 1: Change the Project Name 1. **Project File**: Locate the project file (e...
21,450
[ { "from": "human", "value": "I've got a really large project I made for myself and rece3ntly a client asked for their own version of it with some modifications. The project name was rather silly and my client wants the source so I figured it'd be best if I renamed all my files from\nsillyname.h\nsillyname....
With so many ways to attack a site, it would be useful if there is a single guide, or resource, listing all known vunerabilties with possible preventative measures. Does anyone know of any? Also, is there a library or framework that can deal with this kind of thing?
Yes, there are several resources and frameworks that can help you understand known vulnerabilities and preventative measures for web applications: ### Resources for Known Vulnerabilities and Preventative Measures 1. **OWASP Top Ten**: - The OWASP (Open Web Application Security Project) Top Ten is a widely recogniz...
23,225
[ { "from": "human", "value": "With so many ways to attack a site, it would be useful if there is a single guide, or resource, listing all known vunerabilties with possible preventative measures. Does anyone know of any?\nAlso, is there a library or framework that can deal with this kind of thing?\n" }, {...
Is there any simple way to generate a default crud (given an entity) with activerecord (castle implementation) or something similar for NET? There is something like this for RoR ( it think its called activescaffold) Thanks
In the .NET ecosystem, specifically when working with ActiveRecord-like patterns in Castle Windsor (which is a dependency injection container) and ActiveRecord, you can use a few libraries and frameworks to generate CRUD (Create, Read, Update, Delete) functionality for your entities. While there isn’t a direct equival...
20,571
[ { "from": "human", "value": "Is there any simple way to generate a default crud (given an entity) with activerecord (castle implementation) \nor something similar for NET?\nThere is something like this for RoR ( it think its called activescaffold)\nThanks\n" }, { "from": "gpt", "value": "In the ...
I am trying to debug a strange issue with users that have LogMeIn installed. After a few days, some of my dialogs that my app opens can end up offscreen. If I could reliable detect that, I could programmatically move the dialogs back where they are visible again. Note: this has to work for multiple monitors and use the...
Debugging the issue of dialogs opening off-screen, especially in the context of using multiple monitors with an application that interacts with LogMeIn and wxWidgets, can be a tricky endeavor. To handle this problem using the Win32 API, you can create a mechanism to check if the dialog is within the bounds of any of th...
21,176
[ { "from": "human", "value": "I am trying to debug a strange issue with users that have LogMeIn installed. After a few days, some of my dialogs that my app opens can end up offscreen. If I could reliable detect that, I could programmatically move the dialogs back where they are visible again.\nNote: this has...
What is the preferred way using the CF 3.5 to get get data from a web service? I am getting back a series of tables from the web service.
In ColdFusion 3.5, you can access web services using the `CFHTTP` tag to make HTTP requests to the web service endpoint. While ColdFusion 3.5 is quite old and lacks the more advanced web service support found in later versions, you can still interact with web services using this approach. Here’s how you can do it: 1. ...
22,436
[ { "from": "human", "value": "What is the preferred way using the CF 3.5 to get get data from a web service? I am getting back a series of tables from the web service.\n" }, { "from": "gpt", "value": "In ColdFusion 3.5, you can access web services using the `CFHTTP` tag to make HTTP requests to ...
I love data visualisation and to spread that love I thought we could share our favourite examples of data visualisation: Chess moves http://turbulence.org/spotlight/thinking/chess.html Chris Harrison's Visualisations http://www.chrisharrison.net/projects/visualization.html I especially like the bible and Wikipedia visu...
Those are great examples of data visualization! Each of them showcases unique ways to represent information that can enhance understanding and engagement. 1. **Chess Moves**: The visualization of chess moves is fascinating because it allows users to explore the complexity and strategy behind the game. It's an excellen...
25,333
[ { "from": "human", "value": "I love data visualisation and to spread that love I thought we could share our favourite examples of data visualisation:\nChess moves http://turbulence.org/spotlight/thinking/chess.html\nChris Harrison's Visualisations http://www.chrisharrison.net/projects/visualization.html\nI ...
Does anyone know where I can find a library of common but difficult (out of the ordinary) SQL script examples. I am talking about those examples you cannot find in the documentation but do need very often to accomplish tasks such as finding duplicates etc. It would be a big time saver to have something like that handy....
Here’s a collection of common but sometimes tricky SQL queries that can help you with various tasks. This is not exhaustive but should provide a good starting point. ### 1. Finding Duplicate Records **Description:** This query helps find duplicate records based on a specific column (or combination of columns). ```sq...
19,876
[ { "from": "human", "value": "Does anyone know where I can find a library of common but difficult (out of the ordinary) SQL script examples. I am talking about those examples you cannot find in the documentation but do need very often to accomplish tasks such as finding duplicates etc.\nIt would be a big tim...
I need to add the ability for users of my software to select records by character ranges. How can I write a query that returns all widgets from a table whose name falls in the range Ba-Bi for example? Currently I'm using greater than and less than operators, so the above example would become: select * from widget where...
When constructing queries that depend on character ranges, especially with localization in mind, there are several considerations to keep in mind. ### Generic Character Range Queries To handle character ranges correctly, especially in a localized context, your approach to adjust the upper limit character can work but...
22,399
[ { "from": "human", "value": "I need to add the ability for users of my software to select records by character ranges.\nHow can I write a query that returns all widgets from a table whose name falls in the range Ba-Bi for example?\nCurrently I'm using greater than and less than operators, so the above examp...
I have a namespaced controller for some admin functionality. My create form does not work -- it ends up routing the request to the index action instead of the create action. Why isn't the POST getting routed to the create action as it should (being RESTful)? routes.rb: map.namespace :admin do |admin| admin.res...
Based on the information you've provided, it seems that the POST request meant for the `create` action is incorrectly being routed to the `index` action. This is commonly caused by a couple of potential issues in your form setup or routing. Here are some possible reasons why this could be happening: 1. **Form Submiss...
22,960
[ { "from": "human", "value": "I have a namespaced controller for some admin functionality. My create form does not work -- it ends up routing the request to the index action instead of the create action. \nWhy isn't the POST getting routed to the create action as it should (being RESTful)?\nroutes.rb:\n m...
Trivial data binding examples are just that, trivial. I want to do something a little more complicated and am wondering if there's an easy, built in way to handle it. public partial class Form1 : Form { public Form1() { InitializeComponent(); List<DataStruct> list = new List<DataStruct>() { new D...
In WinForms, the `ListBox` control doesn't support complex data binding directly via nested properties like `"ComplexValue.Part1"`. The `DisplayMember` property can only take a simple property name of the bound object. To handle this, you have a couple of options: ### Option 1: Override `ToString()` You can override...
24,602
[ { "from": "human", "value": "Trivial data binding examples are just that, trivial. I want to do something a little more complicated and am wondering if there's an easy, built in way to handle it.\npublic partial class Form1 : Form\n{\n public Form1()\n {\n InitializeComponent();\n List<DataStruct> ...
Ok, let's see if I can make this make sense. I have a program written that parses an Excel file and it works just fine. I use the following to get into the file: string FileToConvert = Server.MapPath(".") + "\\App_Data\\CP-ARFJN-FLAG.XLS"; string connectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + F...
You're encountering an issue with the Excel file format that the OLE DB provider is unable to handle. The error message "External table is not in the expected format" typically indicates that the file you're trying to read is not in a format that the OLE DB driver expects for the connection string you've provided. ###...
20,443
[ { "from": "human", "value": "Ok, let's see if I can make this make sense. \nI have a program written that parses an Excel file and it works just fine. I use the following to get into the file:\nstring FileToConvert = Server.MapPath(\".\") + \"\\\\App_Data\\\\CP-ARFJN-FLAG.XLS\";\nstring connectionString =...
How can I modify a SharePoint site so that versioning is turned on by default in Document Libraries?
To ensure that versioning is turned on by default for all Document Libraries in a SharePoint site, you will typically need to configure settings at the site collection level or adjust individual Document Library settings as necessary. Here’s how you can do it: ### Method 1: Configure Versioning for Existing Document L...
21,417
[ { "from": "human", "value": "How can I modify a SharePoint site so that versioning is turned on by default in Document Libraries?\n" }, { "from": "gpt", "value": "To ensure that versioning is turned on by default for all Document Libraries in a SharePoint site, you will typically need to configu...
If you want a cryptographically strong random numbers in Java, you use SecureRandom. Unfortunately, SecureRandom can be very slow. If it uses /dev/random on Linux, it can block waiting for sufficient entropy to build up. How do you avoid the performance penalty? Has anyone used Uncommon Maths as a solution to this prob...
To generate cryptographically strong random numbers in Java, `SecureRandom` is indeed the recommended approach. However, as you mentioned, one of the downsides of `SecureRandom` is its reliance on entropy sources, particularly `/dev/random` on Unix-like systems, which can block if there's not enough entropy available. ...
19,509
[ { "from": "human", "value": "If you want a cryptographically strong random numbers in Java, you use SecureRandom. Unfortunately, SecureRandom can be very slow. If it uses /dev/random on Linux, it can block waiting for sufficient entropy to build up. How do you avoid the performance penalty?\nHas anyone used...
I have a template in word (.docx) format and want to replace some placeholders in this template with my own data, do you know where I can find the right classes for this project? It would be nice for me to know the namespace. Are there any newer classes for handling word documents in the docx format (xml) than the com ...
Hi Sebastian, For handling .docx files in Java, there are several libraries you can use to replace placeholders in a Word document. One of the most popular libraries is **Apache POI**, specifically the **Apache POI XWPF** package for .docx files. ### Apache POI 1. **Library**: Apache POI 2. **Namespace**: `org.apac...
21,478
[ { "from": "human", "value": "I have a template in word (.docx) format and want to replace some placeholders in this template with my own data, do you know where I can find the right classes for this project? It would be nice for me to know the namespace. Are there any newer classes for handling word documen...
Heres a screenshot to make it clear. I'm trying to figure out a robust way of making the bullet images vertically aligned to my li content. As you can see my content is currently too high. Many thanks 'over-flowers'... http://dl.getdropbox.com/u/240752/list-example.gif
It sounds like you're trying to vertically align the bullet images in a list to match the text in your `<li>` elements. This is a common issue when using images as bullets. Here are a few methods you can use to achieve better vertical alignment: ### Method 1: Adjust Padding or Margin You can adjust the padding or marg...
23,403
[ { "from": "human", "value": "Heres a screenshot to make it clear. I'm trying to figure out a robust way of making the bullet images vertically aligned to my li content. As you can see my content is currently too high.\nMany thanks 'over-flowers'...\nhttp://dl.getdropbox.com/u/240752/list-example.gif\n" },...
How do I tar a list of files and folders (all in the same directory) with the exclusion of a single directory (which contains a huge amount of data)
To create a tar archive of a list of files and folders while excluding a specific directory, you can use the `tar` command with the `--exclude` option. Here’s a step-by-step guide on how to do that: 1. **Open your terminal**. 2. **Navigate to the directory** where your files and folders are located using the `cd` com...
20,766
[ { "from": "human", "value": "How do I tar a list of files and folders (all in the same directory) with the exclusion of a single directory (which contains a huge amount of data)\n" }, { "from": "gpt", "value": "To create a tar archive of a list of files and folders while excluding a specific dir...
I have seen the other questions but I am still not satisfied with the way this subject is covered. I would like to extract a distiled list of things to check on comments at a code inspection. I am sure people will say things that will just cancel each other. But hey, maybe we can build a list for each camp. For those ...
Certainly! In code inspections, comments can be a critical aspect of the code's readability, maintainability, and overall quality. Below is a distilled list of things to check regarding comments during a code inspection, categorized into two camps: **"Comment Supporters"** and **"Comment Skeptics."** ### Comment Supp...
22,750
[ { "from": "human", "value": "I have seen the other questions but I am still not satisfied with the way this subject is covered.\nI would like to extract a distiled list of things to check on comments at a code inspection. \nI am sure people will say things that will just cancel each other. But hey, maybe we...
My company has recently became a Microsoft Certified Partner and from a business perspective it helps us greatly as it provides the software licenses needed to continue development in a much more cost effective manner, and the added benefit of marketing abilities. Now, I know that Microsoft Certified Partner status is ...
As a .NET developer, the status of a company as a Microsoft Certified Partner can certainly be a factor in evaluating potential employers. Here are several reasons why this certification might be viewed positively: 1. **Access to Resources**: Being a Microsoft Certified Partner typically means that the organization ha...
22,514
[ { "from": "human", "value": "My company has recently became a Microsoft Certified Partner and from a business perspective it helps us greatly as it provides the software licenses needed to continue development in a much more cost effective manner, and the added benefit of marketing abilities.\nNow, I know t...
...Yes I've seen: Best Resources for Learning JavaFX? but it doesn't really answer the question. Maybe there just aren't any good resources at the moment? UPDATE: http://developers.sun.com/rss/javafx.xml is OK
JavaFX is a powerful framework for building desktop applications, and while it may not have as many resources as some other frameworks, there are still valuable materials available for learning it. Here are some of the best resources you might find helpful: ### Official Documentation - **JavaFX Official Documentation*...
23,383
[ { "from": "human", "value": "...Yes I've seen:\nBest Resources for Learning JavaFX?\nbut it doesn't really answer the question. Maybe there just aren't any good resources at the moment?\nUPDATE:\nhttp://developers.sun.com/rss/javafx.xml is OK\n" }, { "from": "gpt", "value": "JavaFX is a powerful...
I'd like to use Rich Text Editing in place on forms in order to let admins change instructions. What are the best options for doing this? [To be more clear - the admins are non-technical but may want to control some formatting without using markup or with as little markup as possible. What I'd like is for them to be...
For implementing Rich Text Editing (RTE) in a Ruby on Rails application, especially considering your requirements of simplicity for non-technical admins and the need for AJAX functionality, here are some popular and user-friendly options: ### 1. **Trix** - **Description**: Trix is a rich text editor for everyday writi...
20,537
[ { "from": "human", "value": "I'd like to use Rich Text Editing in place on forms in order to let admins change instructions. What are the best options for doing this?\n[To be more clear - the admins are non-technical but may want to control some formatting without using markup or with as little markup as ...
There are a group of private methods in my class, and I need to call one dynamically based on an input value. Both the invoking code and the target methods are in the same instance. The code looks like this: MethodInfo dynMethod = this.GetType().GetMethod("Draw_" + itemType); dynMethod.Invoke(this, new object[] { metho...
To retrieve private methods using reflection in C#, you need to specify the `BindingFlags` to include `BindingFlags.NonPublic` along with `BindingFlags.Instance` since you're working with instance methods. Here is how you can modify your code: ```csharp MethodInfo dynMethod = this.GetType().GetMethod("Draw_" + itemT...
26,130
[ { "from": "human", "value": "There are a group of private methods in my class, and I need to call one dynamically based on an input value. Both the invoking code and the target methods are in the same instance. The code looks like this:\nMethodInfo dynMethod = this.GetType().GetMethod(\"Draw_\" + itemType);...
Are there any plugins/tools available to go through the classpath of an eclipse project (or workspace) and highlight any unused jars?
Yes, there are several tools and plugins available for Eclipse that can help identify unused JAR files in your project or workspace. Here are a few options: 1. **Eclipse's Built-in Features**: - While Eclipse doesn't have a direct feature for highlighting unused JARs, you can manually check for unused libraries by ...
25,722
[ { "from": "human", "value": "Are there any plugins/tools available to go through the classpath of an eclipse project (or workspace) and highlight any unused jars?\n" }, { "from": "gpt", "value": "Yes, there are several tools and plugins available for Eclipse that can help identify unused JAR fil...
Right now, I have a SQL Query like this one: SELECT X, Y FROM POINTS It returns results like so: X Y ---------- 12 3 15 2 18 12 20 29 I'd like to return results all in one row, like this (suitable for using in an HTML <AREA> tag): XYLIST ---------- 12,3,15,2,18,12,20,29 Is there a way to do this using jus...
Yes, you can achieve this by using SQL functions to concatenate the values from your query into a single row. The specific function you would use depends on the SQL database system you are using, as different databases have different ways to handle string aggregation. Here are examples for some common SQL databases: ...
22,889
[ { "from": "human", "value": "Right now, I have a SQL Query like this one:\nSELECT X, Y FROM POINTS\n\nIt returns results like so:\nX Y\n----------\n12 3\n15 2\n18 12\n20 29\n\nI'd like to return results all in one row, like this (suitable for using in an HTML <AREA> tag):\nXYLIST\n----------\n12,...
I've a small project that I want to share with a few others on a machine that we all have access to. I created a bare copy of the local repo with git clone --bare --no-hardlinks path/to/.git/ repoToShare.git I then moved repoToShare.git to the server. I can check it out with the following: git clone ssh://user@address...
The error message you're encountering indicates that there is a missing project description file that is typically required when using a bare repository with certain configurations. This usually occurs in server-side Git hooks which are designed to enforce certain policies for updating the repository. Here's a breakdo...
25,048
[ { "from": "human", "value": "I've a small project that I want to share with a few others on a machine that we all have access to. I created a bare copy of the local repo with\ngit clone --bare --no-hardlinks path/to/.git/ repoToShare.git\n\nI then moved repoToShare.git to the server.\nI can check it out wit...
I've got a .NET 3.5 class lib that I am trying to write some automated tests for but I'm getting the following error when running any tests in the solution: Test method Common.Tests.CommonTests.TestMethod1 threw exception: System.IO.FileNotFoundException: Could not load file or assembly 'Library.Common, Version=0.0.1...
The `FileNotFoundException` you're experiencing indicates that the test runner is unable to locate the `Library.Common` assembly or one of its dependencies. Here are some steps you can take to troubleshoot and resolve this issue: ### 1. Verify Build Configuration Ensure that both the `Library.Common` project and the t...
21,093
[ { "from": "human", "value": "I've got a .NET 3.5 class lib that I am trying to write some automated tests for but I'm getting the following error when running any tests in the solution:\n\nTest method Common.Tests.CommonTests.TestMethod1 threw exception: System.IO.FileNotFoundException: Could not load file...
I want to change/animate the Foreground property of a custom button control template depending on the control's state. Pre-RC0, I set the Foreground of the ContentPresenter, gave it an x:Name, and referenced it in the VisualStateManager transitions. Now, ContentPresenter no longer has a Foreground, since it doesn't inh...
It sounds like you're working on a custom button control in WPF (or a similar XAML-based framework) and are trying to handle the visual states, specifically with changing the foreground color. Since the `ContentPresenter` doesn't have a `Foreground` property anymore, you have found a workaround by using a `TextBlock`. ...
20,361
[ { "from": "human", "value": "I want to change/animate the Foreground property of a custom button control template depending on the control's state.\nPre-RC0, I set the Foreground of the ContentPresenter, gave it an x:Name, and referenced it in the VisualStateManager transitions.\nNow, ContentPresenter no lo...
As it was made clear in my recent question, Swing applications need to explicitly call System.exit() when they are ran using the Sun Webstart launcher (at least as of Java SE 6). I want to restrict this hack as much as possible and I am looking for a reliable way to detect whether the application is running under Webst...
Detecting whether a Java application is running under Java Web Start (JWS) can be tricky, as there are no official guarantees that certain system properties will always be present in future versions. However, checking the `webstart.version` property is a common and reasonable approach since it's widely used. Neverthele...
21,515
[ { "from": "human", "value": "As it was made clear in my recent question, Swing applications need to explicitly call System.exit() when they are ran using the Sun Webstart launcher (at least as of Java SE 6).\nI want to restrict this hack as much as possible and I am looking for a reliable way to detect whet...
We have literally 100's of Access databases floating around the network. Some with light usage and some with quite heavy usage, and some no usage whatsoever. What we would like to do is centralise these databases onto a managed database and retain as much as possible of the reports and forms within them. The benefits o...
Migrating a large number of Microsoft Access databases into a centralized RDBMS can be a complex task, but it can be streamlined with a well-planned approach and the right tools. Here’s a step-by-step guide to help you achieve this, as well as some suggestions for tools and technologies that can facilitate the migratio...
14,424
[ { "from": "human", "value": "We have literally 100's of Access databases floating around the network. Some with light usage and some with quite heavy usage, and some no usage whatsoever. What we would like to do is centralise these databases onto a managed database and retain as much as possible of the repo...
How do I determine if the currency symbol is supposed to be on the left or right of a number using CFLocale / CFNumberFormatter in a Mac Carbon project? I need to interface with a spreadsheet application which requires me to pass a number, currency symbol, currency symbol location and padding instead of a CStringRef cr...
To determine the position of the currency symbol relative to a number using Core Foundation's `CFNumberFormatter`, you can utilize `CFNumberFormatter` methods to inspect the formatting settings related to currency. Specifically, you will be looking for the `CFNumberFormatterCurrencySymbol` and the direction of the numb...
22,027
[ { "from": "human", "value": "How do I determine if the currency symbol is supposed to be on the left or right of a number using CFLocale / CFNumberFormatter in a Mac Carbon project?\nI need to interface with a spreadsheet application which requires me to pass a number, currency symbol, currency symbol locat...
What do I use to search for multiple words in a string? I would like the logical operation to be AND so that all the words are in the string somewhere. I have a bunch of nonsense paragraphs and one plain English paragraph, and I'd like to narrow it down by specifying a couple common words like, "the" and "and", but w...
To search for multiple words in a string where the logical operation is AND (meaning all specified words must be present), you can use a programming language or tool that supports string manipulation and searching. Here's how you can do this in a few different programming languages: ### Python You can use Python's bui...
22,966
[ { "from": "human", "value": "What do I use to search for multiple words in a string? I would like the logical operation to be AND so that all the words are in the string somewhere. I have a bunch of nonsense paragraphs and one plain English paragraph, and I'd like to narrow it down by specifying a couple ...
I'm currently using Toad for my day-to-day work on our databases (queries, updates, small scripts, browsing of db objects, etc.). My question is: since my version of Toad is old and buggy, which are the (possibly free, but not necessarily) alternatives to Toad? The database versions we are using are 10g and 9i. Thanks ...
If you're looking for alternatives to Toad for working with Oracle databases, there are several options available that you might consider. Here’s a mix of both free and commercial tools that are capable of handling tasks similar to those you perform with Toad: ### Free Alternatives: 1. **SQL Developer**: - Oracle’...
24,482
[ { "from": "human", "value": "I'm currently using Toad for my day-to-day work on our databases (queries, updates, small scripts, browsing of db objects, etc.).\nMy question is: since my version of Toad is old and buggy, which are the (possibly free, but not necessarily) alternatives to Toad?\nThe database ve...
I'm looking for an easiest way how to implement the "suggest" feature for a text entry field in a Rails application. The idea is to complete names stored in a database column, giving the user a drop-down menu of possible matches as he types. Thanks for any suggestions!
Implementing a "suggest" feature for a text entry field in a Rails application can be accomplished using a combination of JavaScript (or a library like jQuery), an AJAX request to your Rails backend, and an appropriate controller action to fetch suggestions from the database. Here’s a step-by-step guide to help you imp...
18,239
[ { "from": "human", "value": "I'm looking for an easiest way how to implement the \"suggest\" feature for a text entry field in a Rails application. The idea is to complete names stored in a database column, giving the user a drop-down menu of possible matches as he types.\nThanks for any suggestions!\n" }...
Bearing in mind this is for classic asp Which is better, all HTML contained within Response.Write Statements or inserting variables into HTML via <%= %>. Eg Response.Write "<table>" & vbCrlf Response.Write "<tr>" &vbCrLf Response.Write "<td class=""someClass"">" & someVariable & "</td>" & vbCrLf Response.Write "</tr>...
When considering classic ASP, both `Response.Write` and `<%= %>` serve the purpose of injecting dynamic content into HTML. However, there are some distinctions between the two methods that can impact performance, readability, and maintainability of your code. ### Performance Considerations 1. **Execution Speed**: ...
18,215
[ { "from": "human", "value": "Bearing in mind this is for classic asp\nWhich is better, all HTML contained within Response.Write Statements or inserting variables into HTML via <%= %>.\nEg \nResponse.Write \"<table>\" & vbCrlf\nResponse.Write \"<tr>\" &vbCrLf\nResponse.Write \"<td class=\"\"someClass\"\">\"...
Should I use the GWT for a struts web application?
Using Google Web Toolkit (GWT) in a Struts web application can be beneficial, but it depends on your specific requirements and project goals. Here are some factors to consider: ### Advantages of Using GWT with Struts 1. **Rich User Interface**: GWT allows you to create a rich and interactive user interface that can e...
24,428
[ { "from": "human", "value": "Should I use the GWT for a struts web application?\n" }, { "from": "gpt", "value": "Using Google Web Toolkit (GWT) in a Struts web application can be beneficial, but it depends on your specific requirements and project goals. Here are some factors to consider:\n\n###...
Any suggestions on how to write repeatable unit tests for code that may be susceptible to deadlocks and race conditions? Right now I'm leaning towards skipping unit tests and focusing on stress tests. The problem with that is you can run a stress test 5 times and see five different results. EDIT: I know its probably ju...
Writing repeatable unit tests for code that may be susceptible to deadlocks and race conditions is indeed challenging, but there are strategies you can employ to improve your chances of success. Below are some suggestions: ### 1. **Use Controlled Environments** To minimize race conditions and deadlocks in your unit t...
20,722
[ { "from": "human", "value": "Any suggestions on how to write repeatable unit tests for code that may be susceptible to deadlocks and race conditions?\nRight now I'm leaning towards skipping unit tests and focusing on stress tests. The problem with that is you can run a stress test 5 times and see five diffe...
In .net, I have an inherited control: public CustomComboBox : ComboBox I simply want to change the default value of DropDownStyle property, to another value (ComboBoxStyle.DropDownList) besides the default one specified in the base class (ComboBoxStyle.DropDown). One might think that you can just add the constructor: ...
You can achieve your goal by overriding the `OnCreateControl` method in your `CustomComboBox`. This allows you to set the `DropDownStyle` property after the control has been initialized, avoiding the designer issues you encountered. Here's a simple implementation: ```csharp using System.ComponentModel; using System.W...
23,470
[ { "from": "human", "value": "In .net, I have an inherited control:\npublic CustomComboBox : ComboBox\n\nI simply want to change the default value of DropDownStyle property, to another value (ComboBoxStyle.DropDownList) besides the default one specified in the base class (ComboBoxStyle.DropDown).\nOne might ...
I have a rather large and complex set of programs to port from VC8 to VC9. One of the modules has a number of layered typedefs, which cause the compiler to generate a C4503 warning (decorated name truncated). The generated LIB file will not properly link to other modules in the project. VC8 had no trouble with this, le...
Dealing with the C4503 warning ("decorated name length exceeded, name was truncated") when porting code from Visual C++ 2005 (VC8) to Visual C++ 2008 (VC9) can be tricky, especially when you have complex and layered typedefs. Since you mentioned that replacing typedefs with structs is not a practical solution due to le...
17,806
[ { "from": "human", "value": "I have a rather large and complex set of programs to port from VC8 to VC9. One of the modules has a number of layered typedefs, which cause the compiler to generate a C4503 warning (decorated name truncated). The generated LIB file will not properly link to other modules in the ...
A TextBox is set to AutoPostback as changing the value should cause a number of (display-only) fields to be recalculated and displayed. That works fine. However, when the field is tabbed out of, the focus briefly moves on to the next field, then disappears when the page is redrawn so there is no focus anywhere. I want...
To achieve the desired behavior of maintaining focus on the next field after a postback caused by a `TextBox` with `AutoPostback`, you can utilize JavaScript to store and restore the focus. Here’s a step-by-step approach to implement this: ### Step 1: Store the Focus You will need to capture the focused field before ...
15,219
[ { "from": "human", "value": "A TextBox is set to AutoPostback as changing the value should cause a number of (display-only) fields to be recalculated and displayed.\nThat works fine.\nHowever, when the field is tabbed out of, the focus briefly moves on to the next field, then disappears when the page is red...
I have a private const int defined in a C# class. I want compilation to fail with an error if the value of this int mod 3 != 0. How can I accomplish this?
In C#, you cannot enforce compile-time checks directly for the value of a constant based on a condition such as `mod 3 != 0` because the compiler does not evaluate expressions or run-time conditions at compile time. However, you can achieve a similar effect using a combination of `readonly` fields and static constructo...
25,729
[ { "from": "human", "value": "I have a private const int defined in a C# class. I want compilation to fail with an error if the value of this int mod 3 != 0. How can I accomplish this?\n" }, { "from": "gpt", "value": "In C#, you cannot enforce compile-time checks directly for the value of a const...
Has anybody got any suggestions for a custom tabcontrol implemented in C# and which adheres to these criteria: Allows the tabs to be placed along the side of the control. Tab text must read horizontally. Allow custom colouring. Open source or no cost. I prefer not to get my hands dirty with ownerdrawing if a solution...
If you're looking for a custom TabControl in C# that meets your criteria, there are a few libraries and components you can explore. Here are some suggestions: ### 1. **ExtendedTabControl** - **Description**: A customizable tab control that allows you to place tabs on the sides and customize their appearance. - **Repos...
23,039
[ { "from": "human", "value": "Has anybody got any suggestions for a custom tabcontrol implemented in C# and which adheres to these criteria:\n\nAllows the tabs to be placed along the side of the control.\nTab text must read horizontally.\nAllow custom colouring.\nOpen source or no cost.\n\nI prefer not to ge...
Is it possible to add attributes at runtime or to change the value of an attribute at runtime?
Yes, in many programming languages, it is possible to add attributes at runtime or change the values of existing attributes. Here are a few examples in different languages: ### Python In Python, you can dynamically add attributes to classes or instances of classes at runtime. **Adding attributes to an instance:** ```...
21,928
[ { "from": "human", "value": "Is it possible to add attributes at runtime or to change the value of an attribute at runtime?\n" }, { "from": "gpt", "value": "Yes, in many programming languages, it is possible to add attributes at runtime or change the values of existing attributes. Here are a few...
I use public boolean mouseDown(Event ev, int x, int y) to detect a click of the mouse. I can distinguish between the right mouse button (ev.metaDown() is true) and the left and middle. How can i differentiate the left from the middle button? Or if it is impossible with mouseDown, what should i use?
The method you're using, `mouseDown(Event ev, int x, int y)`, is part of the AWT event handling mechanism in Java. To differentiate between the left and middle mouse button, you will need to utilize the mouse event's button state. However, the `Event` class in AWT does not provide a straightforward method for distingu...
19,368
[ { "from": "human", "value": "I use public boolean mouseDown(Event ev, int x, int y) to detect a click of the mouse.\nI can distinguish between the right mouse button (ev.metaDown() is true) and the left and middle.\nHow can i differentiate the left from the middle button?\nOr if it is impossible with mouseD...
I need to parse a large amount of text that uses HTML font tags for formatting, For example: <font face="fontname" ...>Some text</font> Specifically, I need to determine which characters would be rendered using each font used in the text. I need to be able to handle stuff like font tags inside another font tag. I need...
To parse HTML and extract information about font tags in C#, you have a few options. The best approach is to use an HTML parser library, which can simplify the process of handling nested tags and complex structures. One popular library for this purpose is **HtmlAgilityPack**. ### HtmlAgilityPack HtmlAgilityPack is a ...
22,324
[ { "from": "human", "value": "I need to parse a large amount of text that uses HTML font tags for formatting,\nFor example:\n<font face=\"fontname\" ...>Some text</font>\n\nSpecifically, I need to determine which characters would be rendered using each font used in the text. I need to be able to handle stuff...
I'm using .NET 3.5 and I have a class, A, marked as internal sealed partial and it derives from System.Configuration.ApplicationSettingsBase. I then use an instance of this class in the following manner: A A_Instance = new A(); A_Instance.Default.Save(); Why would the Visual C# compiler be complaining: error CS0117: '...
The error message you are encountering, `error CS0117: 'A' does not contain a definition for 'Default'`, suggests that the `A` class does not have a member called `Default`. In the context of classes that derive from `ApplicationSettingsBase`, the `Default` property is typically used to access the application's setting...
23,258
[ { "from": "human", "value": "I'm using .NET 3.5 and I have a class, A, marked as internal sealed partial and it derives from System.Configuration.ApplicationSettingsBase. I then use an instance of this class in the following manner:\nA A_Instance = new A();\nA_Instance.Default.Save();\n\nWhy would the Visua...
I am testing a Ruby Rails website and wanted to get started with Unit and Functional testing.
Getting started with unit and functional testing in a Ruby on Rails application is an important step in ensuring that your code works as expected. Here’s a step-by-step guide to help you set up and write your first tests. ### Prerequisites 1. **Ruby on Rails**: Ensure that you have a Ruby on Rails application set up....
18,841
[ { "from": "human", "value": "I am testing a Ruby Rails website and wanted to get started with Unit and Functional testing.\n" }, { "from": "gpt", "value": "Getting started with unit and functional testing in a Ruby on Rails application is an important step in ensuring that your code works as exp...
I want to be able to capture my iPhone's screen as a video, but I'm not sure the best way to do this. Can anyone help guide me on how to best do this without jailbreak?
Capturing your iPhone's screen as a video is quite straightforward and does not require jailbreaking your device. Here’s how you can do it: ### Using Built-in Screen Recording Feature 1. **Check Screen Recording Availability:** - Make sure your iPhone is running iOS 11 or later, as the screen recording feature was...
23,991
[ { "from": "human", "value": "I want to be able to capture my iPhone's screen as a video, but I'm not sure the best way to do this.\nCan anyone help guide me on how to best do this without jailbreak?\n" }, { "from": "gpt", "value": "Capturing your iPhone's screen as a video is quite straightforwa...
I have a C# .NET page where I want to make rows collapse when a button is pressed. I found many tutorials like this one (http://codingforums.com/archive/index.php?t-90375.html), tried to implement their solutions, but none of them do anything for me when I click my button. To make sure I wasn't going crazy, I made a ...
Based on the code you provided, I see a couple of issues that may prevent your button click from collapsing the row as intended. Here are some key things to note: 1. **Incorrect Reference to the Control**: You need to reference the row's style property correctly. When using ASP.NET, the actual rendered ID of the contr...
24,022
[ { "from": "human", "value": "I have a C# .NET page where I want to make rows collapse when a button is pressed. I found many tutorials like this one (http://codingforums.com/archive/index.php?t-90375.html), tried to implement their solutions, but none of them do anything for me when I click my button. To ...
Is there a way to create an instance of a class based on the fact I know the name of the class at runtime. Basically I would have the name of the class in a string.
Yes, you can create an instance of a class based on its name (provided as a string) at runtime in Python using the built-in `globals()` function or the `locals()` function if the class is defined in the current scope. You can also use the `getattr()` function if the class is part of a module. Here are a couple of ways...
24,357
[ { "from": "human", "value": "Is there a way to create an instance of a class based on the fact I know the name of the class at runtime. Basically I would have the name of the class in a string.\n" }, { "from": "gpt", "value": "Yes, you can create an instance of a class based on its name (provide...
I've been working on porting some of my Processing code over to regular Java in NetBeans. So far so well, most everything works great, except for when I go to use non-grayscale colors. I have a script that draws a spiral pattern, and should vary the colors in the spiral based on a modulus check. The script seems to ha...
It looks like your code contains a few issues, primarily related to how you're calculating and using colors, as well as some potential logical problems that can lead to unexpected behavior. Below are the adjustments and suggestions to help resolve the issues: 1. **Color Definitions**: The way you define colors in Java...
19,479
[ { "from": "human", "value": "I've been working on porting some of my Processing code over to regular Java in NetBeans. So far so well, most everything works great, except for when I go to use non-grayscale colors. \nI have a script that draws a spiral pattern, and should vary the colors in the spiral based ...
I've been for the past few hours trying to figure out why openCV doesn't compile on leopard. I've been googling for references but all point to a dead google group. So my question is quite simple: I've read INSTALL file, read all documentation i could find and still couldn't figure a solution for this. The compile brea...
The error you're encountering seems to be related to the spaces in your directory path (`/Users/fmsf/Projects/Motion Tracking/Libs/opencv-1.1.0/`). The build process is failing because the command line tools are not handling the spaces correctly, which results in the directory not being found. Here are some potential ...
25,436
[ { "from": "human", "value": "I've been for the past few hours trying to figure out why openCV doesn't compile on leopard. I've been googling for references but all point to a dead google group.\nSo my question is quite simple: I've read INSTALL file, read all documentation i could find and still couldn't fi...
For example: char * myString = malloc(sizeof(char)*STRING_BUFFER_SIZE); free(myString); free(myString); Are there any adverse side effects of doing this?
Yes, there are adverse side effects to calling `free(myString)` twice, which can lead to undefined behavior in your program. Here’s a breakdown of what happens: 1. **Memory Deallocation**: When you call `free(myString)` for the first time, the memory that `myString` points to is deallocated. After this call, `myString...
26,146
[ { "from": "human", "value": "For example:\nchar * myString = malloc(sizeof(char)*STRING_BUFFER_SIZE);\nfree(myString);\nfree(myString);\n\nAre there any adverse side effects of doing this? \n" }, { "from": "gpt", "value": "Yes, there are adverse side effects to calling `free(myString)` twice, wh...
I am about to join a new software team midway through a project. They are using ExtremePlanner to track their progress. While they tracking tasks completed, they are not tracking how the estimated size of the project is changing over time. In the short time I have been monitoring the project this estimate has changed ...
Your concerns about the changing estimates and scope of the project are valid, especially when it comes to ensuring timely delivery and maintaining a realistic view of progress. To address your concerns, you can take the following steps: ### 1. Analyze Current Project Metrics: - **Gather Data**: Collect all availab...
16,183
[ { "from": "human", "value": "I am about to join a new software team midway through a project. They are using ExtremePlanner to track their progress. \nWhile they tracking tasks completed, they are not tracking how the estimated size of the project is changing over time. In the short time I have been monitor...
I am looking for a (simple) text editor that can handle text in different encodings in the same document. I need to develop some sites with mixed Japanese and English text and the editors I have now (on an English Windows system) are unable to display the Japanese text. Jedit files don't display the Japanese text I hav...
It sounds like you're having a challenging time finding a suitable text editor for your needs, especially with handling mixed language content. Here are a few recommendations that should be able to handle UTF-8 encoded text, support multiple languages (including Japanese), and allow you to save files in the correct enc...
22,092
[ { "from": "human", "value": "I am looking for a (simple) text editor that can handle text in different encodings in the same document.\nI need to develop some sites with mixed Japanese and English text and the editors I have now (on an English Windows system) are unable to display the Japanese text.\nJedit ...
Ruby is becoming popular, largely from the influence Ruby on Rails, but it feels like it is currently struggling through its adolescence. There are a lot of similarities between Ruby and Smalltalk -- maglev is a testament to that. Despite having a more unusual syntax, Smalltalk has all (if not more) of the object-orien...
It's an interesting comparison you're making between Ruby and Smalltalk, and your observations about their similarities and differences are quite insightful. Here are some thoughts on why Ruby has gained popularity over Smalltalk, despite some of the advantages you mention for Smalltalk: 1. **Community and Ecosystem**...
23,853
[ { "from": "human", "value": "Ruby is becoming popular, largely from the influence Ruby on Rails, but it feels like it is currently struggling through its adolescence. There are a lot of similarities between Ruby and Smalltalk -- maglev is a testament to that. Despite having a more unusual syntax, Smalltalk ...
I want my AltGr key to behave exactly like left Alt. Usually, I do this kind of stuff with Autohotkey, but I'm open to different solutions. I tried this: LControl & RAlt::Alt And Autohotkey displayed error about Alt not being recognized action. Then I tried the following code: LControl & RAlt:: Send {Alt down} K...
Yes, you can remap the AltGr key to behave like the left Alt key using AutoHotkey, but the approach you've tried needs some adjustments. Instead of sending `Alt` down and up, you can simply use the `Send` command to simulate the behavior of the left Alt key directly. Here's how to achieve that: ```ahk ; Remap AltGr ...
23,244
[ { "from": "human", "value": "I want my AltGr key to behave exactly like left Alt.\nUsually, I do this kind of stuff with Autohotkey, but I'm open to different solutions. \nI tried this:\nLControl & RAlt::Alt\n\nAnd Autohotkey displayed error about Alt not being recognized action.\nThen I tried the followin...
i want to display some information in a listview using the GridView. i have several GridViewColumns and everything works fine. However, want the GridViewColumns content to have a VerticalAlignment (Top in this case) but the gridvewcolumn intself doesnt offer a VerticalContentAlignment dependency property. when using D...
In WPF, when you're using a `GridView` inside a `ListView`, it’s true that `GridViewColumn` does not directly expose a `VerticalContentAlignment` property. However, you can achieve the desired vertical alignment for the content by using a custom `CellTemplate` with a `DataTemplate`. Here's a straightforward way to se...
25,860
[ { "from": "human", "value": "i want to display some information in a listview using the GridView.\ni have several GridViewColumns and everything works fine.\nHowever, want the GridViewColumns content to have a VerticalAlignment (Top in this case) \nbut the gridvewcolumn intself doesnt offer a VerticalConten...
For an interview in a few, I'm not at all familiar with Flash development. What would you ask?
If you’re interviewing for a position involving Flash development, it's essential to assess both the candidate's technical skills and their understanding of the broader context in which Flash was used. Here are some questions you might consider asking: ### Technical Questions: 1. **What is Adobe Flash, and how does it...
21,463
[ { "from": "human", "value": "For an interview in a few, I'm not at all familiar with Flash development. \nWhat would you ask?\n" }, { "from": "gpt", "value": "If you’re interviewing for a position involving Flash development, it's essential to assess both the candidate's technical skills and the...
We need to be able to change the default selected print tray of a given printer. Does anyone have VC++/win32 code for doing this? In case it matters, I believe we have to change the default setting for the printer. Our print jobs are executed by an application other than ours, so we can't make these kinds of changes ...
To change the default print tray (or default source) for a printer in Windows using VC++ and the Win32 API, you'll primarily be working with the `DEVMODE` structure, as you already mentioned. Below is a general outline of how you can achieve this: 1. **Retrieve the Current Printer's DEVMODE**: You'll need to get the c...
20,835
[ { "from": "human", "value": "We need to be able to change the default selected print tray of a given printer. Does anyone have VC++/win32 code for doing this?\nIn case it matters, I believe we have to change the default setting for the printer. Our print jobs are executed by an application other than ours...
Is it possible to have a different set of dependencies in a maven pom.xml file for different profiles? e.g. mvn -P debug mvn -P release I'd like to pick up a different dependency jar file in one profile that has the same class names and different implementations of the same interfaces.
Yes, it is absolutely possible to define different sets of dependencies in a Maven `pom.xml` file based on profiles. Profiles in Maven allow you to customize builds for different environments or conditions, including the specification of different dependencies. Here's a simple example to illustrate how you can set up ...
22,655
[ { "from": "human", "value": "Is it possible to have a different set of dependencies in a maven pom.xml file for different profiles?\ne.g.\nmvn -P debug\nmvn -P release\n\nI'd like to pick up a different dependency jar file in one profile that has the same class names and different implementations of the sam...
Because of the more tedious way of adding hosts to be monitored in Nagios (it requires defining a host object, as opposed to the previous program which only required the IP and hostname), I figured it'd be best to automate this, and it'd be a great time to learn Perl, because all I know at the moment is C/C++ and Java....
Certainly! Automating the addition of hosts in Nagios with a Perl script can be a great way to learn the language and streamline your process. You can achieve this using Perl's file handling and regular expressions. Here's a simple Perl script that reads the lines from a file, extracts specific fields based on your re...
22,664
[ { "from": "human", "value": "Because of the more tedious way of adding hosts to be monitored in Nagios (it requires defining a host object, as opposed to the previous program which only required the IP and hostname), I figured it'd be best to automate this, and it'd be a great time to learn Perl, because al...
I'm working on a Java library and would like to remove some functions from it. My reasons for this is public API and design cleanup. Some objects have setters, but should be immutable, some functionality has been implemented better/cleaner in different methods, etc. I have marked these methods 'deprecated', and would l...
Removing methods from a public API in a Java library requires careful consideration and planning to ensure a smooth transition for your users. Here are some best practices to follow when deprecating and eventually removing methods from your public API: ### 1. **Use Deprecation Wisely** - Mark the methods as depreca...
21,278
[ { "from": "human", "value": "I'm working on a Java library and would like to remove some functions from it. My reasons for this is public API and design cleanup. Some objects have setters, but should be immutable, some functionality has been implemented better/cleaner in different methods, etc.\nI have mark...
Are there any known issues around how many "pages" are in an ASP.NET project? Does the size of the DLL created by the project matter at all? My existing project is about 150 pages and the DLL is only around 3MB but it has increased from about 50 pages and 0.5 MB recently
When it comes to ASP.NET projects, particularly Web Forms applications, there are a few considerations regarding the number of "pages" and the size of the resulting DLL that may influence your application performance, maintainability, and deployment. ### Known Issues with "Pages" in ASP.NET: 1. **Page Lifecycle Manag...
24,339
[ { "from": "human", "value": "Are there any known issues around how many \"pages\" are in an ASP.NET project?\nDoes the size of the DLL created by the project matter at all?\nMy existing project is about 150 pages and the DLL is only around 3MB but it has increased from about 50 pages and 0.5 MB recently\n" ...
I would like to host a silverlight control in winforms via a winforms browser, but for it to work I need some way for the forms to talk to the silverlight, and also the other way around. Would it be possible to somehow have the two interact with each other using JavaScript as a middleman? I.e., have the form speak to...
Yes, it's possible to have a WinForms application communicate with a Silverlight control through a WebBrowser control using JavaScript as an intermediary. Below is an outline of how you can achieve this: ### 1. Set Up Your WinForms Application First, ensure you have a WinForms application with a `WebBrowser` control ...
20,933
[ { "from": "human", "value": "I would like to host a silverlight control in winforms via a winforms browser, but for it to work I need some way for the forms to talk to the silverlight, and also the other way around. Would it be possible to somehow have the two interact with each other using JavaScript as a...
I have come across numerous arguments against the inclusion of multiple inheritance in C#, some of which include (philosophical arguments aside): Multiple inheritance is too complicated and often ambiguous It is unnecessary because interfaces provide something similar Composition is a good substitute where interfaces ...
Your thoughts on multiple inheritance in C# certainly touch on a complex and often debated topic among software developers. Here are some key points to consider regarding the arguments for and against multiple inheritance in the context of C#: ### Arguments Against Multiple Inheritance 1. **Complexity and Ambiguity**...
22,778
[ { "from": "human", "value": "I have come across numerous arguments against the inclusion of multiple inheritance in C#, some of which include (philosophical arguments aside):\n\nMultiple inheritance is too complicated and often ambiguous\nIt is unnecessary because interfaces provide something similar\nCompo...
I'm developing a C# assembly which is to be called via COM from a Delphi 7 (iow, native win32, not .net) application. So far, it seems to work. I've exported a TLB file, imported that into my Delphi project, and I can create my C# object and call its functions. So that's great, but soon I'm going to really want to use ...
Debugging a C# assembly that is being called from a Delphi 7 application using COM can be a bit tricky, but it’s definitely possible to set up Visual Studio to facilitate this process. Here’s how you can go about it: ### Method 1: Starting the Delphi Application from Visual Studio 1. **Start Visual Studio with the C#...
11,370
[ { "from": "human", "value": "I'm developing a C# assembly which is to be called via COM from a Delphi 7 (iow, native win32, not .net) application.\nSo far, it seems to work. I've exported a TLB file, imported that into my Delphi project, and I can create my C# object and call its functions.\nSo that's great...
Note, I realize that this has been addressed here. That post discusses exception handling in .NET 1.1 while implying that there is a better solution for >.NET 2.0 so this question is specifically about the more recent .NET versions. I have a windows forms application which is expected to frequently and unexpectedly lo...
In .NET, you can handle unhandled exceptions globally for your Windows Forms application by subscribing to the `Application.ThreadException` event and the `AppDomain.CurrentDomain.UnhandledException` event. This allows you to manage exceptions at a central point without needing to tie your error handling logic to every...
22,100
[ { "from": "human", "value": "Note, I realize that this has been addressed here. That post discusses exception handling in .NET 1.1 while implying that there is a better solution for >.NET 2.0 so this question is specifically about the more recent .NET versions.\nI have a windows forms application which is ...
I like to know if there is a way to read the user input inside a batch file, because i have a file named: "fif.bat" that recives two parameters (just call them paramA and paramB) so i execute the file like this: fif paramA paramB I have to change paramA every month, but i call this file lot of times so i like to open ...
Yes, you can definitely read user input within a batch file and set a predefined parameter. Here’s how you can achieve what you want: 1. **Create a batch file (`fif.bat`)** that expects two parameters. 2. **Create another batch file** (let's call it `run_fif.bat`) that sets `paramA` and reads `paramB`. Here's an exam...
25,107
[ { "from": "human", "value": "I like to know if there is a way to read the user input inside a batch file, because i have a file named: \"fif.bat\" that recives two parameters (just call them paramA and paramB) so i execute the file like this:\nfif paramA paramB\n\nI have to change paramA every month, but i ...
I am trying to use Lambda Expressions in a project to map to a third party query API. So, I'm parsing the Expression tree by hand. If I pass in a lambda expression like: p => p.Title == "title" everything works. However, if my lambda expression looks like: p => p.Title == myaspdropdown.SelectedValue Using the .NET de...
The behavior you are encountering is due to the fact that when you pass a lambda expression into an expression tree, the actual value of properties or fields accessed within that lambda is not stored in the tree itself. Instead, the expression tree captures the "shape" of the lambda expression, which includes reference...
24,262
[ { "from": "human", "value": "I am trying to use Lambda Expressions in a project to map to a third party query API. So, I'm parsing the Expression tree by hand.\nIf I pass in a lambda expression like:\np => p.Title == \"title\"\n\neverything works.\nHowever, if my lambda expression looks like:\np => p.Title ...
On Mac OS X I can’t enter a pound sterling sign (£) into the Python interactive shell. * Mac OS X 10.5.5 * Python 2.5.1 (r251:54863, Jan 17 2008, 19:35:17) * European keyboard (£ is shift-3) When I type shift-3 in the Python interactive shell, I seem to invoke the previous word function, i.e. the cursor will move to t...
The issue you’re facing arises from how the Python interactive shell handles key bindings via editline, which may not respect the same key combinations as your terminal or other applications. The fact that you can input the pound sign (£) in your bash shell but not in the Python shell suggests that the key mapping is b...
22,034
[ { "from": "human", "value": "On Mac OS X I can’t enter a pound sterling sign (£) into the Python interactive shell.\n* Mac OS X 10.5.5\n* Python 2.5.1 (r251:54863, Jan 17 2008, 19:35:17)\n* European keyboard (£ is shift-3)\n\nWhen I type shift-3 in the Python interactive shell, I seem to invoke the previous...
I recently started using scons to build several small cross-platform projects. One of these projects needs to link against pre-built static libraries... how is this done? In make, I'd just append "link /LIBPATH:wherever libstxxl.lib" on windows, and "stxxl.a" on unix.
To link against pre-built static libraries using SCons, you can specify the library path and the libraries you want to link in your `SConscript` or `SConstruct` file. Here's how you can do it for both Windows and Unix environments: ### 1. Specify the Library Path You can set the library path using the `ENV` variable ...
23,287
[ { "from": "human", "value": "I recently started using scons to build several small cross-platform projects. One of these projects needs to link against pre-built static libraries... how is this done? \nIn make, I'd just append \"link /LIBPATH:wherever libstxxl.lib\" on windows, and \"stxxl.a\" on unix. \n" ...
Where can I find the option to switch between the Windows Working Set in Eclipse 3.4 (Ganymede)? In the previous version it was under then Window menu, but it appears to have moved.
In Eclipse 3.4 (Ganymede), the option to switch between working sets has indeed been moved compared to previous versions. You can find the working set options by following these steps: 1. **Open the Navigator or Package Explorer view**: If you're in a different view, you may want to switch to either the Navigator or P...
27,551
[ { "from": "human", "value": "Where can I find the option to switch between the Windows Working Set in Eclipse 3.4 (Ganymede)? In the previous version it was under then Window menu, but it appears to have moved.\n" }, { "from": "gpt", "value": "In Eclipse 3.4 (Ganymede), the option to switch bet...
I'm working on a stored procedure in SQL Server 2000 with a temp table defined like this: CREATE TABLE #MapTable (Category varchar(40), Code char(5)) After creating the table I want to insert some standard records (which will then be supplemented dynamically in the procedure). Each category (about 10) will have severa...
You can achieve this by using the `INSERT` statement with a `VALUES` clause to insert multiple rows at once. However, since you want to avoid repeating the category name for each code, you can utilize a common table expression (CTE) or a derived table to make the insert operation more concise. Here's a simple way to d...
24,948
[ { "from": "human", "value": "I'm working on a stored procedure in SQL Server 2000 with a temp table defined like this:\nCREATE TABLE #MapTable (Category varchar(40), Code char(5))\nAfter creating the table I want to insert some standard records (which will then be supplemented dynamically in the procedure)....
Say I have an MSSQL table with two columns: an int ID column that's the identity column and some other datetime or whatever column. Say the table has 10 records with IDs 1-10. Now I delete the record with ID = 5. Are there any scenarios where another record will "fill-in" that missing ID? I.e. when would a record b...
In SQL Server, when you have an identity column (like your ID column in the table), the identity value is automatically generated by SQL Server when a new record is inserted. The important point about identity columns is that once an identity value has been assigned, it cannot be reused even if the corresponding record...
24,229
[ { "from": "human", "value": "Say I have an MSSQL table with two columns: an int ID column that's the identity column and some other datetime or whatever column. Say the table has 10 records with IDs 1-10. Now I delete the record with ID = 5.\nAre there any scenarios where another record will \"fill-in\" ...
I have several arrays of arrays or arrays of dicts that I would like to store in my iPhone app. This lists are static and won't be modified by the app or users. Occasionally they may be displayed but more likely they'll be iterated over and compared to some input value. Would the best way to store these arrays be a ...
For static data that won't be modified, there are a few options to consider for storing your arrays of arrays or arrays of dictionaries in your iPhone app. Here are some of the most common approaches, along with their pros and cons: ### 1. **Hardcoded in Code (Constant Arrays)** You can define your static data directl...
24,844
[ { "from": "human", "value": "I have several arrays of arrays or arrays of dicts that I would like to store in my iPhone app. This lists are static and won't be modified by the app or users. Occasionally they may be displayed but more likely they'll be iterated over and compared to some input value. Would...
Where I work we only have IE 7. I want to view IE 6 on my computer also. How can I view both on the same computer? I want more than just a screen shot. I want to view both versions of IE as I write code.
To run both Internet Explorer 6 (IE6) and Internet Explorer 7 (IE7) on the same machine, you can use the following methods: ### Method 1: Use Virtual Machines 1. **Download Virtualization Software**: - Install virtualization software like Oracle VirtualBox, VMware Workstation, or Microsoft Hyper-V. 2. **Get a Win...
22,141
[ { "from": "human", "value": "Where I work we only have IE 7. I want to view IE 6 on my computer also. \nHow can I view both on the same computer? \nI want more than just a screen shot. I want to view both versions of IE as I write code.\n" }, { "from": "gpt", "value": "To run both Internet Expl...