instruction
stringlengths
14
27.6k
completion
stringlengths
3
38.3k
__original_row_idx
int64
0
50k
conversations
listlengths
2
2
I need two divs to look a bit like this: | | ---| LOGO |------------------------ | |_______________| LINKS | | CONTENT | What's the neatest/most elegant way of making them overlap neatly? The logo will have a fixed height and width and wi...
To create a layout where a logo overlaps with links in a neat and elegant way, you can use CSS with flexbox or grid layout. Below is an example of how you can achieve this using flexbox. ### HTML Structure ```html <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="wid...
30,057
[ { "from": "human", "value": "I need two divs to look a bit like this: \n | |\n ---| LOGO |------------------------\n| |_______________| LINKS |\n| CONTENT |\n\nWhat's the neatest/most elegant way of making them overlap neatly? The...
My website has been giving me intermittent errors when trying to perform any Ajax activities. The message I get is Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), ...
The `Sys.WebForms.PageRequestManagerParserErrorException` you’re encountering suggests that the response returned from the server during an AJAX request is not in the expected format. Here are a few common causes and potential solutions to address this issue: ### Common Causes: 1. **Response Modifications**: If your ...
34,403
[ { "from": "human", "value": "My website has been giving me intermittent errors when trying to perform any Ajax activities. The message I get is\nSys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response ...
I would like to implement a sliding notification bar as the one in Firefox or IE for my java application. But I don't want to reinvent the wheel and I'm sure someone out there has already done it and is willing to share. Do you know any open-source implementation of this in java/swing?
Yes, there are several libraries and open-source implementations that you can use to create a sliding notification bar in a Java Swing application. Here are a few options to consider: 1. **JXLayer (SwingX)**: SwingX is an extension of Swing that offers various enhancements, including decoration layers that can help yo...
34,492
[ { "from": "human", "value": "I would like to implement a sliding notification bar as the one in Firefox or IE for my java application. But I don't want to reinvent the wheel and I'm sure someone out there has already done it and is willing to share.\nDo you know any open-source implementation of this in jav...
I'm planning to develop an app for the iPhone and that app would have to access a couple of SOAP services. While doing some basic checking in the iPhone SDK I was not able to find any support for accessing SOAP services, a bit of Googling lead to the conclusion that there is no support for SOAP in the iPhone SDK. So i...
Accessing SOAP services from an iPhone app can indeed be challenging since the iPhone SDK does not provide built-in support for SOAP. However, there are several approaches you can take to effectively consume SOAP services in your app. Here are some options and best practices: ### 1. Use a Third-Party Library Several ...
32,072
[ { "from": "human", "value": "I'm planning to develop an app for the iPhone and that app would have to access a couple of SOAP services. While doing some basic checking in the iPhone SDK I was not able to find any support for accessing SOAP services, a bit of Googling lead to the conclusion that there is no ...
My app has a DataGridView object and a List of type MousePos. MousePos is a custom class that holds mouse X,Y coordinates (of type "Point") and a running count of this position. I have a thread (System.Timers.Timer) that raises an event once every second, checks the mouse position, adds and/or updates the count of the ...
Your implementation of updating the DataGridView in a multi-threaded environment is mostly on the right track, but there are some important points regarding thread safety in Windows Forms applications. ### Answering Your Questions: 1. **Is setting `DataGridView.DataSource` to null and back to my List an acceptable wa...
33,417
[ { "from": "human", "value": "My app has a DataGridView object and a List of type MousePos. MousePos is a custom class that holds mouse X,Y coordinates (of type \"Point\") and a running count of this position. I have a thread (System.Timers.Timer) that raises an event once every second, checks the mouse posi...
We put common prefixes on related tables to assure they display next to each other in our DB management software (Toad, Enterprise Manager, etc). So for example, all user tables start with the word User: User UserEvent UserPurchase Ideally, in honor of the three great virtues of a programmer these tables should be...
Using common prefixes in table names to group related tables is a common practice that many developers adopt, and it has its advantages. However, whether it's the best practice can depend on several factors, including the context of your project, team preferences, and database management tools in use. Let's explore the...
24,126
[ { "from": "human", "value": "We put common prefixes on related tables to assure they display next to each other in our DB management software (Toad, Enterprise Manager, etc). \nSo for example, all user tables start with the word User:\n\nUser \nUserEvent \nUserPurchase\n\nIdeally, in honor of the three grea...
I'm trying to create a C++ class, with a templated superclass. The idea being, I can easily create lots of similar subclasses from a number of superclasses which have similar characteristics. I have distilled the problematic code as follows: template_test.h: template<class BaseClass> class Templated : public BaseClass ...
The issue you are encountering is due to the way templates are instantiated in C++. When you define a template class and implement its methods in a separate `.cpp` file, the compiler cannot see the definitions of those methods unless it has seen the template specialization. This is because templates are only instantiat...
34,049
[ { "from": "human", "value": "I'm trying to create a C++ class, with a templated superclass. The idea being, I can easily create lots of similar subclasses from a number of superclasses which have similar characteristics.\nI have distilled the problematic code as follows:\ntemplate_test.h:\ntemplate<class Ba...
Possible Duplicate: Why does C# not provide the C++ style ‘friend’ keyword? I'd like the private member variables of a class to be accessible to a Tester class without exposing them to other classes. In C++ I'd just declare the Tester class as a friend, how do I do this in C#? Can someone give me an example?
C# does not have a `friend` keyword like C++, which means there is no direct way to allow one class to access the private members of another class without making those members public or using some other form of access control. However, you can achieve similar functionality by using different techniques. Here are a coup...
33,125
[ { "from": "human", "value": "\nPossible Duplicate:\nWhy does C# not provide the C++ style ‘friend’ keyword? \n\nI'd like the private member variables of a class to be accessible to a Tester class without exposing them to other classes. \nIn C++ I'd just declare the Tester class as a friend, how do I do this...
I want to start a new project with Java; In the past I used to start with Struts + Tiles; but tiles was very complicated; I don't know the latest version of Tiles; I need your recommendations in details for a good GUI framework; Thanks. Duplicate of this question.
If you're starting a new Java project and looking for a good GUI framework, there are several options you can consider. Since you've used Struts and Tiles in the past, here are some modern alternatives, along with their pros and cons: ### 1. **Spring MVC** - **Overview**: Spring MVC is a part of the larger Spring Fram...
33,670
[ { "from": "human", "value": "I want to start a new project with Java; \nIn the past I used to start with Struts + Tiles; but tiles was very complicated; I don't know the latest version of Tiles; \nI need your recommendations in details for a good GUI framework; \nThanks.\nDuplicate of this question.\n" },...
I have a form, when I click on submit button, I want to communicate with the server and get something from the server to be displayed on the same page. Everything must be done in AJAX manner. How to do it in Google App Engine? If possible, I want to do it in JQuery. Edit: The example in code.google.com/appengine/articl...
To achieve AJAX functionality in Google App Engine using jQuery, you can follow these steps. I'll guide you through creating a simple form that, when submitted, makes an AJAX request to the server and displays the response on the same page. ### Step 1: Set Up Your Google App Engine Environment Ensure you have a Googl...
32,054
[ { "from": "human", "value": "I have a form, when I click on submit button, I want to communicate with the server and get something from the server to be displayed on the same page. Everything must be done in AJAX manner. How to do it in Google App Engine? If possible, I want to do it in JQuery.\nEdit: The e...
Given a template where the HTML cannot be modified because of other requirements, how is it possible to display (rearrange) a div above another div when they are not in that order in the HTML? Both divs contain data that varies in height and width. <div id="wrapper"> <div id="firstDiv"> Content to be below ...
In your situation, where you cannot modify the HTML structure but need to rearrange the order of the divs using CSS, you can leverage the `position` property in combination with `flexbox` or `grid` to achieve the desired effect. Below are a few CSS-only solutions: ### Solution 1: Using `flexbox` You can use `display:...
34,043
[ { "from": "human", "value": "Given a template where the HTML cannot be modified because of other requirements, how is it possible to display (rearrange) a div above another div when they are not in that order in the HTML? Both divs contain data that varies in height and width.\n<div id=\"wrapper\">\n <di...
I have a long URL with tons of parameters that I want to open in the default browser from Java on a Windows system using Runtime.getRuntime().exec("rundll32 url.dll,FileProtocolHandler "+url) For short URLs like "http://www.google.com" this works fine. But for long URLs (say, 2000 characters), this simply does absolut...
When using `Runtime.getRuntime().exec()` to execute commands in Java, there are indeed potential limits that can affect long URLs when invoking system-level commands such as `rundll32`. However, the limits can vary based on the operating system, the command interpreter being used, and other environmental factors. Here ...
33,812
[ { "from": "human", "value": "I have a long URL with tons of parameters that I want to open in the default browser from Java on a Windows system using\nRuntime.getRuntime().exec(\"rundll32 url.dll,FileProtocolHandler \"+url)\n\nFor short URLs like \"http://www.google.com\" this works fine. But for long URLs ...
I have a j2me client that would post some chunked encoded data to a webserver. I'd like to process the data in python. The script is being run as a CGI one, but apparently apache will refuse a chunked encoded post request to a CGI script. As far as I could see mod_python, WSGI and FastCGI are no go too. I'd like to kno...
Handling chunked transfer encoding in Apache while using a CGI script can indeed be problematic, as Apache typically does not support chunked encoding in its standard CGI interface. However, there are workarounds you can consider to process chunked data in a Python script. ### Option 1: Use a Simple WSGI Server One o...
33,132
[ { "from": "human", "value": "I have a j2me client that would post some chunked encoded data to a webserver. I'd like to process the data in python. The script is being run as a CGI one, but apparently apache will refuse a chunked encoded post request to a CGI script. As far as I could see mod_python, WSGI a...
The type 'x' is defined in an assembly that is not referenced. You must add a reference to assembly 'abc123'. I have a .NET 2.0 web application that references my assembly 'abc123'. The assembly exists in the GAC and I've verified that it is the correct(same) version. The rest of application has no issues except for ...
The error message you’re encountering typically occurs when there is a mismatch in assembly references between your development environment and the target deployment environment. Given that it works on your local machine but not on your server, here are several steps you can take to troubleshoot and resolve the issue: ...
35,431
[ { "from": "human", "value": "The type 'x' is defined in an assembly that is not referenced. You must add a reference to assembly 'abc123'.\nI have a .NET 2.0 web application that references my assembly 'abc123'. The assembly exists in the GAC and I've verified that it is the correct(same) version. The res...
When I try to commit the first revision to my git repository (git commit) from Cygwin, I'm getting an error in gvim which says "Unable to open swap file for "foo\.git\COMMIT_EDITMSG" [New Directory]. I think it might be some sort of permission problem, but I've tried removing the read-only flag from the folder, as well...
It looks like you're encountering a couple of issues related to file permissions and how the editors interact with Cygwin. Let's address the problems one by one. ### 1. gVim and the Swap File Error The error message from gVim indicates that it's having trouble creating a swap file for the `COMMIT_EDITMSG` file. This c...
33,229
[ { "from": "human", "value": "When I try to commit the first revision to my git repository (git commit) from Cygwin, I'm getting an error in gvim which says \"Unable to open swap file for \"foo\\.git\\COMMIT_EDITMSG\" [New Directory]. I think it might be some sort of permission problem, but I've tried removi...
Looking for code samples to access a memory map file in C#
Accessing a memory-mapped file in C# can be useful for inter-process communication, shared data storage, or working with large datasets. The `System.IO.MemoryMappedFiles` namespace provides classes that allow you to create and work with memory-mapped files. Below are some code samples to help you get started. ### Exam...
33,178
[ { "from": "human", "value": "Looking for code samples to access a memory map file in C#\n" }, { "from": "gpt", "value": "Accessing a memory-mapped file in C# can be useful for inter-process communication, shared data storage, or working with large datasets. The `System.IO.MemoryMappedFiles` name...
I need to implement a queue using table. The business requirement is to have a single queue which will be accessed by 5-10 boxes to get the next job/jobs. There will not be more than 5000 jobs per day. Also, a batch of jobs should be "dequeued" at one time. Just wondering what are the problem areas and issues I might ...
Implementing a queue using a database table can be a good solution for your scenario. However, there are several design considerations and potential issues that you may encounter. Here’s a breakdown of some important aspects to think about: ### Design Considerations 1. **Table Structure**: - Your queue table might...
33,092
[ { "from": "human", "value": "I need to implement a queue using table. \nThe business requirement is to have a single queue which will be accessed by 5-10 boxes to get the next job/jobs. There will not be more than 5000 jobs per day. Also, a batch of jobs should be \"dequeued\" at one time.\nJust wondering w...
What exactly are the advantages and disadvantages to using a register-based virtual machine versus using a stack-based virtual machine? To me, it would seem as though a register based machine would be more straight-forward to program and more efficient. So why is it that the JVM, the CLR, and the Python VM are all sta...
The choice between a register-based virtual machine (VM) and a stack-based virtual machine involves several trade-offs in terms of design, implementation, efficiency, and ease of use. Here are some of the advantages and disadvantages of each approach: ### Register-based Virtual Machine **Advantages:** 1. **Performan...
28,189
[ { "from": "human", "value": "What exactly are the advantages and disadvantages to using a register-based virtual machine versus using a stack-based virtual machine?\nTo me, it would seem as though a register based machine would be more straight-forward to program and more efficient. So why is it that the J...
Warm Standby SQL Server/Web Server This question might fall into the IT category but as the lead developer I must come up with a solution to integration as well as pure software issues. We just moved our web server off site and now I would like to keep a warm standby of both the website and database (SQL 2005) on site....
Creating a warm standby solution for your web server and SQL Server database involves some careful planning, especially given the constraints you've outlined (no replication, no VPN, etc.). Your approach of using backups via FTP is a viable solution, but let’s elaborate on that and explore some best practices and alter...
35,287
[ { "from": "human", "value": "Warm Standby SQL Server/Web Server\nThis question might fall into the IT category but as the lead developer I must come up with a solution to integration as well as pure software issues.\nWe just moved our web server off site and now I would like to keep a warm standby of both t...
I implemented a C# user control and succesfully tested it with the UserControlTestContainer.exe by manually interacting with it. Now I would like to programmatically, instead of manually, feed data into the control, through my unit tests and then automatically display the control filled with that data. I guess I need t...
Certainly! To programmatically test and display a user control in C#, you can create a test application (WinForms or WPF) that hosts your user control, allowing you to fill it with data and display it without relying on `UserControlTestContainer.exe`. Below, I'll show you how to create a simple WinForms application tha...
34,501
[ { "from": "human", "value": "I implemented a C# user control and succesfully tested it with the UserControlTestContainer.exe by manually interacting with it. Now I would like to programmatically, instead of manually, feed data into the control, through my unit tests and then automatically display the contro...
I have a need to implement a rating feature and would like to do it the mouse-over stars way similar to netflix. What is my best approach? Here are some that come to mind. code it up by hand in HTML and javascript use flash or a java applet use Starbox (if you have used Starbox, then feel free to comment on it) use an...
Implementing a mouse-over star rating feature can enhance user experience on your website. Let's look at the approaches you mentioned and evaluate the best options. ### 1. Code it up by hand in HTML and JavaScript This is a great approach if you want full control over the functionality and appearance of the rating fea...
33,557
[ { "from": "human", "value": "I have a need to implement a rating feature and would like to do it the mouse-over stars way similar to netflix.\nWhat is my best approach? Here are some that come to mind.\n\ncode it up by hand in HTML and\njavascript\nuse flash or a java applet\nuse Starbox (if you have used S...
I wrote a small WPF app where I like to prepend text into a RichTextBox, so that the newest stuff is on top. I wrote this, and it works: /// <summary> /// Prepends the text to the rich textbox /// </summary> /// <param name="textoutput">The text representing the character information.</param> priva...
Yes, it's definitely possible to add images to a `RichTextBox` in WPF. You can do this using the `Image` element along with a `BlockUIContainer` to embed it within the flow document. Below is an example of how you can modify your existing `PrependSimpleText` method to support adding images along with text. Here’s a re...
24,920
[ { "from": "human", "value": "I wrote a small WPF app where I like to prepend text into a RichTextBox, so that the newest stuff is on top. I wrote this, and it works: \n /// <summary>\n /// Prepends the text to the rich textbox\n /// </summary>\n /// <param name=\"textoutput\">The text representi...
I have a interface that defines some methods with attributes. These attributes need to be accessed from the calling method, but the method I have does not pull the attributes from the interface. What am I missing? public class SomeClass: ISomeInterface { MyAttribute GetAttribute() { StackTrace stackTr...
The issue you're encountering arises from the fact that the `GetAttribute()` method is attempting to retrieve attributes from the calling method (`DoSomething()`) but it only looks at the attributes defined on that method itself. In your case, since you're calling `GetAttribute()` from within `DoSomething()`, you are...
34,237
[ { "from": "human", "value": "I have a interface that defines some methods with attributes. These attributes need to be accessed from the calling method, but the method I have does not pull the attributes from the interface. What am I missing?\npublic class SomeClass: ISomeInterface\n{\n MyAttribute Get...
If you had some social networking applications and you wanted your users to interact with them using a mobile device would you use WAP or a slimmed down version of your regular website with HTML? My train of thought is that WAP is dead or at least starting to bleed to death because of all the mobile web browsers availa...
Your thinking is on the right track. WAP (Wireless Application Protocol) has largely become obsolete, especially with the rise of sophisticated mobile web browsers that can render standard HTML and CSS. Modern smartphones, like the iPhone, Android devices, and even high-end feature phones, support rich web browsing exp...
35,337
[ { "from": "human", "value": "If you had some social networking applications and you wanted your users to interact with them using a mobile device would you use WAP or a slimmed down version of your regular website with HTML?\nMy train of thought is that WAP is dead or at least starting to bleed to death bec...
I have to add a coupon table to my db. There are 3 types of coupons : percentage, amount or 2 for 1. So far I've come up with a coupon table that contains these 3 fields. If there's a percentage value not set to null then it's this kind of coupon. I feel it's not the proper way to do it. Should I create a CouponType ta...
Hi Teebot, Your instinct to create a separate `CouponType` table is a good one. This approach normalizes your database and makes it easier to manage and extend in the future. Here’s how you can design your database to handle the different types of coupons more effectively. ### Suggested Database Structure 1. **Coupo...
31,324
[ { "from": "human", "value": "I have to add a coupon table to my db. There are 3 types of coupons : percentage, amount or 2 for 1.\nSo far I've come up with a coupon table that contains these 3 fields. If there's a percentage value not set to null then it's this kind of coupon.\nI feel it's not the proper wa...
I am wondering what are the best practices for public methods and their return values. Is it ok to return types from referenced assemblies or should I make sure that all the parameters as well as return values are all from within the same assembly? The reason I ask is that I am in the process of merging assemblies wit...
When designing public methods in your assemblies, especially when considering merging assemblies and internalization, there are several best practices to keep in mind regarding types used as parameters and return values. Here’s a breakdown of these considerations: ### Best Practices for Public Methods 1. **Encapsulat...
34,396
[ { "from": "human", "value": "I am wondering what are the best practices for public methods and their return values. Is it ok to return types from referenced assemblies or should I make sure that all the parameters as well as return values are all from within the same assembly? \nThe reason I ask is that I a...
I've been thinking a lot lately about how to go about doing functional programming in C (not C++). Obviously, C is a procedural language and doesn't really support functional programming natively. Are there any compiler/language extensions that add some functional programming constructs to the language? GCC provides ...
C is inherently a procedural language, but there are ways to incorporate some functional programming concepts into your C code. While it lacks native support for many features common in functional programming languages, you can still employ certain techniques to achieve a more functional style. Here are some strategies...
33,065
[ { "from": "human", "value": "I've been thinking a lot lately about how to go about doing functional programming in C (not C++). Obviously, C is a procedural language and doesn't really support functional programming natively.\nAre there any compiler/language extensions that add some functional programming ...
It seems that when I have one mysql_real_query() function in a continuous while loop, the query will get executed OK. However, if multiple mysql_real_query() are inside the while loop, one right after the other. Depending on the query, sometimes neither the first query nor second query will execute properly. This seem...
The issue you're facing with executing multiple `mysql_real_query()` calls inside a continuous while loop could be related to how MySQL handles connections and queries. Below are some considerations and suggestions to help you debug and potentially resolve your issue: ### 1. MySQL Connection and Thread Safety - **Sin...
32,913
[ { "from": "human", "value": "It seems that when I have one mysql_real_query() function in a continuous while loop, the query will get executed OK.\nHowever, if multiple mysql_real_query() are inside the while loop, one right after the other. Depending on the query, sometimes neither the first query nor sec...
I am looking for a drawing library or code examples to draw images or vector shapes repeated along a path which could be curved. I found a cocoa library which is what I am looking for http://apptree.net/drawkitmain.htm but for .NET.
If you're looking for a .NET library to draw images or vector shapes along a curved path, you have a few options. Below are some libraries and code examples that you can use for this purpose. ### Libraries 1. **GDI+ (System.Drawing)** - You can use GDI+ with C# in .NET to manually calculate points along a curve an...
29,983
[ { "from": "human", "value": "I am looking for a drawing library or code examples to draw images or vector shapes repeated along a path which could be curved.\nI found a cocoa library which is what I am looking for http://apptree.net/drawkitmain.htm but for .NET.\n" }, { "from": "gpt", "value": "...
This is an accident and I don't think there's a solution. But I'm asking anyways. I introduced SVN to our webshop and I set all the dev pc's htdocs as part of the repository. (my first mistake) Now, one of my coworkers are working on a project and didn't commit their code to svn (second mistake). His reasoning was that...
I'm sorry to hear about the situation you are facing with your coworker's uncommitted code. Here are some steps you can take to try to recover the lost work: 1. **Check for Local Backups**: - Before diving into complex recovery methods, check if your coworker has any local backups or copies of their work. This mig...
26,841
[ { "from": "human", "value": "This is an accident and I don't think there's a solution. But I'm asking anyways.\nI introduced SVN to our webshop and I set all the dev pc's htdocs as part of the repository. (my first mistake)\nNow, one of my coworkers are working on a project and didn't commit their code to s...
One of the most difficult problems in my javascript experience has been the correct (that is "cross-browser") computing of a iframe height. In my applications I have a lot of dynamically generated iframe and I want them all do a sort of autoresize at the end of the load event to adjust their height and width. In the ca...
Calculating the height of an iframe's content dynamically can indeed be tricky due to the differences in how various browsers implement their rendering engines. Your current solution is a good starting point, but let's refine it a bit to improve reliability across browsers. ### Proposed Solution Here's an updated ver...
33,978
[ { "from": "human", "value": "One of the most difficult problems in my javascript experience has been the correct (that is \"cross-browser\") computing of a iframe height.\nIn my applications I have a lot of dynamically generated iframe and I want them all do a sort of autoresize at the end of the load event...
I'm running in a strange issue. My controller calls a drb object @request_handler = DRbObject.new(nil, url) availability_result = @request_handler.fetch_availability(request, @reservation_search, params[:selected_room_rates]) and this Drb object is making some searches. but sometimes, in a linux environments, I get a...
Hi Roberto, The error message you are encountering, "0xdba87b30 is recycled object," suggests that you are dealing with a situation where a DRb (Distributed Ruby) object is being used after it has already been recycled by the DRb server. This is often indicative of a problem with the lifecycle of objects in a distribu...
33,416
[ { "from": "human", "value": "I'm running in a strange issue. \nMy controller calls a drb object\n@request_handler = DRbObject.new(nil, url)\navailability_result = @request_handler.fetch_availability(request, @reservation_search, params[:selected_room_rates])\n\nand this Drb object is making some searches.\n...
In XAML I can declare a DataTemplate so that the template is used whenever a specific type is displayed. For example, this DataTemplate will use a TextBlock to display the name of a customer: <DataTemplate DataType="{x:Type my:Customer}"> <TextBlock Text="{Binding Name}" /> </DataTemplate> I'm wondering if it's po...
In XAML, it is not possible to directly define a `DataTemplate` for a generic type like `IList<Customer>` using the `{x:Type}` markup extension. The `{x:Type}` syntax can only be used with concrete types, and it does not support generics in the way you might be hoping. However, you can achieve this by defining a custo...
31,761
[ { "from": "human", "value": "In XAML I can declare a DataTemplate so that the template is used whenever a specific type is displayed. For example, this DataTemplate will use a TextBlock to display the name of a customer:\n<DataTemplate DataType=\"{x:Type my:Customer}\">\n <TextBlock Text=\"{Binding Name}...
I have a web page that is being displaying in a winform app using the WebBrowser Control. I need to perform an event when the HTML in the web page changes; however, I cannot find an event that is triggered for situations when the pages is updated through Ajax. The DocumentComplete, FileDownloaded, and ProgressChanged e...
In the .NET 2.0 WebBrowser Control, there isn't a built-in event specifically designed to capture changes to the HTML content that occur due to AJAX updates. Since you are already aware that events like `DocumentCompleted`, `FileDownloaded`, and `ProgressChanged` don't cover AJAX requests, polling for changes in the do...
34,015
[ { "from": "human", "value": "I have a web page that is being displaying in a winform app using the WebBrowser Control. I need to perform an event when the HTML in the web page changes; however, I cannot find an event that is triggered for situations when the pages is updated through Ajax. The DocumentComple...
I am thinking of running this custom targets to find out more about my project build status - jalopy - jdepend - cvs tagdiff report - custom task for NoUnit - generate UML diagram. ESS-Model What are your views?
Running custom targets to analyze and assess your project's build status can provide valuable insights into various aspects of your software project. Here’s a brief overview of each of the targets you mentioned and their potential benefits: 1. **Jalopy**: - **Purpose**: Jalopy is a code formatter for Java. It helps...
35,505
[ { "from": "human", "value": "I am thinking of running this custom targets to find out more about my project build status\n- jalopy\n- jdepend\n- cvs tagdiff report\n- custom task for NoUnit\n- generate UML diagram. ESS-Model\nWhat are your views?\n" }, { "from": "gpt", "value": "Running custom t...
Is it possible to call into COM objects via x86 assembly language? If so, how? Why would I want to do this? Let's say I've got two programs that I don't have source for - all I've got are the binaries. One of them implements a COM interface, the other doesn't. I want to inject code into the first program to call into t...
Yes, it is indeed possible to call into COM (Component Object Model) objects using x86 assembly language. However, doing so requires a good understanding of how COM works, the calling conventions in use, and how to manipulate the COM infrastructure from assembly. ### Steps to Call a COM Object from x86 Assembly 1. **...
16,872
[ { "from": "human", "value": "Is it possible to call into COM objects via x86 assembly language? If so, how?\nWhy would I want to do this? Let's say I've got two programs that I don't have source for - all I've got are the binaries. One of them implements a COM interface, the other doesn't. I want to inject ...
I am wondering if there is a tool that allows to track intermittent OutOfMemoryExceptions in C# code. Ideally, I am looking for something that would detect OOM situation and once it happens, it would allow viewing the content of the managed heap. I usually use WinDBG + SOS extension to view the heap state. The problem ...
Intermittent `OutOfMemoryException` issues can indeed be challenging to diagnose, especially if you don't have dump files when they occur. Here are a few tools and techniques you can consider to help track down these exceptions and analyze memory usage in your C# applications more effectively: ### 1. **DotMemory** [J...
35,335
[ { "from": "human", "value": "I am wondering if there is a tool that allows to track intermittent OutOfMemoryExceptions in C# code.\nIdeally, I am looking for something that would detect OOM situation and once it happens, it would allow viewing the content of the managed heap.\nI usually use WinDBG + SOS ext...
I have a form which takes both the user details and an image uploaded by them. I want to write the data to a user table and an image table but i am pretty sure that it cannot be done with just two separate insert statements. Any help would be much appreciated.
Certainly! When dealing with a situation where you want to insert data into two different tables (in your case, a user table and an image table), you typically want to ensure that both inserts are handled correctly, especially in the event of an error in one of the operations. Here’s a general approach you can follow t...
31,933
[ { "from": "human", "value": "I have a form which takes both the user details and an image uploaded by them. I want to write the data to a user table and an image table but i am pretty sure that it cannot be done with just two separate insert statements. Any help would be much appreciated.\n" }, { "f...
I'm trying to accomplish a seemingly super simple thing: from my unit test I want to replace the type being resolved with a mock/fake object. For example: the xml config states that a component of the service IInterface should resolve to ClassA. That's fine, but from my unit test I want the type to resolve to FakeClass...
It sounds like you're trying to perform dependency injection in a testing context, and you want to replace a registered service implementation with a mock or fake for testing purposes. Depending on the dependency injection container you are using, the approach can vary slightly, but here’s a general strategy to achieve...
35,617
[ { "from": "human", "value": "I'm trying to accomplish a seemingly super simple thing: from my unit test I want to replace the type being resolved with a mock/fake object.\nFor example: the xml config states that a component of the service IInterface should resolve to ClassA. That's fine, but from my unit te...
I'm doing some shennanigans with jQuery to put little plus/minus icons next to my expanders. Its similar to the windows file trees, or firebugs code expanders. It works, but its not specific enough. Hopefully this makes sense... $('div.toggle').hide();//hide all divs that are part of the expand/collapse $('ul.produc...
To specifically target the `<img class="expander">` that is next to the clicked anchor (`<a>`), you can use the `find()` method along with the context of `$(this)`. The `contents()` method you tried is not the correct choice, as it doesn't select child elements; rather, it retrieves child nodes including text nodes. ...
31,073
[ { "from": "human", "value": "I'm doing some shennanigans with jQuery to put little plus/minus icons next to my expanders. Its similar to the windows file trees, or firebugs code expanders.\nIt works, but its not specific enough. \nHopefully this makes sense...\n$('div.toggle').hide();//hide all divs that ...
Ok, so here's the lowdown. I want to setup a Version Control system and associated processes for my agency and want to learn from the mistakes of others before I leap into it. I'm looking at deploying subversion from a remotely hosted service (assembla - which will also help with offiste code backups!). We're an ASP.ne...
Hi Ed, It's great to hear that you're setting up a version control system for your agency. Transitioning from a network share model to a version control system like Subversion can significantly improve your workflow, collaboration, and code management. Here are some thoughts and advice based on your outlined model and...
31,804
[ { "from": "human", "value": "Ok, so here's the lowdown. I want to setup a Version Control system and associated processes for my agency and want to learn from the mistakes of others before I leap into it.\nI'm looking at deploying subversion from a remotely hosted service (assembla - which will also help wi...
I'm just in the middle of revisiting maven. Our team had a bad experience when we last looked at this, as it was during the period when maven was rearchitecting from 1.x to 2.x, so a lot of the dependencies we needed hadn't been moved across to the new repositories. However, I have the time to reconsider now. I am inte...
It's great that you’re revisiting Maven for documentation purposes! Both LaTeX and DocBook are solid choices for technical writing, and Maven can help automate the build process for producing PDFs. Here’s a guide to get you started, along with some tips, structure suggestions, and plugins to consider. ### Project Stru...
33,026
[ { "from": "human", "value": "I'm just in the middle of revisiting maven. Our team had a bad experience when we last looked at this, as it was during the period when maven was rearchitecting from 1.x to 2.x, so a lot of the dependencies we needed hadn't been moved across to the new repositories. However, I h...
So I have a flex tree component with a xmllistcollection as it's data provider. I would like to be able to rearrange the leaves and branches in the tree by drag and drop. I want to limit the drop area to the current level of the item being dragged. Like branch branch 0 leaf 1 leaf...
To implement a drag-and-drop functionality in a Flex tree component with an `XMLListCollection` as its data provider, you'll need to handle several aspects of the interaction, such as initiating the drag, determining valid drop locations, and updating the data model accordingly. Here's a step-by-step guide to achieve ...
33,929
[ { "from": "human", "value": "So I have a flex tree component with a xmllistcollection as it's data provider. I would like to be able to rearrange the leaves and branches in the tree by drag and drop. I want to limit the drop area to the current level of the item being dragged. Like \n \n branch\n ...
My predicament is fairly simple: This function gets the id of 'this' <li> element based on parent id of <ul>. It used to work fine but not any more, I will either need to have <ul> use classes instead of id while still being able to assign id of 'current' to the current element, or change my css. function myFunction...
It sounds like you're facing an issue with your CSS selectors where the styles for the `#leftlist li a` are taking precedence over your `#leftlist li#current a` rules. In CSS, more specific selectors generally take precedence over less specific ones. To address this, you can adjust your CSS by making the selector for ...
32,704
[ { "from": "human", "value": "My predicament is fairly simple: This function gets the id of 'this' <li> element based on parent id of <ul>. It used to work fine but not any more, I will either need to have <ul> use classes instead of id while still being able to assign id of 'current' to the current element...
I'm facing this problem again and again, but can't find any solution (except mine, which is not as a good one I guess). Don't know why, sometimes Flex Builder executes old source codes after making changes. While debugging I see how it steps through a source (e.g. changing local variables) which does not exist (even if...
It sounds like you're experiencing an issue with cached or outdated files in Flex Builder (now Adobe Flash Builder). This is a common problem, and there are several strategies you can try to resolve it without resorting to creating a new project every time. Here are some steps you can take to troubleshoot and fix the i...
35,050
[ { "from": "human", "value": "I'm facing this problem again and again, but can't find any solution (except mine, which is not as a good one I guess).\nDon't know why, sometimes Flex Builder executes old source codes after making changes. While debugging I see how it steps through a source (e.g. changing loca...
Problem: We have a web app that calls some web services asynchronously (from the page). Normally this is fine, but some are failing under load test (due to timeouts). What are (if there are any) any suggested "best practices" for calling web services asynchronously in a web application? Are there any patterns that m...
When dealing with asynchronous calls to web services in a web application, especially under load, there are several best practices and patterns to consider. Here are some suggestions: ### Best Practices 1. **Use Asynchronous Programming Patterns**: - Leverage modern asynchronous programming patterns such as `async...
34,782
[ { "from": "human", "value": "Problem:\n\nWe have a web app that calls some web services asynchronously (from the page).\nNormally this is fine, but some are failing under load test (due to timeouts).\n\nWhat are (if there are any) any suggested \"best practices\" for calling web services asynchronously in a...
I'm using http://urlrewriter.net/ to rewrite urls at my website. For example, I'm rewriting: http://www.example.com/schedule.aspx?state=ca to http://www.example.com/california.aspx What I'm trying to do (for SEO purposes) to to dynamically add the meta tag: <meta name="robots" content="noindex,follow" /> only to t...
To determine which version of the page has been requested (the original URL or the rewritten URL), you can use server-side scripting. Here’s how you can approach this depending on the server-side technology you are using: ### 1. Using ASP.NET If you are working with ASP.NET, you can check the request URL in the code-...
33,710
[ { "from": "human", "value": "I'm using http://urlrewriter.net/ to rewrite urls at my website. For example, I'm rewriting:\n\nhttp://www.example.com/schedule.aspx?state=ca\n\nto\n\nhttp://www.example.com/california.aspx\n\nWhat I'm trying to do (for SEO purposes) to to dynamically add the meta tag:\n<meta na...
i kinda know how to create a Custom Web Part. But now i need to create a Smart Part. Any idea how it works or what a easy way is to create it? Maybe some nice links to articles? Please Help Regards Etienne
Creating a Smart Part involves building a reusable component in SharePoint, similar to a custom web part, but typically with more dynamic capabilities and a user-friendly configuration interface. Smart Parts are often used in SharePoint environments to create more interactive and configurable web parts without requirin...
34,623
[ { "from": "human", "value": "i kinda know how to create a Custom Web Part. But now i need to create a Smart Part.\nAny idea how it works or what a easy way is to create it? Maybe some nice links to articles?\nPlease Help\nRegards\nEtienne\n" }, { "from": "gpt", "value": "Creating a Smart Part in...
When writing unit tests, do you place your tests inside the assembly you wish to test or in a separate test assembly? I have written an application with the tests in classes in a separate assembly for ease of deloyment as I can just exclude the assembly. Does anyone write there tests within the assembly you wish to tes...
When it comes to writing unit tests, there are two common approaches regarding where to place the test code: in a separate test assembly or within the same assembly as the code being tested. Each approach has its advantages and disadvantages, and the choice often depends on the project requirements, team preferences, a...
35,630
[ { "from": "human", "value": "When writing unit tests, do you place your tests inside the assembly you wish to test or in a separate test assembly? I have written an application with the tests in classes in a separate assembly for ease of deloyment as I can just exclude the assembly. Does anyone write there ...
OK, I have just been reading and trying for the last hour to import a CSV file from access into MySQL, but I can not get it to do it correctly, no matter what I try. My table is like so: +-----------------+------------- | Field | Type +-----------------+------------- | ARTICLE_NO | varchar(20) | ARTICLE_...
It sounds like you're having a few issues with importing a CSV file into MySQL and displaying that data correctly through PHP. Let's break down your problem and tackle it step by step. ### 1. CSV Format and MySQL Import Your CSV file is semicolon-delimited and uses quotes around the values. The command you provided t...
34,384
[ { "from": "human", "value": "OK, I have just been reading and trying for the last hour to import a CSV file from access into MySQL, but I can not get it to do it correctly, no matter what I try.\nMy table is like so:\n+-----------------+-------------\n| Field | Type\n+-----------------+-----------...
A few years ago I did a lot of work with CGI.pm. I'm evaluating using it again for a quick project. Can someone bring me up to speed on the current state of developing with CGI.pm in the "Web 2.0" world? What are the best libraries on CPAN to use with it? Are there clean ways to include jQuery, YUI, other CSS libs,...
CGI.pm has been a staple of Perl web programming for many years, and while it's somewhat dated compared to modern frameworks, it is still viable for simpler projects, particularly if you're dealing with legacy code or just need to whip up something quickly. Here’s an overview of the current state of CGI.pm in the conte...
34,648
[ { "from": "human", "value": "A few years ago I did a lot of work with CGI.pm. I'm evaluating using it again for a quick project. Can someone bring me up to speed on the current state of developing with CGI.pm in the \"Web 2.0\" world? What are the best libraries on CPAN to use with it? Are there clean w...
I'm resizing a JPanel inside of a JScrollPane, and I want to make sure that the point on the JPanel where my mouse is currently located retains its position with respect to the JScrollPane after the resize (like Google maps does when you zoom in/out). I find the mouse position on the JPanel, which lets me deal with the...
The approach you've taken to zoom in and out of a `JPanel` within a `JScrollPane` is mostly correct, but there are a few adjustments needed to ensure that the zooming behavior works as intended. The primary issue is in how you're calculating the new viewport position after resizing the `zoomPanel`. You want to ensure...
29,179
[ { "from": "human", "value": "I'm resizing a JPanel inside of a JScrollPane, and I want to make sure that the point on the JPanel where my mouse is currently located retains its position with respect to the JScrollPane after the resize (like Google maps does when you zoom in/out).\nI find the mouse position ...
A .net desktop application will send information to a central server, there will be potentially thousands and thousands of deskop apps sending info to my server(s). The data will be small in size. Would .net web services be good for this scenerio or would WCF be better suited? What are the pros/cons?
In your scenario of potentially thousands of .NET desktop applications sending small pieces of data to a central server, both .NET Web Services (commonly using ASP.NET Web API) and Windows Communication Foundation (WCF) are viable options. Each technology has its strengths and weaknesses, so let's discuss them: ### .N...
32,734
[ { "from": "human", "value": "A .net desktop application will send information to a central server, there will be potentially thousands and thousands of deskop apps sending info to my server(s).\nThe data will be small in size.\nWould .net web services be good for this scenerio or would WCF be better suited?...
What would be a clever way to make a 'please wait' control for a Flex application for long running operations like calling a webservice. I am not asking about the graphical portion of it - just the 'controller' part. How should I trigger it and hide it. I am planning to make just a simple canvas with text in. For insta...
Creating a 'please wait' control in a Flex application for long-running operations involves both intercepting web service calls and managing the visibility of the control efficiently. Here's a structured approach to implement this: ### Intercepting Web Service Calls 1. **Custom Web Service Wrapper**: Instead of direc...
34,502
[ { "from": "human", "value": "What would be a clever way to make a 'please wait' control for a Flex application for long running operations like calling a webservice.\nI am not asking about the graphical portion of it - just the 'controller' part. How should I trigger it and hide it. I am planning to make ju...
I'm working on a large legacy java application for which an important feature was automatic scaling of GUI Components based on monitor resolution. We are upgrading the JVM on which it runs from 1.4.2 to 1.6 and now the scaling is broken due to a change in the implementation of java.awt.Container.getPreferredSize(). ge...
Upgrading a legacy Java application, especially when it relies on specific behaviors of the Java AWT/Swing components, can introduce challenges like the one you’ve encountered with `Container.getPreferredSize()`. While your temporary solution by overriding the `Component` class is effective, it's understandable that yo...
29,747
[ { "from": "human", "value": "I'm working on a large legacy java application for which an important feature was automatic scaling of GUI Components based on monitor resolution. We are upgrading the JVM on which it runs from 1.4.2 to 1.6 and now the scaling is broken due to a change in the implementation of ...
I have the following file/line: pc=1 ct=1 av=112 cv=1100 cp=1700 rec=2 p=10001 g=0 a=0 sz=5 cr=200 pc=1 ct=1 av=113 cv=1110 cp=1800 rec=2 p=10001 g=0 a=10 sz=5 cr=200 and so on. I wish to parse this and take the key value pairs and put them in a structure: struct pky { pky() : a_id(0), sz_id(0), ...
To create a C++ class that can parse lines like the ones you've provided and populate a structure with key-value pairs, we can follow these steps: 1. **Define the structure `pky`**: This will hold the parsed data. 2. **Create a class that handles the parsing**: This class will include a method to process each line and...
33,211
[ { "from": "human", "value": "I have the following file/line:\npc=1 ct=1 av=112 cv=1100 cp=1700 rec=2 p=10001 g=0 a=0 sz=5 cr=200\npc=1 ct=1 av=113 cv=1110 cp=1800 rec=2 p=10001 g=0 a=10 sz=5 cr=200\n\nand so on. \nI wish to parse this and take the key value pairs and put them in a structure:\nstruct pky\n{\...
I have a unique development situation and would like some input from others. I have a situation where I need to load loose xaml files within a rich client application. A given loose xaml file may have references to an assembly not currently loaded in memory so the referenced assembly is loaded before the loading the l...
Your situation is indeed complex, especially given the constraints of loading and unloading assemblies in a single application domain without shutting down the application. Here are several strategies that could be considered to manage version-specific loose XAML and assemblies while avoiding namespace conflicts: ### ...
30,672
[ { "from": "human", "value": "I have a unique development situation and would like some input from others.\nI have a situation where I need to load loose xaml files within a rich client application.\nA given loose xaml file may have references to an assembly not currently loaded in memory \nso the referenced...
Is is possible to intergrate VOIP capabilities, particularly phone dialing, with Office Communications Server 2007 and .Net? If so, are there any good references for this? I would be especially interested if this could be hosted within an ASP.Net or Silverlight application.
Yes, it is possible to integrate VoIP capabilities, including phone dialing, with Office Communications Server (OCS) 2007 using .NET. Microsoft Office Communications Server 2007 supports integration with various applications through its APIs, enabling features such as instant messaging, presence, and VoIP capabilities....
33,454
[ { "from": "human", "value": "Is is possible to intergrate VOIP capabilities, particularly phone dialing, with Office Communications Server 2007 and .Net? If so, are there any good references for this? I would be especially interested if this could be hosted within an ASP.Net or Silverlight application.\n" ...
I'm in the process of trying to move our company from SalesForce to SugarCRM, but I've run in to a nasty bug (the moment I add a custom field to Accounts, all accounts stop showing up). We've paid for support from the SugarCRM people, but they only have take-forever-then-get-a-worthless-response-level tech support for...
Moving to a new CRM system can be quite challenging, especially when dealing with issues in a complex framework like SugarCRM. It sounds like you're dealing with a specific bug related to the custom field functionality. Here's a general approach to debugging and understanding the SugarCRM codebase that might help you r...
24,556
[ { "from": "human", "value": "I'm in the process of trying to move our company from SalesForce to SugarCRM, but I've run in to a nasty bug (the moment I add a custom field to Accounts, all accounts stop showing up). We've paid for support from the SugarCRM people, but they only have take-forever-then-get-a-...
Is there any way of coaxing Access 2007 into using a .UDL file? Specifically, one of our older products uses an Interbase 6.0 database. My client would like to link to his database, for read/write, using Access 2007 (in the short term). While this isn't my preferred way of doing things at all, given it's all single-us...
Access 2007 does not directly support linking to a .UDL (Universal Data Link) file for database connections. While .UDL files are useful for testing and configuring OLE DB connections, Access expects to use ODBC or native data sources directly. Since you've already established a successful connection to your Interbase...
34,731
[ { "from": "human", "value": "Is there any way of coaxing Access 2007 into using a .UDL file? \nSpecifically, one of our older products uses an Interbase 6.0 database. My client would like to link to his database, for read/write, using Access 2007 (in the short term).\nWhile this isn't my preferred way of do...
I am wondering what are the heuristics when creating releases of libraries to be included in other projects in relation to dependencies and if I should include them or not. My problem is the following: I have a CommonUtilities library that provides as the name implies a set of utilities that can be used in more than on...
When creating library releases that will be included in other projects, managing dependencies can be challenging. Here are some heuristics to help you navigate this situation, particularly in relation to your `CommonUtilities` library and `Oracle.DataAccess.dll`: ### 1. **Package Management**: - Utilize a package m...
34,400
[ { "from": "human", "value": "I am wondering what are the heuristics when creating releases of libraries to be included in other projects in relation to dependencies and if I should include them or not.\nMy problem is the following:\nI have a CommonUtilities library that provides as the name implies a set of...
I'm having real difficulties with XAML files in Silverlight since they get very big very fast when using Blend. It just becomes a wall of text after only a handful of controls are added and animated. I'm hoping a better vesion of Blend will come out soon, so that our designers will never even have to see XAML. For now,...
Managing large XAML files in Silverlight can indeed be challenging, especially as your projects grow. Here are some strategies you might consider to keep your XAML files organized and more manageable: ### 1. Use User Controls Instead of putting all your XAML in a single file, you can create User Controls for different...
33,520
[ { "from": "human", "value": "I'm having real difficulties with XAML files in Silverlight since they get very big very fast when using Blend. It just becomes a wall of text after only a handful of controls are added and animated.\nI'm hoping a better vesion of Blend will come out soon, so that our designers ...
What is the equivalent to web controls in frameworks other than ASP.Net? Specifically I'd like to know about Java, PHP and Ruby on Rails. What are the relative merits/faults of each of these frameworks for web development? I've had some exposure to ASP.Net and have been asked to look into developing an app that will ha...
When comparing web controls in ASP.NET to similar concepts in Java, PHP, and Ruby on Rails, it’s important to understand that the terminology and approach can differ across frameworks. Here’s an overview of equivalent concepts in these technologies, along with their merits and faults for web development: ### 1. Java (...
32,275
[ { "from": "human", "value": "What is the equivalent to web controls in frameworks other than ASP.Net?\nSpecifically I'd like to know about Java, PHP and Ruby on Rails.\nWhat are the relative merits/faults of each of these frameworks for web development?\nI've had some exposure to ASP.Net and have been asked...
So i'm used to PHPMySQL where if I want to transfer a table from one database to another, I: go to the table click "export" CTRL-C go to the other database, insert SQL, CTRL-V In MS SQL Server 2008 Express, I try: right-click, script table as, CREATE TO but this only gives me the CREATE TABLE sql, not the INSERT I...
In SQL Server, especially in the 2008 Express edition, there isn't a direct equivalent to the PHPMyAdmin export functionality that you are used to with MySQL. However, you can achieve similar results by using SQL Server Management Studio (SSMS) to generate both the CREATE TABLE statement and the INSERT statements in a ...
35,575
[ { "from": "human", "value": "So i'm used to PHPMySQL where if I want to transfer a table from one database to another, I:\n\ngo to the table\nclick \"export\"\nCTRL-C\ngo to the other database, insert SQL, CTRL-V\n\nIn MS SQL Server 2008 Express, I try:\n\nright-click, script table as, CREATE TO\n\n\nbut th...
At work, I'm frequently working on projects where numerous properties of certain objects have to be set during their construction or early during their lifetime. For the sake of convenience and readability, I often use the With statement to set these properties. I find that With Me.Elements .PropertyA = True .P...
Using the `With` statement can indeed enhance the readability and maintainability of your code, especially when dealing with numerous properties of an object. However, there are several considerations, both positive and negative, that you may want to take into account when deciding whether to use `With` in your project...
35,028
[ { "from": "human", "value": "At work, I'm frequently working on projects where numerous properties of certain objects have to be set during their construction or early during their lifetime. For the sake of convenience and readability, I often use the With statement to set these properties. I find that\nWit...
One of my projects use the MyISAM engine in MySQL, but I'm considering changing it to InnoDB as I need transaction support here and there. What should I look at or consider before doing this? Can I just change the engine, or should the data be prepared for it?
Switching from MyISAM to InnoDB in MySQL can provide several benefits, particularly regarding transaction support, row-level locking, and foreign key constraints. However, there are several factors to consider before making this transition. Here are some things to look at and consider: ### 1. **Data Preparation and Mi...
34,470
[ { "from": "human", "value": "One of my projects use the MyISAM engine in MySQL, but I'm considering changing it to InnoDB as I need transaction support here and there.\n\nWhat should I look at or consider before doing this? \nCan I just change the engine, or should the data be prepared for it?\n\n" }, {...
I'm trying to pull data from an ODBC app to SQL2005(dev ed) DB on an hourly basis. When I run SSIS the option to import all tables and views is grayed out and forces your to write a query. How would I go about setting up a SSIS integration service to update ALL 250 some tables on an hourly basis.
To set up an SSIS (SQL Server Integration Services) package to import all tables from an ODBC data source to SQL Server 2005 (Developer Edition) on an hourly basis, you would typically follow these steps: ### Step 1: Create the SSIS Package 1. **Open SQL Server Business Intelligence Development Studio (BIDS)**: This i...
33,818
[ { "from": "human", "value": "I'm trying to pull data from an ODBC app to SQL2005(dev ed) DB on an hourly basis. When I run SSIS the option to import all tables and views is grayed out and forces your to write a query. How would I go about setting up a SSIS integration service to update ALL 250 some tables ...
I would like to setup an open source solution for calendaring in a medium sized enterprise. We would be using this from Thunderbird (lightning add-on), Microsoft Outlook. I want to see others' free/busy schedule, invite them to meetings etc. It would be really nice if I could have a calendar for resources like conferen...
Setting up an open-source calendaring solution that integrates well with Thunderbird (using the Lightning add-on) and Microsoft Outlook for a medium-sized enterprise is definitely feasible. Below are some potential solutions and guidelines to help you set up your system effectively. ### Recommended Open Source Solutio...
32,325
[ { "from": "human", "value": "I would like to setup an open source solution for calendaring in a medium sized enterprise. We would be using this from Thunderbird (lightning add-on), Microsoft Outlook. I want to see others' free/busy schedule, invite them to meetings etc.\nIt would be really nice if I could h...
I'm not looking for bug tracking, per se. But more like a build tool: as a developer, it would be awesome if every time I compiled or tried to run code, I could redirect debugging output and record the bugs I most commonly introduce, how long they take to resolve, etc. Is there anything like this out there?
While there may not be a single tool that encompasses all of your specified features, there are several tools and practices you can combine to achieve a similar workflow. Here are a few options that might meet your needs: ### 1. **Integrated Development Environments (IDEs)** Many modern IDEs like **Visual Studio**, **...
35,347
[ { "from": "human", "value": "I'm not looking for bug tracking, per se. But more like a build tool: as a developer, it would be awesome if every time I compiled or tried to run code, I could redirect debugging output and record the bugs I most commonly introduce, how long they take to resolve, etc.\nIs ther...
Working in VS 2008 When working on on ASPX file in Source mode, if i've specified a StyleSheetTheme in the page directive of the file, then Visual Studio will provide me with AutoCompletion lists of the possible skinID values for a control e.g. <asp:Button ID="myButton" runat="server" SkinID=" //Having typed this much...
In Visual Studio 2008, ASP.NET Web User Controls (`.ascx` files) do not have a direct way to specify a `StyleSheetTheme` like ASPX pages do, which is why you don't get the same IntelliSense for `SkinID` values. However, you can still achieve some level of functionality to help with IntelliSense for skin IDs in your us...
32,302
[ { "from": "human", "value": "Working in VS 2008\nWhen working on on ASPX file in Source mode, if i've specified a StyleSheetTheme in the page directive of the file, then Visual Studio will provide me with AutoCompletion lists of the possible skinID values for a control \ne.g.\n<asp:Button ID=\"myButton\" ru...
Is there a way of converting special folder paths to a full file name (and back) or do I need to code my own (not hard I know, but no point if it exists) e.g. I want to store the file name of a template for an application, which the user can then change, it exists in the LocalApplicationData folder. what I would like t...
In .NET, there isn't a built-in method specifically designed to convert special folder paths to their environment variable representations (like `%LOCALAPPDATA%`) or to convert them back. However, you can simplify the process by creating helper methods that handle this conversion. Here's how you can implement these he...
33,465
[ { "from": "human", "value": "Is there a way of converting special folder paths to a full file name (and back) or do I need to code my own (not hard I know, but no point if it exists)\ne.g. I want to store the file name of a template for an application, which the user can then change, it exists in the LocalA...
I have this SQL Server CE database which I would like to convert to SQL Server 2008 database because I want it to be accessible through the network. I am using SQL Server 2008 Express and VB9. Any idea?
Converting a SQL Server Compact Edition (SQL Server CE) database to SQL Server 2008 can be a bit of a process, but it's certainly doable. Here are the steps you can follow to achieve this: ### 1. Install Required Tools Ensure you have the following installed: - SQL Server 2008 Express - SQL Server Management Studio (S...
32,008
[ { "from": "human", "value": "I have this SQL Server CE database which I would like to convert to SQL Server 2008 database because I want it to be accessible through the network. I am using SQL Server 2008 Express and VB9.\nAny idea?\n" }, { "from": "gpt", "value": "Converting a SQL Server Compac...
I want to write an Add-In for Visual Studio that provides instant search for the solution explorer. So you press a key combination and while you are typing a list first containing all files of the solution explorer gets narrowed down. But how can I get access to the solution explorer using C#? Does anyone have some goo...
Creating an Add-In for Visual Studio that provides an instant search feature for the Solution Explorer is a great idea! To accomplish this, you will be working with the Visual Studio Extensibility (VSIX) model. Here's a general guide on how to get started, along with some resources to help you. ### Steps to Create a V...
32,385
[ { "from": "human", "value": "I want to write an Add-In for Visual Studio that provides instant search for the solution explorer. So you press a key combination and while you are typing a list first containing all files of the solution explorer gets narrowed down.\nBut how can I get access to the solution ex...
Caution: This question is over nine years old! Your best option is to search for newer questions, or to search the answers below looking for your specific version of MVC, as many answers here are obsolete now. If you do find an answer that works for your version, please make sure the answer contains the version of M...
You're right in noting that handling checkboxes in a form to represent a collection of objects can feel a bit cumbersome, especially when the objects don't inherently carry a "selected" state. Your current approach using `FormCollection` does work, but it's not the most elegant or type-safe way to handle this scenario ...
33,019
[ { "from": "human", "value": "Caution: This question is over nine years old!\nYour best option is to search for newer questions, or to search the answers below looking for your specific version of MVC, as many answers here are obsolete now. \nIf you do find an answer that works for your version, please mak...
In Windows Mobile, when you open Internet Explorer and type in a URL that your device can't connect to, you are notified of this and prompted to (manually) navigate to the screen where you can actually do something about this as a user (Network Management), like so: alt text http://www.freeimagehosting.net/uploads/d3d9...
In Windows Mobile development, particularly when working with the .NET Compact Framework, there are certain limitations when it comes to managing network settings and handling connectivity issues programmatically. Let's address both of your questions. ### Question 1: Controlling ComboBoxes in Network Management Progr...
34,505
[ { "from": "human", "value": "In Windows Mobile, when you open Internet Explorer and type in a URL that your device can't connect to, you are notified of this and prompted to (manually) navigate to the screen where you can actually do something about this as a user (Network Management), like so:\nalt text ht...
I just want ask the steps when trying to create a simple SQL select statement in UNIX inside/within IF..THEN..FI statement. I know how to use the 'select' and 'if..then' statements in SQL*Plus, but I'm having a difficulties having a UNIX script to point to variables: If 'ABC' to 'Select...' Example: if [ "$?" = 'ABC' ]...
To create a UNIX script that executes SQL queries based on certain conditions, you can use a combination of shell scripting and SQL*Plus (or any other SQL client). In your case, you want to check the value of a variable and then execute a SQL `SELECT` statement based on that value. Here's a general outline of how you ...
33,899
[ { "from": "human", "value": "I just want ask the steps when trying to create a simple SQL select statement in UNIX inside/within IF..THEN..FI statement.\nI know how to use the 'select' and 'if..then' statements in SQL*Plus, but I'm having a difficulties having a UNIX script to point to variables: If 'ABC' t...
Let's say I have two arrays: int ArrayA[] = {5, 17, 150, 230, 285}; int ArrayB[] = {7, 11, 57, 110, 230, 250}; Both arrays are sorted and can be any size. I am looking for an efficient algorithm to find if the arrays contain any duplicated elements between them. I just want a true/false answer, I don't care which ele...
You're correct that the naive solution involves a time complexity of \( O(m \log n) \), where \( m \) is the size of `ArrayA` and \( n \) is the size of `ArrayB`. However, since both arrays are sorted, we can take advantage of that to create a more efficient solution with a time complexity of \( O(m + n) \). ### Effic...
27,171
[ { "from": "human", "value": "Let's say I have two arrays:\n\nint ArrayA[] = {5, 17, 150, 230, 285};\nint ArrayB[] = {7, 11, 57, 110, 230, 250};\n\nBoth arrays are sorted and can be any size. I am looking for an efficient algorithm to find if the arrays contain any duplicated elements between them. I just wa...
I am using some code which was originally taken from the Apple sample ViewTransitions to swap two views with each other. CATransition *animation = [CATransition animation]; [animation setDelegate:self]; [animation setType:kCATransitionFade]; [animation setDuration:0.3f]; [animation setTimingFunction:[CAMediaTimingFunct...
The issue you're experiencing with flickering during the view transition can indeed be tricky to diagnose, especially since it appears to be device-specific and intermittent. Here are several strategies you can try to mitigate or resolve the flickering issue during your view transitions: ### 1. Set the Initial View St...
32,438
[ { "from": "human", "value": "I am using some code which was originally taken from the Apple sample ViewTransitions to swap two views with each other.\nCATransition *animation = [CATransition animation];\n[animation setDelegate:self];\n[animation setType:kCATransitionFade];\n[animation setDuration:0.3f];\n[a...
We are having a problem whenever our application makes use of the XML Serializer, when we are logged in as a user who has a username containing Japanese characters. We have prepared a sample application that tests the serializer on its own: TestClass myClass = new TestClass(); myClass.MyS...
The issue you're encountering appears to be related to the handling of file paths that contain non-ASCII characters (in this case, Japanese characters). The `XmlSerializer` generates temporary files during serialization, and if the path to the temporary directory cannot be created or accessed correctly due to the chara...
34,899
[ { "from": "human", "value": "We are having a problem whenever our application makes use of the XML \nSerializer, when we are logged in as a user who has a username containing \nJapanese characters. \nWe have prepared a sample application that tests the serializer on its own:\n TestClass myClass...
Is there a way to accept input from more than one mouse separately? I'm interested in making a multi-user application and I thought it would be great if I could have 2 or more users holding wireless mice each interacting with the app individually with a separate mouse arrow. Is this something I should try to farm out t...
Creating a multi-user application that allows multiple mice to interact with an application individually can be quite interesting! As you've discovered, there are solutions specifically for Linux, such as the Multi-Pointer X (MPX) extension. However, the approach you take can vary based on the operating system and prog...
35,408
[ { "from": "human", "value": "Is there a way to accept input from more than one mouse separately? I'm interested in making a multi-user application and I thought it would be great if I could have 2 or more users holding wireless mice each interacting with the app individually with a separate mouse arrow.\nIs...
I am creating an touch screen application using Swing and have a request to change one of buttons so that it will behave like a keyboard when the button is held down. (First of all, I am not sure that the touch screen will allow the user to "hold down" the button, but pretend that they can for now) I was going to go do...
If you want to achieve behavior similar to a keyboard when a button is held down in a Swing application, you can certainly use `mousePressed` and `mouseReleased` events. However, you don't need to create a separate thread or manage synchronization manually. Instead, you can use a `javax.swing.Timer` to repeatedly trigg...
36,164
[ { "from": "human", "value": "I am creating an touch screen application using Swing and have a request to change one of buttons so that it will behave like a keyboard when the button is held down.\n(First of all, I am not sure that the touch screen will allow the user to \"hold down\" the button, but pretend...
I have a class that inherits from a base class and implements the following... Public Function CompareTo(ByVal obj As Object) As Integer Implements System.IComparable.CompareTo Now the base class it inherits from also implements this System.IComparable.CompareTo so I'm getting the following compiler warning: Warni...
In Visual Basic .NET, as you mentioned, there's no built-in pragma directive similar to C# that allows you to suppress specific warnings for a single line of code. However, you can manage warnings in a couple of ways. Since you've already edited the .vbproj file to suppress warning 42015, here are a few alternatives an...
36,652
[ { "from": "human", "value": "I have a class that inherits from a base class and implements the following...\n Public Function CompareTo(ByVal obj As Object) As Integer Implements System.IComparable.CompareTo\n\nNow the base class it inherits from also implements this System.IComparable.CompareTo so I'm g...
This is a follow up from this question. I'm using this slightly modified script to enumerate all installed MSI packages: strComputer = "." Set objWMIService = GetObject("winmgmts:" & _ "{impersonationLevel=impersonate}!\\" & _ strComputer & _ "\root\cimv2") Set colSoftware = objWMIService.ExecQuery _ ...
The slow performance you're experiencing when using WMI to enumerate installed MSI packages with `Win32_Product` is a known issue. Here are some potential reasons and workarounds to improve the speed: ### Reasons for Slow Performance: 1. **WMI Query Complexity**: The `Win32_Product` class not only enumerates installed...
32,326
[ { "from": "human", "value": "This is a follow up from this question.\nI'm using this slightly modified script to enumerate all installed MSI packages:\nstrComputer = \".\"\n\nSet objWMIService = GetObject(\"winmgmts:\" & _\n \"{impersonationLevel=impersonate}!\\\\\" & _\n strComputer & _\n \"\\root...
When I first discovered the Strategy pattern, I was amazed of the seemingly endless possibilities it offered to me and my programs. I could better encapsulate my models' behaviour and even exchange this behaviour on the fly. But the strategy could also be used to to provide traits and payload to the containing object -...
Both the Strategy and Policy patterns are powerful design patterns that provide flexibility in how classes behave and how they interact. They are often confused because they share some similarities, but they serve different purposes and are best suited for different scenarios. Here’s a breakdown of each pattern and gui...
33,370
[ { "from": "human", "value": "When I first discovered the Strategy pattern, I was amazed of the seemingly endless possibilities it offered to me and my programs. I could better encapsulate my models' behaviour and even exchange this behaviour on the fly. But the strategy could also be used to to provide trai...
I have a class that maintans a reference to a Hashtable and serializes/deserializes that Hashtable. After the call to SerializationInfo.GetValue, the Hashtable is not fully deserialized because the deserialization happens during the IDeserialization calback. Hashtable hashtable = (Hashtable) info.GetValue("hash", typeo...
In .NET, the deserialization process can indeed be a bit complex, especially with collections like `Hashtable`. When implementing `IDeserializationCallback`, it's important to understand the timing of when deserialization of objects occurs. The `OnDeserialization` method of a `Hashtable` is intended to be called after...
35,239
[ { "from": "human", "value": "I have a class that maintans a reference to a Hashtable and serializes/deserializes that Hashtable. After the call to SerializationInfo.GetValue, the Hashtable is not fully deserialized because the deserialization happens during the IDeserialization calback.\nHashtable hashtable...
I have a flex application that has three tabs. Each of these tabs has a component that loads a ‘form’ that has a dropdown combo box. These combo boxes depend on external data in order to populate correctly. Currently the first tab is being created and the data that should be populated in the combo box is not in there. ...
Yes, you can achieve this by using events in your Flex application to manage the timing of when the components are created based on the completion of your data loading process. Here's a high-level approach on how you could implement this: 1. **Data Loading Process**: First, ensure that you have a mechanism to load you...
35,435
[ { "from": "human", "value": "I have a flex application that has three tabs. Each of these tabs has a component that loads a ‘form’ that has a dropdown combo box. These combo boxes depend on external data in order to populate correctly. Currently the first tab is being created and the data that should be pop...
Is there any way to make a function (the ones I'm thinking of are in the style of the simple ones I've made which generate the fibonnacci sequence from 0 to a point, and all the primes between two points) run indefinitely. E.g. until I press a certain key or until a time has passed, rather than until a number reaches...
Yes, you can certainly create a function that runs indefinitely until a specific condition is met, such as pressing a key or reaching a time limit. In Python, you can accomplish this using the `time` module for handling time-based execution and the `keyboard` module (which you may need to install) for detecting key pre...
31,785
[ { "from": "human", "value": "Is there any way to make a function (the ones I'm thinking of are in the style of the simple ones I've made which generate the fibonnacci sequence from 0 to a point, and all the primes between two points) run indefinitely. E.g. until I press a certain key or until a time has p...
Our policy when delivering a new version is to create a branch in our VCS and handle it to our QA team. When the latter gives the green light, we tag and release our product. The branch is kept to receive (only) bug fixes so that we can create technical releases. Those bug fixes are subsequently merged on the trunk. ...
The situation you're describing is common in teams that adopt a branching strategy for managing releases, especially when balancing the need for stability with the need for development agility. Here are some strategies to help you handle the tension between maintaining a stable trunk and allowing for necessary refactor...
29,085
[ { "from": "human", "value": "Our policy when delivering a new version is to create a branch in our VCS and handle it to our QA team. When the latter gives the green light, we tag and release our product. The branch is kept to receive (only) bug fixes so that we can create technical releases. Those bug fix...
Is there any way to export data (not necessarily schema) to an access database via asp.net? The server has no office components installed and the process must occur via a webpage (like an excel export).
Yes, you can export data to an Access database from an ASP.NET application even if the server does not have Office components installed. Since you're looking for a way to do this via a webpage, you can use ADO.NET with the Access Database Engine (ACE) OLEDB provider or other libraries that allow interaction with Access...
28,700
[ { "from": "human", "value": "Is there any way to export data (not necessarily schema) to an access database via asp.net?\nThe server has no office components installed and the process must occur via a webpage (like an excel export).\n" }, { "from": "gpt", "value": "Yes, you can export data to an...
How do I call a url in order to process the results? I have a stand-alone reporting servlet which I link to for reports. I want to email these reports now, if I were doing this in the browser, I could just use an xhttprequest, and process the results - I basically want to do the same thing in Java, but I'm not sure how...
To make an HTTP request to a URL in Java and process the results (like a PDF or HTML), you can use the `HttpURLConnection` class from the `java.net` package or a more modern HTTP client from the `java.net.http` package available in Java 11 and later. Below is an example of how to achieve this using both methods: ### U...
26,544
[ { "from": "human", "value": "How do I call a url in order to process the results?\nI have a stand-alone reporting servlet which I link to for reports. I want to email these reports now, if I were doing this in the browser, I could just use an xhttprequest, and process the results - I basically want to do th...
I know that I can't use this web control in my C# windows application and that I am restricted to DataGridView control. But this does not display results in an elegant manner as the Web.UI.Webcontrol.GridView control but instead displays it like the results when a SQL query is executed in sql server. I prefer not going...
If you're limited to using the `DataGridView` control in a C# Windows Forms application and are looking for a more polished and elegant presentation of your data, there are several strategies you can use to improve the user interface and user experience: ### 1. Custom Styling The `DataGridView` allows for a certain de...
31,317
[ { "from": "human", "value": "I know that I can't use this web control in my C# windows application and that I am restricted to DataGridView control. But this does not display results in an elegant manner as the Web.UI.Webcontrol.GridView control but instead displays it like the results when a SQL query is e...
I have 3 lists, I will make them simple here. list of letters A B C list of numbers 1 2 3 Mixed A,1 A,2 B,2 B,3 C,1 C,3 I need to know what is missing: A,3 B,1 C,2 The list of letters has about 85 entries and the list of numbers has about 500 entries. The mixed list has...
To determine the missing combinations from the mixed list given the two lists (letters and numbers), you have a few options. Using a database (like MySQL) can be more efficient for large datasets, while Turbo Delphi can work well for smaller datasets or simpler tasks. Here’s how to approach it using both methods: ### ...
32,907
[ { "from": "human", "value": "I have 3 lists, I will make them simple here. \nlist of letters\nA\nB\nC \nlist of numbers\n1\n2\n3 \nMixed\nA,1\nA,2\nB,2\nB,3\nC,1\nC,3\nI need to know what is missing:\nA,3\nB,1\nC,2\nThe list of letters has about 85 entries\nand...
Are there compilers for high-level languages (such as C) which can be targeted to various architectures by specifying the hardware resources of the target? I'm wondering if there are compilers which can target an architecture by specifying features such as the available registers and instruction set of the processor (i...
Yes, there are compilers and compiler frameworks designed to allow for targeting new architectures by configuring hardware resource specifications, including registers, instruction sets, and memory layouts. Here are some notable options: 1. **LLVM (Low Level Virtual Machine)**: LLVM is a highly modular compiler fra...
35,082
[ { "from": "human", "value": "Are there compilers for high-level languages (such as C) which can be targeted to various architectures by specifying the hardware resources of the target?\nI'm wondering if there are compilers which can target an architecture by specifying features such as the available registe...
How to get the File Directory of a file (C:\myfolder\subfoler\mydoc.pdf). I also want to add the size of the subfolders, and finally the main folder size. This is for a .NET CLR that I need to integrate with SQL Server 2005 for a SSRS report.
To get the file directory, size of subfolders, and the main folder size in a .NET CLR, you can utilize the `System.IO` namespace. Below is a sample code snippet that demonstrates how to achieve this. The code will retrieve the directory of a specified file, calculate the total size of the specified folder, including al...
32,041
[ { "from": "human", "value": "How to get the File Directory of a file (C:\\myfolder\\subfoler\\mydoc.pdf). I also want to add the size of the subfolders, and finally the main folder size. This is for a .NET CLR that I need to integrate with SQL Server 2005 for a SSRS report.\n" }, { "from": "gpt", ...
I'm attempting to deliver the same message whether its over FTP or email, but the saved file keeps coming out as different sizes. The textual content of the message is the same, but the nonprintable characters must be accounting for the different size! When transferring the text file over FTP (in Binary mode to prevent...
Yes, the differences you're experiencing in the file sizes when transferring the same text over FTP and email could stem from several factors related to how emails are structured, especially when it comes to line endings and MIME formatting. ### Key Points to Consider: 1. **Line Endings:** - Text files often use d...
20,507
[ { "from": "human", "value": "I'm attempting to deliver the same message whether its over FTP or email, but the saved file keeps coming out as different sizes. The textual content of the message is the same, but the nonprintable characters must be accounting for the different size!\nWhen transferring the tex...
I'm using the Silverlight UnitTest framerwork does anyone have a good example have how to unit test an application with it? I'm using it quite successfully to unit test a silverlight class library. Any pointers and links would be greatly appreciated. Thanks, Nath
Sure! Here are some pointers and a basic example of how to use the Silverlight Unit Test framework to unit test a Silverlight application. Since you mentioned you are already able to test a Silverlight class library successfully, this example will build on that. ### Getting Started with Silverlight Unit Tests 1. **Se...
35,616
[ { "from": "human", "value": "I'm using the Silverlight UnitTest framerwork does anyone have a good example have how to unit test an application with it?\nI'm using it quite successfully to unit test a silverlight class library.\nAny pointers and links would be greatly appreciated.\nThanks,\nNath\n" }, {...
Having played around a little with both Tkinter and wxPython, I like Tkinter much better in terms of how clean my source code looks. However, it doesn't seem to have as many features; in particular it doesn't have tabs (as in, the tabs at the top of a Firefox window). A little Googling on the subject offers a few sugg...
You can definitely create tabbed interfaces in Tkinter using the built-in `ttk` module, which provides access to the themed Tk widgets, including a `Notebook` widget specifically designed for tabbed interfaces. This is a more modern and robust way to create tabs in Tkinter compared to older methods or external librarie...
35,317
[ { "from": "human", "value": "Having played around a little with both Tkinter and wxPython, I like Tkinter much better in terms of how clean my source code looks. However, it doesn't seem to have as many features; in particular it doesn't have tabs (as in, the tabs at the top of a Firefox window).\nA little...
I'm just getting back into C++ after a couple of years of doing a lot of C#, and recently Objective C. One thing I've done before is to roll my own iterator adapter for std::map that will deref to just the value part, rather than the key-value pair. This is quite a common and natural thing to do. C# provides this facil...
As of my last knowledge update in October 2023, Boost doesn't have a built-in facility specifically designed for directly accessing only the values of a `std::map` using an iterator adapter, similar to C#'s `Values` property or Objective-C's `allValues`. However, creating your own iterator adapter using Boost's iterato...
34,554
[ { "from": "human", "value": "I'm just getting back into C++ after a couple of years of doing a lot of C#, and recently Objective C.\nOne thing I've done before is to roll my own iterator adapter for std::map that will deref to just the value part, rather than the key-value pair. This is quite a common and n...
The question proper Has anyone experienced this exception on a single core machine? The I/O operation has been aborted because of either a thread exit or an application request. Some context On a single CPU system, only one MSIL instruction is executed at a time, threads notwithstanding. Between operations, the runti...
Your situation highlights a common issue that arises in multithreaded programming, especially when dealing with asynchronous I/O operations. Let's delve into a few aspects of your problem to help you better understand and potentially resolve it. ### 1. Understanding the Exception The exception you're encountering—`IOE...
35,445
[ { "from": "human", "value": "The question proper\nHas anyone experienced this exception on a single core machine?\n\nThe I/O operation has been aborted because of either a thread exit or an application request.\n\nSome context\nOn a single CPU system, only one MSIL instruction is executed at a time, threads...
I have a J2EE based web application, in which on clicking a button I need to create a word file from Java. I want to be able to sent the printing command to this file, so that the file is being printed without the user having to open the document and do it manually. Could anyone please tell me if this is possible and i...
Creating a Word file and sending it directly to a printer from a J2EE web application can be achieved through a combination of libraries and potentially some server-side configurations. Here's a high-level overview of the steps you would need to follow to achieve this functionality: ### Steps to Create a Word File and...
31,842
[ { "from": "human", "value": "I have a J2EE based web application, in which on clicking a button I need to create a word file from Java. I want to be able to sent the printing command to this file, so that the file is being printed without the user having to open the document and do it manually.\nCould anyon...