instruction stringlengths 14 27.6k | completion stringlengths 3 38.3k | __original_row_idx int64 0 50k | conversations listlengths 2 2 |
|---|---|---|---|
Often I want to add a value to a table or update the value if its key already exists. This can be accomplished in several ways, assuming a primary or unique key is set on the 'user_id' and 'pref_key' columns in the example:
1. Blind insert, update if receiving a duplicate key error:
// Try to insert as a new value
INSE... | Using a "blind insert" approach followed by an update on a duplicate key error can be a practical solution, but there are several important considerations to keep in mind before choosing this method:
1. **Race Conditions**: If multiple processes attempt to perform the insert operation simultaneously, it's possible for... | 21,681 | [
{
"from": "human",
"value": "Often I want to add a value to a table or update the value if its key already exists. This can be accomplished in several ways, assuming a primary or unique key is set on the 'user_id' and 'pref_key' columns in the example:\n1. Blind insert, update if receiving a duplicate key e... |
What is tracing and how should it be done?
I have a common utilities library I am including in my projects and I want to be able to get some output from it. I have been using log4net but would rather not have my common utilities library dependent upon log4net. Does that make sense?
Edit:
Is there any correlation betwe... | Tracing and logging are both critical practices in software development that help developers understand the behavior of applications and diagnose issues. However, they serve slightly different purposes and should be used in a complementary manner.
### What is Tracing?
**Tracing** is the process of recording the flow ... | 18,164 | [
{
"from": "human",
"value": "What is tracing and how should it be done? \nI have a common utilities library I am including in my projects and I want to be able to get some output from it. I have been using log4net but would rather not have my common utilities library dependent upon log4net. Does that make s... |
I wish to test a function that will generate lorem ipsum text, but it does so within html tags. So I cant know in advance the textual content, but i know the html structure. That is what I want to test. And maybe that the length of the texts are within certain limits.
So what I am wondering is if the assertTags can do ... | When testing HTML output, you can use regular expressions to assert that your output meets certain criteria while allowing for variations in the content. Although SimpleTest doesn’t have a built-in `assertTags` method that works exactly as you described, you can still achieve your goal using a combination of assertions... | 20,656 | [
{
"from": "human",
"value": "I wish to test a function that will generate lorem ipsum text, but it does so within html tags. So I cant know in advance the textual content, but i know the html structure. That is what I want to test. And maybe that the length of the texts are within certain limits.\nSo what I... |
I'm looking for a .Net library that will accept an image or filename and an aspect ratio, and crop the image to that aspect ratio. That's the easy part: I could do it myself. But I also want it to show a little intelligence in choosing exactly what content gets cropped, even if it's just picking which edge to slice.
... | For your requirements of cropping images intelligently based on aspect ratio in a .NET environment, you might want to consider the following options:
### 1. **ImageSharp**
- **Description**: ImageSharp is a popular, free and open-source library for image processing in .NET. While it does not have built-in intelligent ... | 19,624 | [
{
"from": "human",
"value": "I'm looking for a .Net library that will accept an image or filename and an aspect ratio, and crop the image to that aspect ratio. That's the easy part: I could do it myself. But I also want it to show a little intelligence in choosing exactly what content gets cropped, even i... |
Im using NCover 1.5.8, and its doesn't seem to produce and metrics relating to my website applications. The ncover output indicates the tests relating to the website have been run.
Is there anything special I need to do for website dlls?
| When using NCover 1.5.8 to analyze coverage for web applications, there are a few key points and best practices to ensure that you get the desired coverage metrics:
1. **Ensure Proper Setup**: Make sure you have set up NCover correctly in your testing environment. This includes making sure you are pointing to the corr... | 20,926 | [
{
"from": "human",
"value": "Im using NCover 1.5.8, and its doesn't seem to produce and metrics relating to my website applications. The ncover output indicates the tests relating to the website have been run.\nIs there anything special I need to do for website dlls?\n"
},
{
"from": "gpt",
"valu... |
How do I start a process, such as launching a URL when the user clicks a button?
| To launch a URL when a user clicks a button, you can use HTML and JavaScript. Below are simple examples to illustrate how to do this in different contexts.
### Example 1: Using HTML and JavaScript
Here's a basic example using HTML with a button that triggers a JavaScript function to open a URL.
```html
<!DOCTYPE htm... | 20,180 | [
{
"from": "human",
"value": "How do I start a process, such as launching a URL when the user clicks a button?\n"
},
{
"from": "gpt",
"value": "To launch a URL when a user clicks a button, you can use HTML and JavaScript. Below are simple examples to illustrate how to do this in different context... |
I need to find a way to crawl one of our company's web applications and create a static site from it that can be burned to a cd and used by traveling sales people to demo the web site. The back end data store is spread across many, many systems so simply running the site on a VM on the sale person's laptop won't work. ... | Creating a static version of a web application for offline use can indeed be a challenge, especially when dealing with dynamic content generated by backend systems. However, there are several tools available that can help you with this task. Here are some recommendations for web crawlers and tools that can assist in cr... | 18,583 | [
{
"from": "human",
"value": "I need to find a way to crawl one of our company's web applications and create a static site from it that can be burned to a cd and used by traveling sales people to demo the web site. The back end data store is spread across many, many systems so simply running the site on a VM... |
Do you have a simple debounce routine handy to deal with a single switch input?
This is a simple bare metal system without any OS.
I would like to avoid a looping construct with a specific count, as the processor speed might fluctuate.
| Certainly! Debouncing a switch input in a bare metal system can be done using a simple timer-based approach rather than a busy-wait loop. Below is a basic outline and example code that illustrates how you can implement a debounce routine.
### Debouncing Algorithm
1. **Read the Switch State**: Read the current state o... | 18,802 | [
{
"from": "human",
"value": "Do you have a simple debounce routine handy to deal with a single switch input?\nThis is a simple bare metal system without any OS.\nI would like to avoid a looping construct with a specific count, as the processor speed might fluctuate.\n"
},
{
"from": "gpt",
"value... |
My MySQL database contains several tables using different storage engines
(specifically myisam and innodb). How can I find out which tables are
using which engine?
| You can find out which storage engine is being used by each table in your MySQL database by executing a query on the `information_schema` database. Specifically, you can query the `TABLES` table to get details about the tables and their corresponding storage engines.
Here’s a simple query that you can use:
```sql
SEL... | 21,386 | [
{
"from": "human",
"value": "My MySQL database contains several tables using different storage engines\n(specifically myisam and innodb). How can I find out which tables are\nusing which engine?\n"
},
{
"from": "gpt",
"value": "You can find out which storage engine is being used by each table i... |
I have a .NET 3.5 web application for which I have implemented a class called CalculationsCounterManager (code below). This class has some shared/static members that manage the creation and incrementing of two custom performance counters that monitor data calls to a SQL Server database. Execution of these data calls ... | The error you're encountering, "Requested registry access is not allowed," typically occurs when the ASP.NET application does not have the necessary permissions to read or modify the registry settings where performance counters are registered. This is a common issue when working with performance counters in a web appli... | 19,044 | [
{
"from": "human",
"value": "I have a .NET 3.5 web application for which I have implemented a class called CalculationsCounterManager (code below). This class has some shared/static members that manage the creation and incrementing of two custom performance counters that monitor data calls to a SQL Server ... |
I have a WCF service and I want to expose it as both a RESTfull service and as a SOAP service.
Anyone has done something like this before?
| Yes, it is indeed possible to expose a WCF service as both a RESTful service and a SOAP service. WCF has built-in support for multiple protocols, allowing you to define various endpoints with different behaviors.
Here's a simple guide on how to set it up:
### Step 1: Define Your Service Contract
Create a service con... | 18,916 | [
{
"from": "human",
"value": "I have a WCF service and I want to expose it as both a RESTfull service and as a SOAP service. \nAnyone has done something like this before?\n"
},
{
"from": "gpt",
"value": "Yes, it is indeed possible to expose a WCF service as both a RESTful service and a SOAP servi... |
I have a class that processes a 2 xml files and produces a text file.
I would like to write a bunch of unit / integration tests that can individually pass or fail for this class that do the following:
For input A and B, generate the output.
Compare the contents of the generated file to the contents expected output
W... | You're on the right track with your initial implementation, but there are definitely ways to enhance the readability of your tests and provide more useful output when comparisons fail. Here are some suggestions to improve your testing setup and structure, as well as a more efficient way to handle text file differences.... | 15,929 | [
{
"from": "human",
"value": "I have a class that processes a 2 xml files and produces a text file. \nI would like to write a bunch of unit / integration tests that can individually pass or fail for this class that do the following:\n\nFor input A and B, generate the output.\nCompare the contents of the gen... |
My stuff is made with several components among which some are written in C. As I would like to add some security features, I am thinking of communicating over an SSL/TLS layer.
Could you advise me some good lib to do this (if possible) ?
| Certainly! When it comes to adding SSL/TLS communication to your C components, there are several libraries you can consider. Here are some of the most popular and well-supported libraries that you might find useful:
1. **OpenSSL**:
- OpenSSL is one of the most widely used libraries for implementing SSL and TLS prot... | 20,319 | [
{
"from": "human",
"value": "My stuff is made with several components among which some are written in C. As I would like to add some security features, I am thinking of communicating over an SSL/TLS layer.\nCould you advise me some good lib to do this (if possible) ?\n"
},
{
"from": "gpt",
"valu... |
I have a query that ran fine on SQL2005 but moving the database to SQL2008 gives me the error from the title.
The code that is the problem is a call to CONTAINS, CONTAINSTABLE or FREETEXT with an empty parameter. However I'm trying to only call or join when there is a value like such
where (@search_term = '' or (FREETE... | In SQL Server 2008, the behavior around full-text search functions such as `CONTAINS`, `CONTAINSTABLE`, and `FREETEXT` has changed slightly compared to SQL Server 2005. When you attempt to use these functions with an empty string or null parameter, SQL Server 2008 raises an error, as you've noted.
Given your scenario ... | 16,950 | [
{
"from": "human",
"value": "I have a query that ran fine on SQL2005 but moving the database to SQL2008 gives me the error from the title.\nThe code that is the problem is a call to CONTAINS, CONTAINSTABLE or FREETEXT with an empty parameter. However I'm trying to only call or join when there is a value lik... |
My organization is working on building RESTful webservices on JBoss appserver. The QA team is used to testing SOAP webservices so far using SoapUI. SoapUI has a new version that has REST capabilities. We're considering using that.
Are there any publicly available RESTful services available on the net for free that som... | Yes, there are several publicly available RESTful services that you can use for testing purposes. Here are some examples:
### Publicly Available RESTful Services:
1. **JSONPlaceholder**: A fake online REST API for testing and prototyping. You can access it at [https://jsonplaceholder.typicode.com/](https://jsonplaceh... | 19,983 | [
{
"from": "human",
"value": "My organization is working on building RESTful webservices on JBoss appserver. The QA team is used to testing SOAP webservices so far using SoapUI. SoapUI has a new version that has REST capabilities. We're considering using that.\n\nAre there any publicly available RESTful serv... |
I need to encode a 100KB+ string as base64 in VBA. Are there any built-in functions or COM objects available which will do this as a pure VBA approach is either complex or doesn't scale well at these volumes (see links from dbb and marxidad)?
| In VBA, encoding a large string (like 100KB+) to Base64 can be done effectively using the built-in `MSXML2` library. This approach leverages XML HTTP services to handle Base64 encoding without writing complex algorithms from scratch.
Here's a sample code snippet demonstrating how to do this using the `MSXML2.DOMDocume... | 18,360 | [
{
"from": "human",
"value": "I need to encode a 100KB+ string as base64 in VBA. Are there any built-in functions or COM objects available which will do this as a pure VBA approach is either complex or doesn't scale well at these volumes (see links from dbb and marxidad)?\n"
},
{
"from": "gpt",
"... |
I'm running autoconf and configure sets SHELL to '/bin/sh'.
This creates huge problems. How to force SHELL to be '/bin/bash' for autoconf?
I'm trying to get this running on osx, it's working on linux. Linux is using SHELL=/bin/bash. osx defaults to /bin/sh.
| To force `autoconf` to use `/bin/bash` as the shell instead of `/bin/sh`, you can set the `SHELL` environment variable before running the `./configure` script. Here’s how you can do it:
1. **Directly set the SHELL variable in the command line**:
You can prepend your `./configure` command with `SHELL=/bin/bash`, lik... | 22,738 | [
{
"from": "human",
"value": "I'm running autoconf and configure sets SHELL to '/bin/sh'.\nThis creates huge problems. How to force SHELL to be '/bin/bash' for autoconf?\nI'm trying to get this running on osx, it's working on linux. Linux is using SHELL=/bin/bash. osx defaults to /bin/sh.\n"
},
{
"fr... |
I am trying to manipulate a string using Jython, I have included below an example string:
This would be a title for a website :: SiteName
This would be a title for a website :: SiteName :: SiteName
How to remove all instances of ":: Sitename" or ":: SiteName :: SiteName"?
| To manipulate the string in Jython and remove all instances of ":: SiteName" and ":: SiteName :: SiteName", you can use the `replace` method. Below is an example of how you can do this:
```python
# Example strings
string1 = "This would be a title for a website :: SiteName"
string2 = "This would be a title for a websit... | 23,871 | [
{
"from": "human",
"value": "I am trying to manipulate a string using Jython, I have included below an example string:\nThis would be a title for a website :: SiteName\nThis would be a title for a website :: SiteName :: SiteName\nHow to remove all instances of \":: Sitename\" or \":: SiteName :: SiteName\"?... |
We can use Bitmapsource object as the content of a Image control, However if I only have Bitmap object, can I use it directly, if I convert Bitmap to Bitmapsouce using the following method:
Bitmap bitmap = imageObjToBeConvert;
IntPtr HBitmap = bitmap.GetHbitmap();
result = Imaging.CreateBitmapSo... | In WPF, the `Image` control is designed to work with `BitmapSource` objects. Unfortunately, you cannot directly assign a `Bitmap` object to an `Image` control; you have to convert it to a `BitmapSource` first. The method you provided to convert `Bitmap` to `BitmapSource` is the standard approach.
As for your question... | 18,351 | [
{
"from": "human",
"value": "We can use Bitmapsource object as the content of a Image control, However if I only have Bitmap object, can I use it directly, if I convert Bitmap to Bitmapsouce using the following method:\n Bitmap bitmap = imageObjToBeConvert;\n IntPtr HBitmap = bitmap.GetHbitmap... |
How can I access UserId in ASP.NET Membership without using Membership.GetUser(username) in ASP.NET Web Application Project?
Can UserId be included in Profile namespace next to UserName (System.Web.Profile.ProfileBase)?
| In ASP.NET Membership, if you want to access the `UserId` without using `Membership.GetUser(username)`, you have a few options depending on your specific implementation and requirements.
### 1. Using `MembershipUser` in Your Own Code
While `Membership.GetUser(username)` is one of the more common methods to retrieve u... | 12,681 | [
{
"from": "human",
"value": "How can I access UserId in ASP.NET Membership without using Membership.GetUser(username) in ASP.NET Web Application Project?\nCan UserId be included in Profile namespace next to UserName (System.Web.Profile.ProfileBase)?\n"
},
{
"from": "gpt",
"value": "In ASP.NET Me... |
I'm trying to localize my aspx pages. I'm done with content localization using L10n features provided by .net f/w, like resource files. But I'm finding it difficult to set local data in page titles.
Most of the browsers, including IE and FF, shows content on window title with some boxes (FF will show properly localize... | The issue you're encountering with page titles displaying incorrectly (as boxes or question marks) in some browsers is typically related to character encoding. When the page's character encoding does not match the encoding expected for the content being displayed, browsers may not render certain characters properly.
H... | 20,477 | [
{
"from": "human",
"value": "I'm trying to localize my aspx pages. I'm done with content localization using L10n features provided by .net f/w, like resource files. But I'm finding it difficult to set local data in page titles. \nMost of the browsers, including IE and FF, shows content on window title with ... |
So I have a weird situation here... I have an System.Web.UI.WebControls.WebParts.EditorPart class. It renders a "Search" button, when you click this button, it's clickHandler method does a DB search, and dynamically creates a LinkButton for each row it returns, sets the CommandName and CommandArgument properties and ad... | It sounds like you are facing an issue with the ASP.NET page lifecycle when dynamically creating controls. When you create controls dynamically (like the `LinkButton`s in your case), you need to make sure that those controls are created and added to the page at the correct time in the page lifecycle.
Here’s a general ... | 16,918 | [
{
"from": "human",
"value": "So I have a weird situation here... I have an System.Web.UI.WebControls.WebParts.EditorPart class. It renders a \"Search\" button, when you click this button, it's clickHandler method does a DB search, and dynamically creates a LinkButton for each row it returns, sets the Comman... |
On a site of mine in which a textarea is used for submission, I have code that can appear something along the lines of the following:
<textarea><p>text</p></textarea>
When validating (XHTML 1.0 Transitional), this error arises,
line 88 column 50 - Error: document type does not allow element "p" here
If this is not a ... | The error you're encountering is due to the fact that the `<textarea>` element is expected to contain plain text only and does not allow any HTML elements within it, such as `<p>`. In XHTML, the content of a `<textarea>` is treated as character data and is not parsed as HTML.
To validate your XHTML and maintain a clea... | 22,618 | [
{
"from": "human",
"value": "On a site of mine in which a textarea is used for submission, I have code that can appear something along the lines of the following:\n<textarea><p>text</p></textarea>\n\nWhen validating (XHTML 1.0 Transitional), this error arises,\nline 88 column 50 - Error: document type does ... |
I'd love to figure it out myself but I was wondering roughly what's the algorithm for converting a function with yield statements into a state machine for an enumerator? For example how does C# turn this:
IEnumerator<string> strings(IEnumerable<string> args)
{ IEnumerator<string> enumerator2 = getAnotherEnumerator(); ... | Converting a function with `yield` statements into a state machine is essentially about maintaining the state of the computation and allowing for resuming execution later. Below, I'll outline a rough algorithmic approach to transforming such functions into a state machine representation, similar to what C# does when it... | 18,625 | [
{
"from": "human",
"value": "I'd love to figure it out myself but I was wondering roughly what's the algorithm for converting a function with yield statements into a state machine for an enumerator? For example how does C# turn this:\nIEnumerator<string> strings(IEnumerable<string> args)\n { IEnumerator<str... |
PEP 8 states:
Imports are always put at the top of the file, just after any module comments and docstrings, and before module globals and constants.
However if the class/method/function that I am importing is only used in rare cases, surely it is more efficient to do the import when it is needed?
Isn't this:
class So... | PEP 8 recommends placing all imports at the top of the file primarily for readability and maintainability, as well as to avoid potential issues with circular imports. However, you raise a valid point regarding efficiency in some specific scenarios.
### Efficiency Considerations
1. **Importing a module**: In Python, i... | 17,670 | [
{
"from": "human",
"value": "PEP 8 states:\n\nImports are always put at the top of the file, just after any module comments and docstrings, and before module globals and constants.\n\nHowever if the class/method/function that I am importing is only used in rare cases, surely it is more efficient to do the i... |
I need to create an ODBC link from an Access 2003 (Jet) database to a SQL Server hosted view which contains aliased field names containing periods such as:
Seq.Group
In the SQL source behind the view, the field names are encased in square brackets...
SELECT Table._Group AS [Seq.Group]
...so SQL Server doesn't complai... | Unfortunately, Microsoft Access (especially the older versions like Access 2003) has restrictions on naming conventions, particularly when it comes to using punctuation like periods in field names. The error you are encountering is due to Access interpreting the period as a delimiter for an object hierarchy (like a pro... | 18,585 | [
{
"from": "human",
"value": "I need to create an ODBC link from an Access 2003 (Jet) database to a SQL Server hosted view which contains aliased field names containing periods such as:\nSeq.Group\n\nIn the SQL source behind the view, the field names are encased in square brackets...\nSELECT Table._Group AS ... |
I have a legacy VB6 application that was built using MSDE.
As many client's database grow towards the MSDE 2 GB limit they are upgraded to SQL 2005 Express.
This has proven very successful until today.
I have spent the entire day troubleshooting a client's network on which our application runs unacceptably slowly, when... | It sounds like you've done a lot of thorough troubleshooting already, which is great. The issue you're experiencing—slow performance when connecting to a remote SQL Server Express instance—could be caused by several factors, especially given the environment is a two-machine setup. Here are some suggestions and areas yo... | 15,987 | [
{
"from": "human",
"value": "I have a legacy VB6 application that was built using MSDE.\nAs many client's database grow towards the MSDE 2 GB limit they are upgraded to SQL 2005 Express.\nThis has proven very successful until today.\nI have spent the entire day troubleshooting a client's network on which ou... |
I've been arguing with my coworkers about Pascal casing (upper camel case) vs. lower CamelCasing. They are used to lower camel casing for everything from table names in SQL databases to property naming in C# code but I like Pascal casing better, lower camel casing for variables and Pascal casing for properties:
string ... | Your dilemma between Pascal casing (UpperCamelCase) and lower camel casing (lowerCamelCase) is a common one in programming, particularly in languages like C#. Each style has its context and appropriateness, and teams often adopt a convention for consistency. Here’s a deeper look at both styles:
### Pascal Casing (Uppe... | 18,888 | [
{
"from": "human",
"value": "I've been arguing with my coworkers about Pascal casing (upper camel case) vs. lower CamelCasing. They are used to lower camel casing for everything from table names in SQL databases to property naming in C# code but I like Pascal casing better, lower camel casing for variables ... |
I have a multi-user ASP.NET app running against SQL Server and want to have StoredProcA create a #temptable temp table - not a table variable - to insert some data, then branch to StoredProcB, StoredProcC, and StoredProcD to manipulate the data in #temptable per business rules.
The web app uses connection pooling when... | In SQL Server, temporary tables (designated by the `#` prefix) are scoped to the session in which they were created. When you create a temporary table in a stored procedure (like `StoredProcA`), that temporary table exists only for the duration of the session (connection) that created it.
When using connection pooling... | 20,919 | [
{
"from": "human",
"value": "I have a multi-user ASP.NET app running against SQL Server and want to have StoredProcA create a #temptable temp table - not a table variable - to insert some data, then branch to StoredProcB, StoredProcC, and StoredProcD to manipulate the data in #temptable per business rules. ... |
I'm looking for a free winforms component for an application I'm writing. I basicly need a textbox that contains line numbers in a side column. Being able to tabulate data within it would be a major plus too.
Does anyone know of a premade component that could do this?
| For your requirements of a WinForms component that includes a textbox with line numbers and potentially supports tabulated data, there are a couple of options you can explore:
1. **FastColoredTextBox**:
- FastColoredTextBox is a powerful and free text box control for Windows Forms that supports syntax highlighting,... | 22,679 | [
{
"from": "human",
"value": "I'm looking for a free winforms component for an application I'm writing. I basicly need a textbox that contains line numbers in a side column. Being able to tabulate data within it would be a major plus too.\nDoes anyone know of a premade component that could do this?\n"
},
... |
Is there a better way to negate a boolean in Java than a simple if-else?
if (theBoolean) {
theBoolean = false;
} else {
theBoolean = true;
}
| Yes, there is a simpler and more concise way to negate a boolean in Java without using an if-else statement. You can use the logical NOT operator (`!`). Here's how you can do it:
```java
theBoolean = !theBoolean;
```
This single line of code will effectively toggle the value of `theBoolean`. If it is `true`, it will ... | 25,238 | [
{
"from": "human",
"value": "Is there a better way to negate a boolean in Java than a simple if-else?\nif (theBoolean) {\n theBoolean = false;\n} else {\n theBoolean = true;\n}\n\n"
},
{
"from": "gpt",
"value": "Yes, there is a simpler and more concise way to negate a boolean in Java witho... |
I want to do something like
insert into my table (select * from anothertable where id < 5)
What is the correct MSSQL syntax?
Thanks!
| To insert data into a table from a `SELECT` statement in Microsoft SQL Server (MSSQL), you can use the following syntax:
```sql
INSERT INTO my_table (column1, column2, column3, ...)
SELECT column1, column2, column3, ...
FROM another_table
WHERE id < 5;
```
Make sure that the columns listed in the `INSERT INTO` statem... | 22,254 | [
{
"from": "human",
"value": "I want to do something like \ninsert into my table (select * from anothertable where id < 5)\n\nWhat is the correct MSSQL syntax?\nThanks!\n"
},
{
"from": "gpt",
"value": "To insert data into a table from a `SELECT` statement in Microsoft SQL Server (MSSQL), you can ... |
I am tasked with a project whereby I need to create a scaled down version of a Firebug like UI where the user can load an HTML page, and as they hover the mouse over the elements they'll be highlighted. The app will allow the users to select a table to be screen-scraped....haven't got to that part as yet.
Any advice?
T... | Creating a scaled-down version of a Firebug-like UI for inspecting HTML elements is a great project! Here are some steps and tips to help you get started:
### 1. Set Up Your Environment
- **Choose a Framework:** Depending on your familiarity and requirements, you could use plain JavaScript, jQuery, or a framework lik... | 16,157 | [
{
"from": "human",
"value": "I am tasked with a project whereby I need to create a scaled down version of a Firebug like UI where the user can load an HTML page, and as they hover the mouse over the elements they'll be highlighted. The app will allow the users to select a table to be screen-scraped....haven... |
I am trying to encrypt the "system.web.membership" element within the Web.Config of our .Net application to secure username and password to Active Directory. I am using the aspnet_regiis command to encrypt, and have tried several different strings for the value of the "pe" option with no success. I have successfully en... | The issue you are encountering stems from the way the `aspnet_regiis` tool interprets the configuration sections. The error messages indicate that the tool cannot find the specified configuration sections for encryption.
In your case, you are attempting to encrypt the `membership` section under `system.web`, but the ... | 18,517 | [
{
"from": "human",
"value": "I am trying to encrypt the \"system.web.membership\" element within the Web.Config of our .Net application to secure username and password to Active Directory. I am using the aspnet_regiis command to encrypt, and have tried several different strings for the value of the \"pe\" o... |
I recently came across a ASP 1.1 web application that put a whole heap of stuff in the session variable - including all the DB data objects and even the DB connection object. It ends up being huge. When the web session times out (four hours after the user has finished using the application) sometimes their database tra... | Storing too much data in session variables can lead to a number of problems, including the performance issues you are experiencing with the ASP 1.1 web application. Here are some guidelines on what to store in session variables and what to avoid:
### What to Store in Session Variables
1. **User Identification Informa... | 18,843 | [
{
"from": "human",
"value": "I recently came across a ASP 1.1 web application that put a whole heap of stuff in the session variable - including all the DB data objects and even the DB connection object. It ends up being huge. When the web session times out (four hours after the user has finished using the ... |
In terms of Webserver and low package size installation.
| When considering web servers with low package size installations, you want to look for lightweight web servers that are efficient, easy to set up, and suitable for serving small-scale applications, static content, or for use in resource-constrained environments. Here are a few popular options:
### 1. **Nginx**
- **Ove... | 18,237 | [
{
"from": "human",
"value": "In terms of Webserver and low package size installation.\n"
},
{
"from": "gpt",
"value": "When considering web servers with low package size installations, you want to look for lightweight web servers that are efficient, easy to set up, and suitable for serving small... |
I currently use the following command, but it's a little unwieldy to type. What's a shorter alternative?
find . -name '*.txt' -exec grep 'sometext' '{}' \; -print
Here are my requirements:
limit to a file extension (I use SVN and don't want to be searching through all those .svn directories)
can default to the curre... | Creating a shell script is a great solution for making your command more manageable. Here's a sample script based on your requirements that you can use to search for text in files with a specific extension:
```bash
#!/bin/bash
# Check if the right number of arguments is provided
if [ "$#" -ne 2 ]; then
echo "Usage:... | 21,689 | [
{
"from": "human",
"value": "I currently use the following command, but it's a little unwieldy to type. What's a shorter alternative?\nfind . -name '*.txt' -exec grep 'sometext' '{}' \\; -print\n\nHere are my requirements:\n\nlimit to a file extension (I use SVN and don't want to be searching through all t... |
I'm making my way into web development and have seen the word postback thrown around. Coming from a non-web based background, what does a new web developer have to know about postbacks? (i.e. what are they and when do they arise?)
Any more information you'd like to share to help a newbie in the web world be aware of p... | Welcome to the world of web development! Understanding concepts like "postbacks" is an important part of grasping how web applications work. Let's break down what a postback is and why it matters.
### What is a Postback?
In web development, a **postback** refers to the process of sending data back to the same page on... | 16,405 | [
{
"from": "human",
"value": "I'm making my way into web development and have seen the word postback thrown around. Coming from a non-web based background, what does a new web developer have to know about postbacks? (i.e. what are they and when do they arise?) \nAny more information you'd like to share to he... |
Reading on another forum I've came across the world of CSS Frameworks. The one I've been specifically looking at is BluePrint. I was wondering if anyone else had come across CSS frameworks, suggest which is the best and if they are worth the effort?
| CSS frameworks can significantly speed up the development process by providing pre-built styles and components that help ensure consistency and responsiveness across your web projects. There are many CSS frameworks available, each with its unique features and advantages. Here’s a brief overview of a few popular ones:
... | 19,558 | [
{
"from": "human",
"value": "Reading on another forum I've came across the world of CSS Frameworks. The one I've been specifically looking at is BluePrint. I was wondering if anyone else had come across CSS frameworks, suggest which is the best and if they are worth the effort?\n"
},
{
"from": "gpt"... |
How does Google's API make cross-domain requests back to Google, when it's on your website?
| When you integrate Google APIs into your website, cross-domain requests are typically handled using a technology called **CORS (Cross-Origin Resource Sharing)**. Here's a basic overview of how this works in the context of a Google API:
### Steps for Cross-Domain Requests with Google API:
1. **Client-Side Script**: Yo... | 20,973 | [
{
"from": "human",
"value": "How does Google's API make cross-domain requests back to Google, when it's on your website?\n"
},
{
"from": "gpt",
"value": "When you integrate Google APIs into your website, cross-domain requests are typically handled using a technology called **CORS (Cross-Origin R... |
Like any responsible developer, I'd like to make sure that the sites I produce are accessible to the widest possible audience, and that includes the significant fraction of the population with some form of colour blindness.
There are many websites which offer to filter a URL you feed it, either by rendering a picture o... | Ensuring accessibility for users with color blindness is an important aspect of web development. There are various client-side solutions and browser extensions that can help you test your sites for color accessibility. Here are some options you might find useful:
### 1. **Browser Extensions**
- **Colorblindly**: This... | 19,715 | [
{
"from": "human",
"value": "Like any responsible developer, I'd like to make sure that the sites I produce are accessible to the widest possible audience, and that includes the significant fraction of the population with some form of colour blindness.\nThere are many websites which offer to filter a URL yo... |
I'm adding repeating events to a Cocoa app I'm working on. I have repeat every day and week fine because I can define these mathematically (3600*24*7 = 1 week). I use the following code to modify the date:
[NSDate dateWithTimeIntervalSinceNow:(3600*24*7*(weeks))]
I know how many months have passed since the event was ... | To create an `NSDate` object that represents a date a specific number of months in the future, you can use the `NSCalendar` class, which provides methods for date arithmetic while taking care of the different number of days in each month. Here’s how you can do that in your Cocoa application:
1. Use the `NSCalendar` cl... | 18,533 | [
{
"from": "human",
"value": "I'm adding repeating events to a Cocoa app I'm working on. I have repeat every day and week fine because I can define these mathematically (3600*24*7 = 1 week). I use the following code to modify the date:\n[NSDate dateWithTimeIntervalSinceNow:(3600*24*7*(weeks))]\n\nI know how ... |
I'm working on a small project where for the first time I want to use XML as the one and only data source...a file based store suits the need of the project.
When writing the DAL should I have all the get methods static? to aviod and "reading while file open" errors?
Should I use CacheDependency on the file?
Thx
| When working with XML as your data source for a small project, there are several considerations to keep in mind for your Data Access Layer (DAL):
### Static Methods vs. Instance Methods
1. **Static Methods**:
- Using static methods can simplify access to your data, especially if your data access logic doesn't dep... | 19,787 | [
{
"from": "human",
"value": "I'm working on a small project where for the first time I want to use XML as the one and only data source...a file based store suits the need of the project.\nWhen writing the DAL should I have all the get methods static? to aviod and \"reading while file open\" errors?\nShould ... |
Does anyone know how to change the from user when sending email using the mail command? I have looked through the man page and can not see how to do this.
We are running Redhat Linux 5.
| To change the "From" user when sending an email using the `mail` command in Linux, you typically can't set the "From" address directly using the `mail` command itself. However, you can use an alternative method to achieve this by using the `-a` option or by utilizing `sendmail` or `mailx`.
### Using `mailx`
If you ha... | 14,037 | [
{
"from": "human",
"value": "Does anyone know how to change the from user when sending email using the mail command? I have looked through the man page and can not see how to do this. \nWe are running Redhat Linux 5.\n"
},
{
"from": "gpt",
"value": "To change the \"From\" user when sending an em... |
Question
So I've recently came up with some new possible projects that would have to deal with deriving 'meaning' from text submitted and generated by users.
Natural language processing is the field that deals with these kinds of issues, and after some initial research I found the OpenNLP Hub and university collaborati... | It sounds like you're diving deep into the world of Natural Language Processing (NLP) and related technologies! Here are some resources that can help you further your exploration into deriving meaning from text:
### Research Papers and Literature
1. **"Speech and Language Processing" by Daniel Jurafsky and James H. Ma... | 20,214 | [
{
"from": "human",
"value": "Question\nSo I've recently came up with some new possible projects that would have to deal with deriving 'meaning' from text submitted and generated by users.\nNatural language processing is the field that deals with these kinds of issues, and after some initial research I found... |
I have an Apache 2 installation on Debian with mod_ssl installed. The server private key is protected by a passphase that needs to be entered on start-up. The error and access logs are subject to logrotate on a weekly basis. I find that Apache crashes with a passphrase-related error shortly after logrotate runs.
I u... | You're correct in your understanding of the issue. When `logrotate` runs, it sends a `SIGHUP` signal to the Apache process, which causes it to reload its configuration and re-read the SSL certificate and private key. If the private key is encrypted with a passphrase, Apache cannot access it without human intervention, ... | 18,574 | [
{
"from": "human",
"value": "I have an Apache 2 installation on Debian with mod_ssl installed. The server private key is protected by a passphase that needs to be entered on start-up. The error and access logs are subject to logrotate on a weekly basis. I find that Apache crashes with a passphrase-relate... |
Is there any downside or problem potential to change the Java compiler to automatically cast? In the example below the result of list.get(0) would automatically be casted to the type of the variable hi.
List list = new ArrayList();
list.add("hi");
String hi = list.get(0);
I know that generics allow you to reduce casti... | The idea of automatically casting objects in Java, particularly when retrieving elements from a collection like a `List`, raises several important considerations and potential downsides. Here are some key points to consider:
### 1. **Type Safety and Runtime Errors:**
- One of the main advantages of Java's static ty... | 14,091 | [
{
"from": "human",
"value": "Is there any downside or problem potential to change the Java compiler to automatically cast? In the example below the result of list.get(0) would automatically be casted to the type of the variable hi.\nList list = new ArrayList();\nlist.add(\"hi\");\nString hi = list.get(0);\n... |
I haven't installed Visual Studio before on my computer. However when I try to install Visual Studio 2008 Express SP1 I get an error message
"Setup has detected that this computer does not meet the requirements to install this software. These requirements must be met before you can install Microsoft Visual C++ 2008 Exp... | It sounds like you're running into a common issue that can occur during the installation of Visual Studio 2008 Express SP1, especially if there are remnants of a previous installation or an issue with the registry. Here are a few steps to help you troubleshoot and resolve the problem:
1. **Check for Previous Installat... | 18,893 | [
{
"from": "human",
"value": "I haven't installed Visual Studio before on my computer. However when I try to install Visual Studio 2008 Express SP1 I get an error message\n\"Setup has detected that this computer does not meet the requirements to install this software. These requirements must be met before yo... |
I'm getting some objects from an external library and I need to store those objects in a database. Is there a way to create the tables and relationships starting from the objects, or I have to dig into them and create migrations and models by hand?
Thanks!
Roberto
| Hi Roberto!
You have a few options for generating database tables and relationships from objects in an external library, depending on the language and framework you are using. Here are some general approaches:
### 1. **Object Relational Mapping (ORM) Tools**
Most frameworks come with ORM tools that can help automate ... | 18,648 | [
{
"from": "human",
"value": "I'm getting some objects from an external library and I need to store those objects in a database. Is there a way to create the tables and relationships starting from the objects, or I have to dig into them and create migrations and models by hand?\nThanks!\nRoberto\n"
},
{
... |
I have classes BidiParent and BidiChildList which link parents and children in a bidirectional parent-child relationship. If a child's parent is updated by e.g. the service layer, the old and new parents' children lists are automatically updated to reflect the change. Likewise, if a parent's children list is updated by... | Let's address your questions one by one:
### 1. Is this a good idea?
Implementing a bidirectional relationship in your domain model can be useful for various reasons:
- **Intuitive Navigation**: It allows for easier navigation between parents and children, making the model more intuitive and easier to work with for ... | 19,670 | [
{
"from": "human",
"value": "I have classes BidiParent and BidiChildList which link parents and children in a bidirectional parent-child relationship. If a child's parent is updated by e.g. the service layer, the old and new parents' children lists are automatically updated to reflect the change. Likewise, ... |
I want to I check whether a string is in ASCII or not.
I am aware of ord(), however when I try ord('é'), I have TypeError: ord() expected a character, but string of length 2 found. I understood it is caused by the way I built Python (as explained in ord()'s documentation).
Is there another way to check?
| Yes, you can check if a string is in ASCII without using `ord()`. One simple approach is to use the `str.encode()` method to attempt to encode the string as ASCII. If the string contains non-ASCII characters, this method will raise a `UnicodeEncodeError`. Here’s how you can implement this:
```python
def is_ascii(s):
... | 24,469 | [
{
"from": "human",
"value": "I want to I check whether a string is in ASCII or not.\nI am aware of ord(), however when I try ord('é'), I have TypeError: ord() expected a character, but string of length 2 found. I understood it is caused by the way I built Python (as explained in ord()'s documentation). \nIs... |
Can I persuade operator>> in C++ to read both a hex value AND and a decimal value? The following program demonstrates how reading hex goes wrong. I'd like the same istringstream to be able to read both hex and decimal.
#include <iostream>
#include <sstream>
int main(int argc, char** argv)
{
int result = 0;
/... | In C++, the standard stream extraction operator (`operator>>`) does not handle hexadecimal values prefixed with `0x` directly when reading integers from `std::istringstream`. However, you can modify your code to handle both hexadecimal and decimal representations of integers by manually checking the format and adjustin... | 14,043 | [
{
"from": "human",
"value": "Can I persuade operator>> in C++ to read both a hex value AND and a decimal value? The following program demonstrates how reading hex goes wrong. I'd like the same istringstream to be able to read both hex and decimal.\n#include <iostream>\n#include <sstream>\n\nint main(int a... |
I have recently been thinking about the difference between the two ways of defining an array:
int[] array
int array[]
Is there a difference?
| In Java (and several other programming languages), both `int[] array` and `int array[]` are valid ways to declare an array of integers, and they function identically. However, there are some conventions and considerations that might help you understand the differences between the two notations:
1. **Conventional Style... | 21,787 | [
{
"from": "human",
"value": "I have recently been thinking about the difference between the two ways of defining an array:\n\nint[] array\nint array[]\n\nIs there a difference?\n"
},
{
"from": "gpt",
"value": "In Java (and several other programming languages), both `int[] array` and `int array[]... |
i've noticed that plenty of games / applications (very common on mobile builds) pack numerous images into an image strip.
I figured that the advantages in this are making the program more tidy (file system - wise) and reducing (un)installation time. During the runtime of the application, the entire image strip is allo... | Using an image strip (often referred to as a sprite sheet) has several advantages that can outweigh the drawbacks you've noted, especially in the context of game development and mobile applications. Here are some of the key benefits:
1. **Reduced Draw Calls**: When rendering images, each image typically requires a sep... | 19,355 | [
{
"from": "human",
"value": "i've noticed that plenty of games / applications (very common on mobile builds) pack numerous images into an image strip. \nI figured that the advantages in this are making the program more tidy (file system - wise) and reducing (un)installation time. During the runtime of the a... |
I have several different c# worker applications that run various continuous tasks: sending emails from queue, importing new orders from website database to orders database, making database backups and restores, running data processing for OLTP -> OLAP, and other related tasks. Before, I released these as windows servic... | When deploying C# worker applications, there are several approaches you can take to balance ease of deployment, visibility into the application’s activity, and the cleanliness of your environment. Here are some considerations and potential strategies you might find helpful:
### 1. Using Windows Services with Logging:
... | 19,084 | [
{
"from": "human",
"value": "I have several different c# worker applications that run various continuous tasks: sending emails from queue, importing new orders from website database to orders database, making database backups and restores, running data processing for OLTP -> OLAP, and other related tasks. B... |
How can you avoid circular dependencies when you're designing two classes with a producer/consumer relationship? Here ListenerImpl needs a reference to Broadcaster in order to register/unregister itself, and Broadcaster needs a reference back to the Listeners in order to send messages. This example is in Java but it ca... | Avoiding circular dependencies in a producer/consumer relationship like the one you described involves decoupling the two classes so that they don't need direct references to each other during their initialization or lifecycle. Here are several strategies to achieve that:
### 1. Use a Mediator Pattern
Introduce a thi... | 18,676 | [
{
"from": "human",
"value": "How can you avoid circular dependencies when you're designing two classes with a producer/consumer relationship? Here ListenerImpl needs a reference to Broadcaster in order to register/unregister itself, and Broadcaster needs a reference back to the Listeners in order to send me... |
In a related question I asked about creating a generic container. Using polymorphic templates seems like the right way to go.
However, I can't for the life of me figure out how a destructor should be written. I want the owner of the memory allocated to be the containers even if the example constructor takes in an array... | To achieve a generic container that owns its memory and can destruct itself when no longer needed, you can use templates and polymorphism, but it's important to keep in mind how memory ownership and object lifetime should be managed.
Here's a simplified approach to creating a container class that manages memory owner... | 16,859 | [
{
"from": "human",
"value": "In a related question I asked about creating a generic container. Using polymorphic templates seems like the right way to go.\nHowever, I can't for the life of me figure out how a destructor should be written. I want the owner of the memory allocated to be the containers even if... |
YUI Compressor does not accept wildcard parameters, so I cannot run it like this:
C:>java -jar yuicompressor.jar *.js
But I have over 500 files and would rather not have to create a batch file like this:
C:>java -jar yuicompressor.jar file1.js -o deploy\file1.js
C:>java -jar yuicompressor.jar file2.js -o deploy\file... | Yes, you can automate the process of compressing multiple JavaScript files using a command-line approach without having to create a batch file manually for each file. You can use a simple command in the Windows Command Prompt to achieve this using a `for` loop.
Here's a one-liner command that will help you compress al... | 23,512 | [
{
"from": "human",
"value": "YUI Compressor does not accept wildcard parameters, so I cannot run it like this: \nC:>java -jar yuicompressor.jar *.js\n\nBut I have over 500 files and would rather not have to create a batch file like this:\nC:>java -jar yuicompressor.jar file1.js -o deploy\\file1.js\nC:>java... |
Typically you will find STL code like this:
for (SomeClass::SomeContainer::iterator Iter = m_SomeMemberContainerVar.begin(); Iter != m_SomeMemberContainerVar.end(); ++Iter)
{
}
But we actually have the recommendation to write it like this:
SomeClass::SomeContainer::iterator Iter = m_SomeMemberContainerVar.begin();
Som... | You've raised some important points about loop constructs in C++. Let's break down the pros and cons of each style you've presented.
### First Style
```cpp
for (SomeClass::SomeContainer::iterator Iter = m_SomeMemberContainerVar.begin(); Iter != m_SomeMemberContainerVar.end(); ++Iter) {
}
```
#### Pros:
1. **Limited S... | 17,478 | [
{
"from": "human",
"value": "Typically you will find STL code like this:\nfor (SomeClass::SomeContainer::iterator Iter = m_SomeMemberContainerVar.begin(); Iter != m_SomeMemberContainerVar.end(); ++Iter)\n{\n}\n\nBut we actually have the recommendation to write it like this:\nSomeClass::SomeContainer::iterat... |
I'm on SQL Server 2005 and I am getting an error which I am pretty sure should not be getting.
Msg 512, Level 16, State 1, Procedure spGetSavedSearchesByAdminUser, Line 8 Subquery
returned more than 1 value. This is not permitted when the subquery
follows =, !=, <, <= , >, >= or when the subquery is used as an expressi... | The error you're encountering is due to the use of a `CASE` statement within the `IN` clause. When `@bitQuickSearch` is not `1`, your `ELSE` clause attempts to return the result of a subquery, which can return multiple rows. This is not allowed in an `IN` clause, where only a list of values should be returned.
To fix ... | 22,184 | [
{
"from": "human",
"value": "I'm on SQL Server 2005 and I am getting an error which I am pretty sure should not be getting.\nMsg 512, Level 16, State 1, Procedure spGetSavedSearchesByAdminUser, Line 8 Subquery\nreturned more than 1 value. This is not permitted when the subquery\nfollows =, !=, <, <= , >, >=... |
Since Python is a dynamic, interpreted language you don't have to compile your code before running it. Hence, it's very easy to simply write your code, run it, see what problems occur, and fix them. Using hotkeys or macros can make this incredibly quick.
So, because it's so easy to immediately see the output of your pr... | Using a debugger can be incredibly helpful in various situations where traditional print statements or manual checking might not be enough or can become cumbersome. Here are some scenarios in which using a debugger would be beneficial:
1. **Complex Data Structures**: When you're dealing with nested data structures (li... | 20,183 | [
{
"from": "human",
"value": "Since Python is a dynamic, interpreted language you don't have to compile your code before running it. Hence, it's very easy to simply write your code, run it, see what problems occur, and fix them. Using hotkeys or macros can make this incredibly quick.\nSo, because it's so eas... |
Are there any professional Combobox controls (dropdown list with autosuggestion) based on the jQuery library?
It should be able to handle large datasets and have some skinning options. A multi-column result list would be great too. I'm working with ASP.NET, but it's a not a problem if I had to write a wrapper for it.
... | Yes, there are several professional Combobox controls based on the jQuery library that can handle large datasets and offer features like autosuggestion, multi-column results, and customization options. Here are some popular options you can consider:
### 1. **Select2**
- **Website**: [Select2](https://select2.org/)
- *... | 18,523 | [
{
"from": "human",
"value": "Are there any professional Combobox controls (dropdown list with autosuggestion) based on the jQuery library?\nIt should be able to handle large datasets and have some skinning options. A multi-column result list would be great too. I'm working with ASP.NET, but it's a not a pro... |
I have Windows Vista MCML app, and I need to figure out the current name of the file playing.
The Media Center SDK alludes to using MediaMetadata["Title"] to get this information, unfortunately this does not work with playlists (.wpl) files as there is no method for getting the position in the playlist.
| In Windows Vista Media Center, if you're working with a Media Center Markup Language (MCML) application and trying to get the current media file's name playing from a playlist (.wpl), you may encounter some limitations since the MediaMetadata doesn't always provide direct access to the underlying media files within pla... | 20,765 | [
{
"from": "human",
"value": "I have Windows Vista MCML app, and I need to figure out the current name of the file playing.\nThe Media Center SDK alludes to using MediaMetadata[\"Title\"] to get this information, unfortunately this does not work with playlists (.wpl) files as there is no method for getting t... |
MySQL's explain output is pretty straightforward. PostgreSQL's is a little more complicated. I haven't been able to find a good resource that explains it either.
Can you describe what exactly explain is saying or at least point me in the direction of a good resource?
| Certainly! Understanding the `EXPLAIN` output in PostgreSQL can be a bit more intricate than in MySQL, but once you grasp the key elements, it becomes more manageable. The `EXPLAIN` command provides insight into how the PostgreSQL query planner intends to execute a given SQL statement. It shows the execution plan, incl... | 17,144 | [
{
"from": "human",
"value": "MySQL's explain output is pretty straightforward. PostgreSQL's is a little more complicated. I haven't been able to find a good resource that explains it either.\nCan you describe what exactly explain is saying or at least point me in the direction of a good resource?\n"
},
... |
I'm trying to develop an app using turbogears and sqlalchemy.
There is already an existing app using kinterbasdb directly under mod_wsgi on the same server.
When both apps are used, neither seems to recognize that kinterbasdb is already initialized
Is there something non-obvious I am missing about using sqlalchemy and ... | Using TurboGears with SQLAlchemy in one application while having another application that directly uses `kinterbasdb` can lead to issues, especially if both are trying to manage database connections independently. Here are some suggestions to help ensure that only one instance of `kinterbasdb` gets initialized and that... | 18,656 | [
{
"from": "human",
"value": "I'm trying to develop an app using turbogears and sqlalchemy.\nThere is already an existing app using kinterbasdb directly under mod_wsgi on the same server.\nWhen both apps are used, neither seems to recognize that kinterbasdb is already initialized\nIs there something non-obvi... |
Is it possible to pass a App setting "string" in the web.config to a Common C# class?
| Yes, it is possible to pass an application setting from the `web.config` file to a common C# class in an ASP.NET application. You can access the settings defined in the `web.config` file using the `ConfigurationManager` class in the `System.Configuration` namespace.
Here's a step-by-step guide on how to do this:
1. *... | 21,370 | [
{
"from": "human",
"value": "Is it possible to pass a App setting \"string\" in the web.config to a Common C# class?\n"
},
{
"from": "gpt",
"value": "Yes, it is possible to pass an application setting from the `web.config` file to a common C# class in an ASP.NET application. You can access the s... |
I hope not everyone is using Rational Purify.
So what do you do when you want to measure:
time taken by a function
peak memory usage
code coverage
At the moment, we do it manually [using log statements with timestamps and another script to parse the log and output to excel. phew...)
What would you recommend? Pointin... | For measuring time taken by a function, peak memory usage, and code coverage in a plain C environment on a proprietary mobile platform, you have several options. Below are some tools and techniques you could consider:
### 1. **Measuring Time Taken by a Function**
#### Options:
- **Manual Timing with `clock()` or `get... | 19,214 | [
{
"from": "human",
"value": "I hope not everyone is using Rational Purify.\nSo what do you do when you want to measure:\n\ntime taken by a function\npeak memory usage \ncode coverage\n\nAt the moment, we do it manually [using log statements with timestamps and another script to parse the log and output to e... |
Short of cutting and pasting, is there a way to sort the methods in my classes in Visual Studio 2008? I like orderly code.
| In Visual Studio 2008, there isn’t a built-in feature specifically designed to automatically sort methods within a class. However, there are a few techniques and tools you can use to organize your code:
1. **Code Formatting**: While it won't sort your methods, you can use code formatting features (`Ctrl + K, Ctrl + D`... | 20,089 | [
{
"from": "human",
"value": "Short of cutting and pasting, is there a way to sort the methods in my classes in Visual Studio 2008? I like orderly code.\n"
},
{
"from": "gpt",
"value": "In Visual Studio 2008, there isn’t a built-in feature specifically designed to automatically sort methods withi... |
Hey All, I have been working on this problem for a while and the usual google searches are not helping :(
I have a production database in SQL 2000. I want to copy it over the top of a training database to refresh it. I want this to be something that is scheduled to happen once a week to keep the training database up-to... | This error typically indicates that the DTS package is trying to access an object (in this case, a view named `vwEstAssetStationAddress`) that does not exist in the destination database at the time it is trying to copy it. Here are several steps you can take to troubleshoot and potentially resolve the issue:
1. **Chec... | 19,921 | [
{
"from": "human",
"value": "Hey All, I have been working on this problem for a while and the usual google searches are not helping :(\nI have a production database in SQL 2000. I want to copy it over the top of a training database to refresh it. I want this to be something that is scheduled to happen once ... |
For example if I'm working on Visual Studio 2008, I want the values devenv and 2008 or 9.
The version number is very important...
| In Visual Studio, the executable file for the IDE is called `devenv.exe`. To identify the version of Visual Studio you are using, you can check the following:
1. **Executable Name**: The executable file for Visual Studio is `devenv.exe`.
2. **Version Number**: The version number for Visual Studio 2008 is `9.0`. You... | 21,492 | [
{
"from": "human",
"value": "For example if I'm working on Visual Studio 2008, I want the values devenv and 2008 or 9.\nThe version number is very important...\n"
},
{
"from": "gpt",
"value": "In Visual Studio, the executable file for the IDE is called `devenv.exe`. To identify the version of Vi... |
What options are there for serialization when returning instances of custom classes from a WebService?
We have some classes with a number of child collection class properties as well as other properties that may or may not be set depending on usage. These objects are returned from an ASP.NET .asmx WebService decorated... | The issue you are encountering with JSON serialization in an ASP.NET `.asmx` WebService is indeed a common challenge, especially when you need to handle custom classes with collections and other complexities. While your approach using a generic `JavaScriptConverter` has provided a workaround, there are several other op... | 19,332 | [
{
"from": "human",
"value": "What options are there for serialization when returning instances of custom classes from a WebService?\nWe have some classes with a number of child collection class properties as well as other properties that may or may not be set depending on usage. These objects are returned ... |
I have a treeview with nodes like this: "Foo (1234)", and want to allow the user to rename the nodes, but only the Foo part, without (1234). I first tried to change the node text in BeforeLabelEdit like this:
private void treeView1_BeforeLabelEdit(object sender, NodeLabelEditEventArgs e)
{
e.Node.Text = "Foo";
}
B... | The issue you're encountering is that when you set the `Text` property of a node in the `MouseClick` event, it effectively finalizes the edit before it even begins, preventing the text box from appearing.
A better approach would be to intercept the editing process without modifying the node's text directly. You can st... | 20,742 | [
{
"from": "human",
"value": "I have a treeview with nodes like this: \"Foo (1234)\", and want to allow the user to rename the nodes, but only the Foo part, without (1234). I first tried to change the node text in BeforeLabelEdit like this:\nprivate void treeView1_BeforeLabelEdit(object sender, NodeLabelEdit... |
Here's a link to Windows documentation.
Basically I would like to get similar data, but on Linux. If not all is possible, then at least some parts.
| Sure! While I can't access links or view specific documentation directly, I can provide you with information about Linux and its features that might be similar to what you would find in Windows documentation. Below are some key areas where I can offer insights about Linux:
### 1. **File System**
- **File Structure*... | 18,664 | [
{
"from": "human",
"value": "Here's a link to Windows documentation.\nBasically I would like to get similar data, but on Linux. If not all is possible, then at least some parts.\n"
},
{
"from": "gpt",
"value": "Sure! While I can't access links or view specific documentation directly, I can provi... |
I would really like to use SpringSource dm Server, but our customer requires us to run our apps on their application server (Websphere). Is there a way to integrate SpringSource dm Server with other application servers? At least dm Server is build on OSGi, and many other application servers (including Websphere) are ba... | Integrating SpringSource dm Server (now known as SpringSource OSGi Enterprise) with another application server like WebSphere is a complex task, but it is theoretically possible due to the OSGi foundation shared by both platforms. However, there are several factors to consider and potential challenges to overcome:
1. ... | 22,919 | [
{
"from": "human",
"value": "I would really like to use SpringSource dm Server, but our customer requires us to run our apps on their application server (Websphere). Is there a way to integrate SpringSource dm Server with other application servers? At least dm Server is build on OSGi, and many other applica... |
I'm working on a Win32 control. There could be hundreds of "items" on this control. Those are not windows, but internal objects (eg: rectangles). Depending on the mouse position I want to change the mouse cursor. That is fine, I can use WM_SETCURSOR.
At the same time based on mouse move I want to display a status bar w... | In the Win32 API, `WM_SETCURSOR` and `WM_MOUSEMOVE` are not guaranteed to always occur in pairs; they can be triggered independently based on different events. However, there are some important details to consider about their behavior:
1. **`WM_MOUSEMOVE`**: This message is sent to a window when the mouse moves within... | 18,053 | [
{
"from": "human",
"value": "I'm working on a Win32 control. There could be hundreds of \"items\" on this control. Those are not windows, but internal objects (eg: rectangles). Depending on the mouse position I want to change the mouse cursor. That is fine, I can use WM_SETCURSOR.\nAt the same time based on... |
What is the best client side http library to upload multiple files? If it can handle directories that's a huge bonus. I'm looking for something that is open source or free. I'm looking for something like FTP, but that works over http, through the browser. Uploading multiple files through a normal HTML 4.x form is a bit... | When it comes to client-side HTTP libraries for uploading multiple files, especially with the added requirement of handling directories, there are a few popular options that stand out. Below are some libraries that are open-source or free and can facilitate the file upload process effectively.
### 1. **Dropzone.js**
-... | 18,723 | [
{
"from": "human",
"value": "What is the best client side http library to upload multiple files? If it can handle directories that's a huge bonus. I'm looking for something that is open source or free. I'm looking for something like FTP, but that works over http, through the browser. Uploading multiple file... |
I'm trying to place 4 of my image containers into a new pane, having a total of 16 images. The jQuery below is what I came up with to do it. The first pane comes out correctly with 4 images in it. But the second has 4 images, plus the 3rd pane. And the 3rd pane has 4 images plus the 4th pane. I don't know exactly ... | It looks like you're encountering issues with your jQuery logic related to the selection of elements and how you're using the `:gt()` and `:lt()` selectors. Specifically, the way you've written your jQuery is causing overlapping ranges, which leads to the nesting behavior you're observing.
The issue lies in how `:lt(... | 16,894 | [
{
"from": "human",
"value": "I'm trying to place 4 of my image containers into a new pane, having a total of 16 images. The jQuery below is what I came up with to do it. The first pane comes out correctly with 4 images in it. But the second has 4 images, plus the 3rd pane. And the 3rd pane has 4 images ... |
I can hookup to AppDomain.CurrentDomain.UnhandledException to log exceptions from background threads, but how do I prevent them terminating the runtime?
| When using `AppDomain.CurrentDomain.UnhandledException` to log exceptions from background threads, it's important to note that while this event provides a way to log unhandled exceptions, it does not prevent the application from terminating. Unhandled exceptions in background threads will still lead to the termination ... | 19,966 | [
{
"from": "human",
"value": "I can hookup to AppDomain.CurrentDomain.UnhandledException to log exceptions from background threads, but how do I prevent them terminating the runtime?\n"
},
{
"from": "gpt",
"value": "When using `AppDomain.CurrentDomain.UnhandledException` to log exceptions from ba... |
Is it possible to provide WCF with a custom proxy address and custom credentials?
I've found this answer on stackoverflow: How to set proxy with credentials to generated WCF client?, but I've got a complication, the service I'm authenticating against uses its own authentication, so I've got to use two sets of credenti... | When using WCF (Windows Communication Foundation) with a custom proxy address and custom credentials for both the proxy and the service, you will need to set the proxy credentials and the service credentials separately.
Here's how you can do this:
1. **Set the Proxy Address and Proxy Credentials**: You can set the `P... | 20,626 | [
{
"from": "human",
"value": "Is it possible to provide WCF with a custom proxy address and custom credentials? \nI've found this answer on stackoverflow: How to set proxy with credentials to generated WCF client?, but I've got a complication, the service I'm authenticating against uses its own authenticatio... |
Is it possible to prevent stack allocation of an object and only allow it to be instiated with 'new' on the heap?
| Yes, it is possible to prevent stack allocation of an object in C++ and ensure that it can only be instantiated on the heap using `new`. You can achieve this by making the constructor of the class private or protected and providing a static method that creates the object using `new`. Here's how you can do it:
### Exam... | 21,770 | [
{
"from": "human",
"value": "Is it possible to prevent stack allocation of an object and only allow it to be instiated with 'new' on the heap?\n"
},
{
"from": "gpt",
"value": "Yes, it is possible to prevent stack allocation of an object in C++ and ensure that it can only be instantiated on the h... |
My friend accidentally bought a laptop with Windows Vista Home Basic Edition. He figured out how to install IIS on it, but it doesn't seem to have either the management console or the admin tools. Is there any way for him to configure a site or import an IIS 6 config file?
EDIT: "Windows Vista Home Edition" --> "Window... | Windows Vista Home Basic Edition has several limitations compared to other versions of Windows Vista, particularly regarding server features and management tools. Here’s what your friend can do to configure IIS on Windows Vista Home Basic Edition:
### Configuring IIS on Windows Vista Home Basic Edition
1. **Use Comma... | 19,079 | [
{
"from": "human",
"value": "My friend accidentally bought a laptop with Windows Vista Home Basic Edition. He figured out how to install IIS on it, but it doesn't seem to have either the management console or the admin tools. Is there any way for him to configure a site or import an IIS 6 config file?\nEDIT... |
I have been looking at the Model-View-ViewModel pattern that is suggested by several people out there (especially John Gossman, take a look at this post and this podcast), but what other patterns (if any) have people used and liked ... and where do they add value?
I have also stumbled across:
Model-View-ViewModel
Pres... | The Model-View-ViewModel (MVVM) pattern is indeed widely adopted in WPF and other XAML-based applications, as it helps in separating concerns, enabling better testability, and facilitating a more maintainable codebase. However, there are several other design patterns that developers use in different contexts and scenar... | 15,994 | [
{
"from": "human",
"value": "I have been looking at the Model-View-ViewModel pattern that is suggested by several people out there (especially John Gossman, take a look at this post and this podcast), but what other patterns (if any) have people used and liked ... and where do they add value?\nI have also s... |
I have an index.php file which has to process many different file types. How do I guess the filetype based on the REQUEST_URI?
If I request http://site/image.jpg, and all requests redirect through index.php, which looks like this
<?php
include('/www/site'.$_SERVER['REQUEST_URI']);
?>
How would I make that work corr... | To process different file types based on the `REQUEST_URI` in your `index.php` file, it's a good idea to handle file extensions for more straightforward file type identification. However, you need to also ensure that your approach is secure and prevents potential vulnerabilities, such as directory traversal attacks.
H... | 20,118 | [
{
"from": "human",
"value": "I have an index.php file which has to process many different file types. How do I guess the filetype based on the REQUEST_URI?\nIf I request http://site/image.jpg, and all requests redirect through index.php, which looks like this\n<?php\n include('/www/site'.$_SERVER['REQUEST... |
In handling a WM_GETMINMAXINFO message, I attempt to alter the parameter MINMAXINFO structure by changing the ptMaxSize. It doesn't seem to have any effect. When I receive the WM_SIZE message, I always get the same value, no matter whether I increase or decrease the ptMaxSize in the WM_GETMINMAXINFO.
| When handling the `WM_GETMINMAXINFO` message in a Windows application, you indeed modify the `MINMAXINFO` structure to control the sizing behavior of your window. However, there are a few common issues to keep in mind that might explain why changes to `ptMaxSize` don't seem to take effect when you receive the `WM_SIZE`... | 19,259 | [
{
"from": "human",
"value": "In handling a WM_GETMINMAXINFO message, I attempt to alter the parameter MINMAXINFO structure by changing the ptMaxSize. It doesn't seem to have any effect. When I receive the WM_SIZE message, I always get the same value, no matter whether I increase or decrease the ptMaxSize ... |
I have trouble. One of the users of an application I'm developing is occasionally, but regularly, experiencing an application hang.
When this happens, we find an entry with a source of "Application Hang" in the machine's Event Log, with the informative message "Hanging application [my app], version [the right version]... | It sounds like you're making progress in identifying and addressing the source of the application hang. Let’s break down your specific and general questions and provide additional insights.
### Specific Question:
**Would a method running on a non-UI thread that hangs kill the whole application?**
In general, if a non... | 18,913 | [
{
"from": "human",
"value": "I have trouble. One of the users of an application I'm developing is occasionally, but regularly, experiencing an application hang.\nWhen this happens, we find an entry with a source of \"Application Hang\" in the machine's Event Log, with the informative message \"Hanging appl... |
Have any well-documented or open source projects targeted iPhone, Blackberry, and Android ? Are there other platforms which are better-suited to such an endeavor ?
Note that I am particularly asking about client-side software, not web apps, though any information about the difficulties of using web apps across multipl... | Developing client-side applications that target multiple mobile platforms such as iPhone (iOS), BlackBerry, and Android can be quite challenging due to the differences in development environments, programming languages, and user interface guidelines for each platform. However, several well-documented and open-source pr... | 15,826 | [
{
"from": "human",
"value": "Have any well-documented or open source projects targeted iPhone, Blackberry, and Android ? Are there other platforms which are better-suited to such an endeavor ? \nNote that I am particularly asking about client-side software, not web apps, though any information about the dif... |
I have a website which uses the custom 404 error handling in PHP/Apache to display specific pages.
e.g. http://metachat.org/recent
I've a feeling this is a bad way of doing this, but it's code I inherited...
Although the page displays correctly on most browsers, I'm getting a situation where AVG Anti-Virus is hijackin... | When handling custom 404 error pages in PHP and Apache, the way you are doing it now—sending an HTTP 200 status code while still leaving the 404 response in the headers—is indeed problematic, especially for security software like AVG that might be monitoring for certain status codes.
### Why this is a Problem
The firs... | 19,418 | [
{
"from": "human",
"value": "I have a website which uses the custom 404 error handling in PHP/Apache to display specific pages.\ne.g. http://metachat.org/recent \nI've a feeling this is a bad way of doing this, but it's code I inherited...\nAlthough the page displays correctly on most browsers, I'm getting ... |
I work on a Webproject using jQuery and CakePHP. I use jeditable as an inplace edit plugin. For textareas I extend it using the autogrow plugin.
Well, I have two problems with this:
First, autogrow does only work on Firefox, not on IE, Safari, Opera and Chrome.
Second, I need a callback event for jeditable, when its f... | Your situation with jEditable and autogrow textareas is a common challenge in web development. Here's how you can address your two issues:
### 1. Cross-Browser Compatibility for AutoGrow
If the autogrow plugin you're using only works in Firefox, you might consider using a different library that has better cross-brows... | 20,698 | [
{
"from": "human",
"value": "I work on a Webproject using jQuery and CakePHP. I use jeditable as an inplace edit plugin. For textareas I extend it using the autogrow plugin.\nWell, I have two problems with this:\n\nFirst, autogrow does only work on Firefox, not on IE, Safari, Opera and Chrome.\nSecond, I ne... |
I want to use data binding with an XML document to populate a simple form that shows details about a list of people. I've got it all set up and working like so right now:
<Window x:Class="DataBindingSample.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/w... | The issue you are facing is indeed related to the use of XML namespaces and the way the `XmlDataProvider` handles the context for bindings with XPath expressions. When you define your `DataContext` using a `XmlDataProvider` that includes namespaces, the `XPath` bindings might not resolve correctly when they are being u... | 17,263 | [
{
"from": "human",
"value": "I want to use data binding with an XML document to populate a simple form that shows details about a list of people. I've got it all set up and working like so right now:\n<Window x:Class=\"DataBindingSample.Window1\"\nxmlns=\"http://schemas.microsoft.com/winfx/2006/xaml/present... |
Consider a normal customer-orders application based on MVC pattern using WinForms.
The view part has grown too much (over 4000 files) and it needs to be split into smaller ones.
For this example we are going to use 3 projects for the view part:
Main - has dependencies to the other 2 projects. Instantiates the forms w... | To avoid cyclic dependencies between the Customers and Orders projects in your WinForms application while adhering to the MVC architecture, you can introduce a few design patterns and practices that minimize the need for direct references between these two projects. Here are some approaches you can consider:
### 1. Us... | 16,613 | [
{
"from": "human",
"value": "Consider a normal customer-orders application based on MVC pattern using WinForms.\nThe view part has grown too much (over 4000 files) and it needs to be split into smaller ones.\n\nFor this example we are going to use 3 projects for the view part:\n\nMain - has dependencies to ... |
Aspell-net is a port of the GNU Aspell for .Net Framework. The library itself is open source, and is under the LGPL license, but the english dictionary for aspell is mentioned as copyrighted on the sourceforge.net project home page at http://aspell-net.sourceforge.net/
Did any of you guys use aspell-net before? and wha... | When working with Aspell-net or any open-source library that has licensing concerns, it's essential to understand both the LGPL license under which the library is released and the copyright status of the dictionary you plan to use.
1. **Aspell-net License (LGPL)**: The LGPL (Lesser General Public License) allows you t... | 22,829 | [
{
"from": "human",
"value": "Aspell-net is a port of the GNU Aspell for .Net Framework. The library itself is open source, and is under the LGPL license, but the english dictionary for aspell is mentioned as copyrighted on the sourceforge.net project home page at http://aspell-net.sourceforge.net/\nDid any ... |
When designing business objects I have tried several different methods of writing the data access layer. Some have worked out better than others but I have always felt there must be a "better" way.
I would really just like to see the different ways people have handled the DAL in different situations and their opinon ... | Designing a Data Access Layer (DAL) can indeed be challenging, and the choice of approach often depends on various factors, such as the size and complexity of the application, team expertise, and specific business requirements. Here are several common techniques for implementing a DAL, along with their pros and cons ba... | 17,428 | [
{
"from": "human",
"value": "When designing business objects I have tried several different methods of writing the data access layer. Some have worked out better than others but I have always felt there must be a \"better\" way. \nI would really just like to see the different ways people have handled the D... |
I have the following arrays in PHP (okay they are a bit bigger but the idea is what counts).
$array1 = array(1 => 'a', 2 => 'b');
$array2 = array(3 => 'c', 4 => 'd');
Essentially I want to combine the two arrays as if it were something like this
$array3 = array(1 => 'a', 2 => 'b', 3 => 'c', 4 => 'd');
Thanks
| In PHP, you can combine two arrays into one using the `array_merge()` function. This function merges the arrays and preserves the keys from the first array while appending the second array. If the keys of the second array are different from the first, they will be added sequentially. Here’s how you can combine your `$a... | 24,408 | [
{
"from": "human",
"value": "I have the following arrays in PHP (okay they are a bit bigger but the idea is what counts).\n$array1 = array(1 => 'a', 2 => 'b');\n$array2 = array(3 => 'c', 4 => 'd');\n\nEssentially I want to combine the two arrays as if it were something like this\n$array3 = array(1 => 'a', 2... |
I'm setting up an online ordering system but I'm in Australia and for international customers I'd like to show prices in US dollars or Euros so they don't have to make the mental effort to convert from Australian dollars.
Does anyone know if I can pull up to date exchange rates off the net somewhere in an easy-to-parse... | Yes, you can obtain up-to-date exchange rates from various APIs that provide currency conversion data in a format that can be easily accessed by your PHP script. Here are a few popular options:
1. **ExchangeRate-API**:
- Website: [exchangerate-api.com](https://www.exchangerate-api.com/)
- They offer a free tier ... | 20,903 | [
{
"from": "human",
"value": "I'm setting up an online ordering system but I'm in Australia and for international customers I'd like to show prices in US dollars or Euros so they don't have to make the mental effort to convert from Australian dollars.\nDoes anyone know if I can pull up to date exchange rates... |
I am relatively new to matchers. I am toying around with hamcrest in combination with JUnit and I kinda like it.
Is there a way, to state that one of multiple choices is correct?
Something like
assertThat( result, is( either( 1, or( 2, or( 3 ) ) ) ) ) //does not work in hamcrest
The method I am testing returns one ele... | In Hamcrest, you can achieve this by using the `anyOf` matcher, which allows you to specify multiple acceptable values. The `anyOf` matcher evaluates to true if any of the specified matchers match. Here's how you can use it in your test:
```java
import static org.hamcrest.MatcherAssert.assertThat;
import static org.ha... | 23,882 | [
{
"from": "human",
"value": "I am relatively new to matchers. I am toying around with hamcrest in combination with JUnit and I kinda like it.\nIs there a way, to state that one of multiple choices is correct?\nSomething like\nassertThat( result, is( either( 1, or( 2, or( 3 ) ) ) ) ) //does not work in hamcr... |
I would like to have the same editor available on all of the platforms I frequent.
Emacs and Vi are not desired solutions.
| If you're looking for a text editor that is consistent across multiple platforms but want to avoid Emacs and Vi, here are some popular options you can consider:
1. **Visual Studio Code (VS Code)**:
- Available on Windows, macOS, and Linux.
- Highly extensible with a wide range of plugins.
- Features like Inte... | 21,918 | [
{
"from": "human",
"value": "I would like to have the same editor available on all of the platforms I frequent.\nEmacs and Vi are not desired solutions.\n"
},
{
"from": "gpt",
"value": "If you're looking for a text editor that is consistent across multiple platforms but want to avoid Emacs and V... |
Not really a c/c++ person so I was hoping someone could direct me to the files that contain the main calculations of the game?
I am specifically interested in how things are calculated when deciding if the person 'wins' or 'loses' (generally speaking) during events like running/standing/etc.
In other words, winning/los... | To help you locate the files that contain the main calculations for win/loss conditions in a C/C++ game, I can guide you on how to approach this task. Typically, the logic behind game mechanics such as win/loss conditions is encapsulated in a few key areas of the codebase. Here are some common steps and places you shou... | 23,567 | [
{
"from": "human",
"value": "Not really a c/c++ person so I was hoping someone could direct me to the files that contain the main calculations of the game?\nI am specifically interested in how things are calculated when deciding if the person 'wins' or 'loses' (generally speaking) during events like running... |
I don't need a Link but rather only the href= part of the ActionLink.
But if I call Html.ActionLink(...) I get a back.
Is there a way to just return the URL of the Action while not getting the ?
| In ASP.NET MVC, if you want to get the URL from an `ActionLink` without rendering the full link (i.e., without getting the HTML anchor tag), you can use the `Url.Action` method. This method generates the URL for a specific action and controller, and it returns a string containing the URL instead of rendering it as an H... | 21,005 | [
{
"from": "human",
"value": "I don't need a Link but rather only the href= part of the ActionLink.\nBut if I call Html.ActionLink(...) I get a back. \nIs there a way to just return the URL of the Action while not getting the ?\n"
},
{
"from": "gpt",
"value": "In ASP.NET MVC, if you want to get ... |
I'm looking to add localization to a web site (asp.net /c# if that makes a difference) with a minimum of effort. I've looked at tools like wiztom multilizer and I am curious as to others experience with them.
Have you used tools like these successfully and if so, what would you do differently?
| Adding localization to a website can indeed be a complex task, but there are tools and strategies that can help simplify the process. Here are some thoughts based on general experience with localization tools, including Wizdom Multilizer, and other approaches you might consider.
### Experience with Localization Tools
... | 18,907 | [
{
"from": "human",
"value": "I'm looking to add localization to a web site (asp.net /c# if that makes a difference) with a minimum of effort. I've looked at tools like wiztom multilizer and I am curious as to others experience with them. \nHave you used tools like these successfully and if so, what would yo... |
Navision 5.0 includes a feature to export to Word or Excel. Is it possible to make this work with OpenOffice.org Writer or Calc instead? If so, what has to be done to set it up?
I have been told by my Navision reseller that the feature works best with Office 2007, and export to Excel 2003 works. No mention of Office... | Navision (now known as Microsoft Dynamics NAV) does offer export functionalities that are primarily designed to work with Microsoft Office applications. While it is possible to use OpenOffice.org Writer and Calc to open Microsoft Office files, the direct integration may not work as seamlessly as with Microsoft Office i... | 18,948 | [
{
"from": "human",
"value": "Navision 5.0 includes a feature to export to Word or Excel. Is it possible to make this work with OpenOffice.org Writer or Calc instead? If so, what has to be done to set it up?\nI have been told by my Navision reseller that the feature works best with Office 2007, and export ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.