instruction
stringlengths
14
27.6k
completion
stringlengths
3
38.3k
__original_row_idx
int64
0
50k
conversations
listlengths
2
2
EDIT: I also have access to ESXLT functions. I have two node sets of string tokens. One set contains values like these: /Geography/North America/California/San Francisco /Geography/Asia/Japan/Tokyo/Shinjuku The other set contains values like these: /Geography/North America/ /Geography/Asia/Japan/ My goal is to find a...
To achieve a match between two sets of strings where one set's string starts with any string from the other set, you can use XPath in combination with wildcards or regular expressions, as you mentioned. Below are a couple of approaches you might consider: ### Using XPath with `starts-with()` You can structure your XP...
29,289
[ { "from": "human", "value": "EDIT: I also have access to ESXLT functions.\nI have two node sets of string tokens. One set contains values like these:\n/Geography/North America/California/San Francisco\n/Geography/Asia/Japan/Tokyo/Shinjuku\n\nThe other set contains values like these:\n/Geography/North Americ...
I have a web page where the user select a Company and with that I keep the Company name in memory though a Session but when I go to the next page the Session only last like 5 minutes? Any reason why and how I can fix this, I did extend the Session state in the Web.config but that did not work. Example: Session("Company...
It sounds like you're experiencing issues with session persistence across your web pages, even after trying to extend the session timeout in your `Web.config`. Here are a few things you can check and potential solutions to resolve this issue: 1. **Web.config Configuration**: Make sure that your `Web.config` file is...
30,528
[ { "from": "human", "value": "I have a web page where the user select a Company and with that I keep the Company name in memory though a Session but when I go to the next page the Session only last like 5 minutes?\nAny reason why and how I can fix this, I did extend the Session state in the Web.config but th...
I have been trying to learn multi-threaded programming in C# and I am confused about when it is best to use a thread pool vs. create my own threads. One book recommends using a thread pool for small tasks only (whatever that means), but I can't seem to find any real guidelines. What are some pros and cons of thread poo...
When it comes to multi-threaded programming in C#, understanding the differences between using a thread pool and creating your own threads is crucial for writing efficient and maintainable applications. Let's explore the pros and cons of both approaches, along with some example use cases. ### Thread Pool **Pros:** 1....
24,937
[ { "from": "human", "value": "I have been trying to learn multi-threaded programming in C# and I am confused about when it is best to use a thread pool vs. create my own threads. One book recommends using a thread pool for small tasks only (whatever that means), but I can't seem to find any real guidelines.\...
On an ASP.NET MVC (Beta) site that I am developing sometimes calls to ActionLink will return to me URLs containing querying strings. I have isolated the circumstances that produce this behavior, but I still do not understand why, instead of producing a clean URL, it decides to using a query string parameter. I know tha...
The issue you're encountering with `Html.ActionLink` generating a URL with a query string instead of a clean URL likely has to do with how the routing is being matched and the parameters you're passing to it. Let's take a closer look at your routing configuration and the parameters you are using when generating the lin...
29,869
[ { "from": "human", "value": "On an ASP.NET MVC (Beta) site that I am developing sometimes calls to ActionLink will return to me URLs containing querying strings. I have isolated the circumstances that produce this behavior, but I still do not understand why, instead of producing a clean URL, it decides to u...
Does a comparison sort have to compare the A[i] largest and A[i+1] largest values? I think any comparison sort must, but I'm not sure. I've checked out mergesort, insertion sort, and quicksort and in each of them the A[i] largest and A[i+1] largest values have to be compared.
In the context of comparison sorts, it's important to understand what is meant by "comparing values." A comparison sort works by comparing elements of the array (or list) to determine their order. Common comparison sorts include algorithms like mergesort, heapsort, quicksort, and insertion sort, and they all operate by...
30,656
[ { "from": "human", "value": "Does a comparison sort have to compare the A[i] largest and A[i+1] largest values? I think any comparison sort must, but I'm not sure. I've checked out mergesort, insertion sort, and quicksort and in each of them the A[i] largest and A[i+1] largest values have to be compared.\n"...
i want to be a good developer citizen, pay my taxes, and disable things if we're running over Remote Desktop, or running on battery. If we're running over remote desktop (or equivalently in a Terminal server session), we must disable animations and double-buffering. You can check this with: /// <summary> /// Indicates ...
To determine if a machine is currently running on battery power in a managed way using C#, you can leverage the `System.Management` namespace to query system power status. The `ManagementObjectSearcher` class allows you to access WMI (Windows Management Instrumentation) data. Here's how you can check if the machine is ...
27,514
[ { "from": "human", "value": "i want to be a good developer citizen, pay my taxes, and disable things if we're running over Remote Desktop, or running on battery.\nIf we're running over remote desktop (or equivalently in a Terminal server session), we must disable animations and double-buffering. You can che...
I was taught that a regression test was a small (only enough to prove you didn't break anything with the introduction of a change or new modules) sample of the overall tests. However, this article by Ron Morrison and Grady Booch makes me think differently: The desired strategy would be to bring each unit in one at a t...
It appears that you are encountering some different perspectives and terminologies regarding regression testing and its relationship to other types of testing, such as smoke testing. Let's clarify the concepts to address your confusion. ### Definitions 1. **Regression Testing**: This type of testing is performed to c...
27,843
[ { "from": "human", "value": "I was taught that a regression test was a small (only enough to prove you didn't break anything with the introduction of a change or new modules) sample of the overall tests. However, this article by Ron Morrison and Grady Booch makes me think differently:\n\nThe desired strateg...
In ASP.NET webforms we have server components, that can be encapsulated into an external assembly and shipped as product. In ASP.NET MVC we don't have server components, so what's the best option for external components? Looking around it seems like the only possible option is making an Html helper method that returns ...
In ASP.NET MVC, while it's true that you don't have server components like you did in WebForms, you still have a range of options to create reusable components and encapsulate them within external assemblies. Here are some approaches you can consider: ### 1. **HTML Helpers** As you mentioned, creating HTML helper meth...
31,624
[ { "from": "human", "value": "In ASP.NET webforms we have server components, that can be encapsulated into an external assembly and shipped as product. In ASP.NET MVC we don't have server components, so what's the best option for external components?\nLooking around it seems like the only possible option is ...
Possible Duplicate: How to convert UNIX timestamp to DateTime and vice versa? I've got the following class: [DataContractAttribute] public class TestClass { [DataMemberAttribute] public DateTime MyDateTime { get; set; } } Here's the JSON: { "MyDateTime":"1221818565" } The JSON is being returned from a PHP webs...
To handle the conversion between the Unix timestamp (epoch time) in JSON and the `DateTime` in your C# class, you can indeed create a property specifically for the timestamp, while keeping your `DateTime` property private. You can modify your `TestClass` as follows: ```csharp using System; using System.Runtime.Seria...
31,449
[ { "from": "human", "value": "\nPossible Duplicate:\nHow to convert UNIX timestamp to DateTime and vice versa? \n\nI've got the following class:\n[DataContractAttribute]\npublic class TestClass\n{\n [DataMemberAttribute]\n public DateTime MyDateTime { get; set; }\n}\n\nHere's the JSON:\n{ \"MyDateTime\":\"...
I'm using SQLAlchemy 0.5rc, and I'd like to add an automatic filter to a relation, so that every time it tries to fetch records for that relation, it ignores the "remote" ones if they're flagged as "logically_deleted" (a boolean field of the child table) For example, if an object "parent" has a "children" relation that...
Yes, you can use a string expression for the `primaryjoin` parameter in SQLAlchemy. This can make your code cleaner and easier to read, especially for those who are more familiar with SQL syntax. However, please note that the use of string-based joins might have some limitations and can be less safe than using the SQLA...
32,136
[ { "from": "human", "value": "I'm using SQLAlchemy 0.5rc, and I'd like to add an automatic filter to a relation, so that every time it tries to fetch records for that relation, it ignores the \"remote\" ones if they're flagged as \"logically_deleted\" (a boolean field of the child table)\nFor example, if an ...
Title says most of it. I have inherited a Joomla site and the client wants part of the main template (a feature-type box) to be editable via the Joomla backend. I guess really it is a content item that never gets displayed as its own page, but as a part of all pages. Is that possible? Thanks. EDIT: By editable, I mean...
Yes, it is indeed possible to make a part of your Joomla template editable via the backend without requiring users to edit the template HTML directly. Here are a few methods to achieve this: ### Method 1: Using Custom Modules 1. **Create a Custom Module:** - Go to the Joomla backend. - Navigate to **Extensions*...
32,015
[ { "from": "human", "value": "Title says most of it. \nI have inherited a Joomla site and the client wants part of the main template (a feature-type box) to be editable via the Joomla backend.\nI guess really it is a content item that never gets displayed as its own page, but as a part of all pages.\nIs that...
I am reading over the K&R book, and am a little stuck. What is wrong with the following? void getInput(int* output) { int c, i; for(i=0; (c = getchar()) != '\n'; i++) output[i] = c; // printf("%c", c) prints the c value as expected output[++i] = '\0'; } When I run the program it never gets out of the loo...
The issue you're encountering with your `getInput` function is likely due to the way standard input (stdin) is buffered, specifically when you input data followed by pressing Enter. ### Explanation: 1. **Buffering Behavior**: When you type input into the console and hit Enter, the input is sent to the program as a wh...
30,728
[ { "from": "human", "value": "I am reading over the K&R book, and am a little stuck.\nWhat is wrong with the following?\nvoid getInput(int* output) {\n int c, i;\n for(i=0; (c = getchar()) != '\\n'; i++)\n output[i] = c; // printf(\"%c\", c) prints the c value as expected\n output[++i] = '\\0';\n}\...
Does anybody knows how can I get the max and min value of the 2nd and 3rd columns in PHP? $ar = array(array(1, 10, 9.0, 'HELLO'), array(1, 11, 12.9, 'HELLO'), array(3, 12, 10.9, 'HELLO')); Output should be like: max(12.9) min(10)
To get the maximum and minimum values from the 2nd and 3rd columns of the given 2D array in PHP, you can use the following code: ```php $ar = array( array(1, 10, 9.0, 'HELLO'), array(1, 11, 12.9, 'HELLO'), array(3, 12, 10.9, 'HELLO') ); // Initialize variables for max and min $maxValue = PHP_FLOAT_MIN; //...
33,373
[ { "from": "human", "value": "Does anybody knows how can I get the max and min value of the 2nd and 3rd columns in PHP?\n$ar = array(array(1, 10, 9.0, 'HELLO'),\n array(1, 11, 12.9, 'HELLO'),\n array(3, 12, 10.9, 'HELLO'));\n\nOutput should be like:\nmax(12.9)\nmin(10)\n" ...
The offending command that msi executes is: .\devenv.com /command "View.Toolbox" /setup This fails with Date execution prevention error. devenv.exe log contains a bunch of errors like this: <entry> <record>120</record> <time>2008/10/21 12:32:01.277</time> <type>Warning</type> <source>Microsoft Visual...
The issue you are encountering seems to be related to Visual Studio's execution environment and possibly some corruption in the installation or an issue with the configuration of the application. Here are some steps you can try to troubleshoot and resolve the issue: ### 1. **Run as Administrator** Make sure to run the...
30,364
[ { "from": "human", "value": "The offending command that msi executes is:\n .\\devenv.com /command \"View.Toolbox\" /setup\n\nThis fails with Date execution prevention error.\ndevenv.exe log contains a bunch of errors like this:\n <entry>\n <record>120</record>\n <time>2008/10/21 12:32:01.277</time>\n ...
What's the best way to detect that Adobe Acrobat Reader is installed from a web browser? I'm assuming it would have to be done on the client-side (I don't think Adobe adds any user-agent strings). Preferably in JavaScript and in Internet Explorer, although it would be nice if it could also be done in FireFox, Safari,...
Detecting if Adobe Acrobat Reader (or any PDF reader) is installed on a client's machine can be quite tricky due to security restrictions in modern web browsers. Most browsers do not expose information about installed software for security reasons, and as a result, detecting the presence of Adobe Acrobat Reader through...
27,225
[ { "from": "human", "value": "What's the best way to detect that Adobe Acrobat Reader is installed from a web browser? I'm assuming it would have to be done on the client-side (I don't think Adobe adds any user-agent strings). Preferably in JavaScript and in Internet Explorer, although it would be nice if ...
This is an almost-duplicate of Send file using POST from a Python script, but I'd like to add a caveat: I need something that properly handles the encoding of fields and attached files. The solutions I've been able to find blow up when you throw unicode strings containing non-ascii characters into the mix. Also, most o...
To handle file uploads via a POST request in Python while ensuring proper encoding for both fields and files (including handling Unicode characters and Base64 encoding), you can use the `requests` library along with the `base64` module. Here's an example that demonstrates how to send a file with Base64 encoding along ...
29,628
[ { "from": "human", "value": "This is an almost-duplicate of Send file using POST from a Python script, but I'd like to add a caveat: I need something that properly handles the encoding of fields and attached files. The solutions I've been able to find blow up when you throw unicode strings containing non-as...
So far the only way I've found to do this is by telling Lighty to pipe its logs through an app called "vlogger". Is there a way to break out log files by date without introducing any external dependencies or cron jobs? I feel like there might be a way to do it with config file variables, but my Lighty-fu just isn't s...
If you're looking to manage your Lighttpd (often referred to as "Lighty") logs without introducing external dependencies or cron jobs, you're somewhat limited in your options directly within the Lighttpd configuration. However, `logrotate` is indeed a very common and effective tool for managing log files by date, and i...
31,616
[ { "from": "human", "value": "So far the only way I've found to do this is by telling Lighty to pipe its logs through an app called \"vlogger\". Is there a way to break out log files by date without introducing any external dependencies or cron jobs? I feel like there might be a way to do it with config fi...
We have a custom navigation webpart that uses the PortalSiteMapProvider of MOSS to build a menu navigation. It seems that the Provider is not managing it's objects. Any idea on how to manage the objects that are being created in the Provider? It is causing log errors like so: Potentially excessive number of SPRequest o...
It looks like you're encountering a memory leak or resource management issue in your custom navigation web part that uses the `PortalSiteMapProvider` in SharePoint. The log error indicating "Potentially excessive number of SPRequest objects" suggests that your code may not be properly disposing of SharePoint objects li...
29,616
[ { "from": "human", "value": "We have a custom navigation webpart that uses the PortalSiteMapProvider of MOSS to build a menu navigation. It seems that the Provider is not managing it's objects. Any idea on how to manage the objects that are being created in the Provider?\nIt is causing log errors like so:\n...
I have a servlet that I would like to run within ColdFusion MX 7. I would like to make use of an existing ColdFusion DSN as a javax.sql.DataSource, if possible. I thought something like coldfusion.server.ServiceFactory.getDataSourceService().getDatasource(dsname); would work, but unfortunately the servlet returns jav...
In ColdFusion MX 7, the `ServiceFactory` class is not directly accessible within a servlet. Instead, you can access a ColdFusion Data Source using the ColdFusion API, specifically through a `DataSource` object provided by ColdFusion. Here’s a way to retrieve a ColdFusion Data Source from a servlet: 1. **Use JNDI for t...
28,403
[ { "from": "human", "value": "I have a servlet that I would like to run within ColdFusion MX 7. I would like to make use of an existing ColdFusion DSN as a javax.sql.DataSource, if possible.\nI thought something like \ncoldfusion.server.ServiceFactory.getDataSourceService().getDatasource(dsname);\n\nwould wo...
Whenever I start our Apache Felix (OSGi) based application under SUN Java ( build 1.6.0_10-rc2-b32 and other 1.6.x builds) I see the following message output on the console (usually under Ubuntu 8.4): Warning: The encoding 'UTF-8' is not supported by the Java runtime. I've seen this message display occasionally when...
The warning message you're seeing, indicating that the encoding 'UTF-8' is not supported by the Java runtime, is quite peculiar. In standard Java implementations, UTF-8 is generally supported, and Java applications should work seamlessly with this character encoding. Here are a few possible reasons and solutions for t...
24,752
[ { "from": "human", "value": "Whenever I start our Apache Felix (OSGi) based application under SUN Java ( build 1.6.0_10-rc2-b32 and other 1.6.x builds) I see the following message output on the console (usually under Ubuntu 8.4):\n\nWarning: The encoding 'UTF-8' is not supported by the Java runtime.\n\nI'v...
Is there a way to consume a web service using JavaScript? I'm Looking for a built-in way to do it, using a JavaScript framework is not an option.
Yes, you can consume a web service using plain JavaScript without any frameworks. The most common built-in methods for making HTTP requests are the `XMLHttpRequest` object and the modern `fetch` API. Below are examples of how to use both methods. ### Using `fetch` API The `fetch` API is the modern way to make HTTP re...
30,887
[ { "from": "human", "value": "Is there a way to consume a web service using JavaScript? I'm Looking for a built-in way to do it, using a JavaScript framework is not an option. \n" }, { "from": "gpt", "value": "Yes, you can consume a web service using plain JavaScript without any frameworks. The m...
I want to be able to change the status message for Live Messenger, but everything I've found only works for the music message (see this screenshot to see the difference between the two). It is possible to do this, as there are programs that have the ability to change it, and some alternate clients for Live Messenger ca...
Changing the status message in Windows Live Messenger (especially the later versions like 14.x) can indeed be a bit tricky since the default interfaces don't make it immediately obvious. However, you can usually achieve this through some methods. Here’s how you can set or change your status message: ### Method 1: Thro...
32,467
[ { "from": "human", "value": "I want to be able to change the status message for Live Messenger, but everything I've found only works for the music message (see this screenshot to see the difference between the two).\nIt is possible to do this, as there are programs that have the ability to change it, and so...
I am attempting to insert a Canvas3D object inside a Swing JPanel, but the code doesn't seem to be working (i.e. nothing happens): Canvas3D canvas = new Canvas3D(SimpleUniverse.getPreferredConfiguration()); SimpleUniverse universe = new SimpleUniverse(canvas); BranchGroup root = new BranchGroup...
When working with Java 3D in a Swing application, there are a few key points to consider to ensure that the `Canvas3D` object is properly displayed within a `JPanel`. Here are some things to check and implement in your code: 1. **Ensure the JPanel Layout**: Make sure that the layout of the `JPanel` allows for the `Can...
29,299
[ { "from": "human", "value": "I am attempting to insert a Canvas3D object inside a Swing JPanel, but the code doesn't seem to be working (i.e. nothing happens):\n\n Canvas3D canvas = new Canvas3D(SimpleUniverse.getPreferredConfiguration());\n SimpleUniverse universe = new SimpleUniverse(canvas)...
i have a web service hosted on another server with the Anonymous Access CheckBox in IIS is already checked. when my local web application is trying to access the web service, i still get the "The request failed with HTTP status 401: Access Denied." error. my web application is calling the web service like the followin...
The `HTTP status 401: Access Denied` error indicates that the request made to your web service is not authorized. Since you mentioned that "Anonymous Access" is enabled in IIS, there are several factors you might want to check to troubleshoot the issue. Here are some steps to consider: 1. **IIS Configuration**: - V...
31,686
[ { "from": "human", "value": "i have a web service hosted on another server with the Anonymous Access CheckBox in IIS is already checked. when my local web application is trying to access the web service, i still get the \"The request failed with HTTP status 401: Access Denied.\" error. my web application i...
I'm using this script to display all the images in a folder, but I can't figure out how to get each image's file name to display underneath it. Any suggestions? <?php $dirname = "images"; $images = scandir($dirname); $ignore = Array(".", "..", "otherfiletoignore"); foreach($images as $curimg){ if (!in_array($curi...
To display each image's file name underneath it, you can simply add an additional `echo` statement to print the file name right after displaying the image. Here's your updated script with this change: ```php <?php $dirname = "images"; $images = scandir($dirname); $ignore = Array(".", "..", "otherfiletoignore"); fore...
29,669
[ { "from": "human", "value": "I'm using this script to display all the images in a folder, but I can't figure out how to get each image's file name to display underneath it. Any suggestions?\n<?php\n\n$dirname = \"images\";\n$images = scandir($dirname);\n$ignore = Array(\".\", \"..\", \"otherfiletoignore\");...
I'm developing an ActiveX EXE that exposes an specific class to a third-party software. This third-party software instanciates an object of this class and uses its methods. Strangely, this third-party software destroys its object of my exposed class as soon as it calls an specific method, but I have no idea why this...
The issue you are encountering with your ActiveX EXE in VB6, where the third-party software destroys the object upon calling a specific method that returns a value, can be attributed to several potential reasons. Here are some possibilities to consider: 1. **Return Value Type**: Ensure that the return value of the met...
27,173
[ { "from": "human", "value": "I'm developing an ActiveX EXE that exposes an specific class to a third-party software. This third-party software instanciates an object of this class and uses its methods. \nStrangely, this third-party software destroys its object of my exposed class as soon as it calls an sp...
This is probably a simple answer but I can't find it. I have a table with a column of integers and I want to ensure that when a row is inserted that the value in this column is greater than zero. I could do this on the code side but thought it would be best to enforce it on the table. Thanks! I was in error with my l...
To ensure that the values in a specific column of a table are greater than zero, you can use a **CHECK constraint** in SQL. This allows you to enforce rules on the values that can be inserted or updated in a table. Here’s how you can add a CHECK constraint to an existing table, assuming the column you want to enforce ...
34,789
[ { "from": "human", "value": "This is probably a simple answer but I can't find it. I have a table with a column of integers and I want to ensure that when a row is inserted that the value in this column is greater than zero. I could do this on the code side but thought it would be best to enforce it on th...
I am new to git. I am wondering whether the following scenario is supported, and if so how (i.e. git commands for setup and update). A repository is available from three different places: 'local', 'mirror' and 'github'. 'mirror' mirrors 'local' completely and 'github' mirrors 'local' except for a 'copyrighted' director...
Yes, your scenario is supported with Git! You can set up your repositories such that `mirror` completely mirrors `local`, and `github` mirrors `local` while excluding a `copyrighted` directory. Below are the steps to set this up and to keep your repositories updated using Git commands. ### Initial Setup 1. **Create t...
30,108
[ { "from": "human", "value": "I am new to git. I am wondering whether the following scenario is supported, and if so how (i.e. git commands for setup and update).\nA repository is available from three different places: 'local', 'mirror' and 'github'. 'mirror' mirrors 'local' completely and 'github' mirrors '...
How can I change the system-default regional settings in windows XP for use by services (run by the system user)? Regional and Language Options in the control panel modify the settings for the logged-in user. However, services don't use the user's settings - they use the system settings. I know that they can be found i...
To change the system-default regional settings in Windows XP that apply to services (which run under the system user account), you need to modify specific registry settings. As you already pointed out, the relevant settings can be found in the registry at: ``` HKEY_USERS\.DEFAULT\Control Panel\International ``` Here'...
31,728
[ { "from": "human", "value": "How can I change the system-default regional settings in windows XP for use by services (run by the system user)?\nRegional and Language Options in the control panel modify the settings for the logged-in user. However, services don't use the user's settings - they use the system...
I am writing a website with Visual Studio 2008 and ASP.NET 3.5. I have a masterpage set up to simplify the layout and to keep the content pages for content rather than content and layout. The navigation is list, css'd so it looks like a bar. In order to highlight the page on the bar, the list item needs to look like t...
You can definitely achieve this without using `<asp:ContentPlaceHolder>` in your master page. Instead, you can use the server-side code to dynamically set the `id` attribute of your navigation list item based on the currently active page. Here’s how you can do it: ### Step 1: Define the Navigation in the Master Page ...
30,681
[ { "from": "human", "value": "I am writing a website with Visual Studio 2008 and ASP.NET 3.5. I have a masterpage set up to simplify the layout and to keep the content pages for content rather than content and layout.\nThe navigation is list, css'd so it looks like a bar. In order to highlight the page on t...
Apparently, they're "confusing". Is that seriously the reason? Can you think of any others?
It sounds like you might be referring to something that is perceived as confusing, which could apply to a variety of situations or topics. Without more context, I can suggest several reasons why something might be considered confusing beyond just that label: 1. **Complexity**: The subject matter may have many intricat...
32,013
[ { "from": "human", "value": "Apparently, they're \"confusing\". Is that seriously the reason? Can you think of any others?\n" }, { "from": "gpt", "value": "It sounds like you might be referring to something that is perceived as confusing, which could apply to a variety of situations or topics. W...
I have a webpage with a dynamic list. I want the headers to be configurable. To start with the headers are named as column1, column2, ... columnnN. Clicking on any of these header I open up a DHTML modal window where I select the header name from a predefined list so that I can assign this header name to the selected c...
To implement the functionality of updating your column headers based on the selection from a modal window, you can follow these steps: ### Steps: 1. **Update Modal Return Value**: Modify your modal window to return the unique field ID and its corresponding header name to the parent page. When a user selects a new hea...
30,094
[ { "from": "human", "value": "I have a webpage with a dynamic list. I want the headers to be configurable. To start with the headers are named as column1, column2, ... columnnN. Clicking on any of these header I open up a DHTML modal window where I select the header name from a predefined list so that I can ...
When I bind this object public class MyObject { public AgeWrapper Age { get; set; } } public class AgeWrapper { public int Age { get; set; } } to a property grid, what is shown in the value section of the property grid is the class name of AgeWrapper, but the value for AgeWrapper.Age. Is there anyway to make it so...
To display a more user-friendly value in a PropertyGrid, particularly the value of a property of a composite object (such as `AgeWrapper.Age`), you can implement the `TypeConverter` class for the `AgeWrapper` class. By overriding the appropriate methods, you can control how the property is represented in the PropertyGr...
31,326
[ { "from": "human", "value": "When I bind this object\npublic class MyObject\n{ \n public AgeWrapper Age\n{\nget;\nset;\n}\n}\n\npublic class AgeWrapper\n{\npublic int Age\n{\nget;\nset;\n}\n}\n\nto a property grid, what is shown in the value section of the property grid is the class name of AgeWrapper, but...
In a C# application, I want to get a list of the all the contacts of the mobile phone. I have no idea if there is a class that exists already to do it out-of-the-box. If not, I would like how to access those information.
In C#, particularly when developing applications for mobile devices using Xamarin or MAUI (Multi-platform App UI), you can access contacts using the `Contacts` API. Below are the steps on how to achieve this: ### Using Xamarin.Essentials If you're using Xamarin, you can leverage the `Xamarin.Essentials` library, whic...
29,593
[ { "from": "human", "value": "In a C# application, I want to get a list of the all the contacts of the mobile phone.\nI have no idea if there is a class that exists already to do it out-of-the-box. If not, I would like how to access those information.\n" }, { "from": "gpt", "value": "In C#, parti...
I understand the following elements : there is some sort of crawling (configured in central administration) when the crawling is done, there is a slight delay, after which you can have your search results displayed. But, in a document library with publishing enabled, documents that are not published don't appear in s...
Yes, that behavior is normal in a SharePoint environment with publishing enabled. When a document library is configured for publishing, items that are in a draft state (not published) typically won't appear in search results. This is by design, as the focus is on ensuring that only approved and published content is acc...
34,798
[ { "from": "human", "value": "I understand the following elements :\n\nthere is some sort of crawling (configured in central administration)\nwhen the crawling is done, there is a slight delay, after which you can have your search results displayed.\n\nBut, in a document library with publishing enabled, docu...
I have a div with overflow:hidden, inside which I show a phone number as the user types it. The text inside the div is aligned to right and incoming characters are added to right as the text grows to left. But once the text is big enough not to fit in the div, last characters of the number is automatically cropped and ...
To achieve the effect you want, where new characters typed by the user are appended to the right, and the leftmost characters are cropped when the text exceeds the width of the container, you can use a combination of CSS for styling and JavaScript to handle the input and overflow behavior. Here's a step-by-step solutio...
24,364
[ { "from": "human", "value": "I have a div with overflow:hidden, inside which I show a phone number as the user types it. The text inside the div is aligned to right and incoming characters are added to right as the text grows to left.\nBut once the text is big enough not to fit in the div, last characters o...
I wish to calculate the time it took for an API to return a value. The time taken for such an action is in the space of nanoseconds. As the API is a C++ class/function, I am using the timer.h to calculate the same: #include <ctime> #include <iostream> using namespace std; int main(int argc, char** argv) { ...
To measure time in nanoseconds and achieve greater precision in C++, you can use the `<chrono>` library, which provides high-resolution clocks. Instead of using `clock()`, you can use `std::chrono::high_resolution_clock` to measure the elapsed time in nanoseconds. Here's how you can modify your code to achieve this: ...
33,287
[ { "from": "human", "value": "I wish to calculate the time it took for an API to return a value.\nThe time taken for such an action is in the space of nanoseconds. As the API is a C++ class/function, I am using the timer.h to calculate the same:\n #include <ctime>\n #include <iostream>\n\n using namespace...
I've got an unusual situation: I'm using a Linux system in an embedded situation (Intel box, currently using a 2.6.20 kernel.) which has to communicate with an embedded system that has a partially broken TCP implementation. As near as I can tell right now they expect each message from us to come in a separate Ethernet ...
This situation certainly poses a unique challenge, especially with the limitations of the TCP stack in the embedded device you're communicating with. While TCP is designed to handle message segmentation and flow control, your requirement for each message to arrive in a separate Ethernet frame complicates things. Here ...
31,564
[ { "from": "human", "value": "I've got an unusual situation: I'm using a Linux system in an embedded situation (Intel box, currently using a 2.6.20 kernel.) which has to communicate with an embedded system that has a partially broken TCP implementation. As near as I can tell right now they expect each messag...
I am tasked with moving quite a few web apps including the databases to new servers, they are ASP.NET. I was not the one to create and setup these originally so I must try to figure out what exactly I need to replicate in order to not break anything and so the customers have no idea that anything was moved. Does anyon...
Moving web applications and their associated databases to new servers can be a complex task, especially if you weren’t involved in their original setup. Here are some tips and tricks to help ensure a smooth migration: ### 1. **Planning and Inventory** - **Document Everything**: Take inventory of all the application...
29,823
[ { "from": "human", "value": "I am tasked with moving quite a few web apps including the databases to new servers, they are ASP.NET. I was not the one to create and setup these originally so I must try to figure out what exactly I need to replicate in order to not break anything and so the customers have no ...
I am trying to pass some Subsonic collections to a client via a web service. When I reference the web service the IDE complains with: Cannot serialize member 'EndDate' of type System.Nullable`1[System.DateTime]. XmlAttribute/XmlText cannot be used to encode complex types. Is there any way of serializing nullable compl...
The error message you are encountering indicates that there is an issue with the serialization of the `EndDate` property, which is a `Nullable<DateTime>`. This issue arises because XML serialization in .NET, particularly when using attributes like `XmlAttribute` or `XmlText`, cannot handle complex types such as nullabl...
29,699
[ { "from": "human", "value": "I am trying to pass some Subsonic collections to a client via a web service. When I reference the web service the IDE complains with:\nCannot serialize member 'EndDate' of type System.Nullable`1[System.DateTime]. XmlAttribute/XmlText cannot be used to encode complex types.\nIs ...
I have an ASPX page that creates an XMLDocument object from SQL data and then transforms it into another XML document (RSS feed) using an XSLT file with XPathNavigator and XslCompiledTransform. Occasionally the data will contain smart quotes (\u2019) which results in an error (Unable to translate Unicode character \u2...
The error you're encountering, related to the inability to translate certain Unicode characters (like smart quotes) when generating XML, is often due to mismatched encoding expectations between the XML content and the way you're writing it out. Here are several steps you can take to address the issue: ### 1. Set Outpu...
26,631
[ { "from": "human", "value": "I have an ASPX page that creates an XMLDocument object from SQL data and then transforms it into another XML document (RSS feed) using an XSLT file with XPathNavigator and XslCompiledTransform. Occasionally the data will contain smart quotes (\\u2019) which results in an error ...
I have a program that monitors debug messages and I have tried using a TextBox and appended the messages to it but it doesn't scale very well and slows way down when the number of messages gets large. I then tried a ListBox but the scrolling was snapping to the top when appending new messages. It also doesn't allow fo...
Using a console-like output window within a WinForms application can indeed be challenging, especially when dealing with performance issues associated with the UI components you're using. Here are a few strategies you might consider to create a more efficient and feature-rich output window: ### 1. **RichTextBox with V...
26,012
[ { "from": "human", "value": "I have a program that monitors debug messages and I have tried using a TextBox and appended the messages to it but it doesn't scale very well and slows way down when the number of messages gets large. I then tried a ListBox but the scrolling was snapping to the top when appendi...
I'm working on adding globalization to my product cataloge and I have made it work. However, I feel that the underlaying SQL query isn't performing as well as it could and I could need some advice on how to change my Linq To SQL query to make it more efficient. The tables that are used Product contains a unique id for ...
Yes, you can optimize your LINQ query to reduce the number of subqueries being generated for each text type. Instead of having separate subqueries for each text type (i.e., Name and Description), you can first join the `TextTranslations` and `Texts` tables once and then group the results by the `EntityId` so that you c...
30,814
[ { "from": "human", "value": "I'm working on adding globalization to my product cataloge and I have made it work. However, I feel that the underlaying SQL query isn't performing as well as it could and I could need some advice on how to change my Linq To SQL query to make it more efficient.\nThe tables that ...
This error comes out whenever I click the datagrid. The program does fill the datagrid every time data was selected in the combobox. For example, I choose data1 which has four records in datagrid, and then I click row index no 1. No problem, it will be shown, but when I choose another data again in combobox, for exampl...
From your description, it sounds like the error you're encountering when clicking the DataGrid may be related to how you're handling selections or event handling, especially after the dataset is cleared and refilled when changing the ComboBox selection. Here are a few possible causes for the error and suggestions for ...
31,365
[ { "from": "human", "value": "This error comes out whenever I click the datagrid.\nThe program does fill the datagrid every time data was selected in the combobox.\nFor example, I choose data1 which has four records in datagrid, and then I click row index no 1. No problem, it will be shown, but when I choose...
The WPF control WindowsFormsHost inherits from IDisposable. If I have a complex WPF visual tree containing some of the above controls what event or method can I use to call IDispose during shutdown?
In a WPF application, when you are using a `WindowsFormsHost`, which indeed implements `IDisposable`, you should ensure that you properly dispose of this control to release any resources it holds. The best place to handle the disposal of your `WindowsFormsHost` (or any other disposable resources) in a WPF application ...
29,894
[ { "from": "human", "value": "The WPF control WindowsFormsHost inherits from IDisposable.\nIf I have a complex WPF visual tree containing some of the above controls what event or method can I use to call IDispose during shutdown?\n" }, { "from": "gpt", "value": "In a WPF application, when you are...
I'm trying to control the execution of a Jython script from within Java and executed through a call to PythonInterpreter.exec(). The script contains calls to classes defined in Java. I'll call these classes "commands" for the discussion here. The commands can also be run on a different machine via RMI. Since the comma...
To enable progress monitoring of commands executing in a Jython script via the `PythonInterpreter`, you can consider a couple of approaches. The key challenge is that the Python environment does not have direct access to the Java objects running inside it, so you need to establish a communication mechanism between Java...
31,015
[ { "from": "human", "value": "I'm trying to control the execution of a Jython script from within Java and executed through a call to PythonInterpreter.exec(). The script contains calls to classes defined in Java. I'll call these classes \"commands\" for the discussion here. The commands can also be run on a ...
Clarification: this is not about user agent calls to pages, but Classic ASP calling ASP.NET! I have applications that are midway through a transition from Classic ASP to ASP.NET. There are a half million lines of code, so a complete rewrite of everything at once was simply not plausible, or frankly prudent considerin...
Transitioning from Classic ASP to ASP.NET while maintaining compatibility and functionality can indeed be challenging, especially with such a large codebase. You've already implemented a feasible solution using REST-like services through `ServerXMLHTTP`, which is a pragmatic approach. ### Considerations for Using SOA...
28,496
[ { "from": "human", "value": "\nClarification: this is not about user agent calls to pages, but Classic ASP calling ASP.NET!\n\nI have applications that are midway through a transition from Classic ASP to ASP.NET. There are a half million lines of code, so a complete rewrite of everything at once was simply ...
This is just a general question - I was sitting and waiting for a bit of software to compile (we use Incredibuild here but can still take 10/15 mins) and it got me wondering, does anyone know how long it took to compile Windows XP or Vista? I did some googling but didn't really find any useful information
The exact compilation times for large software projects like Windows XP or Vista are not typically disclosed by Microsoft, and they can vary significantly depending on the hardware and the specific build configurations used. However, it is known that compiling an entire operating system like Windows involves a massive ...
34,044
[ { "from": "human", "value": "This is just a general question - I was sitting and waiting for a bit of software to compile (we use Incredibuild here but can still take 10/15 mins) and it got me wondering, does anyone know how long it took to compile Windows XP or Vista? \nI did some googling but didn't reall...
... I'm working on a couple of theories, but I'm interested to hear other opinions. This has been verified on three different machines, two windows the other linux. The compiler used is flexbuild (Presumably mxmlc) and ant with mxmlc. We added code to a small stand-alone single .as file project and the compiled swf fil...
What you're experiencing is certainly intriguing and somewhat unexpected. In compiling environments, especially when working with tools like Flex, there are several factors that can influence the size of the generated SWF files beyond just the actual code you've written. Here are a few possibilities to consider: 1. **...
26,869
[ { "from": "human", "value": "... I'm working on a couple of theories, but I'm interested to hear other opinions.\nThis has been verified on three different machines, two windows the other linux. The compiler used is flexbuild (Presumably mxmlc) and ant with mxmlc.\nWe added code to a small stand-alone singl...
And I'm not meaning Bits Per Minute, but Business Process Management. At first though BPM was overestimated, because the technology is somehow easy to address, but I've learned the value of BPM suites is in involving the non-technical, the business experts into the software design. I know, the user is always with us ...
You've raised some important points about Business Process Management (BPM) and the challenges that come with it, particularly in terms of bridging the gap between technical and non-technical stakeholders. Let's break down some of the key elements you've mentioned: ### Value of BPM 1. **Involvement of Non-Technical Us...
29,518
[ { "from": "human", "value": "And I'm not meaning Bits Per Minute, but Business Process Management. \nAt first though BPM was overestimated, because the technology is somehow easy to address, but I've learned the value of BPM suites is in involving the non-technical, the business experts into the software de...
I'm mostly familiar with Java, C and C++ in which there are ways to control that only one thread is accessing a resource at any given time. Now I'm in search for something similar but in PHP 5.x. To formulate my problem with one example: I have an ASCII-file which only stores a number, the value of a page load counter....
In PHP, especially in earlier versions like PHP 5.x, you don't have built-in support for thread synchronization mechanisms like mutexes, as PHP is primarily designed for web applications that handle requests in a stateless manner. However, you can still manage concurrency when multiple requests are trying to read and w...
30,999
[ { "from": "human", "value": "I'm mostly familiar with Java, C and C++ in which there are ways to control that only one thread is accessing a resource at any given time. Now I'm in search for something similar but in PHP 5.x.\nTo formulate my problem with one example:\nI have an ASCII-file which only stores ...
I'm in the process of writing a piece of code that connects to a server spawns a bunch of threads using that connection and does a bunch of "stuff". There are certain instances where the connection fails and I need to stop everything and start from scratch with a new object. I wanted to clean up after the object but ca...
You're correct that `Thread.stop()` is deprecated and not safe to use because it can leave shared resources in an inconsistent state. Instead of forcibly stopping threads, you can manage them in a more controlled way. Here are the steps you can take to clean up after your threads safely: ### Recommended Approach 1. *...
30,525
[ { "from": "human", "value": "I'm in the process of writing a piece of code that connects to a server spawns a bunch of threads using that connection and does a bunch of \"stuff\".\nThere are certain instances where the connection fails and I need to stop everything and start from scratch with a new object.\...
I am trying to write a query for SQL Server 2005 but I can't figure out how to do it. I have a table with the following fields: MessageID int CategoryID int Priority tinyint MessageText NVARCHAR(MAX) I need a query that will return * for each row that has the highest priority within a Category. For example, if I had ...
You can achieve this by using a common table expression (CTE) or a subquery to first determine the maximum priority for each category, and then join it back to the original table to retrieve the corresponding rows. Here's how you can write the query using a CTE: ```sql WITH MaxPriority AS ( SELECT Categor...
34,159
[ { "from": "human", "value": "I am trying to write a query for SQL Server 2005 but I can't figure out how to do it. I have a table with the following fields:\nMessageID int\nCategoryID int\nPriority tinyint\nMessageText NVARCHAR(MAX)\nI need a query that will return * for each row that has the highest prior...
I know that systems are using their own time zone databases at different levels. Is there a central place where all timezeone and DST information lives, that makes it easy for programmers to write updates to their time zone data sources? For example, do people make provisions for a time zone for each possible combinati...
Yes, there is a central source for time zone and Daylight Saving Time (DST) information called the IANA Time Zone Database, also known as the tz database or zoneinfo database. This database is widely used in programming environments and is the standard reference for time zone data. ### Key Points about the IANA Time Z...
33,128
[ { "from": "human", "value": "I know that systems are using their own time zone databases at different levels.\nIs there a central place where all timezeone and DST information lives, that makes it easy for programmers to write updates to their time zone data sources?\nFor example, do people make provisions ...
I'm considering using Amazon's EC2 with a windows instance & SQL. I've seen some criticism of the perf of the SQL instances here. I'm wondering if any SOers have and first hand experience and can comment on the performance.
Using Amazon EC2 with a Windows instance and SQL Server can be a solid choice, but performance can vary based on several factors. Here are some considerations based on firsthand experiences from users: 1. **Instance Type**: The performance of your SQL Server instance heavily depends on the EC2 instance type you choose...
32,956
[ { "from": "human", "value": "I'm considering using Amazon's EC2 with a windows instance & SQL. I've seen some criticism of the perf of the SQL instances here. I'm wondering if any SOers have and first hand experience and can comment on the performance.\n" }, { "from": "gpt", "value": "Using Ama...
I am a Cake PHP novice. I want to edit the table "Issue". This table contains a field "priority_id" related to another table called "Priority" by an foreign key. This table contains three values "Severe", "Disaster", "ToDo". User can select the priority using a combobox (input select). The priorities are loaded like t...
To implement the functionality you described in CakePHP, you'll need to modify the `$priorities` array to include the default option and then set up validation rules for the form. Here’s how you can do both: ### 1) Fill the `$priorities` Array You need to prepend your default option "Choose" to the `$priorities` arra...
28,039
[ { "from": "human", "value": "I am a Cake PHP novice.\nI want to edit the table \"Issue\". This table contains a field \"priority_id\" related to another table called \"Priority\" by an foreign key. This table contains three values \"Severe\", \"Disaster\", \"ToDo\". User can select the priority using a comb...
I've recently inherited a fairly large web site. The project is set up as a web site in Visual studio, and not a Web Application. For a number of reasons, I would like to convert it to a web application. I started converting the application using these directions from Scott Gu: Migrating a VS 2005 Web Site Project to V...
Converting a Visual Studio Web Site Project to a Web Application Project can be quite challenging, especially when the Web Site Project makes extensive use of `#include` directives for including other `.aspx` files. These directives create a scenario where all the included files are compiled together as if they were pa...
29,815
[ { "from": "human", "value": "I've recently inherited a fairly large web site. The project is set up as a web site in Visual studio, and not a Web Application. For a number of reasons, I would like to convert it to a web application.\nI started converting the application using these directions from Scott Gu:...
As many do I have a config.php file in the root of a web app that I want to include in almost every other php file. So most of them have a line like: require_once("config.php"); or sometimes require_once("../config.php"); or even require_once("../../config.php"); But I never get it right the first time. I can't fi...
The issue you're encountering with the paths in your `require_once()` statements in PHP is a common one and is due to how PHP resolves file paths based on the current working directory (CWD) and the script being executed. ### Current Working Directory When you include a file using `require_once`, PHP resolves the pat...
32,267
[ { "from": "human", "value": "As many do I have a config.php file in the root of a web app that I want to include in almost every other php file. So most of them have a line like:\nrequire_once(\"config.php\");\n\nor sometimes\nrequire_once(\"../config.php\");\n\nor even\nrequire_once(\"../../config.php\");...
Can an ArrayList of Node contain a non-Node type? Is there a very dirty method of doing this with type casting?
In Java, an `ArrayList` is a generic class that is parameterized with a specific type. For instance, if you create an `ArrayList<Node>`, it means that this list is intended to only hold objects of type `Node` or its subclasses. If you try to add an object of a different type to an `ArrayList<Node>`, it will result in...
30,538
[ { "from": "human", "value": "Can an ArrayList of Node contain a non-Node type? \nIs there a very dirty method of doing this with type casting?\n" }, { "from": "gpt", "value": "In Java, an `ArrayList` is a generic class that is parameterized with a specific type. For instance, if you create an `A...
I'm wondering if there is a quick and easy function to clean get variables in my url, before I work with them.( or $_POST come to think of it... ) I suppose I could use a regex to replace non-permitted characters, but I'm interested to hear what people use for this sort of thing?
When working with GET and POST variables in PHP, it’s important to sanitize and validate the input to prevent security issues like SQL injection and XSS (Cross-Site Scripting). While regex can be used for specific scenarios, PHP provides built-in functions that can help you clean and sanitize input in a quick and easy ...
31,738
[ { "from": "human", "value": "I'm wondering if there is a quick and easy function to clean get variables in my url, before I work with them.( or $_POST come to think of it... )\nI suppose I could use a regex to replace non-permitted characters, but I'm interested to hear what people use for this sort of thin...
Newbie question... If I have a file that is in the root of the web app. How do I programmaticaly query the path of that file? ie, what directory it is in?
To programmatically query the path of a file in a web application, the specific method will depend on the programming language and framework you are using. Below are examples for a few popular web development environments: ### 1. **Node.js** If you're using Node.js, you can use the `path` module to get the path of the...
29,087
[ { "from": "human", "value": "Newbie question...\nIf I have a file that is in the root of the web app. How do I programmaticaly query the path of that file? ie, what directory it is in?\n" }, { "from": "gpt", "value": "To programmatically query the path of a file in a web application, the spec...
In my application I keep a LINQ object fetched from the database, and regularly modifies it followed by db.SubmitChanges(). I have read that you are not supposed to keep around the DataContext object for a long time. But if I close my DataContext between modifications, I guess the data object loses its link to the actu...
You're correct in noting that keeping a `DataContext` open for an extended period is generally not recommended. `DataContext` is designed to be lightweight and short-lived, specifically for a single unit of work. Keeping it open can lead to performance issues, memory leaks, and problems with stale data due to long-runn...
29,201
[ { "from": "human", "value": "In my application I keep a LINQ object fetched from the database, and regularly modifies it followed by db.SubmitChanges().\nI have read that you are not supposed to keep around the DataContext object for a long time.\nBut if I close my DataContext between modifications, I guess...
I have a menu of product brands that I want to split over 4 columns. So if I have 39 brands, then I want the maximum item count for each column to be 10 (with a single gap in the last column. Here's how I'm calculating the item count for a column (using C#): int ItemCount = Convert.ToInt32(Math.Ceiling(Convert.ToDeci...
Yes, you can simplify your approach when calculating the number of items per column without using so many conversions. When you want to divide an integer by another integer and round up to the nearest whole number, you can achieve this by adjusting the formula slightly. Here's a cleaner and more efficient way to perf...
33,953
[ { "from": "human", "value": "I have a menu of product brands that I want to split over 4 columns. So if I have 39 brands, then I want the maximum item count for each column to be 10 (with a single gap in the last column. Here's how I'm calculating the item count for a column (using C#):\nint ItemCount = C...
Much searching has lead me to find several descriptions of how to create a bootstrapping msi, but these solutions all assume the msi is local or a standard Windows component. Is there a way to make an msi that downloads an installer (which is also an msi) with normal MSI or Wix code rather than by having the bootstrap...
Creating a bootstrapping MSI that downloads another installer (MSI) and executes it can be a bit challenging, as standard Windows Installer (MSI) technology does not inherently support downloading files from the internet. However, you can achieve this using the WiX Toolset by leveraging the concept of custom actions to...
28,046
[ { "from": "human", "value": "Much searching has lead me to find several descriptions of how to create a bootstrapping msi, but these solutions all assume the msi is local or a standard Windows component. Is there a way to make an msi that downloads an installer (which is also an msi) with normal MSI or Wix...
I'm running an ASP.NET web site on IIS 6.0 (Windows 2003), and the site uses "integrated windows authentication". The IWA configuration is not a must (until now), but is configured anyway. The application pool runs as the "Network Service". Also, in web.config, there's the line "". The problem I'm facing now is that th...
To restrict access to a specific page in your ASP.NET application hosted on IIS 6.0 while still using Integrated Windows Authentication (IWA), you will need to implement a combination of NTFS permissions and web application configuration. Here are the steps to achieve that: ### Step 1: Modify NTFS Permissions 1. **Id...
29,494
[ { "from": "human", "value": "I'm running an ASP.NET web site on IIS 6.0 (Windows 2003), and the site uses \"integrated windows authentication\". The IWA configuration is not a must (until now), but is configured anyway. The application pool runs as the \"Network Service\". Also, in web.config, there's the l...
There is a pretty strong need for us to design some workflows around various processes. The problem is none of us actually know any workflow technology yet, and finding good data to compare the available options has been tedious and not entirely fruitful. So I figured I'd ask you guys. The main technologies we are loo...
When considering workflow technologies, there are several options available beyond Windows Workflow Foundation (WF) and eDocs Workflow. Here's a broader overview of available technologies, their pros and cons, and some key features, especially in the context of user-editability for workflows. ### Workflow Technologies...
25,624
[ { "from": "human", "value": "There is a pretty strong need for us to design some workflows around various processes. The problem is none of us actually know any workflow technology yet, and finding good data to compare the available options has been tedious and not entirely fruitful.\nSo I figured I'd ask ...
Can you suggest some ways/tips to decrease Resharper memory usage in VS 2008. Working set memory for my VS with 50 projects is around 650mb+ Edit: Now that 4.5 is out, this question is no longer relevant.
While it's true that Visual Studio 2008 and ReSharper 4.5 are both quite dated, if you're looking for tips to manage memory usage with ReSharper in that environment, here are some suggestions: 1. **Upgrade ReSharper**: If possible, consider upgrading to a newer version of ReSharper that might offer better performance ...
31,378
[ { "from": "human", "value": "Can you suggest some ways/tips to decrease Resharper memory usage in VS 2008. Working set memory for my VS with 50 projects is around 650mb+ \nEdit: Now that 4.5 is out, this question is no longer relevant.\n" }, { "from": "gpt", "value": "While it's true that Visua...
For explaining my situation, I will start with an example. Let's say there are two WS(WebService) clients A & B with trusted certificates. Now in normal excecution when both A & B make a call to WAS(Websphere application server) through SSL where my WebServices reside, WAS trusts both of them because of their trusted c...
To achieve your goal of allowing only client A to access the web services hosted on WebSphere Application Server (WAS) while denying access to client B, you can utilize the following approach: ### Steps to Restrict Access Based on Client Certificate: 1. **Client Authentication with Mutual SSL:** - Ensure that you ...
28,672
[ { "from": "human", "value": "For explaining my situation, I will start with an example.\nLet's say there are two WS(WebService) clients A & B with trusted certificates. Now in normal excecution when both A & B make a call to WAS(Websphere application server) through SSL where my WebServices reside, WAS trus...
I am writing an algorithm to find the dominating set of a tournament graph. Is the minimum spanning tree of a directed graph equivalent to the dominating set of the graph? In other words, if I find the smallest MST for the tournament graph (by iterating through all of the vertices), can I then say this is equivalent to...
The concepts of a minimum spanning tree (MST) and a dominating set are fundamentally different and serve different purposes in graph theory. 1. **Minimum Spanning Tree (MST):** An MST is a subgraph of an undirected graph that connects all vertices together without cycles and with the minimum possible total edge weight...
33,448
[ { "from": "human", "value": "I am writing an algorithm to find the dominating set of a tournament graph. Is the minimum spanning tree of a directed graph equivalent to the dominating set of the graph? In other words, if I find the smallest MST for the tournament graph (by iterating through all of the vertic...
I have a test web service replicating a live web service that hasn't been made public yet (It will be public when the app is released). I added a new ASP.NET Web Service Application to my solution. Now when I try and add a web reference from the main project and choose "Browse To Web services in this solution" it doesn...
When adding a web reference to a test ASP.NET Web Service within the same solution, there are several steps to ensure that the service is correctly discoverable. Here are a few things to check: ### 1. **Ensure the Web Service is Running** Make sure that your ASP.NET Web Service is running. You can start the web servic...
31,436
[ { "from": "human", "value": "I have a test web service replicating a live web service that hasn't been made public yet (It will be public when the app is released).\nI added a new ASP.NET Web Service Application to my solution. Now when I try and add a web reference from the main project and choose \"Browse...
I am using this command: cut -d: -f2 To sort and reedit text, Is there a more efficient way to do this without using sed or awk? I would also like to know how I would append a period to the end of each field At the moment the output is like $x['s'] and I would like it to be $x['s'] . Just using standard unix tools ed...
If you want to extract fields using the `cut` command and append a period to the end of each field without using `sed` or `awk`, you can achieve this by utilizing the `paste` command in conjunction with `cut`. Here's how you can do it: ### Using `cut` and `paste` 1. First, extract the second field using `cut`. 2. The...
33,587
[ { "from": "human", "value": "I am using this command:\ncut -d: -f2 \n\nTo sort and reedit text, Is there a more efficient way to do this without using sed or awk?\nI would also like to know how I would append a period to the end of each field\nAt the moment the output is like $x['s'] and I would like it to ...
Here is the story. I was doing a program, every time the program is closed all the data(File links) created by the user is lost, so whenever the user reopen the program, he does have to do all the work again. So I decided to use an xml file to store the data, because a dbms would take too long to load and code to handl...
The issue you're experiencing with the `WriteXml` method likely stems from how you're managing the DataSet's structure and how new rows are added. Specifically, when you create a new row and set its values directly via `ItemArray`, you're not necessarily ensuring that the new row gets placed correctly in the XML when y...
26,719
[ { "from": "human", "value": "Here is the story. I was doing a program, every time the program is closed all the data(File links) created by the user is lost, so whenever the user reopen the program, he does have to do all the work again.\nSo I decided to use an xml file to store the data, because a dbms wou...
I have a project that I am building with Netbeans 6.1 and I am using SVN. I deleted some files on the local machine then attempted to commit my changes to th SVN repository. The commit fails with the error message Entry for 'C:\path\to\project\myfile' has no URL Where myfile is the deleted file. Is there some way to ...
Yes, the error you're encountering indicates that Subversion (SVN) does not recognize the deleted file because it has been removed from your local file system without using the `svn delete` command. To properly inform SVN about the deletion, you need to perform the following steps: 1. **Revert the Local Changes** (opt...
33,443
[ { "from": "human", "value": "I have a project that I am building with Netbeans 6.1 and I am using SVN. I deleted some files on the local machine then attempted to commit my changes to th SVN repository. The commit fails with the error message\n\nEntry for 'C:\\path\\to\\project\\myfile' has no URL\n\nWhere ...
I am writing a small app which I need to test with utf-8 characters of different number of byte lengths. I can input unicode characters to test that are encoded in utf-8 with 1,2 and 3 bytes just fine by doing, for example: string in = "pi = \u3a0"; But how do I get a unicode character that is encoded with 4-bytes? I ...
You're correct that in Java (and many programming languages), Unicode characters that require more than 4 hexadecimal digits must be represented using the `\U` escape sequence, which allows for specifying characters in the 21-bit range of Unicode. Here's a breakdown of how to handle these characters: 1. **1-Byte Chara...
32,885
[ { "from": "human", "value": "I am writing a small app which I need to test with utf-8 characters of different number of byte lengths.\nI can input unicode characters to test that are encoded in utf-8 with 1,2 and 3 bytes just fine by doing, for example:\nstring in = \"pi = \\u3a0\";\n\nBut how do I get a un...
I have a web service that is protected by requiring the consuming third party application to pass a client certificate. I have installed the certificate on the providing web service in production and on the client as well. This process is currently working fine for other clients with a similar setup. The current ver...
It sounds like you're encountering a classic issue with client certificates, particularly in a production environment with IIS. The `403 Forbidden` error typically indicates that the server is rejecting the client's request, often due to authentication issues, including problems with the client certificate. Given your...
27,083
[ { "from": "human", "value": "I have a web service that is protected by requiring the consuming third party application to pass a client certificate. I have installed the certificate on the providing web service in production and on the client as well. This process is currently working fine for other clien...
I have a simple linux script: #!/bin/sh for i in `ls $1` do echo $i done In my temp folder are 4 file: a.a, a.aa, a.ab and a.ac When i call ./script temp/*.?? i get: temp/a.aa When i call ./script "temp/*.??" i get: temp/a.aa temp/a.ab temp/a.ac Why do the double quote change the result?
The behavior you are observing is due to how the shell handles wildcard expansion (also known as globbing) when arguments are passed to a script. ### Case 1: `./script temp/*.??` In this case, the shell performs the wildcard expansion **before** calling the script. The `temp/*.??` is expanded by the shell to match al...
33,519
[ { "from": "human", "value": "I have a simple linux script:\n#!/bin/sh\nfor i in `ls $1`\ndo\n echo $i\ndone\n\nIn my temp folder are 4 file: a.a, a.aa, a.ab and a.ac\nWhen i call ./script temp/*.?? i get:\ntemp/a.aa\n\nWhen i call ./script \"temp/*.??\" i get:\ntemp/a.aa\ntemp/a.ab\ntemp/a.ac\n\nWhy d...
Is there anything similar to an indexOf function in the NSString objects?
Yes, in Objective-C, the `NSString` class provides a method that is similar to the `indexOf` function found in other programming languages. You can use the `rangeOfString:` method to find the range of a substring within an `NSString`. This method returns an `NSRange` that contains the location and length of the substri...
34,961
[ { "from": "human", "value": "Is there anything similar to an indexOf function in the NSString objects?\n" }, { "from": "gpt", "value": "Yes, in Objective-C, the `NSString` class provides a method that is similar to the `indexOf` function found in other programming languages. You can use the `ran...
Ok so I thought it was fixed, but I'm getting totally inconsistent results. I rewrote it kind of from scratch to start fresh and here are my results. I get no errors, no crashing, it just doesn't remove them. It just totally messes up the tree and gives me a ton more leaves, and mixes everything up. Not sure where e...
It looks like you're working on a method to remove a node from a binary search tree (BST), but the implementation has some issues that can lead to incorrect behavior, especially when removing nodes with two children. I'll walk through the key issues and provide a revised version of your `remove` method. ### Key Issues...
27,918
[ { "from": "human", "value": "Ok so I thought it was fixed, but I'm getting totally inconsistent results.\nI rewrote it kind of from scratch to start fresh and here are my results. I get no errors, no crashing, it just doesn't remove them. It just totally messes up the tree and gives me a ton more leaves, ...
I have (after quite a bit of work) a web test that will upload a file to my SharePoint document library using a file that is included in the test and DeploymentItem that identifies that file so it can be used in the file upload post parameter. That works great, now ignoring the SharePoint factor for a moment, image tha...
Creating a unique filename for each file upload in your web test can be a bit tricky, especially when you're limited by the capabilities of the test framework and the execution environment. However, there are a few approaches you might consider to achieve this: ### 1. Use Dynamic Filename in Test Logic If your web te...
31,903
[ { "from": "human", "value": "I have (after quite a bit of work) a web test that will upload a file to my SharePoint document library using a file that is included in the test and DeploymentItem that identifies that file so it can be used in the file upload post parameter.\nThat works great, now ignoring the...
In Windows XP what is the best way to execute a particular application when a particular type of USB device is attached (it currently attaches as a storage device - i.e. it appears as a drive). The solution I am looking for must execute the application from the very first time the device is attached or offer the applic...
To execute a particular application automatically when a USB storage device is attached in Windows XP, you can use a third-party tool to monitor USB devices and trigger actions based on device events. Since Windows XP does not have built-in functionality for directly executing applications based on USB device attachmen...
25,701
[ { "from": "human", "value": "In Windows XP what is the best way to execute a particular application when a particular type of USB device is attached (it currently attaches as a storage device - i.e. it appears as a drive).\nThe solution I am looking for must execute the application from the very first time ...
I have a User object that has a Country object on it. I map this with a many-to-one tag in the User mapping file: <many-to-one name="Country" column="CountryID" cascade="none"/> How do I update a User's country? At the moment my UI has a dropdown of countries and the ID of the new country is passed to the controller. ...
Yes, you're correct in observing that when you set `user.Country.ID`, you're altering the identifier of an already-loaded `Country` object, which is leading to the error message "identifier of an instance of Country was altered from X to Y". In NHibernate, you should avoid directly altering the identifier of an associa...
31,815
[ { "from": "human", "value": "I have a User object that has a Country object on it. I map this with a many-to-one tag in the User mapping file:\n<many-to-one name=\"Country\" column=\"CountryID\" cascade=\"none\"/>\n\nHow do I update a User's country?\nAt the moment my UI has a dropdown of countries and the ...
What I am is trying to do is the following. Pass two parameters to a URL type doc_id Once they are passed to the JSP via the URL I want to apply a the type template to the doc_id xml. So if the type is 001 then the 001.xsl is applied to doc_id.xml. The output of this I don't want stored in a file but rather directley...
To achieve this using Xalan and a JSP page, you can follow these steps to create a JSP that takes `type` and `doc_id` as parameters from the URL, applies the corresponding XSLT transformation, and directly outputs the result to the browser. ### Step 1: Set up your JSP page Create a JSP page (e.g., `transform.jsp`) wh...
30,098
[ { "from": "human", "value": "What I am is trying to do is the following.\nPass two parameters to a URL\n\ntype\ndoc_id\n\nOnce they are passed to the JSP via the URL I want to apply a the type template to the doc_id xml.\nSo if the type is 001 then the 001.xsl is applied to doc_id.xml. The output of this I ...
I would like to create (in code) tree of controls that would render as a table with several TBODY tags, i.e.: <TBODY> <TR> <TD></TD> </TR> <TR> <TD></TD> </TR> </TBODY> I tried both Table and HtmlTable controls but had no success. Any clues?
If you're looking to render a table in HTML with multiple `<tbody>` sections using C# (for example, in an ASP.NET Web Forms application), you'll need to build the table structure programmatically since the default `Table` control does not support multiple `<tbody>` sections directly. Here’s how you can manually create...
29,534
[ { "from": "human", "value": "I would like to create (in code) tree of controls that would render as a table with several TBODY tags, i.e.:\n\n\n<TBODY>\n <TR>\n <TD></TD>\n </TR>\n <TR>\n <TD></TD>\n </TR>\n</TBODY>\n\n\nI tried both Table and HtmlTable controls but had no success....
Exactly what the topic title says, In which cases would you prefer using public functions to change local variables over just defining that variable as public and modifying it directly?
The choice between using public functions to modify local variables versus defining those variables as public and modifying them directly depends on several factors related to software design principles, encapsulation, maintainability, and future-proofing your code. Here are several scenarios in which you would prefer ...
30,219
[ { "from": "human", "value": "Exactly what the topic title says, \nIn which cases would you prefer using public functions to change local variables over just defining that variable as public and modifying it directly?\n" }, { "from": "gpt", "value": "The choice between using public functions to m...
I'm looking to update our project's jaxb version from 1 to 2. Has anyone tried doing this on their projects and are there any tips that anyone wanting to do this? I understand that each project is unique, I'm just looking for general tips.
Updating from JAXB 1 to JAXB 2 can bring improvements and additional features to your project, but it may also require some adjustments due to differences in how the two versions handle XML binding. Here are some general tips and considerations to help you navigate the upgrade: ### 1. **Understand the Differences** ...
29,784
[ { "from": "human", "value": "I'm looking to update our project's jaxb version from 1 to 2. Has anyone tried doing this on their projects and are there any tips that anyone wanting to do this? I understand that each project is unique, I'm just looking for general tips.\n" }, { "from": "gpt", "v...
"To summarize: if you install VSTO 2005 SE on top of a clean VS 2005 Professional, you won't have the document-level templates. If you want to have them you need to have VS 2005 Team Suite/Team Edition or you need to install the previous version of VSTO: VSTO 2005. So VS 2005 Professional + VSTO 2005 + VSTO 2005 SE wil...
Finding older software versions like VSTO 2005 can be challenging, especially since Microsoft often removes older downloads from their official sites. Here are a few suggestions you can try to locate VSTO 2005: 1. **Microsoft's Archived Software**: Sometimes, older software is available through Microsoft's archives or...
34,397
[ { "from": "human", "value": "\"To summarize: if you install VSTO 2005 SE on top of a clean VS 2005 Professional, you won't have the document-level templates. If you want to have them you need to have VS 2005 Team Suite/Team Edition or you need to install the previous version of VSTO: VSTO 2005. So VS 2005 P...
I'm developing a SWT/JFace application using the libraries from Eclipse 3.4.1. I encounter the following problem on Windows (Vista 32bit) and Ubuntu 8.10 32bit: I create a menu bar in the createMenuManager method of the JFace ApplicationWindow. I add MenuManagers for file, edit and help. I then add an ExitAction to the...
The behavior you're experiencing with the accelerator (keyboard shortcut) in your SWT/JFace application is related to how the focus and event handling work in SWT. When you set an accelerator for an `Action`, it typically works when the menu is open or when the focus is on the menu. Since your application is not start...
26,667
[ { "from": "human", "value": "I'm developing a SWT/JFace application using the libraries from Eclipse 3.4.1.\nI encounter the following problem on Windows (Vista 32bit) and Ubuntu 8.10 32bit:\nI create a menu bar in the createMenuManager method of the JFace ApplicationWindow. I add MenuManagers for file, edi...
Is there any performance difference between the for loops on a primitive array? Assume: double[] doubleArray = new double[300000]; for (double var: doubleArray) someComplexCalculation(var); or : for ( int i = 0, y = doubleArray.length; i < y; i++) someComplexCalculation(doubleArray[i]); Test result I actual...
In Java, there are typically two common styles of loops for iterating over arrays: the enhanced for loop (also known as the "for-each" loop) and the traditional for loop. The performance differences between these loops can be influenced by several factors, but here's a breakdown of what you might expect: 1. **Enhanced...
31,969
[ { "from": "human", "value": "Is there any performance difference between the for loops on a primitive array? \nAssume:\ndouble[] doubleArray = new double[300000];\n\n\nfor (double var: doubleArray) \n someComplexCalculation(var);\n\nor :\nfor ( int i = 0, y = doubleArray.length; i < y; i++)\n someComple...
I'm trying to use an external framework for UPnP browsing on the iPhone. The framework works perfectly on the Mac, But when I copy it to the iPhone app, it wouldn't run even if there's no code using the framework yet. It gives weird error that I can't understand. [Session started at 2008-10-20 15:32:34 +0200.] objc[27...
It looks like you're encountering issues related to class implementation conflicts when trying to run your iPhone app that uses an external UPnP framework. The error messages indicate that multiple classes are implemented in both the iOS simulator framework and the external framework you're using, which can lead to run...
24,872
[ { "from": "human", "value": "I'm trying to use an external framework for UPnP browsing on the iPhone. The framework works perfectly on the Mac, But when I copy it to the iPhone app, it wouldn't run even if there's no code using the framework yet. \nIt gives weird error that I can't understand.\n[Session sta...
is there an elegant way to determine the size of data downloaded from a website -- bearing in mind that not all requests will go to the same domain that you originally visited and that other browsers may in the background be polling at the same time. Ideally i'd like to look at the size of each individual page -- or fo...
To measure the size of data downloaded from a website, including all associated resources (like images, scripts, stylesheets, and any other elements that contribute to the total page size), there are several approaches you can take. Here are some options, including browser plugins and tools: ### 1. Browser Developer T...
28,439
[ { "from": "human", "value": "is there an elegant way to determine the size of data downloaded from a website -- bearing in mind that not all requests will go to the same domain that you originally visited and that other browsers may in the background be polling at the same time. Ideally i'd like to look at ...
I am writing event data to a log file in an asp.net httphandler by using the File.AppendAllText method. I am concerned with what will happen when multiple requests are received simultaneously. Does AppendAllText lock the file it's writing to?
The `File.AppendAllText` method in .NET does not explicitly provide a locking mechanism to prevent simultaneous writes to the same file from multiple threads or requests. When multiple requests are processed at the same time and attempt to write to the same log file using `File.AppendAllText`, you may encounter issues ...
33,329
[ { "from": "human", "value": "I am writing event data to a log file in an asp.net httphandler by using the File.AppendAllText method. I am concerned with what will happen when multiple requests are received simultaneously. Does AppendAllText lock the file it's writing to?\n" }, { "from": "gpt", ...
I am using prototype and I can't find any built in extensions to set or retrieve cookies. After googling for a little bit, I see a few different ways to go about it. I was wondering what you think is the best approach for getting a cookie in JavaScript?
When working with cookies in JavaScript, especially if you're using the Prototype framework, it's important to handle them efficiently and in a way that's compatible with your project requirements. While Prototype does not have built-in cookie handling functions, there are several approaches you can take to manage cook...
27,133
[ { "from": "human", "value": "I am using prototype and I can't find any built in extensions to set or retrieve cookies. After googling for a little bit, I see a few different ways to go about it. I was wondering what you think is the best approach for getting a cookie in JavaScript?\n" }, { "from": "...
I'm looking to vertically align text by adding <br /> tags between characters with jQuery. <div id="foo"><label>Vertical Text</label></div> would look like this: V e r t i c a l T e x t
To vertically align text by inserting `<br />` tags between each character using jQuery, you can achieve this by manipulating the text content of the label inside the `#foo` div. Here’s a step-by-step guide on how to do it: 1. Select the text from the label. 2. Split the text into individual characters. 3. Join those ...
33,675
[ { "from": "human", "value": "I'm looking to vertically align text by adding <br /> tags between characters with jQuery.\n<div id=\"foo\"><label>Vertical Text</label></div> \n\nwould look like this:\nV\ne\nr\nt\ni\nc\na\nl\n\nT\ne\nx\nt\n" }, { "from": "gpt", "value": "To vertically align text by...
I'm implementing my app as a drag source. When I call DoDragDrop (Win32 call, not MFC) it enters into a modal loop and I don't get repaint messages in my main window until DoDragDrop returns. Unfortunately if I do a drop in the shell (a file) and the filename is already there the shell asks if I want to replace the fil...
When you call `DoDragDrop`, it effectively enters a modal loop, blocking further message processing in your application until the drag-and-drop operation completes. This behavior can cause the issue you're describing, where your application appears "frozen" during the drag operation, especially when interacting with ex...
30,003
[ { "from": "human", "value": "I'm implementing my app as a drag source. When I call DoDragDrop (Win32 call, not MFC) it enters into a modal loop and I don't get repaint messages in my main window until DoDragDrop returns. Unfortunately if I do a drop in the shell (a file) and the filename is already there th...
I have created a json object from ruby with cobravsmongoose, however the attributes have the @ symbol in front of them. Whenever I try to access them with standard object notation in JavaScript, such as object.object.object.@attribute I get a parse error. Is there another way to access these objects?
The `@` symbol in Ruby objects is used to denote instance variables. When you serialize a Ruby object to JSON, the instance variables will be included in the JSON with the `@` prefix, which can cause issues when trying to access them in JavaScript. In JavaScript, you cannot directly access properties that start with s...
33,352
[ { "from": "human", "value": "I have created a json object from ruby with cobravsmongoose, however the attributes have the @ symbol in front of them. Whenever I try to access them with standard object notation in JavaScript, such as object.object.object.@attribute I get a parse error. Is there another way ...
I have a View that allows a user to enter/edit data for a new Widget. I'd like to form up that data into a json object and send it to my controller via AJAX so I can do the validation on the server without a postback. I've got it all working, except I can't figure out how to pass the data so my controller method can a...
You can indeed pass a complex object directly from your AJAX request to your MVC controller. Since you are currently using the `serializeArray()` method, it encodes the data as separate parameters, which is why your controller method is not receiving the entire `Widget` object. Instead, you can convert your form data ...
31,520
[ { "from": "human", "value": "I have a View that allows a user to enter/edit data for a new Widget. I'd like to form up that data into a json object and send it to my controller via AJAX so I can do the validation on the server without a postback.\nI've got it all working, except I can't figure out how to p...
I am using Windows CE 4.2 and MS Embedded VC++ 4.0. The following code gives me the error Access to [file name] was denied., and it creates the file but does not write anything to it. CString tmp; tmp.Format(_T("%s%d"), mFileName, ++ctr); TRY { mFile.Open(tmp, CFile::modeCreate); mFile.Write(&data[ctr%2], 1); m...
You're facing an issue with the `CFile` class when using Windows CE 4.2 and MS Embedded VC++ 4.0, which results in an "Access denied" error. This issue can arise due to a number of reasons specific to the environment you are working in. Below are some considerations and possible solutions for your issue: ### Possible ...
26,243
[ { "from": "human", "value": "I am using Windows CE 4.2 and MS Embedded VC++ 4.0. The following code gives me the error Access to [file name] was denied., and it creates the file but does not write anything to it.\nCString tmp;\ntmp.Format(_T(\"%s%d\"), mFileName, ++ctr);\nTRY \n{\n mFile.Open(tmp, CFile::...
I'm refactoring some old JavaScript code and there's a lot of DOM manipulation going on. var d = document; var odv = d.createElement("div"); odv.style.display = "none"; this.OuterDiv = odv; var t = d.createElement("table"); t.cellSpacing = 0; t.className = "text"; odv.appendChild(t); I would like to know if there is ...
Yes, you can definitely simplify your DOM manipulation code by using jQuery. jQuery provides a more streamlined and readable way to create and manipulate DOM elements. Here's how you can refactor your existing JavaScript code using jQuery: ```javascript // Create an outer div var odv = $("<div>", { css: { display:...
34,311
[ { "from": "human", "value": "I'm refactoring some old JavaScript code and there's a lot of DOM manipulation going on.\nvar d = document;\nvar odv = d.createElement(\"div\");\nodv.style.display = \"none\";\nthis.OuterDiv = odv;\n\nvar t = d.createElement(\"table\");\nt.cellSpacing = 0;\nt.className = \"text\...
I'm getting a null-object exception deep within XsltCompiledTransform, and I'd like to use the .Net Framework Source debugging feature to see what isn't being initialized, but even after following the directions for enabling it, I can't figure out how to step into the .Transform() method and start spelunking. The tutor...
The `System.Xml.Xsl.XsltCompiledTransform` class is part of the .NET Framework, and while you can enable source stepping for .NET Framework libraries, there are some limitations when it comes to stepping into specific methods like `Transform()`. ### Steps to Enable Source Code Debugging for .NET Framework: 1. **Enabl...
28,335
[ { "from": "human", "value": "I'm getting a null-object exception deep within XsltCompiledTransform, and I'd like to use the .Net Framework Source debugging feature to see what isn't being initialized, but even after following the directions for enabling it, I can't figure out how to step into the .Transform...
I have the following JQuery code that worked perfect in C#/Asp.net 2.0 to call a page method in the default.aspx page. Now I am trying to call a shared page method in VB.Net and the page method is not firing, I believe because of security or it is not finding it. The page that this shared vb method is in doesn't allow...
When transitioning from a C# ASP.NET page method to a VB.NET page method, there are a few important considerations to ensure that your AJAX call works correctly. Here are some steps and tips to help you troubleshoot your issue: ### 1. Ensure Method Accessibility Make sure that your method is declared correctly in your...
30,765
[ { "from": "human", "value": "I have the following JQuery code that worked perfect in C#/Asp.net 2.0 to call a page method in the default.aspx page. Now I am trying to call a shared page method in VB.Net and the page method is not firing, I believe because of security or it is not finding it.\nThe page that...