instruction stringlengths 14 27.6k | completion stringlengths 3 38.3k | __original_row_idx int64 0 50k | conversations listlengths 2 2 |
|---|---|---|---|
There has been a flurry of updates released to Microsoft's Silverlight over the past couple of months (Silverlight 2 beta 2 runtime + dev tools, RC0 + dev tools which broke beta 2 apps), and recently Microsoft has released the RTM.
I have been trying (unsuccessfully) to integrate Sharepoint 2007 and Silverlight. Many o... | Integrating Silverlight 2.0 (RTM) with SharePoint Server 2007 involves a series of steps to ensure that your Silverlight application can be hosted within a SharePoint web part. Below are the steps to help you get started with this integration:
### Prerequisites
1. **Silverlight 2.0 SDK**: Ensure that you have the Sil... | 33,762 | [
{
"from": "human",
"value": "There has been a flurry of updates released to Microsoft's Silverlight over the past couple of months (Silverlight 2 beta 2 runtime + dev tools, RC0 + dev tools which broke beta 2 apps), and recently Microsoft has released the RTM.\nI have been trying (unsuccessfully) to integra... |
I have a big lump of binary data in a char[] array which I need to interpret as an array of packed 6-bit values.
I could sit down and write some code to do this but I'm thinking there has to be a good extant class or function somebody has written already.
What I need is something like:
int get_bits(char* data, unsigned... | If you want to interpret binary data in a `char[]` array as an array of packed 6-bit values, you can implement a function like `get_bits` as you described. However, you also mentioned looking for existing functions or libraries that could simplify this task. While there might not be a direct pre-built function specific... | 31,627 | [
{
"from": "human",
"value": "I have a big lump of binary data in a char[] array which I need to interpret as an array of packed 6-bit values.\nI could sit down and write some code to do this but I'm thinking there has to be a good extant class or function somebody has written already.\nWhat I need is someth... |
How can I convert a DTD to a Schema as part of a Maven build?
Specifically, I am looking for a Maven plugin to which I can give the URL to a DTD and it will generate an XML Schema Definition file.
Failing a good Maven plugin, perhaps I can embed an ANT task into my Maven build
| To convert a DTD (Document Type Definition) to an XML Schema (XSD) during a Maven build, you can use the Apache XML Commons JARs in conjunction with Apache Ant or use a dedicated Maven plugin that facilitates this process.
### Option 1: Maven Plugin with Ant Task
You can embed an Ant task within your Maven build usin... | 29,545 | [
{
"from": "human",
"value": "How can I convert a DTD to a Schema as part of a Maven build?\nSpecifically, I am looking for a Maven plugin to which I can give the URL to a DTD and it will generate an XML Schema Definition file.\nFailing a good Maven plugin, perhaps I can embed an ANT task into my Maven build... |
I created an ASMX file with a code behind file. It's working fine, but it is outputting XML.
However, I need it to output JSON. The ResponseFormat configuration doesn't seem to work. My code-behind is:
[System.Web.Script.Services.ScriptService]
public class _default : System.Web.Services.WebService {
[WebMethod]
... | To enable your ASMX web service to return JSON instead of XML, you need to ensure a few things are set up correctly in your code. Although you've added the `ResponseFormat` attribute to your method, the ASMX service defaults to XML serialization unless specified otherwise.
Here's what you need to do to return JSON:
1... | 31,155 | [
{
"from": "human",
"value": "I created an ASMX file with a code behind file. It's working fine, but it is outputting XML.\nHowever, I need it to output JSON. The ResponseFormat configuration doesn't seem to work. My code-behind is:\n[System.Web.Script.Services.ScriptService]\npublic class _default : System.... |
What's the best way to determine if the version of the JRE installed on a machine is high enough for the application which the user wants to run? Is there a way of doing it using java-only stuff? I'd like the solution to work on Windows/Linux/MacOSX - if the JRE version is too low a message should be displayed. Current... | To determine if the version of the Java Runtime Environment (JRE) installed on a machine is high enough for your application, you can use Java's built-in capabilities. The recommended approach is to check the version programmatically at the start of your application. This way, you can gracefully inform the user if thei... | 31,957 | [
{
"from": "human",
"value": "What's the best way to determine if the version of the JRE installed on a machine is high enough for the application which the user wants to run? Is there a way of doing it using java-only stuff? I'd like the solution to work on Windows/Linux/MacOSX - if the JRE version is too l... |
I'd like to open a socket and hang a readable event on the GLUT event loop... any ideas on how to do this? Portable standard GLUT code is best, but I'm open to platform-specific hacks as well.
Thanks!
| GLUT itself does not provide built-in support for handling sockets or non-OpenGL events directly within its event loop, but you can achieve this by integrating a separate thread for socket handling or using platform-specific methods to manage file descriptors.
Here's a basic approach using a separate thread for the so... | 29,800 | [
{
"from": "human",
"value": "I'd like to open a socket and hang a readable event on the GLUT event loop... any ideas on how to do this? Portable standard GLUT code is best, but I'm open to platform-specific hacks as well.\nThanks!\n"
},
{
"from": "gpt",
"value": "GLUT itself does not provide bu... |
I'm working with some nested datalist controls and cannot get the SP parameters for my nested stored procedure to work.
In debug I can see that SqlDataSource2.SelectParameters.Add("Section",oLabel.Text.ToString()); is getting the correct value from the label but when the results display I always get the results for th... | It looks like you're on the right track, but there are a few key issues in your code that could be causing the nested `DataList` controls not to bind correctly. Let's go through them step-by-step.
1. **Clearing Parameters**: You are correctly using `SqlDataSource2.SelectParameters.Clear()`, but it's essential to ensur... | 34,207 | [
{
"from": "human",
"value": "I'm working with some nested datalist controls and cannot get the SP parameters for my nested stored procedure to work. \nIn debug I can see that SqlDataSource2.SelectParameters.Add(\"Section\",oLabel.Text.ToString()); is getting the correct value from the label but when the res... |
I've recently taken over development on a SQL Server 2000 database that needs some help. We're planning on upgrading it to SQL Server 2005 soon. This database has no audit fields on the tables (CreatedBy, CreatedDate, etc.), no foreign keys, and terrible overall design. There are half a dozen programs that directly ... | Improving an existing SQL Server 2000 database while maintaining its production environment can be challenging, but it's definitely manageable with a structured approach. Here are some steps to help you get started:
### 1. **Assessment and Documentation**
- **Review Existing Schema:** Document the current tables, t... | 30,595 | [
{
"from": "human",
"value": "I've recently taken over development on a SQL Server 2000 database that needs some help. We're planning on upgrading it to SQL Server 2005 soon. This database has no audit fields on the tables (CreatedBy, CreatedDate, etc.), no foreign keys, and terrible overall design. There... |
A pattern that's started to show up a lot in one of the web apps I'm working are links that used to just be a regular a-tag link now need a popup box asking "are you sure?" before the link will go. (If the user hits cancel, nothing happens.)
We've got a solution that works, but somehow we're a web app shop without a J... | To implement a confirmation dialog before navigating away from a link, you can use JavaScript to intercept the click event of the links. When the user clicks the link, you can show a confirmation dialog and proceed based on their response. Below is a simple and standards-compliant approach using plain JavaScript:
### ... | 31,089 | [
{
"from": "human",
"value": "A pattern that's started to show up a lot in one of the web apps I'm working are links that used to just be a regular a-tag link now need a popup box asking \"are you sure?\" before the link will go. (If the user hits cancel, nothing happens.)\nWe've got a solution that works, ... |
I am instantiating a local COM server using CoCreateInstance. Sometimes the application providing the server takes a long time to start. When this happens, Windows pops a dialog box like this:
Server Busy
The action cannot be completed because the other program is busy. Choose 'Switch To' to activate the busy program... | The issue you're encountering with the "Server Busy" dialog is a common one when dealing with COM servers, particularly when the server takes a long time to initialize. The dialog appears because the COM infrastructure believes that the server is unresponsive.
In Visual Basic, you can indeed use the `OleRequestPending... | 33,207 | [
{
"from": "human",
"value": "I am instantiating a local COM server using CoCreateInstance. Sometimes the application providing the server takes a long time to start. When this happens, Windows pops a dialog box like this:\nServer Busy\nThe action cannot be completed because the other program is busy. Choo... |
I need to create reports in a C# .NET Windows app. I've got an SQL Server 2005 database, Visual Studio 2005 and am quite OK with creating stored procedures and datasets.
Can someone please point me in the right direction for creating reports? I just can't seem work it out. Some examples would be a good start, or a simp... | Creating reports in a C# .NET Windows application using Crystal Reports is a common task, and since you're already familiar with SQL Server, stored procedures, and datasets, you're off to a great start. Here’s a step-by-step guide to help you create and display reports using Crystal Reports in your application.
### St... | 31,194 | [
{
"from": "human",
"value": "I need to create reports in a C# .NET Windows app. I've got an SQL Server 2005 database, Visual Studio 2005 and am quite OK with creating stored procedures and datasets.\nCan someone please point me in the right direction for creating reports? I just can't seem work it out. Some... |
Suppose I have the following directory layout in a Maven project:
src/
|-- main
| |-- bin
| | |-- run.cmd
| | `-- run.sh
| |-- etc
| | |-- common-spring.xml
| | |-- log4j.xml
| | `-- xml-spring.xml
| `-- java
| `-- com
...
I would like to build a zip file that, when unzipped, produces s... | Yes, you can achieve this using the `maven-assembly-plugin`. This plugin allows you to create various types of archives, including ZIP files, and customize the contents as needed. Below are the steps and a sample configuration you can use in your `pom.xml` to create the desired ZIP file structure:
1. **Add the Maven A... | 34,875 | [
{
"from": "human",
"value": "Suppose I have the following directory layout in a Maven project:\nsrc/\n|-- main\n| |-- bin\n| | |-- run.cmd\n| | `-- run.sh\n| |-- etc\n| | |-- common-spring.xml\n| | |-- log4j.xml\n| | `-- xml-spring.xml\n| `-- java\n| `-- com\n...\n\nI would l... |
I have a COM dll written in vb6. When I try to create a new object of a class module from this dll I get a Run timer error 430: Class does not support automation or does not support expected interface. The interesting thing is that this happens only from outside the IDE, when I am debugging from within the IDE there is... | The error you are encountering (Run-time error 430) typically indicates that there is an issue with the registration of your COM DLL or that the required interfaces or classes are not correctly exposed. Here are some common causes and ways to troubleshoot the issue:
### Possible Causes
1. **DLL Registration**: Ensure... | 32,679 | [
{
"from": "human",
"value": "I have a COM dll written in vb6. When I try to create a new object of a class module from this dll I get a Run timer error 430: Class does not support automation or does not support expected interface. The interesting thing is that this happens only from outside the IDE, when I ... |
I have a button on my webform. Clicking this button will do an HttpWebRequest during the onclick event handler. After the request we copy the response from the request into HttpContext.Current.Response and send that to the client.
This web request can take a while (up to 5 seconds, since it's generating a report). Duri... | To achieve a loading indicator while waiting for the file download, you can use a combination of JavaScript and AJAX to create a better user experience without breaking the HTTP response that is necessary for the file download. Here is a structured approach to handle this situation:
1. **Use AJAX to Initiate the Reque... | 31,078 | [
{
"from": "human",
"value": "I have a button on my webform. Clicking this button will do an HttpWebRequest during the onclick event handler. After the request we copy the response from the request into HttpContext.Current.Response and send that to the client.\nThis web request can take a while (up to 5 seco... |
I need to connect to an asmx webservice using javascript. the webservice accepts and returns a soap response. im looking for an example bit of code of how i can connect to the webservice using javascript. it returns lat and long details which i'll then use to plot markers on a google map. i also have the issue of cross... | To connect to an ASMX web service using JavaScript, you generally need to construct a SOAP request, send it to the service, and then handle the response. However, if you're dealing with cross-domain requests (which is common in this scenario), you may face issues due to the same-origin policy. To overcome this, you can... | 31,965 | [
{
"from": "human",
"value": "I need to connect to an asmx webservice using javascript. the webservice accepts and returns a soap response. im looking for an example bit of code of how i can connect to the webservice using javascript. it returns lat and long details which i'll then use to plot markers on a g... |
I am developing RoR application that works with legacy database and uses ActiveScaffold plugin for fancy CRUD interface.
However one of the tables of my legacy db has composite primary key. I tried using Composite Keys plugin to handle it, but it seems to have conflicts with ACtiveScaffold: I get the following error:
A... | Using composite primary keys with ActiveScaffold in a Ruby on Rails application can be quite challenging, as both ActiveScaffold and the CompositeKeys plugin may not always work seamlessly together. Here are a few approaches you can consider to address the issue:
### 1. Ensure Compatibility of Plugins
First, ensure th... | 34,353 | [
{
"from": "human",
"value": "I am developing RoR application that works with legacy database and uses ActiveScaffold plugin for fancy CRUD interface.\nHowever one of the tables of my legacy db has composite primary key. I tried using Composite Keys plugin to handle it, but it seems to have conflicts with AC... |
I have a large table (more than 10 millions records). this table is heavily used for search in the application. So, I had to create indexes on the table. However ,I experience a slow performance when a record is inserted or updated in the table. This is most likely because of the re-calculation of indexes.
Is there a... | Improving the performance of insert and update operations on a table with a large number of indexes can indeed be a challenge, as every modification requires the database to update the indexes as well. Here are several strategies to consider that may help improve performance for insert and update operations:
1. **Redu... | 33,199 | [
{
"from": "human",
"value": "I have a large table (more than 10 millions records). this table is heavily used for search in the application. So, I had to create indexes on the table. However ,I experience a slow performance when a record is inserted or updated in the table. This is most likely because of t... |
I've written a cheap & cheerful sound board in for my Mac, and I play the various sounds with NSSound like this:
-(void)play:(NSSound *)soundEffect:(BOOL)stopIfPlaying {
BOOL wasPlaying = FALSE;
if([nowPlaying isPlaying]) {
[nowPlaying stop];
wasPlaying = TRUE;
}
if(soundEffect != ... | To implement a fade-out effect for your sound in a macOS application using `NSSound`, you will need to manually decrease the volume of the sound over time rather than stopping it abruptly. `NSSound` does not have built-in support for volume fading, so you'll need to use a timer to achieve this effect.
Here's an exampl... | 34,720 | [
{
"from": "human",
"value": "I've written a cheap & cheerful sound board in for my Mac, and I play the various sounds with NSSound like this:\n-(void)play:(NSSound *)soundEffect:(BOOL)stopIfPlaying {\n BOOL wasPlaying = FALSE;\n\n if([nowPlaying isPlaying]) {\n [nowPlaying stop];\n wasP... |
When I use my browser to test my web service, it opens at http://localhost:4832/ -- where can I find its files physically on my drive?
Update
I do not want to know where the files of my VS.NET solution are located but where I should put the files of the web service... the .asmx, .dll and other files that I will install... | When you're running a web service on your local machine using a development server (like the one built into Visual Studio or IIS Express), the files for the web service are typically not hosted directly in a conventional directory. The location of the files can depend on how you're running the service. Here are a few p... | 34,901 | [
{
"from": "human",
"value": "When I use my browser to test my web service, it opens at http://localhost:4832/ -- where can I find its files physically on my drive?\nUpdate\nI do not want to know where the files of my VS.NET solution are located but where I should put the files of the web service... the .asm... |
Basically I am inserting an image using the listviews inserting event, trying to resize an image from the fileupload control, and then save it in a SQL database using LINQ.
I found some code to create a new bitmap of the content in the fileupload control, but this was to store it in a file on the server, from this sour... | Your approach to resizing the image and saving it to a SQL database using LINQ is mostly correct, but there are a couple of adjustments you can make to ensure that the bitmap is properly converted to a byte array and stored in the database.
1. **Save the Bitmap to a MemoryStream**: You already create a MemoryStream, w... | 32,806 | [
{
"from": "human",
"value": "Basically I am inserting an image using the listviews inserting event, trying to resize an image from the fileupload control, and then save it in a SQL database using LINQ.\nI found some code to create a new bitmap of the content in the fileupload control, but this was to store ... |
I'm writing an application that processes PowerPoint presentations and I'm looking into ways of detecting whether or not a PowerPoint presentation has a password if it does then stop processing it.
| To detect if a PowerPoint presentation is password-protected, you can use various libraries depending on the programming language you are working with. Below are examples for Python and C# using the `python-pptx` and `Microsoft.Office.Interop.PowerPoint` libraries, respectively.
### Python Example Using `python-pptx`
... | 32,825 | [
{
"from": "human",
"value": "I'm writing an application that processes PowerPoint presentations and I'm looking into ways of detecting whether or not a PowerPoint presentation has a password if it does then stop processing it.\n"
},
{
"from": "gpt",
"value": "To detect if a PowerPoint presentati... |
I thought this was asked before, but 15 minutes of searching on Google and the site search didn't turn anything up...so:
Where can I obtain free (as in beer and/or as in speech) dictionary files? I'm mainly interested in English, but if you know of any dictionary files, please point them out.
Note: This question doesn'... | There are several sources where you can obtain free dictionary files, both for English and other languages. Below are some options that you might find useful:
### Open Source Dictionaries
1. **WordNet**: A large lexical database of English. You can download the database and use it for various purposes, including spell... | 33,255 | [
{
"from": "human",
"value": "I thought this was asked before, but 15 minutes of searching on Google and the site search didn't turn anything up...so:\nWhere can I obtain free (as in beer and/or as in speech) dictionary files? I'm mainly interested in English, but if you know of any dictionary files, please ... |
It looks like the standard asp.net 2 RangeValidator control doesn't allow times. e.g. 01/01/2008 12:00 is not accepted in my range, even though it should be valid. If I remove the time it works as expected.
Is there a validator out there that allows for date/time format?
Update
We don't have Ajax extensions. Ideally, w... | If you're looking for a way to validate date and time formats on the client side in ASP.NET Web Forms without using Ajax extensions, a CustomValidator with a regular expression is a good approach.
You've mentioned using a regex from RegexLib, which is a solid choice. Below is a simple way to implement a `CustomValidat... | 33,975 | [
{
"from": "human",
"value": "It looks like the standard asp.net 2 RangeValidator control doesn't allow times. e.g. 01/01/2008 12:00 is not accepted in my range, even though it should be valid. If I remove the time it works as expected.\nIs there a validator out there that allows for date/time format?\nUpdat... |
I have a incoming stream of bytes (unsigned char) from either a file or network. I need this data placed in a class, and is looking for a NET-way of doing this.
I bet some does this all the time, so I guess there is a better method to do this than using BitConverter.
I realize I supplied too litle information. Let me... | To handle transferring data like your example class over a network or from a file in a "NET-way" in C#, you can use serialization. Serialization converts an object into a format that can be easily transported (like a byte array) and then deserialization reverses that process to recreate the object.
In .NET, you can us... | 36,431 | [
{
"from": "human",
"value": "I have a incoming stream of bytes (unsigned char) from either a file or network. I need this data placed in a class, and is looking for a NET-way of doing this. \nI bet some does this all the time, so I guess there is a better method to do this than using BitConverter. \nI reali... |
So - I have a checkbox
<asp:CheckBox ID="chkOrder" runat="server" Visible='<%#IsCheckBoxVisible() %>'
Checked="false"
OnCheckedChanged="chkOrder_CheckedChanged" AutoPostBack="true"
EnableViewState="false"></asp:CheckBox>
the one above. Now, the checkbox is in a gridview and on databound - for all the ... | It looks like you're dealing with a tricky issue involving the ASP.NET CheckBox control within a GridView and how it behaves differently across browsers, particularly when dealing with view state, data binding, and the AJAX panel.
### Possible Causes and Solutions
1. **ViewState and AutoPostBack:**
Since you set `... | 33,843 | [
{
"from": "human",
"value": "So - I have a checkbox\n<asp:CheckBox ID=\"chkOrder\" runat=\"server\" Visible='<%#IsCheckBoxVisible() %>' \n Checked=\"false\"\n OnCheckedChanged=\"chkOrder_CheckedChanged\" AutoPostBack=\"true\" \n EnableViewState=\"false\"></asp:CheckBox>\n\nthe one above. Now, th... |
I need to store my class A objects in some data structure.
In addition, i would like them to be automatically sorted according to a key, which is in my case an embedded object of another class B.
Thus I decided to use a STL priority queue.
However it is possible that the 2 or more objects B to have the same key value.... | Yes, the STL `std::priority_queue` does allow duplicate keys. If two or more elements have the same key value, they will all be stored in the priority queue, but the order in which they are stored is not guaranteed. The `std::priority_queue` is essentially a max heap (or min heap, depending on the comparison function u... | 32,685 | [
{
"from": "human",
"value": "I need to store my class A objects in some data structure.\nIn addition, i would like them to be automatically sorted according to a key, which is in my case an embedded object of another class B. \nThus I decided to use a STL priority queue.\nHowever it is possible that the 2 o... |
I need to have two way communication between threads in Tcl and all I can get is one way with parameters passing in as my only master->helper communication channel. Here is what I have:
proc ExecProgram { command } {
if { [catch {open "| $command" RDWR} fd ] } {
#
# Failed, return error indication
... | In Tcl, two-way communication between threads can be achieved using channels, but it's important to note that the default Tcl interpreter is single-threaded, and communication between threads usually requires either the `thread` package or the `::chan` package. Below, I’ll provide you with an example of how to set up t... | 30,233 | [
{
"from": "human",
"value": "I need to have two way communication between threads in Tcl and all I can get is one way with parameters passing in as my only master->helper communication channel. Here is what I have:\nproc ExecProgram { command } {\n if { [catch {open \"| $command\" RDWR} fd ] } {\n ... |
How can I programmatically lock/unlock, or otherwise prevent/enable editing, a source file on Linux using C++.
I want to be able to lock source file so that if I open it in an editor it will not allow me to save back to the same source file.
I am thinking of maybe changing the permissions to read-only (and change it ba... | To programmatically lock and unlock a source file on Linux using C++, you can indeed change the file permissions to make it read-only, and then change it back to read-write later. This can be accomplished using the `chmod` function from the `<sys/stat.h>` header. Here's a step-by-step guide and a sample implementation:... | 25,977 | [
{
"from": "human",
"value": "How can I programmatically lock/unlock, or otherwise prevent/enable editing, a source file on Linux using C++.\nI want to be able to lock source file so that if I open it in an editor it will not allow me to save back to the same source file.\nI am thinking of maybe changing the... |
How can I build a native Mac OS X installer for my application, on a non-Mac platform?
For example, I have a windows pc and a Java application. I want the windows pc to build an installer (possibly inside a .dmg archive) that works with Apple installer.
| Building a native macOS installer for your application on a non-Mac platform (like Windows) can be challenging, but it is possible with the right tools and approach. Here’s a general guide on how you can achieve this:
### 1. Cross-Platform Build Tools
Use build tools that support cross-platform development. Tools lik... | 34,876 | [
{
"from": "human",
"value": "How can I build a native Mac OS X installer for my application, on a non-Mac platform?\nFor example, I have a windows pc and a Java application. I want the windows pc to build an installer (possibly inside a .dmg archive) that works with Apple installer.\n"
},
{
"from": ... |
This is an extension of my earlier XSS question.
Assuming that there isn't a Regex strong enough to guarantee XSS saftey for user entered URLs I'm looking at using a redirect.
(Although if you do have one please add it under the other question)
We have user input web addresses, so:
stackoverflow.com
They want a link ... | Your question touches on a couple of important aspects of web security and user experience. It's wise to take precautions against Cross-Site Scripting (XSS) and other potential risks when handling user input, especially with URLs. Let's break down your approach and address your questions about how to make a warning pag... | 32,463 | [
{
"from": "human",
"value": "This is an extension of my earlier XSS question.\nAssuming that there isn't a Regex strong enough to guarantee XSS saftey for user entered URLs I'm looking at using a redirect.\n(Although if you do have one please add it under the other question)\nWe have user input web addresse... |
I have a couple of dropdown boxes on a normal ASP.Net page.
I would like the user to be able to change these and to have the page Pseudo-post back to the server and store these changes without the user having to hit a save button.
I don't really need to display anything additional as the dropdown itself will reflect th... | Absolutely! You can achieve this behavior using ASP.NET and AJAX. Specifically, you can use the `UpdatePanel` control, which allows you to perform partial postbacks. This way, only part of the page is refreshed when the dropdown changes, preventing the full page from flashing.
Here’s a step-by-step guide to implement ... | 34,068 | [
{
"from": "human",
"value": "I have a couple of dropdown boxes on a normal ASP.Net page.\nI would like the user to be able to change these and to have the page Pseudo-post back to the server and store these changes without the user having to hit a save button.\nI don't really need to display anything additi... |
Greetings,
Here's the problem I'm having. I have a page which redirects directly to another page the first time it is visited. If the user clicks 'back', though, the page behaves differently and instead displays content (tracking session IDs to make sure this is the second time the page has been loaded). To do this,... | It sounds like you're encountering an issue with how different browsers handle caching and redirects, particularly in relation to the back button behavior. Since you want to maintain the back button functionality for users and have a distinct behavior on the second visit, here are a few potential solutions to consider:... | 33,122 | [
{
"from": "human",
"value": "Greetings,\nHere's the problem I'm having. I have a page which redirects directly to another page the first time it is visited. If the user clicks 'back', though, the page behaves differently and instead displays content (tracking session IDs to make sure this is the second ti... |
I am trying to write out a png file from a java.awt.image.BufferedImage. Everything works fine but the resulting png is a 32-bit file.
Is there a way to make the png file be 8-bit? The image is grayscale, but I do need transparency as this is an overlay image. I am using java 6, and I would prefer to return an Outpu... | To create an 8-bit PNG image with transparency in Java, while using a `BufferedImage`, you'll need to manage the color palette manually. The standard `BufferedImage` types provided by Java, such as `TYPE_INT_ARGB`, do not support direct 8-bit color images. However, you can use the `TYPE_BYTE_INDEXED` type, which allows... | 31,567 | [
{
"from": "human",
"value": "I am trying to write out a png file from a java.awt.image.BufferedImage. Everything works fine but the resulting png is a 32-bit file.\nIs there a way to make the png file be 8-bit? The image is grayscale, but I do need transparency as this is an overlay image. I am using jav... |
Does anyone know of an application (hosted or otherwise) that I could use to keep track of details for a number of web sites? I manage 50+ web sites that range from custom solutions to open source platforms (WordPress, Joomla). I started to write my own but wanted to see if there is anything out there already.
Here a... | Hi Brian,
There are several applications and tools that can help you manage multiple websites and keep track of their details, including versioning, maintenance tasks, and notes. Here are a few options you might consider:
### 1. **Trello**
- **Features:** You can create boards for each website, add cards for tasks, a... | 34,969 | [
{
"from": "human",
"value": "Does anyone know of an application (hosted or otherwise) that I could use to keep track of details for a number of web sites? I manage 50+ web sites that range from custom solutions to open source platforms (WordPress, Joomla). I started to write my own but wanted to see if th... |
I've been tasked with the awesome job of generating a look-up table for our application culture information. The columns I need to generate data for are:
Dot Net Code
Version
Culture Name
Country Name
Language Name
Java Country Code
Java Language Code
Iso Country Code
Iso Language Code
I have found the globalization... | Creating a look-up table for culture information in your application can be quite useful, especially if you're dealing with localization or internationalization. Below is a sample data structure that fulfills the columns you've specified. This information can be used to generate your look-up table.
### Sample Look-Up ... | 32,093 | [
{
"from": "human",
"value": "I've been tasked with the awesome job of generating a look-up table for our application culture information. The columns I need to generate data for are:\n\nDot Net Code\nVersion\nCulture Name\nCountry Name\nLanguage Name\nJava Country Code\nJava Language Code\nIso Country Code... |
Using Maven 2, is there a way I can list out the jar dependencies as just the file names?
mvn dependency:build-classpath
can list the jar files, but that will include the full path to their location in my local repository. What I need is essentially just a list of the file names (or the file names that the copy-depen... | To achieve your goal of obtaining a list of JAR file names (without full paths) for your Maven project dependencies, you can use the `dependency:copy-dependencies` goal in combination with a script or Maven plugin to process the output.
Here's a step-by-step guide on how to do this:
### Step 1: Use `dependency:copy-d... | 31,779 | [
{
"from": "human",
"value": "Using Maven 2, is there a way I can list out the jar dependencies as just the file names?\nmvn dependency:build-classpath \n\ncan list the jar files, but that will include the full path to their location in my local repository. What I need is essentially just a list of the file ... |
I been waiting for sometime now to bring my Asp.net Preview 4 project up to snuff, totally skipping Preview 5 just because I knew I would have some issues.
Anyhow, here is the question and dilemma.
I have a few areas on the site which I have an ajax update type panel that renders content from a view using this techniqu... | It looks like you're experiencing an issue with the AJAX functionality in your ASP.NET MVC application after migrating to a newer version. The `Sys.ArgumentNullException` error typically indicates that an expected object is not being provided or is set to null.
In your case, the issue appears to stem from the way you ... | 36,415 | [
{
"from": "human",
"value": "I been waiting for sometime now to bring my Asp.net Preview 4 project up to snuff, totally skipping Preview 5 just because I knew I would have some issues.\nAnyhow, here is the question and dilemma.\nI have a few areas on the site which I have an ajax update type panel that rend... |
I have a Flex application with multiple modules.
When I redeploy the application I was finding that modules (which are deployed as separate swf files) were being cached in the browser and the new versions weren't being loaded.
So i tried the age old trick of adding ?version=xxx to all the modules when they are loaded.... | You are correct that dealing with browser caching for Flex applications, especially when they consist of multiple modules, can be a bit challenging. Adding a versioning parameter to your SWF files is a common and effective strategy to ensure that users always receive the latest version of your modules after a redeploym... | 35,118 | [
{
"from": "human",
"value": "I have a Flex application with multiple modules.\nWhen I redeploy the application I was finding that modules (which are deployed as separate swf files) were being cached in the browser and the new versions weren't being loaded. \nSo i tried the age old trick of adding ?version=x... |
In an ORM you can have nice syntax like this:
my $results = Model.objects.all()[10];
And in the Django ORM it even quite nicely handles foreign key relationships and many to many relationships all through the ORM.
However, in MySQL you can run a query like this:
SELECT t1.column1
, t2.column2
, t3.column3
F... | Working with multiple databases in an ORM can be challenging, especially when the ORM was primarily designed with the assumption that models reside in a single database. However, several ORMs and strategies can help you manage and query across multiple databases more effectively. Here are some options to consider:
###... | 34,770 | [
{
"from": "human",
"value": "In an ORM you can have nice syntax like this:\nmy $results = Model.objects.all()[10];\n\nAnd in the Django ORM it even quite nicely handles foreign key relationships and many to many relationships all through the ORM. \nHowever, in MySQL you can run a query like this:\nSELECT t1... |
On a Windows 2003 server I have a pure .NET 3.5 C# app (no unmanaged code). It connects to various other remote systems via sockets and acts like a data hub. It runs for 10-15 hours fine with no problem but from time to time it just disappears. If I watch the app using task manager the memory usage remains constant.
In... | It sounds like you're dealing with a scenario where your application crashes unexpectedly without triggering your exception handling mechanism. Here are several approaches you can consider to diagnose and potentially resolve the issue:
### 1. Enable First Chance Exceptions in Visual Studio
If you are able to run your ... | 34,316 | [
{
"from": "human",
"value": "On a Windows 2003 server I have a pure .NET 3.5 C# app (no unmanaged code). It connects to various other remote systems via sockets and acts like a data hub. It runs for 10-15 hours fine with no problem but from time to time it just disappears. If I watch the app using task mana... |
Have Log4Net configured in our application to use a date stamped name and a 10Meg file size limit.
This automatically causes a rollover to a new file at midnight and whenever the 10Meg limit is reached.
I would also like to roll over the logging to a new file each time the application is started (or closed).
Can I get ... | Yes, you can achieve all three rollover behaviors (date-stamped rollover at midnight, size-based rollover at 10 MB, and application start/stop rollover) with Log4Net by using a combination of `RollingFileAppender` and a specific configuration. However, Log4Net does not natively support rolling over on application start... | 32,096 | [
{
"from": "human",
"value": "Have Log4Net configured in our application to use a date stamped name and a 10Meg file size limit.\nThis automatically causes a rollover to a new file at midnight and whenever the 10Meg limit is reached.\nI would also like to roll over the logging to a new file each time the app... |
I'm using a WPF RichTextBox control to input some text with user formatting capability, including font size adjustment. The built-in commands for IncreaseFontSize and DecreaseFontSize will adjust the font size by 0.75pt each time the command is executed. I would like to increase the granularity to 2pt.
Can this be do... | Yes, you can achieve this by creating a custom command handler for the `IncreaseFontSize` and `DecreaseFontSize` commands in your WPF RichTextBox. While you can still use the built-in commands, you can override their behavior to increase the font size by your desired amount (e.g., 2pt).
Here's how you can do that:
1.... | 34,539 | [
{
"from": "human",
"value": "I'm using a WPF RichTextBox control to input some text with user formatting capability, including font size adjustment. The built-in commands for IncreaseFontSize and DecreaseFontSize will adjust the font size by 0.75pt each time the command is executed. I would like to increa... |
The Rijndael encryption algorithm is implemented in .NET using 3 streams in the following example: Rinjdael.
Can someone explain to me what these streams are doing? How/Why are they used?
// Declare the streams used
// to encrypt to an in memory
// array of bytes.
MemoryStream msEncrypt = null;
CryptoStream csEncrypt ... | In the provided code snippet, three streams are utilized to facilitate the process of encrypting data using the Rijndael encryption algorithm (commonly known as AES). Here's a breakdown of each stream and its role:
### 1. **MemoryStream (`msEncrypt`)**
- **Purpose**: This stream acts as an in-memory buffer that holds ... | 32,303 | [
{
"from": "human",
"value": "The Rijndael encryption algorithm is implemented in .NET using 3 streams in the following example: Rinjdael.\nCan someone explain to me what these streams are doing? How/Why are they used?\n// Declare the streams used\n// to encrypt to an in memory\n// array of bytes.\nMemorySt... |
Suppose you want to make an async request in JavaScript, but you want to pass some state along to the callback method. Is the following an appropriate use of closures in JavaScript?
function getSomethingAsync(someState, callback) {
var req = abc.createRequestObject(someParams);
req.invoke(makeCallback(someState... | Yes, the code you provided is an appropriate use of closures in JavaScript. By using a closure in the `makeCallback` function, you are effectively capturing the `someState` variable, allowing it to be accessible within the `getSomethingCallback` function when the callback is executed later (after the asynchronous opera... | 31,899 | [
{
"from": "human",
"value": "Suppose you want to make an async request in JavaScript, but you want to pass some state along to the callback method. Is the following an appropriate use of closures in JavaScript?\nfunction getSomethingAsync(someState, callback) {\n var req = abc.createRequestObject(somePar... |
I've been perplexed lately working on a SharePoint state machine workflow. I was hoping to add some modification forms to the workflow so that I could reassign a task while in its state. Unfortunately, modification forms don't seem to be documented for use with state machine workflows (pretty straight forward for seq... | Working with modification forms in SharePoint state machine workflows can indeed be a bit more challenging than in sequential workflows. Here's a general approach to help you implement modification forms within a state machine workflow:
### 1. Understanding State Machine Workflows
In a state machine workflow, you hav... | 31,649 | [
{
"from": "human",
"value": "I've been perplexed lately working on a SharePoint state machine workflow. I was hoping to add some modification forms to the workflow so that I could reassign a task while in its state. Unfortunately, modification forms don't seem to be documented for use with state machine w... |
currently, I am looking deeper into testing techniques, even though I am not sure if I still reside in the unittest-land or left it into the land of integration tests already.
Let me elaborate a bit, Given two components A and B and A uses B, then we have a certain "upwards-contract" for B and a certain "downwards-con... | Hello tetha,
You've brought up an interesting and nuanced discussion about the boundaries and responsibilities of unit testing versus integration testing, particularly with respect to contracts between components.
### Understanding Contracts
In your description, you are discussing what is commonly referred to as "co... | 31,860 | [
{
"from": "human",
"value": "currently, I am looking deeper into testing techniques, even though I am not sure if I still reside in the unittest-land or left it into the land of integration tests already. \nLet me elaborate a bit, Given two components A and B and A uses B, then we have a certain \"upwards-c... |
Does anyone know of a system for automatic error reporting in java? We have a server product that is installed on client servers. The idea is that our server would phone home with the details of an error to one of our servers, which then enters a bug in our bug tracker. Preferable, this would happen over http. It would... | There are several libraries and tools available that can help you implement automatic error reporting in Java applications. Here are some options that may suit your needs:
1. **Sentry**:
- Sentry is a popular error tracking and monitoring tool that can capture exceptions and report them to its server over HTTP.
... | 31,870 | [
{
"from": "human",
"value": "Does anyone know of a system for automatic error reporting in java? We have a server product that is installed on client servers. The idea is that our server would phone home with the details of an error to one of our servers, which then enters a bug in our bug tracker. Preferab... |
I have a Google App Engine that has a form. When the user clicks on the submit button, AJAX operation will be called, and the server will output something to append to the end of the very page where it comes from. How, I have a Django template, and I intend to use jquery. I have the following view:
<html>
<head>
<titl... | To display the content of the `result` variable right after the form when the user clicks the submit button, you'll need to make a few adjustments to your current setup. Here’s how you can implement it step by step:
### 1. Fix AJAX Call and Form Submission
In your JavaScript (`scripts.js`), you should prevent the def... | 34,281 | [
{
"from": "human",
"value": "I have a Google App Engine that has a form. When the user clicks on the submit button, AJAX operation will be called, and the server will output something to append to the end of the very page where it comes from. How, I have a Django template, and I intend to use jquery. I hav... |
I'm looking to stream lots of data (up to ~1 Gbit) from Java to a C++ application (both on the same machine). I'm currently using a FIFO on Linux but need a Windows solution too.
The most cross-platform method seems to be a local socket, but:
a) won't I get huge overhead from TCP checksumming and copying to & from kern... | When you're looking to stream a large amount of data (up to ~1 Gbit) between a Java application and a C++ application on the same machine, you have several options, each with its own trade-offs. Here's a comparison of the approaches you've mentioned, along with some additional suggestions:
### 1. Local Sockets
Using l... | 34,231 | [
{
"from": "human",
"value": "I'm looking to stream lots of data (up to ~1 Gbit) from Java to a C++ application (both on the same machine). I'm currently using a FIFO on Linux but need a Windows solution too.\nThe most cross-platform method seems to be a local socket, but:\na) won't I get huge overhead from ... |
I'm trying to configure storage mode ROLAP for a partition in an existing SSAS cube. The cube is a little messy in that the measure group is defined by a named query (as opposed to a table) and the dimensions are defined in several different data source views (DSV).
This is the error message I get when querying the cub... | The error message you are encountering indicates that there is a problem with the relationships and joins defined in the Data Source View (DSV) when working with ROLAP or HOLAP storage modes. Here are a few steps to troubleshoot and resolve this issue:
1. **Check the Relationships in the DSV**: Ensure that all require... | 35,111 | [
{
"from": "human",
"value": "I'm trying to configure storage mode ROLAP for a partition in an existing SSAS cube. The cube is a little messy in that the measure group is defined by a named query (as opposed to a table) and the dimensions are defined in several different data source views (DSV).\nThis is the... |
I have found many pieces of documentations and recommendations about IEnumerator, IEnumerable, ICollection, IList and their generic counterparts. Sadly, I didn't find yet a tutorial or book which explains the whole hierarchy of interfaces, generic implementations of those interfaces and the best usage of each type of t... | Understanding the collection interfaces in C#—namely `IEnumerable`, `IEnumerator`, `ICollection`, `IList`, and their generic counterparts—can indeed be quite overwhelming due to the breadth of the topic and the nuances in their usage. Here are some resources and explanations that may help you grasp this hierarchy bette... | 31,941 | [
{
"from": "human",
"value": "I have found many pieces of documentations and recommendations about IEnumerator, IEnumerable, ICollection, IList and their generic counterparts. Sadly, I didn't find yet a tutorial or book which explains the whole hierarchy of interfaces, generic implementations of those interf... |
I have a bash shell script that loops through all child directories (but not files) of a certain directory. The problem is that some of the directory names contain spaces.
Here are the contents of my test directory:
$ls -F test
Baltimore/ Cherry Hill/ Edison/ New York City/ Philadelphia/ cities.txt
And the cod... | To handle directory names with spaces correctly, you should avoid using backticks and command substitutions that don't handle whitespace properly. Instead, you can read the directories directly using a `while` loop and the `find` command. Here's a solution that addresses both the issue of handling spaces in directory n... | 37,136 | [
{
"from": "human",
"value": "I have a bash shell script that loops through all child directories (but not files) of a certain directory. The problem is that some of the directory names contain spaces. \nHere are the contents of my test directory:\n$ls -F test\nBaltimore/ Cherry Hill/ Edison/ New York C... |
Presently I have a some legacy code, which generates the op code. If the code has more number of macros then the code generation takes so much of time (In terms of hours!!).
I have gone through the logic, they are handling the macro by searching for it and doing a replace of each variable in it some thing like inlining... | Optimizing code generation that involves handling macros can be a challenging task, especially if the current implementation relies heavily on string manipulation and direct replacements. Here are some strategies to consider that could help improve performance without directly manipulating strings:
### 1. **Abstract S... | 34,796 | [
{
"from": "human",
"value": "Presently I have a some legacy code, which generates the op code. If the code has more number of macros then the code generation takes so much of time (In terms of hours!!).\nI have gone through the logic, they are handling the macro by searching for it and doing a replace of ea... |
Here's some background on what I'm trying to do:
Open a serial port from a mobile device to a Bluetooth printer.
Send an EPL/2 form to the Bluetooth printer, so that it understands how to treat the data it is about to receive.
Once the form has been received, send some data to the printer which will be printed on labe... | It seems like you've identified the root cause of the issue: the speed at which you're sending data to the printer may be overwhelming it, especially given the limitations of the Bluetooth version and the printer's processing capabilities. There are a few ways you can handle this situation more gracefully:
### 1. Impl... | 34,264 | [
{
"from": "human",
"value": "Here's some background on what I'm trying to do:\n\nOpen a serial port from a mobile device to a Bluetooth printer.\nSend an EPL/2 form to the Bluetooth printer, so that it understands how to treat the data it is about to receive.\nOnce the form has been received, send some data... |
I want to use Visual Studio snippets to generate SQL code, for example we have standard naming conventions for foreign keys etc and it would be great if I could just expand a snippet in my SQL script file.
However as far as I can tell the only languages that are supported by the Snippet manager are C#, VB J# and XML
h... | While Visual Studio's built-in snippet manager does not directly support SQL as a primary language, you can still create and use code snippets for SQL by using the XML format. SQL snippets can be added to Visual Studio, although the experience is not as seamless as for languages like C#. Here's how you can create your ... | 34,114 | [
{
"from": "human",
"value": "I want to use Visual Studio snippets to generate SQL code, for example we have standard naming conventions for foreign keys etc and it would be great if I could just expand a snippet in my SQL script file. \nHowever as far as I can tell the only languages that are supported by t... |
I just downloaded Eclipse several hours ago, and needed to add Java3D to the classpath. Installing it went without a hitch, but Eclipse can't seem to find the documentation folders so that it can give super-IDE functionality, such as autocomplete and method signatures.
While I know how I would add them individually, th... | When working with Java libraries in Eclipse, it's important to follow a systematic approach to ensure that everything is set up correctly, especially for documentation and autocompletion features. Here’s a step-by-step guide on how to properly install a Java library, such as Java3D, in Eclipse:
### 1. Download the Lib... | 31,976 | [
{
"from": "human",
"value": "I just downloaded Eclipse several hours ago, and needed to add Java3D to the classpath. Installing it went without a hitch, but Eclipse can't seem to find the documentation folders so that it can give super-IDE functionality, such as autocomplete and method signatures.\nWhile I ... |
I am creating a buffered image that is going to be a snapshot of a JComponent (via paint()) and rendered inside an ImageIcon. There are a large amount of types in the BufferedImage(int width, int height, int imageType) constructor, but which one should I use?
I am sure that any of them would work, but which ones are... | When creating a `BufferedImage` in Java for capturing a snapshot of a `JComponent`, you generally want to choose an image type that balances quality and compatibility with your intended usage. The constructor you're referring to is `BufferedImage(int width, int height, int imageType)`, where `imageType` determines the ... | 33,321 | [
{
"from": "human",
"value": "I am creating a buffered image that is going to be a snapshot of a JComponent (via paint()) and rendered inside an ImageIcon. There are a large amount of types in the BufferedImage(int width, int height, int imageType) constructor, but which one should I use? \nI am sure that ... |
I'm trying to run a freshly created ASP.NET Website using C#, however when I do so it launches FireFox and attempts to connect to http://localhost:1295/WebSite1/Default.aspx (for example), but after about 10-15 seconds it displays a "Connection Interrupted - The connection to the server was reset while the page was loa... | It sounds like you're having trouble with your ASP.NET development environment not running as expected. Here are several troubleshooting steps you can take to resolve the issue:
1. **Check for Port Conflicts**:
- Make sure that no other application is using the same port (e.g., 1295). You can check this by running... | 34,706 | [
{
"from": "human",
"value": "I'm trying to run a freshly created ASP.NET Website using C#, however when I do so it launches FireFox and attempts to connect to http://localhost:1295/WebSite1/Default.aspx (for example), but after about 10-15 seconds it displays a \"Connection Interrupted - The connection to t... |
I am using WCF to upload data to a server.
If the communication fails, is there any way to resume the upload?
| When using Windows Communication Foundation (WCF) to upload data to a server, handling communication failures gracefully can be challenging. However, you can design your upload process to support resuming uploads after a failure. Here are some strategies you can consider:
### 1. Chunked Uploads
Divide your data into ... | 32,558 | [
{
"from": "human",
"value": "I am using WCF to upload data to a server.\nIf the communication fails, is there any way to resume the upload?\n"
},
{
"from": "gpt",
"value": "When using Windows Communication Foundation (WCF) to upload data to a server, handling communication failures gracefully ca... |
I need to access a network resource on which only a given Domain Account has access.
I am using the LogonUser call, but get a "User does not have required priviliege" exception, as the web application is running with the asp.net account and it does not have adequate permissions to make this call.
Is there a way to get ... | If you encounter a "User does not have required privilege" exception when attempting to use `LogonUser` within an ASP.NET application, it is likely because the ASP.NET application pool does not have the necessary permissions to invoke this API.
Since changing the identity of the ASP.NET application or the permissions ... | 30,548 | [
{
"from": "human",
"value": "I need to access a network resource on which only a given Domain Account has access.\nI am using the LogonUser call, but get a \"User does not have required priviliege\" exception, as the web application is running with the asp.net account and it does not have adequate permissio... |
First of all, some background.
We have an order processing system, where staff enter billing data about orders in an app that stores it in a sql server 2000 database. This database isn't the real billing system: it's just a holding location so that the records can be run into a mainframe system via a nightly batch pro... | Optimizing SQL queries, especially with large datasets like you described, requires careful consideration of both the indexing strategy and the query structure. Your main challenge seems to stem from the complex JOIN conditions and the IS NULL clause that you're using for the LEFT JOIN. Below are some suggestions to he... | 31,281 | [
{
"from": "human",
"value": "First of all, some background.\nWe have an order processing system, where staff enter billing data about orders in an app that stores it in a sql server 2000 database. This database isn't the real billing system: it's just a holding location so that the records can be run into ... |
Is it allowable to pass parameters to a web page through the URL (after the question mark) when using the POST method? I know that it works (most of the time, anyways) because my company's webapp does it often, but I don't know if it's actually supported in the standard or if I can rely on this behavior. I'm consider... | Yes, it is perfectly valid to pass parameters through the URL using the query string (the portion of the URL after the question mark) when making a POST request. This behavior is not only supported but is also commonly used in various web applications.
According to the HTTP specification (RFC 7231), the HTTP methods (... | 36,133 | [
{
"from": "human",
"value": "Is it allowable to pass parameters to a web page through the URL (after the question mark) when using the POST method? I know that it works (most of the time, anyways) because my company's webapp does it often, but I don't know if it's actually supported in the standard or if I... |
I want to pass an int list (List) as a declarative property to a web user control like this:
<UC:MyControl runat="server" ModuleIds="1,2,3" />
I created a TypeConverter to do this:
public class IntListConverter : System.ComponentModel.TypeConverter
{
public override bool CanConvertFrom(
System.Component... | It looks like you're trying to create a custom property type for a web user control that takes a comma-separated list of integers as a string. Your implementation of the `TypeConverter` seems mostly correct, but I see a couple of potential issues and areas for improvement.
### Issues Identified
1. **Variable Naming I... | 32,686 | [
{
"from": "human",
"value": "I want to pass an int list (List) as a declarative property to a web user control like this:\n<UC:MyControl runat=\"server\" ModuleIds=\"1,2,3\" />\n\nI created a TypeConverter to do this:\npublic class IntListConverter : System.ComponentModel.TypeConverter\n{\n public overri... |
To preface I am using Borland C++ and the VCL.
I need some sort of structured storage object which can be saved to disk as a single file and can contain multiple named blobs of binary data which I can programatically enumerate, access and manipulate.
The IStorage interface seems to be close what I want but I would pref... | Given your requirements for a VCL-compatible solution for structured storage of multiple named blobs of binary data, consider using the `TStream` class in combination with a simple custom structure for managing the named binary blobs. Here’s a straightforward approach to achieve this:
### Step 1: Define a Structure fo... | 32,466 | [
{
"from": "human",
"value": "To preface I am using Borland C++ and the VCL.\nI need some sort of structured storage object which can be saved to disk as a single file and can contain multiple named blobs of binary data which I can programatically enumerate, access and manipulate.\nThe IStorage interface see... |
i'm interested in project management software similar to MS Project. the project is a serious rebuild of my software. we have a bug management system already but i need to track project progress.
i don't like web-based apps so much because the data is either hosted off-site or i need to set up my own server.
i like M... | It sounds like you have specific requirements for project management software that accommodates your preference for desktop applications rather than web-based solutions. Here are some alternatives to Microsoft Project that offer Gantt chart and calendar views, as well as the ability to track progress and compare estima... | 11,244 | [
{
"from": "human",
"value": "i'm interested in project management software similar to MS Project. the project is a serious rebuild of my software. we have a bug management system already but i need to track project progress.\ni don't like web-based apps so much because the data is either hosted off-site o... |
Hopefully some Custom Control Designers/Builders can help
I'm attempting to build my first custom control that is essential a client detail collection form. There are to be a series of elements to this form that require various styles applied to them. Ideally I'd like the VS 2005/2008 properties interface to be able to... | To create a custom control in ASP.NET that allows you to set a CSS class through the Visual Studio properties window, you can use a custom editor. Unfortunately, the `Editor` attribute cannot be directly used to provide a dropdown list of CSS classes out of the box with `System.Web.UI.CssStyleCollection`. You will need... | 30,819 | [
{
"from": "human",
"value": "Hopefully some Custom Control Designers/Builders can help\nI'm attempting to build my first custom control that is essential a client detail collection form. There are to be a series of elements to this form that require various styles applied to them. Ideally I'd like the VS 20... |
Is there a way to create register a handler that will be called exactly at the time when the last reference to a certain object is released?
An example would be an object that is backed by a physical data file and once the object become unreferenced, the file should be closed and than renamed. It would be nice if this ... | In Java, you can use the `finalize()` method, but it is deprecated and not recommended for use due to unpredictability in garbage collection timing and performance issues. Instead, a more modern approach involves using `PhantomReference` along with a `ReferenceQueue`. This allows you to create a handler that can take a... | 32,967 | [
{
"from": "human",
"value": "Is there a way to create register a handler that will be called exactly at the time when the last reference to a certain object is released?\nAn example would be an object that is backed by a physical data file and once the object become unreferenced, the file should be closed a... |
We are starting a new project and I'm trying to decide which of the Wpf-esque develop/deploy strategies we should go with. In our case we are looking at quite a complex business app that will be used by 100s (not 1000s) of people, So I'm leaning towards a click-once app. My boss likes the idea of a Silverlight app as i... | You've made a good start in outlining the pros and cons of each technology for your project. Let's summarize and expand on the details to provide a clearer picture for your decision-making process.
### Silverlight
**Pros:**
1. **Cross-Browser Support:** Silverlight runs in multiple browsers (like IE, Chrome, Firefox)... | 33,661 | [
{
"from": "human",
"value": "We are starting a new project and I'm trying to decide which of the Wpf-esque develop/deploy strategies we should go with. In our case we are looking at quite a complex business app that will be used by 100s (not 1000s) of people, So I'm leaning towards a click-once app. My boss... |
I'm trying to avoid a composite control or using and ASCX by extending an existing control. However, I'm having trouble with getting the controls added to the inherited control and keep their view-state/post-back integrity. Whenever I add the controls during pre-render, the controls show up, but the post-back throws a ... | When you extend a control and dynamically add child controls, maintaining the view state is critical, particularly in ASP.NET Web Forms. The error you're experiencing typically occurs when the control hierarchy does not match between postbacks, which can happen when controls are added dynamically during the page lifecy... | 34,768 | [
{
"from": "human",
"value": "I'm trying to avoid a composite control or using and ASCX by extending an existing control. However, I'm having trouble with getting the controls added to the inherited control and keep their view-state/post-back integrity. Whenever I add the controls during pre-render, the cont... |
Several times in my career, I have worked in a software group that determined that
a) We needed a build/test system
b) We should write our own
c) We can have a developer spend a week, get it done and they shouldn't have to touch it again
Every time, this has resulted in a system that only seems to work for the person ... | Given your requirements for a build/test system that can handle multi-project builds and integrate with your existing workflows, there are several tools available that might suit your needs without requiring you to reinvent the wheel. Here are some recommendations:
### 1. **Jenkins**
- **Overview**: Jenkins is an open... | 35,477 | [
{
"from": "human",
"value": "Several times in my career, I have worked in a software group that determined that \na) We needed a build/test system\nb) We should write our own\nc) We can have a developer spend a week, get it done and they shouldn't have to touch it again\nEvery time, this has resulted in a s... |
What is the best way to password protect quicktime streaming videos using php/.htaccess. They are being streamed using rtsp, but I can use other formats if necessary.
I know how to do authentication with php, but I'm not sure how to setup authentication so that will protect the streaming files urls so that a user can't... | You're on the right track regarding securing your streaming videos, but there are multiple layers of security you can implement to help prevent unauthorized access and sharing of your video URLs. Here’s a general approach to password protect QuickTime streaming videos using PHP and .htaccess while addressing some of yo... | 35,266 | [
{
"from": "human",
"value": "What is the best way to password protect quicktime streaming videos using php/.htaccess. They are being streamed using rtsp, but I can use other formats if necessary.\nI know how to do authentication with php, but I'm not sure how to setup authentication so that will protect the... |
I'm trying to create classes to read from my config file using ConfigurationSection and ConfigurationElementCollection but am having a hard time.
As an example of the config:
<PaymentMethodSettings>
<PaymentMethods>
<PaymentMethod name="blah blah" code="1"/>
<PaymentMethod name="blah blah" code="42"/>
<P... | To read your custom configuration from a config file using `ConfigurationSection` and `ConfigurationElementCollection`, you need to create corresponding classes that will represent your configuration structure. Below is a complete example that defines the necessary classes to handle your provided configuration.
### St... | 26,539 | [
{
"from": "human",
"value": "I'm trying to create classes to read from my config file using ConfigurationSection and ConfigurationElementCollection but am having a hard time.\nAs an example of the config:\n\n<PaymentMethodSettings>\n <PaymentMethods>\n <PaymentMethod name=\"blah blah\" code=\"1\"/>\n ... |
I am working on an embedded application where the device is controlled through a command interface. I mocked the command dispatcher in VC and had it working to my satisfaction; but when I then moved the code over to the embedded environment, I found out that the compiler has a broken implementation of pointer-to-func'... | Your problem revolves around a broken function pointer implementation in your embedded compiler, which limits your ability to use function pointers to dispatch commands. The strategy you're considering—using macros to create a switch statement—is quite sensible. It allows you to centralize the command definitions while... | 33,441 | [
{
"from": "human",
"value": "I am working on an embedded application where the device is controlled through a command interface. I mocked the command dispatcher in VC and had it working to my satisfaction; but when I then moved the code over to the embedded environment, I found out that the compiler has a ... |
I need to write robust code in .NET to enable a windows service (server 2003) to restart itself. What is the best way to so this? Is there some .NET API to do it?
| To enable a Windows Service to restart itself in .NET, you can achieve this by utilizing the `Environment` class to request a restart of the service. However, there is no direct .NET API that allows a service to restart itself; you typically need to invoke the `sc.exe` command or use the Service Controller to stop and ... | 34,784 | [
{
"from": "human",
"value": "I need to write robust code in .NET to enable a windows service (server 2003) to restart itself. What is the best way to so this? Is there some .NET API to do it?\n"
},
{
"from": "gpt",
"value": "To enable a Windows Service to restart itself in .NET, you can achieve ... |
I'm working on a team investigating a technology stack for a green-field systems integration project. Part of our favored technology stack use Hibernate to persist its internal state and exposes hooks into the Hibernate transactions, so that business entities stay synchronized with the state of this utility. Great, exc... | Your project has an interesting challenge that combines the need for flexible schema management with the transactional capabilities of Hibernate and traditional relational databases. Blending RDF (Resource Description Framework) data with Hibernate-managed entities while ensuring performance in both frequent and large-... | 33,401 | [
{
"from": "human",
"value": "I'm working on a team investigating a technology stack for a green-field systems integration project. Part of our favored technology stack use Hibernate to persist its internal state and exposes hooks into the Hibernate transactions, so that business entities stay synchronized w... |
I've seen a number of references to gzipping a javascript to save download time. But I also see a number of warnings that certain browsers do not support this.
I have two different methods at my disposal:
use mod_deflate to make Apache compress JS/CSS files in a given directory through htaccess
use ob_start('gzhandle... | When it comes to serving compressed JavaScript and CSS files to save bandwidth and improve loading times, you have two methods at your disposal: using `mod_deflate` (or its predecessor `mod_gzip` for Apache 1.3) and using PHP's `ob_start('gzhandler')`. Here’s a breakdown of your questions and some advice:
### 1. Unive... | 30,720 | [
{
"from": "human",
"value": "I've seen a number of references to gzipping a javascript to save download time. But I also see a number of warnings that certain browsers do not support this.\nI have two different methods at my disposal:\n\nuse mod_deflate to make Apache compress JS/CSS files in a given direc... |
This is all being done in an ASP.NET web forms application:
I need a modal popup that will show the user a preview of images that match a search criteria (e.g. they search for "dog" and the popup shows them all dog-related pictures). The search results shouldn't be too long, but the popup should support the ability to... | Creating a modal popup in an ASP.NET Web Forms application to show image previews based on search criteria can be accomplished using a combination of JavaScript (or jQuery), HTML, and ASP.NET server-side code. Below are the steps and considerations to implement this functionality:
### Steps to Implement a Modal Popup ... | 27,270 | [
{
"from": "human",
"value": "This is all being done in an ASP.NET web forms application:\nI need a modal popup that will show the user a preview of images that match a search criteria (e.g. they search for \"dog\" and the popup shows them all dog-related pictures). The search results shouldn't be too long,... |
When my IronPython program gets to the line
import wx
I get this message:
A first chance exception of type
'IronPython.Runtime.Exceptions.PythonImportErrorException' occurred in IronPython.dll
Additional information: No module named _core_
although I do have the file wx\_core_.pyd. Also, before attempting the impo... | The error message you're encountering (`No module named _core_`) suggests that IronPython is unable to find the native extensions that the wxPython library relies on. This is not uncommon because IronPython has some limitations when it comes to importing certain C extensions (like those in wxPython).
Here are a few th... | 34,854 | [
{
"from": "human",
"value": "When my IronPython program gets to the line \nimport wx\n\nI get this message:\nA first chance exception of type\n'IronPython.Runtime.Exceptions.PythonImportErrorException' occurred in IronPython.dll\n\nAdditional information: No module named _core_\n\nalthough I do have the fi... |
Have you ever tried this feedback calling an external zip.py script to work? My CGITB does not show any error messages. It simply did not invoke external .py script to work. It simply skipped over to gush. I should be grateful if you can assist me in making this zip.py callable in feedback.py.
Regards. David
#*****... | To ensure that your `zip.py` script can be invoked properly from another script (like `feedback.py`), you should first check the following steps:
1. **Check Path and Permissions**: Ensure that the path to the `zip.py` script is correct and that your script has the required permissions to access and execute it.
2. **P... | 35,103 | [
{
"from": "human",
"value": "Have you ever tried this feedback calling an external zip.py script to work? My CGITB does not show any error messages. It simply did not invoke external .py script to work. It simply skipped over to gush. I should be grateful if you can assist me in making this zip.py callabl... |
We're developing a product that relies on the Microsoft Sync Framework to keep the data on a client app and on the server in sync. What we have noticed is when syncing about 16 tables and ~2200 records it will take about 4 minutes, which is not acceptable.
Using the SQL Server Profiler we found it is using sp_executes... | When experiencing performance issues with the Microsoft Sync Framework and SQL Server, especially related to the use of `sp_executesql`, it's important to consider several factors that can impact performance. Here are some possible reasons for the slowdown and strategies to address them:
### 1. **Parameter Sniffing:**... | 35,450 | [
{
"from": "human",
"value": "We're developing a product that relies on the Microsoft Sync Framework to keep the data on a client app and on the server in sync. What we have noticed is when syncing about 16 tables and ~2200 records it will take about 4 minutes, which is not acceptable.\nUsing the SQL Server... |
I have a delphi (Win32) web application that can run either as a CGI app, ISAPI or Apache DLL. I want to be able to generate a unique filename prefix (unique for all current requests at a given moment), and figure that the best way to do this would be to use processID (to handle CGI mode) as well as threadID (to handle... | In Delphi, you can use the `GetCurrentProcessId` and `GetCurrentThreadId` functions from the Windows API to obtain the unique Process ID (PID) and Thread ID (TID) respectively. This can help you generate unique filename prefixes in your web application.
Here's a small code snippet demonstrating how to do this:
```del... | 32,863 | [
{
"from": "human",
"value": "I have a delphi (Win32) web application that can run either as a CGI app, ISAPI or Apache DLL. I want to be able to generate a unique filename prefix (unique for all current requests at a given moment), and figure that the best way to do this would be to use processID (to handle... |
we are dealing with a legacy application built on MySQL 5.0 (MyISAM). I need to know in real-time when an update, delete, or insert happens to a particular table. The 'gotcha' is that I can't change the db (i.e. write triggers) in any way. I have to use the bin log, replication or something else which is somewhat no... | If you need to monitor changes to a MySQL 5.0 database in real-time without altering the database itself, and using the binary log is your best bet, here are a few approaches you might consider:
1. **Replication with a Slave**:
Set up a MySQL slave server using replication. You can configure the slave to capture ch... | 35,135 | [
{
"from": "human",
"value": "we are dealing with a legacy application built on MySQL 5.0 (MyISAM). I need to know in real-time when an update, delete, or insert happens to a particular table. The 'gotcha' is that I can't change the db (i.e. write triggers) in any way. I have to use the bin log, replicati... |
I'm building a tool that automates a process then runs some tests on it's own results then goes to do some other stuff.
In trying to clean up my code I have created a separate file that just has the test cases class. Now before I can run these tests, I have to pass the class a couple of parameters/objects before they c... | It's great that you're trying to clean up your code and make it more modular. Instead of using a temporary YAML file to pass parameters to your test class, there are several alternative approaches that can keep your code cleaner and avoid file I/O overhead. Here are a few options you can consider:
### 1. Use Class Var... | 35,376 | [
{
"from": "human",
"value": "I'm building a tool that automates a process then runs some tests on it's own results then goes to do some other stuff.\nIn trying to clean up my code I have created a separate file that just has the test cases class. Now before I can run these tests, I have to pass the class a ... |
I feel like I'm re-inventing the wheel here, but I need to find a way of taking a URL from a catchall,and redirecting that to another route.
The reason for this is because I need to do some things like adding session cookies for certain urls, and then pass them on to their relevant action.
What's the best way of implem... | To achieve your goal of redirecting URLs from a catchall route while also manipulating session cookies or other data, you can follow these steps. The implementation can vary based on the technology stack you are using (e.g., Node.js with Express, Python with Flask/Django, etc.), but I will provide a generalized approac... | 34,900 | [
{
"from": "human",
"value": "I feel like I'm re-inventing the wheel here, but I need to find a way of taking a URL from a catchall,and redirecting that to another route.\nThe reason for this is because I need to do some things like adding session cookies for certain urls, and then pass them on to their rele... |
I've been writing writing a small pygtk application using glade to put together the UIs. I've created several windows already that work, but for some reason this one isn't working. I get the following traceback:
Traceback (most recent call last):
File "test.py", line 7, in <module>
class TestClass:
File "test... | The issue you're encountering stems from how you are trying to connect the signals to the methods in your `TestClass`. In Python, when you are defining the body of a class, you cannot use `self` until you are inside an instance method (like `__init__`). However, you are trying to call `self.wTree.signal_autoconnect(sel... | 35,723 | [
{
"from": "human",
"value": "I've been writing writing a small pygtk application using glade to put together the UIs. I've created several windows already that work, but for some reason this one isn't working. I get the following traceback:\nTraceback (most recent call last):\n File \"test.py\", line 7, ... |
What im wondering how to do is when someone edits a list item and it goes through my event code that is fired when a change is made and save is hit, i dont want anyone to be able to edit that list item itself while its still processnig that request. So i was wondering if while in that event i can disable the individual... | To achieve your goal of preventing multiple edits to a list item while processing an edit request, you can implement a locking mechanism in your event handling code. The basic idea is to set a "locked" state when a user starts editing an item and then release that lock once the processing is complete. Here’s a general ... | 34,846 | [
{
"from": "human",
"value": "What im wondering how to do is when someone edits a list item and it goes through my event code that is fired when a change is made and save is hit, i dont want anyone to be able to edit that list item itself while its still processnig that request. So i was wondering if while i... |
I receive an error message when exposing an ADO.NET Data Service using an Entity Framework data model that contains an entity (called "Case") with an internal setter on a property. If I modify the setter to be public (using the entity designer), the data services works fine.
I don’t need the entity "Case" exposed in th... | The issue you're experiencing appears to be related to the way that ADO.NET Data Services (WCF Data Services) handles metadata for your entity model, specifically when it encounters properties with non-public access modifiers.
### Why the Error Occurs
When the ADO.NET Data Service tries to populate metadata for the e... | 34,257 | [
{
"from": "human",
"value": "I receive an error message when exposing an ADO.NET Data Service using an Entity Framework data model that contains an entity (called \"Case\") with an internal setter on a property. If I modify the setter to be public (using the entity designer), the data services works fine.\n... |
Is there a better way to write this code?
I want to show a default value ('No data') for any empty fields returned by the query:
$archivalie_id = $_GET['archivalie_id'];
$query = "SELECT
a.*,
ip.description AS internal_project,
o.description AS origin,
... | Certainly! Your current code is functional, but it can be made cleaner and more maintainable. Here’s a refactored version that uses a function to reduce redundancy and improve readability.
```php
$archivalie_id = $_GET['archivalie_id'];
$query = "SELECT
a.*,
ip.description AS interna... | 35,631 | [
{
"from": "human",
"value": "Is there a better way to write this code? \nI want to show a default value ('No data') for any empty fields returned by the query:\n$archivalie_id = $_GET['archivalie_id'];\n\n$query = \"SELECT \n a.*, \n ip.description AS internal_project,\n ... |
I am currently in a course that is using OpenGL and I have been using C for all the programs so far. I have Python installed on Fedora as well as OpenGL, however the minute I call an OpenGL command in my Python code, I get a segmentation fault. I have no idea why this is.
Just to avoid the "just use C" comments, here i... | Using Python with OpenGL can be a great choice, especially for more complex projects like a raytracer where you want to take advantage of Python's object-oriented features. However, a segmentation fault usually indicates that your code is trying to access an invalid memory location, which can happen for various reasons... | 32,238 | [
{
"from": "human",
"value": "I am currently in a course that is using OpenGL and I have been using C for all the programs so far. I have Python installed on Fedora as well as OpenGL, however the minute I call an OpenGL command in my Python code, I get a segmentation fault. I have no idea why this is.\nJust ... |
When copying large files using shutil.copy(), you get no indication of how the operation is progressing..
I have put together something that works - it uses a simple ProgressBar class (which simple returns a simple ASCII progress bar, as a string), and a loop of open().read() and .write() to do the actual copying. It d... | While `shutil.copy()` is a convenient way to copy files, it doesn't provide feedback on progress during the operation, as you noticed. Your approach using a custom progress bar is a good way to provide this feedback, and there are built-in and third-party libraries that can enhance this experience further.
### Built-i... | 31,501 | [
{
"from": "human",
"value": "When copying large files using shutil.copy(), you get no indication of how the operation is progressing..\nI have put together something that works - it uses a simple ProgressBar class (which simple returns a simple ASCII progress bar, as a string), and a loop of open().read() a... |
I know I can get this to technically work but I'd like to implement the cleanest possible solution. Here's the situation:
I have a managed library which wraps an unmanaged C-style library. The C-style library functionality I'm currently wrapping does some processing involving a list of strings. The library's client ... | To accomplish your goal of isolating the managed code and providing a clean callback mechanism for the unmanaged C-style library, you can use a combination of delegates, function pointers, and managed-to-unmanaged transitions. Below, I've outlined a possible solution that achieves this while maintaining clarity and cle... | 22,144 | [
{
"from": "human",
"value": "I know I can get this to technically work but I'd like to implement the cleanest possible solution. Here's the situation:\nI have a managed library which wraps an unmanaged C-style library. The C-style library functionality I'm currently wrapping does some processing involving... |
I want to setup a statistics monitoring platform to watch a specific service, but I'm not quiet sure how to go about it. Processing the intercepted data isn't my concern, just how to go about it. One idea was to setup a proxy between the client application and the service so that all TCP traffic went first to my prox... | Setting up a statistics monitoring platform to track interactions with a memcache daemon can be done effectively by using a proxy-based approach. Here’s a step-by-step guide to help you design and implement this solution, ensuring you maintain performance and capture all necessary data.
### Step 1: Design the Proxy Ar... | 31,205 | [
{
"from": "human",
"value": "I want to setup a statistics monitoring platform to watch a specific service, but I'm not quiet sure how to go about it. Processing the intercepted data isn't my concern, just how to go about it. One idea was to setup a proxy between the client application and the service so t... |
Im trying to use to define a one-to-many relationship in a single table. For example lets say I have a Groups table with these entries:
Group:
Group_1:
name: Atlantic Records
Group_2:
name: Capital Records
Group_3:
name: Gnarls Barkley
Group_4:
name: Death Cab For Cutie
Group_5:
name: Col... | You're on the right track by considering a linking table to represent the one-to-many relationship between groups in your scenario. In relational databases, this type of relationship is typically modeled using a self-referential or recursive relationship, where a table can reference itself through a linking table.
He... | 24,543 | [
{
"from": "human",
"value": "Im trying to use to define a one-to-many relationship in a single table. For example lets say I have a Groups table with these entries:\n\nGroup:\n Group_1:\n name: Atlantic Records\n Group_2:\n name: Capital Records\n Group_3:\n name: Gnarls Barkley\n Group_4:\n ... |
We have an intranet asp.net web application which uses the OOTB ASP.net membership and role providers.
Now we are planning to expose the application to internet, by moving the web server to the DMZ as represented in the following (crappy) text diagram
External Internal
internet -... | Exposing your ASP.NET application to the internet while keeping the SQL Server secured behind an internal firewall presents a significant challenge, especially concerning access to the membership and role providers. Here are some recommended approaches to address the issues you’ve raised:
### 1. **Use an API Layer:**
... | 34,053 | [
{
"from": "human",
"value": "We have an intranet asp.net web application which uses the OOTB ASP.net membership and role providers. \nNow we are planning to expose the application to internet, by moving the web server to the DMZ as represented in the following (crappy) text diagram\n\n\n Externa... |
I would like to load a BMP file, do some operations on it in memory, and output a new BMP file using C++ on Windows (Win32 native). I am aware of ImageMagick and it's C++ binding Magick++, but I think it's an overkill for this project since I am currently not interested in other file formats or platforms.
What would be... | If you're looking to handle BMP files specifically in C++ on Windows, a straightforward way is to read and write BMP files directly without the need for a heavy library like ImageMagick. BMP files have a relatively simple format, so you can manipulate them using basic file I/O operations. Below is a minimal example tha... | 28,670 | [
{
"from": "human",
"value": "I would like to load a BMP file, do some operations on it in memory, and output a new BMP file using C++ on Windows (Win32 native). I am aware of ImageMagick and it's C++ binding Magick++, but I think it's an overkill for this project since I am currently not interested in other... |
Is it better to write many small methods (or functions), or to simply write the logic/code of those small processes right into the place where you would have called the small method? What about breaking off code into a small function even if for the time being it is only called from one spot?
If one's choice depends o... | The decision between writing many small methods (or functions) versus embedding logic directly where it is called is a common design consideration in software development. Here are several criteria and considerations to guide your decision-making process:
### 1. **Readability and Maintainability**
- **Small Functio... | 34,148 | [
{
"from": "human",
"value": "Is it better to write many small methods (or functions), or to simply write the logic/code of those small processes right into the place where you would have called the small method? What about breaking off code into a small function even if for the time being it is only called... |
Im developing a "desktop" for WM6+ and i was wondering if i can override the draw that WM does when it starts the OS (like the start menu, softkey bar, and background) basically have my program draw the today screen instead of windows. My program will of course integrate everything that the original "screen" integrated... | Creating a custom "desktop" for Windows Mobile 6 and later (WM6+) involves developing a Today Screen replacement application. You can override or modify the default Today Screen functionality, including the Start Menu and the softkey bar, but there are some considerations and limitations due to the nature of the platfo... | 33,713 | [
{
"from": "human",
"value": "Im developing a \"desktop\" for WM6+ and i was wondering if i can override the draw that WM does when it starts the OS (like the start menu, softkey bar, and background) basically have my program draw the today screen instead of windows. My program will of course integrate every... |
I´ve been looking for it yet in stackoverflow without success...
Is it posible a connection pooling in asp.net? Is it worthwhile? How?
| Yes, connection pooling is not only possible in ASP.NET but also a common and worthwhile practice. Connection pooling can significantly improve the performance of your application by reusing existing database connections rather than opening a new one every time a database interaction is needed.
### What is Connection ... | 28,711 | [
{
"from": "human",
"value": "I´ve been looking for it yet in stackoverflow without success...\nIs it posible a connection pooling in asp.net? Is it worthwhile? How?\n"
},
{
"from": "gpt",
"value": "Yes, connection pooling is not only possible in ASP.NET but also a common and worthwhile practice.... |
I have a site, and it will be sold to different clients but for maintenance reasons, we will be keeping one codebase. So this means that this one codebase will have to be dynamic enough to have different styles and so forth, depending on the client.
The domain would be a subdomain-type system, so: projectname.clientnam... | To achieve dynamic theming based on subdomains in a .NET application while keeping a single codebase, you can follow these general steps. This approach involves reading the subdomain, determining the appropriate theme, and then loading the corresponding CSS file based on the subdomain. Here's a structured way to do thi... | 30,450 | [
{
"from": "human",
"value": "I have a site, and it will be sold to different clients but for maintenance reasons, we will be keeping one codebase. So this means that this one codebase will have to be dynamic enough to have different styles and so forth, depending on the client.\nThe domain would be a subdom... |
Normally when using VMWare Server 1.0.7 you are asked if you would like to connect to the local machine or a remote host. Installing the same software on 64-bit Windows 2008 only gives the remote host option.
I have tried entering the local machine name as the host and entering creds that have admin rights to the serv... | The issue you're encountering with VMware Server 1.0.7 on Windows Server 2008 is likely related to compatibility and service settings, as VMware Server 1.0.7 is quite old and may not fully support the newer operating systems, especially 64-bit versions. Here are some steps to troubleshoot and possibly resolve the issue... | 34,119 | [
{
"from": "human",
"value": "Normally when using VMWare Server 1.0.7 you are asked if you would like to connect to the local machine or a remote host. Installing the same software on 64-bit Windows 2008 only gives the remote host option.\nI have tried entering the local machine name as the host and enterin... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.