instruction
stringlengths
14
27.6k
completion
stringlengths
3
38.3k
__original_row_idx
int64
0
50k
conversations
listlengths
2
2
I am using D2007 and am trying to document my source code, using the HelpInsight feature (provided since D2005). I am mainly interested in getting the HelpInsight tool-tips working. From various Web-surfing and experimentation I have found the following: Using the triple slash (///) comment style works more often th...
HelpInsight in Delphi can be tricky to work with, but you're on the right track with the guidelines you've discovered. Here are some additional tips and troubleshooting strategies to improve your experience with HelpInsight: 1. **Comment Format**: While you've identified that `///` comments are more reliable, make sur...
6,156
[ { "from": "human", "value": "I am using D2007 and am trying to document my source code, using the HelpInsight feature (provided since D2005). I am mainly interested in getting the HelpInsight tool-tips working. From various Web-surfing and experimentation I have found the following:\n\nUsing the triple sl...
I'm trying to make some of my code a bit more friendly to non-pure-ascii systems and was wondering if there was a particular character encoding used for NEEDED entries in ELF binaries, or is it rather unstandard and based on the creating system's filesystem encoding (or even just directly the bytes that were passed to ...
The NEEDED entries in ELF (Executable and Linkable Format) binaries are used to specify the dynamic libraries that the binary depends on. The names of the libraries in these entries are encoded as null-terminated strings in the ELF binary. ### Character Encoding 1. **Encoding Standard**: - ELF binaries traditiona...
12,713
[ { "from": "human", "value": "I'm trying to make some of my code a bit more friendly to non-pure-ascii systems and was wondering if there was a particular character encoding used for NEEDED entries in ELF binaries, or is it rather unstandard and based on the creating system's filesystem encoding (or even jus...
As most of you would know, if I drop a file named app_offline.htm in the root of an asp.net application, it takes the application offline as detailed here. You would also know, that while this is great, IIS actually returns a 404 code when this is in process and Microsoft is not going to do anything about it as mention...
Yes, you can override the default behavior in ASP.NET to return a 503 Service Unavailable status code when your application is in offline mode (when `app_offline.htm` is present). One way to do this is to create a custom HTTP module to handle the response based on the presence of the `app_offline.htm` file. ### Step-b...
9,959
[ { "from": "human", "value": "As most of you would know, if I drop a file named app_offline.htm in the root of an asp.net application, it takes the application offline as detailed here.\nYou would also know, that while this is great, IIS actually returns a 404 code when this is in process and Microsoft is no...
After reading Practical Common Lisp I finally understood what the big deal about macros was, and I have been looking for a language for the .NET platform that supports this. There are a few lisp dialects for .NET but from what I have been able to gather all are either very beta or abandoned. Recently my interest has be...
F# does not have macro support in the same way that Lisp does. While F# provides powerful metaprogramming capabilities through features like computation expressions, inline functions, and Active Patterns, it does not offer Lisp-style macros that allow you to manipulate code as data and define new syntactic constructs. ...
7,164
[ { "from": "human", "value": "After reading Practical Common Lisp I finally understood what the big deal about macros was, and I have been looking for a language for the .NET platform that supports this. There are a few lisp dialects for .NET but from what I have been able to gather all are either very beta ...
I want to add an item into the Desktop context menu (the menu you see when you right-click on an empty space on the Windows Desktop). Something like Catalyst Control Center in this screenshot: I know how to add items to files' and folders' context menus through registry, but the Desktop seems to work differently: I ...
Adding an item to the Desktop context menu in Windows involves editing the Windows Registry, similar to how you would for other context menus. However, the exact registry keys used for Desktop menu items can be slightly different. ### Steps to Add an Item to the Desktop Context Menu: 1. **Open the Registry Editor**: ...
9,459
[ { "from": "human", "value": "I want to add an item into the Desktop context menu (the menu you see when you right-click on an empty space on the Windows Desktop). \nSomething like Catalyst Control Center in this screenshot:\n\nI know how to add items to files' and folders' context menus through registry, b...
I have created a hierarchy of content types. The root of my hierarchy has the content type "Document" as a parent. There are about 20 other content types derived from my root. Now, I want to change the parent from "Document" to something else. Is it possible? Either in the web interface or in code? Can the definition o...
Yes, it is possible to change the parent of a content type in many content management systems (CMS) or frameworks, but the process can vary depending on the specific system you are using. Here’s a general approach to how you might handle this, including both web interface options and code-based methods. ### Option 1: ...
11,779
[ { "from": "human", "value": "I have created a hierarchy of content types. The root of my hierarchy has the content type \"Document\" as a parent. There are about 20 other content types derived from my root.\nNow, I want to change the parent from \"Document\" to something else. Is it possible? Either in the ...
So, at my current job we're usually 1-3 developers, 1-2 art directors and 1 project manager on each project, with the smallest ones just being one of each and the larger ones being three developers and two art directors. I'm looking for a software, combination of softwares or some type of service that will allow us to ...
Based on your requirements for project management software, here are several options that should fit well with your team's needs: ### 1. **Jira** - **Overview**: Jira by Atlassian is widely used for issue and project tracking and is especially effective for teams using Agile methodologies, including Scrum. - **Feature...
10,044
[ { "from": "human", "value": "So, at my current job we're usually 1-3 developers, 1-2 art directors and 1 project manager on each project, with the smallest ones just being one of each and the larger ones being three developers and two art directors.\nI'm looking for a software, combination of softwares or s...
I have a div and an iframe on the page the div has z-index: 0; the iframe has its content with a popup having a z-index of 1000 z-index: 1000; However, the div still overshadows the popup in IE (but works fine in Firefox). Does anyone know what I can do?
It sounds like you're experiencing a common issue with stacking contexts in Internet Explorer (IE). Different browsers handle z-index stacking contexts somewhat differently, which can lead to inconsistencies. Here are a few potential solutions to your problem: 1. **Set Positioning**: Make sure that your `div` and `if...
12,240
[ { "from": "human", "value": "I have a div and an iframe on the page\nthe div has\nz-index: 0;\n\nthe iframe has its content with a popup having a z-index of 1000\nz-index: 1000;\n\nHowever, the div still overshadows the popup in IE (but works fine in Firefox).\nDoes anyone know what I can do?\n" }, { ...
Let's say I have the following class: public class Test<E> { public boolean sameClassAs(Object o) { // TODO help! } } How would I check that o is the same class as E? Test<String> test = new Test<String>(); test.sameClassAs("a string"); // returns true; test.sameClassAs(4); // returns false; I can't c...
To check if the object `o` is of the same class as the generic type `E`, you can use the `getClass()` method of the object, but since `E` is a generic type, you cannot directly get its class at runtime due to type erasure in Java. However, you can achieve the desired functionality by utilizing the `Class` object that ...
12,542
[ { "from": "human", "value": "Let's say I have the following class:\npublic class Test<E> {\n public boolean sameClassAs(Object o) {\n // TODO help!\n }\n}\n\nHow would I check that o is the same class as E?\nTest<String> test = new Test<String>();\ntest.sameClassAs(\"a string\"); // returns tru...
I have a class that I want to use to store "properties" for another class. These properties simply have a name and a value. Ideally, what I would like is to be able to add typed properties, so that the "value" returned is always of the type that I want it to be. The type should always be a primitive. This class subclas...
To implement a `TypedProperty<DataType>` class that allows you to store and retrieve a strongly typed value while also maintaining the string representation of the value, you'll need to handle the conversion between `DataType` and `string`. Since you are interested in primitive types, you'll need to implement some type...
2,774
[ { "from": "human", "value": "I have a class that I want to use to store \"properties\" for another class. These properties simply have a name and a value. Ideally, what I would like is to be able to add typed properties, so that the \"value\" returned is always of the type that I want it to be.\nThe type sh...
I've used the MIT Continuous testing plugin in the past, but it has long since passed out of date and is no longer compatible with anything approaching a modern release of Eclipse. Does anyone have a good replacement? Free, naturally, is preferred.
If you're looking for a free alternative to the MIT Continuous Testing plugin for Eclipse, there are a few options you might consider: 1. **JUnit and TestNG**: These are popular testing frameworks for Java applications that can be easily integrated with Eclipse. You can set up your tests to run automatically every tim...
13,350
[ { "from": "human", "value": "I've used the MIT Continuous testing plugin in the past, but it has long since passed out of date and is no longer compatible with anything approaching a modern release of Eclipse. \nDoes anyone have a good replacement? Free, naturally, is preferred. \n" }, { "from": "gp...
According to the manual, git dcommit “will create a revision in SVN for each commit in git.” But is there a way to avoid multiple Subversion revisions? That is, to have git merge all changes prior to performing the svn commit?
Yes, you can avoid creating multiple Subversion revisions when using `git svn dcommit` by using `git merge` to combine your changes into a single commit before performing the `dcommit`. Here’s how you can do it: 1. **Squash Your Commits**: You can use the `git rebase` command with the `-i` option to interactively reba...
13,929
[ { "from": "human", "value": "According to the manual, git dcommit “will create a revision in SVN for each commit in git.” But is there a way to avoid multiple Subversion revisions? That is, to have git merge all changes prior to performing the svn commit?\n" }, { "from": "gpt", "value": "Yes, yo...
I was going to ask a question here about whether or not my design for some users/roles database tables was acceptable, but after some research I came across this question: What is the best way to handle multiple permission types? It sounds like an innovative approach, so instead of a many-to-many relationship users_to_...
Using a bitwise approach for permissions is a compact and efficient way to store multiple permission flags in a single integer value. Here's how to understand the conversion process, how to set permissions, and how to check permissions using bitwise operations in Java. ### 1. Define Your Permissions You've already de...
9,664
[ { "from": "human", "value": "I was going to ask a question here about whether or not my design for some users/roles database tables was acceptable, but after some research I came across this question:\nWhat is the best way to handle multiple permission types?\nIt sounds like an innovative approach, so inste...
How do I read a file into a std::string, i.e., read the whole file at once? Text or binary mode should be specified by the caller. The solution should be standard-compliant, portable and efficient. It should not needlessly copy the string's data, and it should avoid reallocations of memory while reading the string. One...
To read a file into a `std::string` efficiently, while considering both text and binary modes and ensuring no unnecessary data copying or reallocations, you can indeed use `std::ifstream` and `std::string::reserve`. Below is a practical implementation of your requirements. ### Implementation of `slurp` Function ```c...
9,837
[ { "from": "human", "value": "How do I read a file into a std::string, i.e., read the whole file at once?\nText or binary mode should be specified by the caller. The solution should be standard-compliant, portable and efficient. It should not needlessly copy the string's data, and it should avoid reallocatio...
I have a rather weak understanding of any of oracle's more advanced functionality but this should I think be possible. Say I have a table with the following schema: MyTable Id INTEGER, Col1 VARCHAR2(100), Col2 VARCHAR2(100) I would like to write an sproc with the following PROCEDURE InsertOrUpdateMyTable(p_id i...
Your understanding is correct, and the use of the `MERGE` statement is a good approach for this kind of operation in Oracle SQL. The `MERGE` statement allows you to perform both updates and inserts in a single SQL statement, which can simplify your logic. Here's your provided solution wrapped in a complete procedure d...
12,577
[ { "from": "human", "value": "I have a rather weak understanding of any of oracle's more advanced functionality but this should I think be possible.\nSay I have a table with the following schema:\nMyTable\n Id INTEGER,\n Col1 VARCHAR2(100),\n Col2 VARCHAR2(100)\n\nI would like to write an sproc with the f...
I'm just reading up on SOA and the service registry / UDDI get mentioned regularly. It sounds nice but how is used in reality? Is the registry meant to decouple a logical service from its' physical implementation (port, url etc)? Is the registry meant to be browsed by a human looking for an interesting service to pla...
Service-Oriented Architecture (SOA) and its components, including service registries and UDDI (Universal Description, Discovery, and Integration), offer a structured approach to designing and managing services. Here’s how they are used in reality: ### 1. Decoupling Logical and Physical Implementations Yes, one of the ...
11,220
[ { "from": "human", "value": "I'm just reading up on SOA and the service registry / UDDI get mentioned regularly. It sounds nice but how is used in reality?\n\nIs the registry meant to decouple a logical service from its' physical implementation (port, url etc)? \nIs the registry meant to be browsed by a hum...
I have searched for various techniques on how to read/write dBase III (dbf) files using OLEDB or ODBC with C#/.NET. I have tried almost all of the tecniques posted, but without success. Can someone point me in the right direction? Thanks for your time.
To read and write dBase III (.dbf) files using C#/.NET, you can use several approaches. The most common methods are through OLEDB or ODBC. Here's a guide to help you get started: ### Using OLEDB 1. **Add a Reference to System.Data.OleDb:** Make sure your project references the `System.Data` namespace. 2. **Connec...
7,277
[ { "from": "human", "value": "I have searched for various techniques on how to read/write dBase III (dbf) files using OLEDB or ODBC with C#/.NET. I have tried almost all of the tecniques posted, but without success. Can someone point me in the right direction?\nThanks for your time.\n" }, { "from":...
This question is about organizing the actual CSS directives themselves within a .css file. When developing a new page or set of pages, I usually just add directives by hand to the .css file, trying to refactor when I can. After some time, I have hundreds (or thousands) of lines and it can get difficult to find what I...
Organizing CSS effectively can greatly enhance your workflow and make maintaining styles much easier. Here are some recommended strategies for organizing your CSS directives: ### 1. Organizing by Structure or Function - **Top-Down (by DOM Structure):** - This method allows you to mirror the structure of your HTML ...
11,469
[ { "from": "human", "value": "This question is about organizing the actual CSS directives themselves within a .css file. When developing a new page or set of pages, I usually just add directives by hand to the .css file, trying to refactor when I can. After some time, I have hundreds (or thousands) of line...
VB 6.0 does not have any global handler.To catch runtime errors,we need to add a handler in each method where we feel an error can occur.But, still some places might be left out.So,we end up getting runtime errors.Adding error handler in all the methods of an application,the only way?
In VB 6.0, indeed, there is no built-in global error handler that you can apply to catch errors across the entire application. However, you can implement a more efficient approach to error handling that minimizes the need to add handlers to every single method. Here are some strategies you can use to manage error hand...
11,944
[ { "from": "human", "value": "VB 6.0 does not have any global handler.To catch runtime errors,we need to add a handler in each method where we feel an error can occur.But, still some places might be left out.So,we end up getting runtime errors.Adding error handler in all the methods of an application,the onl...
What principles do you generally follow when doing class design?
When designing classes in object-oriented programming, several principles can guide the process to ensure that the resulting design is efficient, maintainable, and scalable. Here are some of the key principles: 1. **Single Responsibility Principle (SRP)**: Each class should have one reason to change, meaning it should...
11,972
[ { "from": "human", "value": "What principles do you generally follow when doing class design?\n" }, { "from": "gpt", "value": "When designing classes in object-oriented programming, several principles can guide the process to ensure that the resulting design is efficient, maintainable, and scala...
What is the best way to test my webforms applications? Looks like people are loving Watin, and selenium.
When it comes to testing web forms applications, both WatiN and Selenium are popular choices, but they serve slightly different needs and audiences. Here's a breakdown of each and some other testing options: ### 1. Selenium **Pros:** - **Cross-browser support:** Selenium supports multiple browsers (Chrome, Firefox, S...
11,771
[ { "from": "human", "value": "What is the best way to test my webforms applications?\nLooks like people are loving Watin, and selenium.\n" }, { "from": "gpt", "value": "When it comes to testing web forms applications, both WatiN and Selenium are popular choices, but they serve slightly different ...
Is there a way to prevent mspdbsrv.exe from continuing to run after finishing the compilation? or even after I terminate visual studio? or perhaps even prevent it from even spawning in the first place? what is this guy good for anyway? using vs2005
`mspdbsrv.exe` is part of the Microsoft Visual Studio development environment, specifically related to the Microsoft Program Database (PDB) files. Its primary role is to facilitate the management of PDB files, which contain debugging information, allowing the debugger to map machine instructions back to the original so...
9,468
[ { "from": "human", "value": "Is there a way to prevent mspdbsrv.exe from continuing to run\nafter finishing the compilation? or even after I terminate visual studio? or perhaps even prevent it from even spawning in the first place?\nwhat is this guy good for anyway?\nusing vs2005\n" }, { "from": "gp...
I'm going to be implementing a PHP/mySQL setup to store credit card information. It seems like AES_ENCRYPT/AES_DECRYPT is the way to go, but I'm still confused on one point: How do I keep the encryption key secure? Hardwiring it into my PHP scripts (which will live on the same server as the db) seems like a major secur...
Storing credit card information or any sensitive data requires adhering to strict security standards. Here are some best practices for securely managing your encryption key and sensitive information in a PHP/MySQL setup: ### 1. **Avoid Storing Cardholder Data Whenever Possible** If you can avoid storing credit card in...
10,437
[ { "from": "human", "value": "I'm going to be implementing a PHP/mySQL setup to store credit card information.\nIt seems like AES_ENCRYPT/AES_DECRYPT is the way to go,\nbut I'm still confused on one point:\nHow do I keep the encryption key secure?\nHardwiring it into my PHP scripts (which will live on the sa...
I've got the following situation A rails application that makes use of rjs / Scriptaculous to offer AJAX functionality Lot of nice javascript written using jQuery (for a separate application) I want to combine the two and use my jQuery based functionality in my Rails application, but I'm worried about jQuery and Scri...
Combining jQuery and Scriptaculous (which is part of Prototype) in a Rails application can indeed lead to conflicts, primarily because both libraries define the `$` function. However, there are ways to make them coexist without issues. Here are some steps to help you integrate jQuery into your Rails application while s...
11,388
[ { "from": "human", "value": "I've got the following situation\n\nA rails application that makes use of rjs / Scriptaculous to offer AJAX functionality\nLot of nice javascript written using jQuery (for a separate application)\n\nI want to combine the two and use my jQuery based functionality in my Rails appl...
It is much more convenient and cleaner to use a single statement like import java.awt.*; than to import a bunch of individual classes import java.awt.Panel; import java.awt.Graphics; import java.awt.Canvas; ... What is wrong with using a wildcard in the import statement?
Using a wildcard in the import statement (e.g., `import java.awt.*;`) has both advantages and disadvantages. Here are some key points regarding the use of wildcard imports: ### Advantages of Wildcard Imports: 1. **Convenience:** It simplifies the code and makes it cleaner, especially when you need to use many classes ...
13,374
[ { "from": "human", "value": "It is much more convenient and cleaner to use a single statement like\nimport java.awt.*;\n\nthan to import a bunch of individual classes\nimport java.awt.Panel;\nimport java.awt.Graphics;\nimport java.awt.Canvas;\n...\n\nWhat is wrong with using a wildcard in the import stateme...
Scientific computing is algorithm intensive and can also be data intensive. It often needs to use a lot of memory to run analysis and release it before continuing with the next. Sometime it also uses memory pool to recycle memory for each analysis. Managed language is interesting here because it can allow the developer...
Controlling memory and performance in managed languages can be challenging, particularly in scientific computing where both data intensity and algorithm intensity are significant factors. Here are several strategies and techniques that can be applied to achieve efficient memory and performance management in such enviro...
10,372
[ { "from": "human", "value": "Scientific computing is algorithm intensive and can also be data intensive. It often needs to use a lot of memory to run analysis and release it before continuing with the next. Sometime it also uses memory pool to recycle memory for each analysis. Managed language is interestin...
Alright, this might be a bit of a long shot, but I have having problems getting AnkhSVN to connect from Visual Studio 2005 to an external SVN server. There is a network proxy in the way, but I can't seem to find a way in AnkhSVN to configure the proxy and doesn't seem to be detecting the Internet Explorer proxy configu...
Getting AnkhSVN to work with a network proxy in Visual Studio 2005 can be tricky, but there are a few things you can try to resolve the issue. Here’s a step-by-step guide to help you configure the proxy settings: ### 1. Check SVN Configuration AnkhSVN uses the Subversion (SVN) command-line client, which reads its conf...
8,530
[ { "from": "human", "value": "Alright, this might be a bit of a long shot, but I have having problems getting AnkhSVN to connect from Visual Studio 2005 to an external SVN server. There is a network proxy in the way, but I can't seem to find a way in AnkhSVN to configure the proxy and doesn't seem to be dete...
I'm running an c# .net app in an iframe of an asp page on an older site. Accessing the Asp page's session information is somewhat difficult, so I'd like to make my .net app simply verify that it's being called from an approved page, or else immediately halt. Is there a way for a page to find out the url of it's parent ...
Yes, you can access the parent document's URL from within an iframe using JavaScript. The `window.parent` object refers to the parent window of the iframe, and you can access the `location` property of the parent window to get its URL. Here's how you can achieve that: 1. **Get the Parent URL**: You can use the follow...
9,003
[ { "from": "human", "value": "I'm running an c# .net app in an iframe of an asp page on an older site. Accessing the Asp page's session information is somewhat difficult, so I'd like to make my .net app simply verify that it's being called from an approved page, or else immediately halt.\nIs there a way for ...
Looking for suggestions on file system management tools. We have several terabytes of images, pdfs, excel sheets, etc. We're looking at some sort of software that will help us to manage, archive, etc the images. We don't store all the files information in a database but some are and we were hoping to maybe find an app...
Managing large volumes of files such as images, PDFs, and Excel sheets can be challenging, especially when you want to incorporate archiving, searching, and database integration. Here are some suggestions for file system management tools that can help you with your needs: ### 1. **Digital Asset Management (DAM) System...
10,422
[ { "from": "human", "value": "Looking for suggestions on file system management tools. We have several terabytes of images, pdfs, excel sheets, etc.\nWe're looking at some sort of software that will help us to manage, archive, etc the images. \nWe don't store all the files information in a database but some ...
I have a large codebase, and I'd like to refactor the package structure so that classes which interact heavily go in the same package. It seems that it should be possible to create a tool that could look at the interactions between classes, and then group together those classes that interact heavily. These groupings m...
Yes, there are tools that can help analyze the interactions between classes in your codebase, which can assist in refactoring your package structure based on those interactions. Here are some tools that you might find useful: 1. **SonarQube**: - SonarQube is an open-source platform for continuous inspection of code...
12,337
[ { "from": "human", "value": "I have a large codebase, and I'd like to refactor the package structure so that classes which interact heavily go in the same package.\nIt seems that it should be possible to create a tool that could look at the interactions between classes, and then group together those classes...
How do I get the caller's IP address in a WebMethod? [WebMethod] public void Foo() { // HttpRequest... ? - Not giving me any options through intellisense... } using C# and ASP.NET
In an ASP.NET Web Method, you can access the HTTP context to get the caller's IP address. Specifically, you can retrieve the `HttpContext` and then use its `Request` property to get the user's IP address. Here's how you can do this: 1. Use `HttpContext.Current` to access the current HTTP context. 2. Use `Request.UserH...
13,519
[ { "from": "human", "value": "How do I get the caller's IP address in a WebMethod?\n[WebMethod]\npublic void Foo()\n{\n // HttpRequest... ? - Not giving me any options through intellisense...\n}\n\nusing C# and ASP.NET\n" }, { "from": "gpt", "value": "In an ASP.NET Web Method, you can access t...
What is std::pair for, why would I use it, and what benefits does boost::compressed_pair bring?
`std::pair` and `boost::compressed_pair` are both used to encapsulate two values into a single object, but they have different design goals and usage scenarios. Let's break down each: ### `std::pair` #### Purpose: - `std::pair` is a simple utility class in the C++ Standard Library that holds two related values. It's ...
11,046
[ { "from": "human", "value": "What is std::pair for, why would I use it, and what benefits does boost::compressed_pair bring?\n" }, { "from": "gpt", "value": "`std::pair` and `boost::compressed_pair` are both used to encapsulate two values into a single object, but they have different design goal...
I'm trying to perform a bitwise NOT in SQL Server. I'd like to do something like this: update foo set Sync = NOT @IsNew Note: I started writing this and found out the answer to my own question before I finished. I still wanted to share with the community, since this piece of documentation was lacking on MSDN (until I ...
In SQL Server, the bitwise NOT operation can be achieved using the `~` operator instead of `NOT`, which is used for boolean negation. If you want to update a column based on the bitwise NOT of a variable, you would do it as follows: ```sql UPDATE foo SET Sync = ~@IsNew ``` This will flip all the bits of the value in ...
14,670
[ { "from": "human", "value": "I'm trying to perform a bitwise NOT in SQL Server. I'd like to do something like this:\nupdate foo\nset Sync = NOT @IsNew\n\nNote: I started writing this and found out the answer to my own question before I finished. I still wanted to share with the community, since this piece o...
I have a JUnit test that tests adding Strings to a Dictionary custom type. Everything works fine for everyone else on a Linux/Windows machine, however, being the first dev in my shop on a mac, this unit test fails for me. The offending lines are where unicode string literals are used: dict.add( "Su字/会意pin", "Su字/...
It sounds like you're encountering issues with Unicode string handling in Java on macOS, which can sometimes behave differently than on other platforms. To make sure that your Unicode strings work consistently across all platforms, you can take the following steps: ### 1. Ensure File Encoding First, make sure that you...
7,041
[ { "from": "human", "value": "I have a JUnit test that tests adding Strings to a Dictionary custom type. Everything works fine for everyone else on a Linux/Windows machine, however, being the first dev in my shop on a mac, this unit test fails for me. The offending lines are where unicode string literals a...
I have a large ADO.Net dataset and two database schemas (Oracle) with different constraints. The dataset will work with either schema, but I want to be able to tell the dataset which schema to use (via connection string) at runtime. Is that even possible?
Yes, it is possible to use a single ADO.NET DataSet with two different Oracle database schemas, provided that the underlying data structure is compatible between the two schemas. You can control which schema the DataSet interacts with at runtime by configuring the connection string to point to the appropriate schema. ...
10,192
[ { "from": "human", "value": "I have a large ADO.Net dataset and two database schemas (Oracle) with different constraints. The dataset will work with either schema, but I want to be able to tell the dataset which schema to use (via connection string) at runtime.\nIs that even possible?\n" }, { "from...
Using Ruby and Thin as a web service. Apache is also loaded. Can't access the web service because listing ports, such as :3000 or :6600, in the GET url is not allowed. How is the port requirement removed?
If you're using Ruby with the Thin web server and you want to access your web service without specifying a port in the URL (such as `http://example.com` instead of `http://example.com:3000`), you can configure Apache to act as a reverse proxy to your Thin server. This way, Apache will listen on the standard HTTP port (...
11,154
[ { "from": "human", "value": "Using Ruby and Thin as a web service. Apache is also loaded. Can't access the web service because listing ports, such as :3000 or :6600, in the GET url is not allowed. How is the port requirement removed?\n" }, { "from": "gpt", "value": "If you're using Ruby with ...
I have a third-party app that creates HTML-based reports that I need to display. I have some control over how they look, but in general it's pretty primitive. I can inject some javascript, though. I'd like to try to inject some jQuery goodness into it to tidy it up some. One specific thing I would like to do is to ...
Certainly! You can achieve this using jQuery to transform your HTML table into a tabbed interface. Below is a simple example that demonstrates how to convert a single-row HTML table into a tabbed view. The following steps will guide you through the process: 1. **HTML Setup**: Assume your table is structured like this,...
7,714
[ { "from": "human", "value": "I have a third-party app that creates HTML-based reports that I need to display. I have some control over how they look, but in general it's pretty primitive. I can inject some javascript, though. I'd like to try to inject some jQuery goodness into it to tidy it up some. One...
I want to extend the basic ControlCollection in VB.NET so I can just add images and text to a self-made control, and then automaticly convert them to pictureboxes and lables. So I made a class that inherits from ControlCollection, overrided the add method, and added the functionality. But when I run the example, it giv...
To extend the `ControlCollection` in VB.NET and add functionality to automatically convert text and images into `Label` and `PictureBox` controls, you need to ensure that you properly manage the creation of controls and their associations with their parent control. ### Steps to Create a Custom Control with ControlColl...
8,281
[ { "from": "human", "value": "I want to extend the basic ControlCollection in VB.NET so I can just add images and text to a self-made control, and then automaticly convert them to pictureboxes and lables.\nSo I made a class that inherits from ControlCollection, overrided the add method, and added the functio...
I need to generate some passwords, I want to avoid characters that can be confused for each other. Is there a definitive list of characters I should avoid? my current list is il10o8B3Evu![]{} Are there any other pairs of characters that are easy to confuse? for special characters I was going to limit myself to those un...
When generating passwords and avoiding characters that can be confused for each other, your list is a good starting point. However, here are some additional pairs of characters that can often lead to confusion: ### Characters to Avoid: 1. **l** (lowercase "L") and **1** (one) 2. **O** (uppercase "O") and **0** (zero) ...
9,824
[ { "from": "human", "value": "I need to generate some passwords, I want to avoid characters that can be confused for each other. Is there a definitive list of characters I should avoid? my current list is\nil10o8B3Evu![]{}\nAre there any other pairs of characters that are easy to confuse? for special charact...
In Jesse Liberty's Learning C# book, he says "Objects of one type can be converted into objects of another type. This is called casting." If you investigate the IL generated from the code below, you can clearly see that the casted assignment isn't doing the same thing as the converted assignment. In the former, you c...
The distinction between "casting" and "converting" in the context of programming languages like C# is an important one, and you're right to look for clarity in definitions. In C#, the terms are often used interchangeably in casual conversation, but they refer to different mechanisms under the hood. ### Definitions: 1...
12,073
[ { "from": "human", "value": "In Jesse Liberty's Learning C# book, he says\n\n\"Objects of one type can be converted into objects of another type.\nThis is called casting.\"\n\nIf you investigate the IL generated from the code below, you can clearly see that the casted assignment isn't doing the same thing a...
How can I create a custom aggregate function in MS SQL Server? An example would help a lot.
Creating a custom aggregate function in SQL Server requires the use of SQL CLR (Common Language Runtime). This allows you to write the aggregate function in .NET languages such as C#. Below are the steps to create a simple custom aggregate function using C#. ### Step 1: Enable CLR Integration Before you create a cust...
9,958
[ { "from": "human", "value": "How can I create a custom aggregate function in MS SQL Server? An example would help a lot.\n" }, { "from": "gpt", "value": "Creating a custom aggregate function in SQL Server requires the use of SQL CLR (Common Language Runtime). This allows you to write the aggrega...
I'm trying to figure out how to detect the type of credit card based purely on its number. Does anyone know of a definitive, reliable way to find this?
Yes, you can determine the type of credit card based on the card number using the initial digits, known as the Issuer Identification Number (IIN) or Bank Identification Number (BIN). Each credit card type has a specific range of numbers that identifies it. Here's a basic guide to help you: 1. **First Digit**: The firs...
7,453
[ { "from": "human", "value": "I'm trying to figure out how to detect the type of credit card based purely on its number. Does anyone know of a definitive, reliable way to find this?\n" }, { "from": "gpt", "value": "Yes, you can determine the type of credit card based on the card number using the ...
I'm trying to insert a Spry accordion into an already existing JSF page using Dreamweaver. Is this possible? I've already tried several things, and only the labels show up.
Yes, you can certainly integrate a Spry Accordion into an existing JSF (JavaServer Faces) page using Adobe Dreamweaver. Here’s a step-by-step guide to help you achieve that. If only the labels are showing, it might be due to missing scripts or styles or improper structure of the HTML. ### Steps to Integrate Spry Accor...
7,519
[ { "from": "human", "value": "I'm trying to insert a Spry accordion into an already existing JSF page using Dreamweaver. Is this possible? \nI've already tried several things, and only the labels show up.\n" }, { "from": "gpt", "value": "Yes, you can certainly integrate a Spry Accordion into an ...
I maintain an ms-access application splitted to frontend and backend files. The frontend file is in the users conputers. The backend file is in a shared folder in the server. What is the lowest permissions required? can I give some of the users only read-only permissions in that folder? (or hide it from them in some ...
When managing an MS Access application with a split database architecture, it is essential to ensure that users have the appropriate permissions on both the frontend and backend files, especially regarding data security and integrity. Here’s how to manage permissions effectively while allowing specific users to access ...
8,593
[ { "from": "human", "value": "I maintain an ms-access application splitted to frontend and backend files. \nThe frontend file is in the users conputers.\nThe backend file is in a shared folder in the server.\nWhat is the lowest permissions required? \ncan I give some of the users only read-only permissions i...
What's are the best practices for versioning web sites? Which revision control systems are well suited for such a job? What special-purpose tools exist? What other questions should I be asking?
Versioning websites is an essential practice for managing updates, maintaining stability, and ensuring that you can roll back changes if necessary. Here are some best practices, tools, and considerations for effective website versioning: ### Best Practices for Versioning Websites 1. **Use a Version Control System (VC...
5,028
[ { "from": "human", "value": "What's are the best practices for versioning web sites?\n\nWhich revision control systems are well suited for such a job?\nWhat special-purpose tools exist?\nWhat other questions should I be asking?\n\n" }, { "from": "gpt", "value": "Versioning websites is an essenti...
We've got a Java server application that runs on a number of computers, all connected to the Internet, some behind firewalls. We need to remotely update the JAR files and startup scripts from a central site, with no noticeable interruption to the app itself. The process has to be unattended and foolproof (i.e. we can't...
Updating a Java server application remotely and unattended can indeed be a challenge, especially when considering the need for fault tolerance, minimal downtime, and ease of maintenance. Here are some strategies and best practices that you might consider for your deployment and update process: ### 1. **Self-Updating M...
10,253
[ { "from": "human", "value": "We've got a Java server application that runs on a number of computers, all connected to the Internet, some behind firewalls. We need to remotely update the JAR files and startup scripts from a central site, with no noticeable interruption to the app itself.\nThe process has to ...
(Excuse any ignorance of mine here - I'm not a seasoned Oracle user.) I'm attempting to use the DBMS_METADATA.GET_DDL function (in conjunction with ALL_OBJECTS or some such) to get the DDL for all of the tables in a particular schema. When I do this (either for all objects or for a single specific object) I get an ORA-...
Hi Lee, You're on the right track with your use of `DBMS_METADATA.GET_DDL` to retrieve the DDL for tables in a schema. The `ORA-31603` error indicates that the user you are logged in with does not have sufficient privileges to access the metadata for the specified object. ### Privileges Required To successfully use ...
9,471
[ { "from": "human", "value": "(Excuse any ignorance of mine here - I'm not a seasoned Oracle user.)\nI'm attempting to use the DBMS_METADATA.GET_DDL function (in conjunction with ALL_OBJECTS or some such) to get the DDL for all of the tables in a particular schema. When I do this (either for all objects or f...
Not sure if this is possible or if I'm expressing correctly what I'm looking for, but I have the following piece of code in my library repeatedly and would like to practice some DRY. I have set of SQL Server tables that I'm querying based on a simple user-supplied search field ala Google. I'm using LINQ to compose the...
Yes, you can definitely apply the DRY (Don't Repeat Yourself) principle to your LINQ queries. You can create a reusable method that accepts parameters for the entity type, search terms, and a function that specifies how to access the field in the entity that you want to search. Here's how you can implement it using gen...
10,240
[ { "from": "human", "value": "Not sure if this is possible or if I'm expressing correctly what I'm looking for, but I have the following piece of code in my library repeatedly and would like to practice some DRY. \nI have set of SQL Server tables that I'm querying based on a simple user-supplied search field...
I have an AST derived from the ANTLR Parser Generator for Java. What I want to do is somehow construct a control flow graph of the source code, where each statement or expression is a unique Node. I understand there must be some recursiveness to this identification, I was wondering what you would suggest as the best op...
Hi Chris, Constructing a Control Flow Graph (CFG) from an Abstract Syntax Tree (AST) derived from ANTLR can be an interesting task! The CFG represents the flow of control within the program, and each node in the graph represents a statement or expression from your source code. Here’s a general approach to building a ...
8,729
[ { "from": "human", "value": "I have an AST derived from the ANTLR Parser Generator for Java. What I want to do is somehow construct a control flow graph of the source code, where each statement or expression is a unique Node. I understand there must be some recursiveness to this identification, I was wonder...
When writing manual SQL its pretty easy to estimate the size and shape of data returned by a query. I'm increasingly finding it hard to do this with LINQ to SQL queries. Sometimes I find WAY more data than I was expecting - which can really slow down a remote client that is accessing a database directly. I'd like to be...
When using LINQ to SQL, it can indeed be challenging to estimate the amount of data being returned, especially since LINQ constructs a SQL query that can sometimes fetch more data than anticipated. Here are a few strategies you can implement to better estimate and optimize the data returned by your queries: 1. **Use S...
9,311
[ { "from": "human", "value": "When writing manual SQL its pretty easy to estimate the size and shape of data returned by a query. I'm increasingly finding it hard to do this with LINQ to SQL queries. Sometimes I find WAY more data than I was expecting - which can really slow down a remote client that is acce...
How unique is the php session id? I got the impression from various things that I've read that I should not rely on two users never getting the same sessionid. Isn't it a GUID?
The PHP session ID is not a GUID (Globally Unique Identifier), and you should be cautious about assuming it will always be unique across all users and sessions. ### Key Points about PHP Session IDs: 1. **Generation**: PHP generates session IDs using a combination of the current time, a random component, and the user...
12,122
[ { "from": "human", "value": "How unique is the php session id? I got the impression from various things that I've read that I should not rely on two users never getting the same sessionid. Isn't it a GUID?\n" }, { "from": "gpt", "value": "The PHP session ID is not a GUID (Globally Unique Identif...
If i make a label in TFS, and later make a new label with the same name... then the old label is replaced by the new one. How do I prevent TFS from overwriting a label?
In Team Foundation Server (TFS), labels are used to mark specific versions of items in your source control. By default, if you create a new label with the same name as an existing label, TFS will overwrite the existing label. To prevent this from happening, you can take the following approaches: 1. **Check for Existin...
14,637
[ { "from": "human", "value": "If i make a label in TFS, and later make a new label with the same name... then the old label is replaced by the new one. \nHow do I prevent TFS from overwriting a label?\n" }, { "from": "gpt", "value": "In Team Foundation Server (TFS), labels are used to mark specif...
My issue is below but would be interested comments from anyone with experience with xlrd. I just found xlrd and it looks like the perfect solution but I'm having a little problem getting started. I am attempting to extract data programatically from an Excel file I pulled from Dow Jones with current components of the Do...
It sounds like you're running into an issue with the Excel file's format not being recognized correctly by `xlrd`. Here are a few options to consider that could help you work around this problem: ### 1. Verify File Integrity First, ensure that the file you're trying to open is not corrupted. Sometimes files can appear...
11,680
[ { "from": "human", "value": "My issue is below but would be interested comments from anyone with experience with xlrd.\nI just found xlrd and it looks like the perfect solution but I'm having a little problem getting started. I am attempting to extract data programatically from an Excel file I pulled from D...
This question about unit testing best practices mentions designing classes for dependency injection. This got me thinking as to what exactly that might mean. Having just started working with inversion of control containers I have some ideas on the issue, so let me throw them against the wall and see what sticks. The...
Your insights on dependency injection and the types of dependencies are well-articulated, and you've captured many of the best practices effectively. Here are a few additional considerations and guidelines that can help further clarify your points and strengthen your understanding of dependency injection (DI) and inver...
10,572
[ { "from": "human", "value": "This question about unit testing best practices mentions designing classes for dependency injection. This got me thinking as to what exactly that might mean. \nHaving just started working with inversion of control containers I have some ideas on the issue, so let me throw them...
We're deploying some new WCF calls in our SQL 2005 DB using the CLR. In testing, I hardcoded in the code the endpoint to connect to, and deployed it to our test server. When we go to deploy this to production, we will be deploying it to many different SQL DBs, and using different endpoints to connect to (same service r...
Deploying WCF services from SQL Server using CLR (Common Language Runtime) can be tricky, especially when you need to connect to different endpoints based on the environment (like production, test, etc.). Unfortunately, SQL Server does not support traditional configuration files (like `app.config` or `web.config`) for ...
11,934
[ { "from": "human", "value": "We're deploying some new WCF calls in our SQL 2005 DB using the CLR. In testing, I hardcoded in the code the endpoint to connect to, and deployed it to our test server. When we go to deploy this to production, we will be deploying it to many different SQL DBs, and using differen...
Possible Duplicate: How do I get the HMODULE for the currently executing code? I'm trying to find a resource in my own module. If this module is an executable, that's trivial - GetModuleHandle(NULL) returns the handle of the "main" module. My module, however, is a DLL that is loaded by another executable. So GetModu...
To obtain the module handle of the DLL that contains the currently running code, you can use the `GetModuleHandle` function in conjunction with the `GetCurrentProcess` and `VirtualQuery` functions. This method is generally more reliable and doesn't depend on the name of the DLL, making it maintainable if you change the...
12,432
[ { "from": "human", "value": "\nPossible Duplicate:\nHow do I get the HMODULE for the currently executing code? \n\nI'm trying to find a resource in my own module. If this module is an executable, that's trivial - GetModuleHandle(NULL) returns the handle of the \"main\" module.\nMy module, however, is a DLL ...
Does anyone have a good set of Visio Stencils for MS SQL Server?
Yes, there are several places where you can find Visio stencils specifically for Microsoft SQL Server. Here are a few options you can consider: 1. **Microsoft Visio Templates**: Microsoft sometimes provides stencils for different software, including SQL Server. You can check the official Microsoft website or Visio's b...
15,009
[ { "from": "human", "value": "Does anyone have a good set of Visio Stencils for MS SQL Server?\n" }, { "from": "gpt", "value": "Yes, there are several places where you can find Visio stencils specifically for Microsoft SQL Server. Here are a few options you can consider:\n\n1. **Microsoft Visio T...
Is it possbile to execute linux commands with java? I am trying to create a web servlet to allow ftp users to change their passwords without ssh login access. I would like to execute the next commands: # adduser -s /sbin/nologin clientA -d /home/mainclient/clientA # passwd clientA # cd /home/mainclient; chgrp -R main...
Yes, it's possible to execute Linux commands from Java using the `Runtime.exec()` method or the `ProcessBuilder` class. However, this approach has several security implications and can pose risks, especially when taking inputs from users. You need to ensure that your implementation does not allow for command injection ...
10,846
[ { "from": "human", "value": "Is it possbile to execute linux commands with java? I am trying to create a web servlet to allow ftp users to change their passwords without ssh login access. I would like to execute the next commands: \n# adduser -s /sbin/nologin clientA -d /home/mainclient/clientA\n# passwd c...
I would like to be able to embed a command line interpreter inside a dockable window in Visual Studio. Is there any nice way to do this?
Embedding a command line interpreter inside a dockable window in Visual Studio can be achieved through the use of Visual Studio's extensibility framework. While creating a fully-functional command line interpreter might take some effort, I'll outline a high-level approach to get you started. You would typically create ...
9,663
[ { "from": "human", "value": "I would like to be able to embed a command line interpreter inside a dockable window in Visual Studio. Is there any nice way to do this?\n" }, { "from": "gpt", "value": "Embedding a command line interpreter inside a dockable window in Visual Studio can be achieved th...
It looks like BREW 4.0 will have Lua included. But is it possible to use Lua on older BREW 3.0 (or even BREW 2.0)?
BREW (Binary Runtime Environment for Wireless) is a platform developed by Qualcomm for mobile applications, and Lua is a lightweight scripting language that can be embedded in applications. While BREW 4.0 introduced official support for Lua, older versions like BREW 2.0 and 3.0 do not include native support for Lua. H...
15,799
[ { "from": "human", "value": "It looks like BREW 4.0 will have Lua included. But is it possible to use Lua on older BREW 3.0 (or even BREW 2.0)?\n" }, { "from": "gpt", "value": "BREW (Binary Runtime Environment for Wireless) is a platform developed by Qualcomm for mobile applications, and Lua is ...
I need to randomly fade my background images in and out. It will be a timed function, like once every 5 seconds. I need to do it with ASP.NET, Javascript, CSS or all three. Please help me out here guys. Thank you.
To achieve a random fading effect for background images every 5 seconds using HTML, CSS, and JavaScript, you can follow these steps. Below is a simple implementation you can use in your ASP.NET application. Note that you can modify the code based on your specific needs. ### Step 1: HTML Structure Create a simple HTML ...
11,593
[ { "from": "human", "value": "I need to randomly fade my background images in and out.\nIt will be a timed function, like once every 5 seconds.\nI need to do it with ASP.NET, Javascript, CSS or all three.\nPlease help me out here guys. Thank you.\n" }, { "from": "gpt", "value": "To achieve a ran...
I am looking for a way to have some control over the shape of a simple MessageBox in Winforms. I would like to control where the passed in text wraps so that the dialog rect is narrower. Windows seems to want to make the dialog as wide as possible before wrapping the text. Is there an easy way to control the maximum wi...
In WinForms, the default MessageBox doesn't provide a straightforward way to control its width directly. It automatically sizes based on the content and the default font. However, you can achieve a similar effect by creating a custom form that resembles a MessageBox but allows for more control over the layout. If you ...
11,102
[ { "from": "human", "value": "I am looking for a way to have some control over the shape of a simple MessageBox in Winforms. I would like to control where the passed in text wraps so that the dialog rect is narrower. Windows seems to want to make the dialog as wide as possible before wrapping the text. Is th...
You might have a set of properties that is used on the developer machine, which varies from developer to developer, another set for a staging environment, and yet another for the production environment. In a Spring application you may also have beans that you want to load in a local environment but not in a production...
In a Spring application, managing different configurations for various environments (e.g., development, staging, production) can be done in several ways. Here are some common approaches: ### 1. **Profile-Specific Configuration Files** Spring supports profiles, allowing you to have different configuration files for di...
9,554
[ { "from": "human", "value": "You might have a set of properties that is used on the developer machine, which varies from developer to developer, another set for a staging environment, and yet another for the production environment. \nIn a Spring application you may also have beans that you want to load in a...
Currently, I am working on a new version control system as part of a final year project at University. The idea is to make it highly adaptable and pluggable. We're using the OSGi framework (Equinox implementation) to manage our plug ins. My problem is that I can't find a simple & easy to use method for testing OSGi bun...
Testing OSGi bundles can indeed be a bit more complex than testing standard Java applications due to the dynamic nature of OSGi. However, there are several frameworks and approaches that can help streamline the process, especially if you're looking for integration with JUnit 4. Here are some options you might consider...
11,964
[ { "from": "human", "value": "Currently, I am working on a new version control system as part of a final year project at University. The idea is to make it highly adaptable and pluggable.\nWe're using the OSGi framework (Equinox implementation) to manage our plug ins. My problem is that I can't find a simple...
PHP, as we all know is very loosely typed. The language does not require you to specify any kind of type for function parameters or class variables. This can be a powerful feature. Sometimes though, it can make debugging your script a painful experience. For example, passing one kind of object into a method that expect...
In PHP, you can achieve type-checking for function parameters using type hints in method declarations. Since PHP 7, you can specify the expected type for parameters, which will enforce that the correct type is passed. If an incompatible type is provided, PHP will throw a TypeError. Here's how you can implement type-ch...
10,219
[ { "from": "human", "value": "PHP, as we all know is very loosely typed. The language does not require you to specify any kind of type for function parameters or class variables. This can be a powerful feature.\nSometimes though, it can make debugging your script a painful experience. For example, passing on...
Has anyone ever heard of a UNIX shell written in a reasonable language, like Python?
Yes, there are several projects and implementations of UNIX-like shells written in higher-level languages, including Python. While traditional UNIX shells like Bash or Zsh are primarily written in C for performance reasons, there are notable alternatives that leverage Python. Some examples include: 1. **Python Shell**...
14,712
[ { "from": "human", "value": "Has anyone ever heard of a UNIX shell written in a reasonable language, like Python?\n" }, { "from": "gpt", "value": "Yes, there are several projects and implementations of UNIX-like shells written in higher-level languages, including Python. While traditional UNIX s...
99 bottles of beers made me realize that ADA, Erlang and Smalltalk were not so odd languages after all. There are plenty of unusual tools and I supposed that a lot of them are even used :-) Have you ever worked with very original technologies ? If yes, let us know in which context, and what did you think about it. Funn...
I haven't personally worked with technologies, but I can certainly share some insights and anecdotes related to unusual programming languages and tools that might bring a smile! ### 1. **Ada** Ada is often associated with safety-critical systems and aerospace applications. It's known for its strong typing and reliabil...
11,905
[ { "from": "human", "value": "99 bottles of beers made me realize that ADA, Erlang and Smalltalk were not so odd languages after all.\nThere are plenty of unusual tools and I supposed that a lot of them are even used :-)\nHave you ever worked with very original technologies ? If yes, let us know in which con...
Has anybody found a good solution for lazily-evaluated lists in Perl? I've tried a number of ways to turn something like for my $item ( map { ... } @list ) { } into a lazy evaluation--by tie-ing @list, for example. I'm trying to avoid breaking down and writing a source filter to do it, because they mess with your a...
Lazy evaluation in Perl can indeed be tricky, especially if you're accustomed to using `map`, `grep`, and other list-processing functions that eagerly evaluate their inputs. However, there are several approaches you can take to achieve lazy evaluation without resorting to source filters. ### 1. Using `Generator` Objec...
8,112
[ { "from": "human", "value": "Has anybody found a good solution for lazily-evaluated lists in Perl? I've tried a number of ways to turn something like \nfor my $item ( map { ... } @list ) { \n}\n\ninto a lazy evaluation--by tie-ing @list, for example. I'm trying to avoid breaking down and writing a source f...
In PowerShell, even if it's possible to know if a drive is a network drive: see In PowerShell, how can I determine if the current drive is a networked drive or not? When I try to get the "root" of the drive, I get back the drive letter. The setup: MS-Dos "net use" shows that H: is really a mapped network drive: New con...
In PowerShell, you can indeed determine whether a drive is a mapped network drive by utilizing the `Get-PSDrive` cmdlet along with some properties from the `System.IO.DriveInfo` class. In your case, you are looking for the actual remote path of the mapped network drive, which is not directly provided by `Get-PSDrive`....
13,931
[ { "from": "human", "value": "In PowerShell, even if it's possible to know if a drive is a network drive: see In PowerShell, how can I determine if the current drive is a networked drive or not?\nWhen I try to get the \"root\" of the drive, I get back the drive letter.\nThe setup:\nMS-Dos \"net use\" shows t...
I am trying to write a regular expression to strip all HTML with the exception of links (the <a href and </a> tags respectively. It does not have to be 100% secure (I am not worried about injection attacks or anything as I am parsing content that has already been approved and published into a SWF movie). The original "...
To create a regular expression that strips all HTML tags except for anchor (`<a>` and `</a>`) tags, you can follow these steps: 1. **Match opening and closing `<a>` tags**: You want to ensure that `<a>` and `</a>` tags are preserved. 2. **Match all other tags**: Any other HTML tags should be stripped out. Here's a re...
10,770
[ { "from": "human", "value": "I am trying to write a regular expression to strip all HTML with the exception of links (the <a href and </a> tags respectively. It does not have to be 100% secure (I am not worried about injection attacks or anything as I am parsing content that has already been approved and pu...
Is there a method for controlling the Balance of the Wave output that will work on both XP and Vista?
Yes, you can control the balance of audio output on both Windows XP and Windows Vista using several methods. Here are a few options: ### 1. **Using the Volume Control Panel:** Both XP and Vista have a built-in Volume Control that allows you to adjust the balance of audio output. - **Windows XP:** 1. Right-click the...
11,379
[ { "from": "human", "value": "Is there a method for controlling the Balance of the Wave output that will work on both XP and Vista?\n" }, { "from": "gpt", "value": "Yes, you can control the balance of audio output on both Windows XP and Windows Vista using several methods. Here are a few options:...
I have the following code: ListBox.DataSource = DataSet.Tables("table_name").Select("some_criteria = match") ListBox.DisplayMember = "name" The DataTable.Select() method returns an array of System.Data.DataRow objects. No matter what I specify in the ListBox.DisplayMember property, all I see is the ListBox with the co...
The issue you're encountering is because the `ListBox` is being set to display the `DataRow` objects directly, which results in the default `ToString()` method being called on each `DataRow`, showing "System.Data.DataRow" instead of the actual value from the "name" column. To achieve the functionality you want while s...
13,024
[ { "from": "human", "value": "I have the following code:\nListBox.DataSource = DataSet.Tables(\"table_name\").Select(\"some_criteria = match\")\nListBox.DisplayMember = \"name\"\n\nThe DataTable.Select() method returns an array of System.Data.DataRow objects.\nNo matter what I specify in the ListBox.DisplayM...
I'm using a FullTextSqlQuery in SharePoint 2007 (MOSS) and need to order the results by two columns: SELECT WorkId FROM SCOPE() ORDER BY Author ASC, Rank DESC However it seems that only the first column from ORDER BY is taken into account when returning results. In this case the results are ordered correctly by Author...
In SharePoint 2007 (MOSS), there are known limitations when it comes to using the `ORDER BY` clause in Full Text SQL queries. Specifically, the SQL parser in SharePoint handles these queries differently than standard SQL Server does, which can lead to unexpected behavior like the one you described where only the first ...
13,098
[ { "from": "human", "value": "I'm using a FullTextSqlQuery in SharePoint 2007 (MOSS) and need to order the results by two columns:\nSELECT WorkId FROM SCOPE() ORDER BY Author ASC, Rank DESC\n\nHowever it seems that only the first column from ORDER BY is taken into account when returning results. In this case...
I need to create a button that has the same style as ButtonSpec with its type set to Context, is there any way to create a ButtonSpec that isn't directly attached to another control, or have I missed a simple style option on another control?
In the context of UI development, particularly when working with frameworks like Material Design or custom button libraries, creating a styled button that resembles an existing button style (like `ButtonSpec` with its type set to `Context`) usually involves applying specific styles and attributes directly to your butto...
11,854
[ { "from": "human", "value": "I need to create a button that has the same style as ButtonSpec with its type set to Context, is there any way to create a ButtonSpec that isn't directly attached to another control, or have I missed a simple style option on another control?\n" }, { "from": "gpt", "v...
I want to send email with Exchange by using telnet to port 25. Until two week ago I was able to, but now a "security fix" from Microsoft has removed this possibility. When I try, I get this message: 421 4.3.2 Service not available, closing transmission channel What can I do?
It appears that the recent security updates from Microsoft may have impacted the ability to send emails using Telnet to port 25 on your Exchange server. This is likely due to changes in the server's security settings or protocols, such as requiring encryption (TLS) or requiring authentication before allowing email tran...
12,325
[ { "from": "human", "value": "I want to send email with Exchange by using telnet to port 25. Until two week ago I was able to, but now a \"security fix\" from Microsoft has removed this possibility.\nWhen I try, I get this message:\n421 4.3.2 Service not available, closing transmission channel\nWhat can I do...
example: public static void DoSomething<K,V>(IDictionary<K,V> items) { items.Keys.Each(key => { if (items[key] **is IEnumerable<?>**) { /* do something */ } else { /* do something else */ } } Can this be done without using reflection? How do I say IEnumerable in C#? Should I just use IEnumerable since I...
In C#, you can check if an object implements `IEnumerable` without using reflection, by using the `is` operator. When you check if an item is of type `IEnumerable`, it will also cover any specific generic types that implement it, like `IEnumerable<T>`. Here's how you can implement it in your example: ```csharp publi...
13,719
[ { "from": "human", "value": "example:\npublic static void DoSomething<K,V>(IDictionary<K,V> items) {\n items.Keys.Each(key => {\n if (items[key] **is IEnumerable<?>**) { /* do something */ }\n else { /* do something else */ }\n}\n\nCan this be done without using reflection? How do I say IEnumera...
Greetings, currently I am refactoring one of my programs, and I found an interesting problem. I have Transitions in an automata. Transitions always have a start-state and an end-state. Some Transitions have a label, which encodes a certain Action that must be performed upon traversal. No label means no action. Some tra...
Your question raises some interesting design considerations regarding how to represent transitions in an automaton with varying features (like labels and conditions). You are right to be thinking carefully about the implications of using decorators versus inheritance, particularly in terms of how equality checks can be...
10,823
[ { "from": "human", "value": "Greetings, currently I am refactoring one of my programs, and I found an interesting problem.\nI have Transitions in an automata. Transitions always have a start-state and an end-state. Some Transitions have a label, which encodes a certain Action that must be performed upon tra...
Say that you're developing code which needs to compile and run on multiple hosts (say Linux and Windows), how would you go about doing that in the most efficient manner given that: You have full access to hardware for each host you're compiling for (in my case a Linux host and a Windows host standing on my desk) Build...
To efficiently develop code that compiles and runs on both Linux and Windows, while ensuring a fast compile-edit-run cycle, consider the following approach: ### 1. Local Development Environments Set up local development environments for both Linux and Windows. You can use: - **Virtual Machines**: Create a VM for one...
8,774
[ { "from": "human", "value": "Say that you're developing code which needs to compile and run on multiple hosts (say Linux and Windows), how would you go about doing that in the most efficient manner given that:\n\nYou have full access to hardware for each host you're compiling for (in my case a Linux host an...
Possible Duplicate: Avoiding repeated constants in CSS We have some "theme colors" that are reused in our CSS sheet. Is there a way to set a variable and then reuse it? E.g. .css OurColor: Blue H1 { color:OurColor; }
Yes, you can achieve this in CSS by using CSS variables (also known as custom properties). CSS variables allow you to define a value once and reuse it throughout your stylesheet. Here’s how you can set a CSS variable for your theme color and reuse it: ```css :root { --our-color: blue; /* Define the variable */ } ...
14,504
[ { "from": "human", "value": "\nPossible Duplicate:\nAvoiding repeated constants in CSS \n\nWe have some \"theme colors\" that are reused in our CSS sheet.\nIs there a way to set a variable and then reuse it?\nE.g.\n.css\nOurColor: Blue\n\nH1 { \n color:OurColor;\n}\n\n" }, { "from": "gpt", "valu...
I have a SQL statement that looks like: SELECT [Phone] FROM [Table] WHERE ( [Phone] LIKE '[A-Z][a-z]' OR [Phone] = 'N/A' OR [Phone] LIKE '[0]' ) The part I'm having trouble with is the where statement with the "LIKEs". I've seen SQL statements where authors used like statements in the way I'm using them ab...
The use of the `LIKE` operator in your SQL statement is not consistent with standard SQL syntax for pattern matching. The patterns you provided within the `LIKE` clauses are not correctly defined for matching characters in SQL. 1. **Character Ranges with `LIKE`:** The pattern `LIKE '[A-Z][a-z]'` is not valid in SQL. ...
9,552
[ { "from": "human", "value": "I have a SQL statement that looks like:\nSELECT [Phone]\nFROM [Table]\nWHERE\n(\n [Phone] LIKE '[A-Z][a-z]'\n OR [Phone] = 'N/A'\n OR [Phone] LIKE '[0]'\n)\n\nThe part I'm having trouble with is the where statement with the \"LIKEs\". I've seen SQL statements where auth...
I have a third party .NET Assembly and a large Java application. I need to call mothods provided by the .NET class library from the Java application. The assembly is not COM-enabled. I have searched the net and so far i have the following: C# code (cslib.cs): using System; namespace CSLib { public class CSClass ...
It seems you've run into a challenging interoperability issue between Java and .NET. Here’s a summary of your situation and a few suggestions that could help you achieve what you're trying to do. ### Summary of the Issue - You have a .NET assembly (`CSLib.dll`) that is not COM-enabled. - You've created a C++/CLI wrapp...
11,748
[ { "from": "human", "value": "I have a third party .NET Assembly and a large Java application. I need to call mothods provided by the .NET class library from the Java application. The assembly is not COM-enabled.\nI have searched the net and so far i have the following:\nC# code (cslib.cs):\nusing System;\n\...
We have a 3D viewer that uses OpenGL, but our clients sometimes complain about it "not working". We suspect that most of these issues stem from them trying to use, what is in effect a modern 3d real-time game, on a business laptop computer. How can we, in the Windows MSI installer we use, check for support for OpenGL? ...
To ensure that your 3D viewer works properly on the target machines, you can perform several checks during the installation process using your Windows MSI installer. Here’s how you can check for OpenGL support: ### 1. Checking OpenGL Support in Windows MSI Installer You have a few options for checking OpenGL support:...
10,792
[ { "from": "human", "value": "We have a 3D viewer that uses OpenGL, but our clients sometimes complain about it \"not working\". We suspect that most of these issues stem from them trying to use, what is in effect a modern 3d real-time game, on a business laptop computer.\nHow can we, in the Windows MSI inst...
I don’t think I’ve grokked currying yet. I understand what it does, and how to do it. I just can’t think of a situation I would use it. Where are you using currying in JavaScript (or where are the main libraries using it)? DOM manipulation or general application development examples welcome. One of the answers mentions...
Currying and partial application are indeed powerful techniques in functional programming and can be quite useful in JavaScript. Let’s explore some practical scenarios where you might leverage currying, as well as the advantages and potential drawbacks. ### Practical Examples of Currying in JavaScript 1. **Configurat...
8,037
[ { "from": "human", "value": "I don’t think I’ve grokked currying yet. I understand what it does, and how to do it. I just can’t think of a situation I would use it.\nWhere are you using currying in JavaScript (or where are the main libraries using it)? DOM manipulation or general application development exa...
I am having a table Table1 with columns id1, id2, id3 all the columns are nullable I may enter null or value to all columns in rows. My question is I need to select the rows whose all the column values should not be null. Thanks There are totally around 300 columns in the table. I can't do the is null property for all...
If you want to select rows from a table where all specified columns are not null, and you have many columns (like in your case with 300 columns), you can leverage the `COALESCE` function along with `NULLIF` or a more efficient method using `COUNT` to determine if any of the columns are null. Here's a SQL query approac...
11,664
[ { "from": "human", "value": "I am having a table Table1 with columns id1, id2, id3 all the columns are nullable\nI may enter null or value to all columns in rows.\nMy question is I need to select the rows whose all the column values should not be null.\nThanks\n\nThere are totally around 300 columns in the ...
This question is the other side of the question asking, "How do I calculate relative time?". Given some human input for a relative time, how can you parse it? By default you would offset from DateTime.Now(), but could optionally offset from another DateTime. (Prefer answers in C#) Example input: "in 20 minutes" "5 ho...
To parse relative time strings in C#, you can utilize a combination of regular expressions, string manipulation, and `DateTime` arithmetic. Below is a simple implementation that handles the specified formats: "in 20 minutes", "5 hours ago", "3h 2m", and "next week". ### Implementation: ```csharp using System; using S...
9,403
[ { "from": "human", "value": "This question is the other side of the question asking, \"How do I calculate relative time?\".\nGiven some human input for a relative time, how can you parse it? By default you would offset from DateTime.Now(), but could optionally offset from another DateTime.\n(Prefer answers...
I only want a list of files that have been added (not ones that have been modified) since a certain date. Is there an easy way to do this? Answer: Here's what ended up working for me, thanks guys! svn log -v -r{2008-10-1}:HEAD svn://path.to.repo/ | grep "^   A" | grep ".java" | sort -u
Yes, your solution effectively lists files that have been added since a specific date in an SVN repository. The command you provided uses `svn log` to retrieve the log history, filters for added files with `grep`, and sorts them uniquely. To break it down: - `svn log -v -r{2008-10-1}:HEAD svn://path.to.repo/`: This ...
15,042
[ { "from": "human", "value": "I only want a list of files that have been added (not ones that have been modified) since a certain date. Is there an easy way to do this?\nAnswer: Here's what ended up working for me, thanks guys!\n\nsvn log -v -r{2008-10-1}:HEAD svn://path.to.repo/ | grep \"^   A\" | grep \".j...
I have some code in an IAuthorizationFilter which redirects the user to a login page but I'm having trouble changing the controller which is used. So I might do public void OnAuthorization(AuthorizationContext context) { UserController u = new UserController(); context.Result = u.Login(); context.Cancel = true; ...
In ASP.NET MVC, when you're using `IAuthorizationFilter`, you generally want to handle the authorization logic and then redirect to the appropriate action if the user is not authorized. The issue you're facing arises because the framework is unable to find the view from the `UserController` when you create an instance ...
10,989
[ { "from": "human", "value": "I have some code in an IAuthorizationFilter which redirects the user to a login page but I'm having trouble changing the controller which is used. So I might do\npublic void OnAuthorization(AuthorizationContext context)\n{\n UserController u = new UserController();\n context....
I have a variable of type Dynamic and I know for sure one of its fields, lets call it a, actually is an array. But when I'm writing var d : Dynamic = getDynamic(); for (t in d.a) { } I get a compilation error on line two: You can't iterate on a Dynamic value, please specify Iterator or Iterable How can I make this ...
In Haxe, when you're working with `Dynamic` types and you know a certain field is an array (or should be treated as an array), you have to explicitly cast it to the appropriate type in order to use it in a loop. Here’s how you can do this: 1. Use a cast to specify that `d.a` is an `Array`. 2. Then, you can iterate ove...
13,978
[ { "from": "human", "value": "I have a variable of type Dynamic and I know for sure one of its fields, lets call it a, actually is an array. But when I'm writing \nvar d : Dynamic = getDynamic();\nfor (t in d.a) {\n}\n\nI get a compilation error on line two:\n\nYou can't iterate on a Dynamic value, please sp...
When you use the WebBrowser control in .NET you can "embed" an instance of IE in your application, essentially making your own IE-based Web Browser. Does anyone know how to make any new windows created (like when the user selects "Open in New Window" from the context menu) open up in another Window of Your Web Browser ...
To achieve the functionality where new windows created in a WebBrowser control (e.g., when users select "Open in New Window") open within a new instance of your own application instead of the default web browser, you'll need to handle the `NewWindow` event of the WebBrowser control. Here’s a step-by-step guide to impl...
10,732
[ { "from": "human", "value": "When you use the WebBrowser control in .NET you can \"embed\" an instance of IE in your application, essentially making your own IE-based Web Browser.\nDoes anyone know how to make any new windows created (like when the user selects \"Open in New Window\" from the context menu) ...
I have an experiment streaming up 1Mb/s of numeric data which needs to be stored for later processing. It seems as easy to write directly into a database as to a CSV file and I would then have the ability to easily retrieve subsets or ranges. I have experience of sqlite2 (when it only had text fields) and it seemed pr...
For your scenario of streaming 1 Mb/s of numeric data and needing a performant and flexible way to store it for later processing, there are several options for in-process databases that can meet your requirements. Here are some suggestions that are well-suited for use in C++ applications, especially on Windows, and wit...
8,693
[ { "from": "human", "value": "I have an experiment streaming up 1Mb/s of numeric data which needs to be stored for later processing. \nIt seems as easy to write directly into a database as to a CSV file and I would then have the ability to easily retrieve subsets or ranges.\nI have experience of sqlite2 (whe...
I'm new to Ruby, and I'm trying the following: mySet = numOfCuts.times.map{ rand(seqLength) } but I get the 'yield called out of block' error. I'm not sure what his means. BTW, this question is part of a more general question I asked here.
The error message `'yield called out of block'` typically suggests that you're trying to use the `yield` keyword in a context where it's not valid, often due to a misuse of blocks in Ruby. However, in the code snippet you've provided: ```ruby mySet = numOfCuts.times.map { rand(seqLength) } ``` This code should not i...
13,774
[ { "from": "human", "value": "I'm new to Ruby, and I'm trying the following: \nmySet = numOfCuts.times.map{ rand(seqLength) }\n\nbut I get the 'yield called out of block' error. I'm not sure what his means. BTW, this question is part of a more general question I asked here.\n" }, { "from": "gpt", ...
We have a couple of large solutions, each with about 40 individual projects (class libraries and nested websites). It takes about 2 minutes to do a full rebuild all. A couple of specs on the system: Visual Studio 2005, C# Primary project is a Web Application Project 40 projects in total (4 Web projects) We use the int...
Improving the initial load time during development in a large ASP.NET Web Application can be challenging, especially with the setup you described. However, here are some strategies that could help reduce the time it takes for the first browser hit after making changes: ### 1. Optimize Build Process - **Incremental Bui...
11,639
[ { "from": "human", "value": "We have a couple of large solutions, each with about 40 individual projects (class libraries and nested websites). It takes about 2 minutes to do a full rebuild all.\nA couple of specs on the system:\n\nVisual Studio 2005, C#\nPrimary project is a Web Application Project\n40 pro...
So I have a form that uses infopath services via sharepoint, and after multiple attempts at attempting to fix a rendering problem (tables appear WAY too wide to be readable), I think I have found the problem : date controls. It seems date controls within Infopath 2007 screw with rendering somehow. To test, I made 2 v...
It sounds like you're encountering a frustrating rendering issue with InfoPath 2007 forms when they are emailed. There have been several reports of rendering issues, particularly with date controls and tables in InfoPath, especially when integrating with SharePoint and Outlook. Here are some troubleshooting steps and ...
11,474
[ { "from": "human", "value": "So I have a form that uses infopath services via sharepoint, and after multiple attempts at attempting to fix a rendering problem (tables appear WAY too wide to be readable), I think I have found the problem : date controls.\nIt seems date controls within Infopath 2007 screw wit...
I would like to redirect/rewrite this two kinds of URLs: mydomain.com -> newdomain.com mydomain.com/specificPage -> newdomain.com/newSpecificPage mydomain.com/anyOtherPage -> mydomain.com/anyOtherPage (no redirect here) So I just want to redirect the root domain to a new domain, and some pages from my domain to some ...
To achieve the specified URL redirection and rewriting on a JBoss server, you can use the built-in mechanisms for handling requests. JBoss (now part of WildFly) allows you to configure redirection and rewrites either by using a web application deployment descriptor or directly in your application code. Below are the st...
9,925
[ { "from": "human", "value": "I would like to redirect/rewrite this two kinds of URLs:\n\nmydomain.com -> newdomain.com\nmydomain.com/specificPage -> newdomain.com/newSpecificPage\nmydomain.com/anyOtherPage -> mydomain.com/anyOtherPage (no redirect here)\n\nSo I just want to redirect the root domain to a new...
I'm using SQL Server 2008 with Advanced Services on my Vista Home Premium. I'd installed Full-text searching during installation, The SQL Full-text Filter Daemon Launcher is running thorough an admin user account. When I go to a database through the SQL Server Management Studio, I don't see the "Storage" option under t...
The issue you're encountering in SQL Server 2008, where the "Storage" option is not visible for your database in SQL Server Management Studio (SSMS), can be caused by a couple of factors. Below are some steps and considerations that may help you resolve this: 1. **Ensure Full-Text Search is Enabled**: Since you've men...
12,054
[ { "from": "human", "value": "I'm using SQL Server 2008 with Advanced Services on my Vista Home Premium. I'd installed Full-text searching during installation, The SQL Full-text Filter Daemon Launcher is running thorough an admin user account. When I go to a database through the SQL Server Management Studio,...
This has been a fun week (if you look back at my questions you'll see a common theme). I have a repeater that is bound to a collection. Each repeater item dynamic control that corresponds to the collection item, it also renders out a header over each control that contains a Delete link. When the delete link is clicked,...
The behavior you're encountering is indeed tied to how ASP.NET manages the ViewState and the lifecycle of the controls in a Repeater (or similar data-bound controls). When you change the underlying data collection and rebind it to the Repeater, the control hierarchy is regenerated, which can lead to issues with maintai...
8,127
[ { "from": "human", "value": "This has been a fun week (if you look back at my questions you'll see a common theme).\nI have a repeater that is bound to a collection. Each repeater item dynamic control that corresponds to the collection item, it also renders out a header over each control that contains a Del...
I have a Linux web server farm with about 5 web servers, web traffic is about 20Mbps. We currently have a Barracuda 340 Load Balancer (keep away from this device - piece of crap!) that is acting as a firewall. I want to put in a dedicated firewall and I'd like to know what peoples opinions are on building versus buying...
When considering whether to build or buy a dedicated firewall for your Linux web server farm, there are several factors to weigh. Here’s a breakdown of the options along with their pros and cons, followed by some considerations for performance evaluation. ### Build vs. Buy #### Buy a Dedicated Firewall **Pros:** 1. ...
6,581
[ { "from": "human", "value": "I have a Linux web server farm with about 5 web servers, web traffic is about 20Mbps.\nWe currently have a Barracuda 340 Load Balancer (keep away from this device - piece of crap!) that is acting as a firewall. I want to put in a dedicated firewall and I'd like to know what peop...
I have an Events list in sharepoint and need to disallow users from having the ability to create meeting workspaces in the new event form. Shy of customizing the new event form (which breaks attachment support), how can this be done?
To disallow users from creating Meeting Workspaces in a SharePoint Events list without customizing the new event form, you can use the following approaches: ### 1. Modify Permissions You can adjust permissions for users or groups in SharePoint to prevent them from creating Meeting Workspaces. Here’s how you can do tha...
12,199
[ { "from": "human", "value": "I have an Events list in sharepoint and need to disallow users from having the ability to create meeting workspaces in the new event form. Shy of customizing the new event form (which breaks attachment support), how can this be done?\n" }, { "from": "gpt", "value": ...
We're a .NET team which uses the Oracle DB for a lot of reasons that I won't get into. But deployment has been a bitch. We are manually keeping track of all the changes to the schema in each version, by keeping a record of all the scripts that we run during development. Now, if a developer forgets to check-in his scri...
Yes, managing database schema changes can be quite challenging, especially in a team setting. Fortunately, there are several tools that can help with Oracle database schema comparison and synchronization similar to what SQL Compare offers for SQL Server. Here are some options you might consider: 1. **Redgate’s Schema ...
14,448
[ { "from": "human", "value": "We're a .NET team which uses the Oracle DB for a lot of reasons that I won't get into. But deployment has been a bitch. We are manually keeping track of all the changes to the schema in each version, by keeping a record of all the scripts that we run during development. \nNow, i...
I am using XmlSpy to analyze an xml file, and I want to get a quick count of the number of nodes that match a given xpath. I know how to enter the XPathand get the list of nodes, but I am really just interested in the count. Is it possible to get this? I'm using XmlSpy Professional Edition version 2007 sp2, if it mat...
In XMLSpy Professional Edition, you can easily count the number of nodes that match a given XPath expression without having to manually check the list of nodes. Here’s how you can do it: 1. **Open your XML file** in XMLSpy. 2. **Navigate to the XPath Tab**: Go to the "XPath" tab where you can enter your XPath express...
13,599
[ { "from": "human", "value": "I am using XmlSpy to analyze an xml file, and I want to get a quick count of the number of nodes that match a given xpath. I know how to enter the XPathand get the list of nodes, but I am really just interested in the count. Is it possible to get this?\nI'm using XmlSpy Profes...