instruction
stringlengths
14
27.6k
completion
stringlengths
3
38.3k
__original_row_idx
int64
0
50k
conversations
listlengths
2
2
We are using CruiseControl with a StarTeam server and having problems with the StarTeam server crashing. We are wondering if we are hitting the server too hard. Across 3 CruiseControl machines and a total of about 30 projects, we are logging into StarTeam and checking for modifications every minute or so. Most of ou...
Using CruiseControl with a StarTeam server and encountering performance issues could indeed be related to the frequency and scale of the operations being performed. Here are some insights regarding your situation and general performance considerations: ### StarTeam Performance Considerations 1. **Frequency of Polling...
31,554
[ { "from": "human", "value": "We are using CruiseControl with a StarTeam server and having problems with the StarTeam server crashing. We are wondering if we are hitting the server too hard. Across 3 CruiseControl machines and a total of about 30 projects, we are logging into StarTeam and checking for modi...
Does anybody have best practices for exception handling ? When searching the web I find a lot of best practices on a code level (don't catch general exceptions, don't rethrow new exceptions etc.) What I am looking for is best practises on a higher level, stuff like : within an application catch exceptions on the ui le...
Absolutely! Exception handling is a crucial aspect of software design and architecture, especially for ensuring system stability and providing a good user experience. Here are some best practices for exception handling at a higher architectural level: ### General Principles 1. **Centralized Exception Handling**: -...
33,814
[ { "from": "human", "value": "Does anybody have best practices for exception handling ?\nWhen searching the web I find a lot of best practices on a code level (don't catch general exceptions, don't rethrow new exceptions etc.) What I am looking for is best practises on a higher level, stuff like :\n\nwithin ...
What are the new features you would like to avail in ASP.NET MVC in the future releases? I Would say 1) A separate view engine for ASP.NET MVC instead of current WebForm view engine. 2) Asynchronous Controller Actions. 3) Subcontrollers / Partial Requests.
Your suggestions for new features in ASP.NET MVC are quite insightful! Here are some additional features that could enhance the framework: 1. **Improved Built-in Support for API Development**: Expanding the capabilities of ASP.NET MVC to facilitate the creation of RESTful APIs more seamlessly, with features like autom...
34,824
[ { "from": "human", "value": "What are the new features you would like to avail in ASP.NET MVC in the future releases?\nI Would say \n1) A separate view engine for ASP.NET MVC instead of current WebForm view engine.\n2) Asynchronous Controller Actions.\n3) Subcontrollers / Partial Requests. \n" }, { ...
I'm trying to setup a bidirectional localConnection (LC) between two flash objects on the same web page. One object is AS2 and the other AS3. I'm using one LC object to send and receive data on each swf. (This shouldn't matter, right? I tried using two objects, one for sending and one for receiving, but got the same p...
Setting up bidirectional communication between ActionScript 2 (AS2) and ActionScript 3 (AS3) using LocalConnection can indeed be tricky, especially since both versions of ActionScript have subtle differences and limitations. Here are some points to consider and troubleshoot your setup: 1. **Connection Names**: Ensure ...
32,078
[ { "from": "human", "value": "I'm trying to setup a bidirectional localConnection (LC) between two flash objects on the same web page. One object is AS2 and the other AS3.\n\nI'm using one LC object to send and receive data on each swf. (This shouldn't matter, right? I tried using two objects, one for sendin...
I'm working on a simple little function to download a file from an SSL-enabled website using the WinInet functions, namely InternetOpen and InternetOpenURL. I had was initially failing the call to InternetOpenURL with a ERROR_INTERNET_INVALID_CA (12045) because I was using a self-signed certificate on my test server,...
The issue you're experiencing with `InternetQueryOption` returning an `ERROR_INTERNET_INCORRECT_HANDLE` (12018) is likely due to using the wrong handle. The `HINTERNET` handle you obtained from `InternetOpen` is a handle for the session, and `InternetQueryOption` requires a handle that is valid for the type of option y...
33,422
[ { "from": "human", "value": "I'm working on a simple little function to download a file from an SSL-enabled website using the WinInet functions, namely InternetOpen and InternetOpenURL. I had was initially failing the call to InternetOpenURL with a ERROR_INTERNET_INVALID_CA (12045) because I was using a s...
I´m trying to expose services using jax-ws but the first surprise i got was that Weblogic does not support inner classes for request/response objects. After get over this situation here, i´m facing another challenge: Generate getXXX() rather than/additionally to the isXXX() Method. I need to generate this methods cause...
When working with JAX-WS and JAXB, especially in environments like WebLogic that have specific requirements, you may encounter issues with how getter methods are generated for your classes. In your case, you want to generate the `getXXX()` methods instead of (or in addition to) the `isXXX()` methods for Boolean propert...
31,267
[ { "from": "human", "value": "I´m trying to expose services using jax-ws but the first surprise i got was that Weblogic does not support inner classes for request/response objects. After get over this situation here, i´m facing another challenge:\nGenerate getXXX() rather than/additionally to the isXXX() Met...
Maven has a plugin called maven-scm-plugin, which can interact with source control systems. According to the documentation, I should be able to export a project like this: mvn scm:export -DconnectionUrl=scm:svn:svn://url... -DexportDirectory=./project-export However when I run this command with maven 2.0.9, I got the ...
To force Maven to use a specific version of a plugin when you don't have a `pom.xml` file, you can specify the version of the plugin directly in the command line. Here's how you can do it for the `maven-scm-plugin`: You need to use the following syntax when running your command: ```bash mvn org.apache.maven.plugins:m...
36,356
[ { "from": "human", "value": "Maven has a plugin called maven-scm-plugin, which can interact with source control systems. According to the documentation, I should be able to export a project like this:\nmvn scm:export -DconnectionUrl=scm:svn:svn://url... -DexportDirectory=./project-export\n\nHowever when I r...
I have a page on which I must load controls dynamically based on the user selection. Let's say that I have something like this: public static readonly Dictionary<string, string> DynamicControls = new Dictionary<string, string> { { "UserCtrl1", "~/Controls/UserCtrl1.ascx" }, { "UserCtrl2...
You can eliminate the switch statement by using a dictionary to map your control names to the types of the controls. This way, you can dynamically instantiate the controls based on the user's selection without needing a long switch statement. Below is a modified version of your code that demonstrates this approach: ##...
33,006
[ { "from": "human", "value": "I have a page on which I must load controls dynamically based on the user selection.\nLet's say that I have something like this:\npublic static readonly Dictionary<string, string> DynamicControls = new Dictionary<string, string>\n {\n { \"UserCtrl1\", \"~/Cont...
Line of code is: BreakDown(Full As String, FName As String, PName As String, Ext As String) As Integer took this from a tutorial so not sure what I'm doing wrong :/ thats a new function if it isn't obvious
It looks like you are trying to define a new function in a programming language, but you haven't provided enough context to pinpoint exactly what you might be doing wrong. However, I can provide you with a general structure for how to define a function based on the line of code you shared. Here's an example of how yo...
34,593
[ { "from": "human", "value": "Line of code is:\nBreakDown(Full As String, FName As String, PName As String, Ext As String) As Integer\n\ntook this from a tutorial so not sure what I'm doing wrong :/\nthats a new function if it isn't obvious\n" }, { "from": "gpt", "value": "It looks like you are t...
So I'm creating some HTML using javascript based on where the user clicks on the page. On page load the script replaces an empty div with a ul and some data. The user clicks on that data to receive more and so on. Now when the user navigates off the page and then hits the back button to go back to the page, IE displays...
The behavior you're experiencing with Internet Explorer (IE) is likely related to how IE handles caching and the back/forward navigation in relation to dynamically updated content. Other browsers have different behaviors that may automatically restore the DOM state more effectively when the user navigates back. ### Po...
28,142
[ { "from": "human", "value": "So I'm creating some HTML using javascript based on where the user clicks on the page. On page load the script replaces an empty div with a ul and some data. The user clicks on that data to receive more and so on. Now when the user navigates off the page and then hits the back b...
I'd like to link to some PDFs in one of my controller views. What's the best practice for accomplishing this? The CakePHP webroot folder contains a ./files/ subfolder, I am confounded by trying to link to it without using "magic" pathnames in my href (e.g. "/path/to/my/webroot/files/myfile.pdf"). What are my options? E...
In CakePHP, linking to files within the `webroot` directory can be handled in a clean and maintainable way using the built-in URL generation methods. Here’s how you can do it: ### 1. Use the `Router::url()` Method You can generate URLs using CakePHP's routing system, which helps you create platform-agnostic links. Wh...
31,595
[ { "from": "human", "value": "I'd like to link to some PDFs in one of my controller views. What's the best practice for accomplishing this? The CakePHP webroot folder contains a ./files/ subfolder, I am confounded by trying to link to it without using \"magic\" pathnames in my href (e.g. \"/path/to/my/webroo...
When a user comes across your site's 404 File Not Found error page, it is most likely not what they were looking for. Here, you have the opportunity to turn a dead end into a resource that can help your visitor find whatever they were looking for. If you were going to create the perfect 404 File Not Found error page, w...
Creating an effective 404 File Not Found error page is essential for maintaining a good user experience, even when users encounter an error. The ideal 404 page should do several things to turn a frustrating experience into an opportunity for engagement. Here are the key features that make up the perfect 404 page: ### ...
32,910
[ { "from": "human", "value": "When a user comes across your site's 404 File Not Found error page, it is most likely not what they were looking for. Here, you have the opportunity to turn a dead end into a resource that can help your visitor find whatever they were looking for.\nIf you were going to create th...
I am opening a process (with os.popen() ) that, for some commands, detects certain keypresses (e.g. ESC - not the character, the key). Is there a way to send keypress events to the process?
Sending keypress events directly to a process opened with `os.popen()` can be a bit tricky, as `os.popen()` creates a pipe to the process's standard input and output but does not directly support simulating keypresses in the way that might be needed for detecting function keys like ESC. However, you can achieve this b...
34,013
[ { "from": "human", "value": "I am opening a process (with os.popen() ) that, for some commands, detects certain keypresses (e.g. ESC - not the character, the key). Is there a way to send keypress events to the process?\n" }, { "from": "gpt", "value": "Sending keypress events directly to a proce...
I have just converted a project from Visual Studio 2003 to 2005 and although most of it 'converted' fine, I have a series of STL errors from the following line: void SomeFn( std::vector<CSomeObject*>::iterator it, std::vector<CSomeObject*>::iterator itBegin = NULL, std::vector<CSomeObject*>::iterator itEnd = NULL ); T...
The issue you are encountering is due to the changes in default argument handling between Visual Studio 2003 and Visual Studio 2005, particularly regarding the default arguments in templates. In the code you provided, you are trying to use `NULL` as a default argument for an iterator type, which is not directly convert...
34,994
[ { "from": "human", "value": "I have just converted a project from Visual Studio 2003 to 2005 and although most of it 'converted' fine, I have a series of STL errors from the following line:\nvoid SomeFn( std::vector<CSomeObject*>::iterator it,\nstd::vector<CSomeObject*>::iterator itBegin = NULL,\nstd::vecto...
There should be something akin to \w that can match any code-point in Letters or Marks category (not just the ASCII ones), and hopefully have filters like [[P*]] for punctuation, etc.
In regular expressions, particularly those used in programming languages and libraries that support Unicode, you can indeed create patterns to match different categories of Unicode characters, including letters and marks. ### Matching Unicode Letters To match any character in the Unicode Letters category (which includ...
34,194
[ { "from": "human", "value": "There should be something akin to \\w that can match any code-point in Letters or Marks category (not just the ASCII ones), and hopefully have filters like [[P*]] for punctuation, etc.\n" }, { "from": "gpt", "value": "In regular expressions, particularly those used i...
I'm trying out asp.net mvc for a new project, and I ran across something odd. When I use the MVC UI helpers for textboxes, the values get persisted between calls. But, when I use a series of radio buttons, the checked state doesn't get persisted. Here's an example from my view. <li> <%=Html.RadioButton("provi...
In ASP.NET MVC, the behavior you're experiencing with the radio buttons not maintaining their checked state is actually due to how the model binding and the HTML helpers work together, particularly with the use of `RedirectToAction`. When you perform a `RedirectToAction`, the values posted from the form (including rad...
30,137
[ { "from": "human", "value": "I'm trying out asp.net mvc for a new project, and I ran across something odd. When I use the MVC UI helpers for textboxes, the values get persisted between calls. But, when I use a series of radio buttons, the checked state doesn't get persisted.\nHere's an example from my vie...
Environment: Windows Server 2003 R2 Enterprise 64bit, SP2 .NET framework is supposedly installed (2.0 SP2, 3.0 SP2, 3.5 SP1) I say "supposedly" because they are listed as installed under Add/Remove programs. I'm not sure it's properly installed, because the "ASP.NET" tab isn't added to any of the sites in IIS. In the I...
The error message "%1 is not a valid Win32 application" typically indicates an issue with a mismatch between the application pool settings in IIS and the architecture of the ASP.NET application (32-bit vs 64-bit). Given that you are running on Windows Server 2003 R2 64-bit, here are some steps you can take to resolve ...
29,984
[ { "from": "human", "value": "Environment:\nWindows Server 2003 R2 Enterprise 64bit, SP2\n.NET framework is supposedly installed (2.0 SP2, 3.0 SP2, 3.5 SP1)\nI say \"supposedly\" because they are listed as installed under Add/Remove programs. I'm not sure it's properly installed, because the \"ASP.NET\" tab ...
I am looking to clean up some of the HTML generated by a .NET 2.0 TreeView controller. Switching to another version/model is not an available option. My first crack yielded an extended TreeView, with an overridden Render that Regex'd out the text I didn't need and output to the page. The problem was when I tried to co...
When you override the `Render` method of a `TreeView` in ASP.NET, you’re directly manipulating the HTML that is generated for the control. This can lead to issues with postback events, especially for controls that rely on specific IDs and structures in the HTML to manage their state and handle events correctly. Here a...
29,311
[ { "from": "human", "value": "I am looking to clean up some of the HTML generated by a .NET 2.0 TreeView controller. Switching to another version/model is not an available option.\nMy first crack yielded an extended TreeView, with an overridden Render that Regex'd out the text I didn't need and output to th...
I would like to display the up time of the machine my code is running, how can I do that?
To display the uptime of the machine where your code is running, you can use different methods depending on the programming language you are using. Below are some examples in various languages: ### Python You can use the `psutil` library to get the uptime of the system: ```python import psutil def get_uptime(): ...
34,061
[ { "from": "human", "value": "I would like to display the up time of the machine my code is running, how can I do that?\n" }, { "from": "gpt", "value": "To display the uptime of the machine where your code is running, you can use different methods depending on the programming language you are usi...
I want to be able to get a list of all differences between two JavaScript object graphs, with the property names and values where the deltas occur. For what it is worth, these objects are usually retrieved from the server as JSON and typically are no more than a handful of layers deep (i.e. it may be an array of objec...
To compare two JavaScript object graphs and obtain a list of all the differences, you can write a recursive function that traverses both objects, keeping track of changes in properties, values, and array lengths. Here’s a simple implementation that will help you get started: ```javascript function deepDiff(obj1, obj2,...
31,248
[ { "from": "human", "value": "I want to be able to get a list of all differences between two JavaScript object graphs, with the property names and values where the deltas occur. \nFor what it is worth, these objects are usually retrieved from the server as JSON and typically are no more than a handful of lay...
On Unix, is there any way that one process can change another's environment variables (assuming they're all being run by the same user)? A general solution would be best, but if not, what about the specific case where one is a child of the other? Edit: How about via gdb?
In Unix-like operating systems, environment variables are stored in the process's memory space and can typically only be modified by the process that owns that memory space. However, there are some ways to change the environment variables of another process under certain conditions. ### 1. **Child Process**: When a p...
34,638
[ { "from": "human", "value": "On Unix, is there any way that one process can change another's environment variables (assuming they're all being run by the same user)? A general solution would be best, but if not, what about the specific case where one is a child of the other?\nEdit: How about via gdb?\n" }...
The default value for the first item in a drop down list is the name of the database field. I need to change it to a more user friendly name. How do I change the value?
To change the default value of the first item in a drop-down list in a web application or software, you'll typically follow these steps. The exact method may vary depending on the platform or framework you're using (e.g., HTML, JavaScript, React, etc.), but here are some general guidelines: ### If You Are Using HTML: ...
31,951
[ { "from": "human", "value": "The default value for the first item in a drop down list is the name of the database field. I need to change it to a more user friendly name. How do I change the value?\n" }, { "from": "gpt", "value": "To change the default value of the first item in a drop-down list...
I'm trying to figure out how to parse out the text of an email from any quoted reply text that it might include. I've noticed that usually email clients will put an "On such and such date so and so wrote" or prefix the lines with an angle bracket. Unfortunately, not everyone does this. Does anyone have any idea on h...
Parsing email replies can indeed be challenging due to the variability in how different email clients format replies. Below, I'll outline a general approach to detect and remove quoted reply text from emails in C#. This method will handle several common patterns, though it may not cover every possible case. ### Common...
32,997
[ { "from": "human", "value": "I'm trying to figure out how to parse out the text of an email from any quoted reply text that it might include. I've noticed that usually email clients will put an \"On such and such date so and so wrote\" or prefix the lines with an angle bracket. Unfortunately, not everyone...
I'd like to create a view in Sharepoint that has a filter based on a date field. The filter should be >= Today and <- Today + 90 days. I found a reference to the <Today OffsetDays=”5” /> CAML function and could probably use this by setting the view using the API. My question is how do i set this using the brows...
Creating a view in SharePoint with a date filter using the browser-based interface can be done without needing to resort to CAML directly. Here's how you can filter a date field to show items where the date is greater than or equal to today and less than today + 90 days: ### Steps to Create a View with a Date Filter: ...
28,570
[ { "from": "human", "value": "I'd like to create a view in Sharepoint that has a filter based on a date field. \nThe filter should be >= Today and <- Today + 90 days. \nI found a reference to the \n<Today OffsetDays=”5” />\n\nCAML function and could probably use this by setting the view using the API. \nM...
I was wondering is there is a fool-proof way to run a program on windows such that I'm guaranteed that no interactive dialogs of any kind are displayed. I've tried the registry ErrorMode hack, calling _CrtSetReportMode(), etc., but they all have holes in them or require you to modify the program. I need a way to run an...
Running a program on Windows in a way that guarantees no interactive dialogs or windows are displayed is a challenging task, particularly because many applications are designed to interact with users, and there are various ways they might attempt to do this. Running the program as a service may mitigate some issues, b...
25,197
[ { "from": "human", "value": "I was wondering is there is a fool-proof way to run a program on windows such that I'm guaranteed that no interactive dialogs of any kind are displayed.\nI've tried the registry ErrorMode hack, calling _CrtSetReportMode(), etc., but they all have holes in them or require you to ...
I'm not too familiar with generics (concept or the syntax) in general (short of using them in collections and what not), but I was wondering if the following is the best way of accomplishing what I want. Actually, I'm not entirely positive generics will solve my problem in this case. I've modelled and mapped a few doze...
Using generics in your situation can certainly help you create a more type-safe and reusable method for performing CRUD operations in your NHibernate implementation. Instead of passing the object type as a string and using `CType`, you can leverage generics to define a method that operates on any type that you specify....
29,921
[ { "from": "human", "value": "I'm not too familiar with generics (concept or the syntax) in general (short of using them in collections and what not), but I was wondering if the following is the best way of accomplishing what I want. Actually, I'm not entirely positive generics will solve my problem in this ...
Hey, in the Programming Pearls book, there is a source code for setting, clearing and testing a bit of the given index in an array of ints that is actually a set representation. The code is the following: #include<stdio.h> #define BITSPERWORD 32 #define SHIFT 5 #define MASK 0x1F #define N 10000000 int a[1+ N/BITSPERWO...
Certainly! The code you provided is implementing a bit set using an array of integers, where each integer in the array is used to represent multiple bits. Let's break down the `SHIFT` and `MASK` constants to understand their roles in this implementation. ### Definitions: - **BITSPERWORD**: This constant is set to 32, ...
32,029
[ { "from": "human", "value": "Hey, in the Programming Pearls book, there is a source code for setting, clearing and testing a bit of the given index in an array of ints that is actually a set representation.\nThe code is the following:\n#include<stdio.h>\n#define BITSPERWORD 32\n#define SHIFT 5\n#define MASK...
I've been developing a GUI library for Windows (as a personal side project, no aspirations of usefulness). For my main window class, I've set up a hierarchy of option classes (using the Named Parameter Idiom), because some options are shared and others are specific to particular types of windows (like dialogs). The way...
The Named Parameter Idiom can indeed introduce complexity, especially when trying to enforce a fluent interface using inheritance and templates. While your current design using templates does allow for the flexibility of different window option types, it can lead to cumbersome code and boilerplate due to the need for t...
28,482
[ { "from": "human", "value": "I've been developing a GUI library for Windows (as a personal side project, no aspirations of usefulness). For my main window class, I've set up a hierarchy of option classes (using the Named Parameter Idiom), because some options are shared and others are specific to particular...
Note This is not a REBOL-specific question. You can answer it in any language. Background The REBOL language supports the creation of domain-specific languages known as "dialects" in REBOL parlance. I've created such a dialect for list comprehensions, which aren't natively supported in REBOL. A good cartesian product a...
To create a readable, non-recursive cartesian product algorithm that can handle an arbitrary number of sets, we can use an iterative approach. Below is a Python implementation of such an algorithm, which can be easily translated to REBOL or any other language. ### Cartesian Product Algorithm in Python ```python def c...
32,640
[ { "from": "human", "value": "Note\nThis is not a REBOL-specific question. You can answer it in any language.\nBackground\nThe REBOL language supports the creation of domain-specific languages known as \"dialects\" in REBOL parlance. I've created such a dialect for list comprehensions, which aren't natively ...
I'm doing .NET 3.5 programming in VB for a class. I have a .mdb database with 3 related tables, and a table adapter with some queries on it that look like this: SELECT PropertyID, Street, Unit, City, Zip, Type, Bedrooms, Bathrooms, Area, MonthlyRent FROM tblProperties Then in a form i have a DataGridView. ...
To properly display only the selected columns from your query in a `DataGridView`, you should ensure that your `DataTable` or the object you are binding to the `DataGridView` contains only those columns. However, since you mentioned that your current approach with a `DataTable` is returning all columns, let's refine yo...
30,817
[ { "from": "human", "value": "I'm doing .NET 3.5 programming in VB for a class. I have a .mdb database with 3 related tables, and a table adapter with some queries on it that look like this:\nSELECT PropertyID, Street, Unit, City, Zip, Type, Bedrooms, Bathrooms, Area, MonthlyRent\nFROM tblPropert...
I'm using maven 2.0.9 with Eclipse 3.3.2. I'm used to launching a fresh build once per day by a mvn clean install. Then, if I refresh my Eclipse project, it will be "polluted" by files from Maven's target directory. That's very annoying while performing searches, getting resources by "open resource" and so on. Is there...
Yes, you can configure Eclipse to exclude the Maven `target` directory from the project so that it does not show up in searches or resource navigation. Here's how to do that: ### Option 1: Exclude the `target` Directory via Project Properties 1. **Right-click on your project** in the Project Explorer. 2. Select **Pro...
34,886
[ { "from": "human", "value": "I'm using maven 2.0.9 with Eclipse 3.3.2.\nI'm used to launching a fresh build once per day by a mvn clean install.\nThen, if I refresh my Eclipse project, it will be \"polluted\" by files from Maven's target directory.\nThat's very annoying while performing searches, getting re...
I'm looking for (simple) examples of problems for which JMS is a good solution, and also reasons why JMS is a good solution in these cases. In the past I've simply used the database as a means of passing messages from A to B when the message cannot necessarily be processed by B immediately. A hypothetical example of su...
Hi Don, You bring up an interesting point, and it’s true that both database tables and message queues can be used to achieve similar outcomes when dealing with asynchronous processes. However, JMS (Java Message Service) offers specific benefits and features that can make it a more suitable solution in many cases. Let’...
31,611
[ { "from": "human", "value": "I'm looking for (simple) examples of problems for which JMS is a good solution, and also reasons why JMS is a good solution in these cases. In the past I've simply used the database as a means of passing messages from A to B when the message cannot necessarily be processed by B ...
I'm using a JFrame in which the CENTER portion of the BorderLayout is occupied by a JScrollPane that wraps around a JPanel. What I'm finding is that when I initiate the action that actually causes the JPanel to be displayed, the display doesn't change. But when I resize the JFrame, the new JScrollPane has now magical...
When you resize a JFrame or any other component in Swing, a series of methods are invoked that ultimately lead to a refresh of the component's display. The key methods involved in this process are: 1. **`revalidate()`**: This method is called on a component to indicate that its layout needs to be recalculated. If you ...
33,274
[ { "from": "human", "value": "I'm using a JFrame in which the CENTER portion of the BorderLayout is occupied by a JScrollPane that wraps around a JPanel. What I'm finding is that when I initiate the action that actually causes the JPanel to be displayed, the display doesn't change. But when I resize the JF...
I'm trying to access the command line and execute a command, and then return the output to my aspx page. A good example would be running dir on page load of an aspx page and returning the output via Response.Write(). I have tried using the code below. When I try debugging this it runs but never finishes loading and no ...
It looks like you're trying to run a command line instruction from an ASP.NET page and capture the output to display on the page. There are a couple of issues with your current implementation that can cause it to hang and not return the output. Here's an improved version of your code that should work correctly: 1. Yo...
31,216
[ { "from": "human", "value": "I'm trying to access the command line and execute a command, and then return the output to my aspx page. A good example would be running dir on page load of an aspx page and returning the output via Response.Write(). I have tried using the code below. When I try debugging this i...
Is there a way to temporary swap Flex's main application to another then switch back. Scenario : Main app started, display login box - then go on with main app. Login box is an application as well. Application.application is a read only property, that attempt failed.
In Adobe Flex, applications are generally designed to be self-contained and switching between applications dynamically (like loading one application to replace another in the same runtime environment) is not straightforward. However, there are a few approaches you can consider to achieve a similar effect, such as displ...
25,449
[ { "from": "human", "value": "Is there a way to temporary swap Flex's main application to another then switch back.\nScenario : Main app started, display login box - then go on with main app. Login box is an application as well. \nApplication.application is a read only property, that attempt failed.\n" }, ...
Jeff Atwood wrote about this here, and while I understand the theoretical performance boost a stored procedure could offer, it does seem like a tremendous pain. What types of queries would you see the most performance increase using stored procedures, and what types of queries would you rather just build on the fly? An...
Stored procedures can indeed offer performance benefits in certain scenarios, but they can also introduce complexity and maintenance overhead. Here’s a breakdown of when you might see performance improvements with stored procedures and when you might prefer building queries dynamically. ### Scenarios for Performance I...
31,277
[ { "from": "human", "value": "Jeff Atwood wrote about this here, and while I understand the theoretical performance boost a stored procedure could offer, it does seem like a tremendous pain.\nWhat types of queries would you see the most performance increase using stored procedures, and what types of queries ...
I have SQL query, which is working nice on Oracle and MSSQL. Now I'm trying this on PostgreSQL and it gives a strange exception: org.postgresql.util.PSQLException: ERROR: missing FROM-clause entry for table "main" Here is the query: SELECT * FROM "main" main INNER JOIN "something_link" something_link ON main."id"...
The error you're encountering in PostgreSQL (`ERROR: missing FROM-clause entry for table "main"`) typically indicates that the SQL parser is having trouble resolving the table alias you are trying to use. The problem seems to be related to how you're quoting identifiers in your query. In PostgreSQL, double quotes are ...
34,047
[ { "from": "human", "value": "I have SQL query, which is working nice on Oracle and MSSQL. Now I'm trying this on PostgreSQL and it gives a strange exception: org.postgresql.util.PSQLException: ERROR: missing FROM-clause entry for table \"main\"\nHere is the query: \nSELECT *\nFROM \"main\" main\n INNER ...
We've had an ongoing need here that I can't figure out how to address using the stock Maven 2 tools and documentation. Some of our developers have some very long running JUnit tests (usually stress tests) that under no circumstances should be run as a regular part of the build process / nightly build. Of course we can ...
To address the requirement of running long-running JUnit tests on demand in a Maven 2 project without including them in the regular build process, you can use Maven's profiles feature. This allows you to define different configurations for your project, including the ability to run specific tests based on the profile s...
34,005
[ { "from": "human", "value": "We've had an ongoing need here that I can't figure out how to address using the stock Maven 2 tools and documentation.\nSome of our developers have some very long running JUnit tests (usually stress tests) that under no circumstances should be run as a regular part of the build ...
If I have a DrawingVisual in WPF with Opacity=0, is that enough for it not to be drawn? We have hundreds of DrawingVisuals on a Canvas, and are currently setting Opacity=0 on the visuals that are not to be displayed, and I wanted to make sure there is no rendering performance hit for rendering a DrawingVisual with Opac...
In WPF, setting `Opacity=0` on a `DrawingVisual` means that the visual will not be rendered visibly (it will be completely transparent), but it still exists in the visual tree and is part of the rendering process. This can lead to a performance hit, especially if you have hundreds of `DrawingVisual` objects with `Opaci...
33,165
[ { "from": "human", "value": "If I have a DrawingVisual in WPF with Opacity=0, is that enough for it not to be drawn? We have hundreds of DrawingVisuals on a Canvas, and are currently setting Opacity=0 on the visuals that are not to be displayed, and I wanted to make sure there is no rendering performance hi...
I have one computer that is missing the list of manual debugger types. See the screenshot below. It has VS2005 SP1. What could cause this? Blank Debugger http://img505.imageshack.us/img505/5240/blankdebuggerki3.png
The issue you are experiencing with the missing manual debugger types in Visual Studio 2005 SP1 could be caused by several factors. Here are some potential reasons and solutions to help you troubleshoot the problem: 1. **Corrupted Installation**: The Visual Studio installation might be corrupted. Try repairing the ins...
34,860
[ { "from": "human", "value": "I have one computer that is missing the list of manual debugger types. See the screenshot below.\nIt has VS2005 SP1. What could cause this?\nBlank Debugger http://img505.imageshack.us/img505/5240/blankdebuggerki3.png\n" }, { "from": "gpt", "value": "The issue you a...
I've seen this quite a few times while using Office Interop classes this.CustomXMLParts.Add(MyResources.Data, new Office.CustomXMLSchemaCollection()); If I hover over the CustomXMLSchemaCollection class, it shows up as an interface. Then how come I can do a new on it ? What gives? BTW this code compiles and works.
In the context of .NET and specifically with COM Interop in Office applications, you might encounter scenarios where an interface appears to be instantiated using the `new` keyword, which can be confusing at first. Here’s what’s happening in your case with the `CustomXMLSchemaCollection`: 1. **Interface and Class Impl...
34,387
[ { "from": "human", "value": "I've seen this quite a few times while using Office Interop classes\nthis.CustomXMLParts.Add(MyResources.Data, new Office.CustomXMLSchemaCollection());\n\nIf I hover over the CustomXMLSchemaCollection class, it shows up as an interface. Then how come I can do a new on it ? What ...
I am looking for an example of how to do the following in VB.net with Parallel Extensions. Dim T As Thread = New Thread(AddressOf functiontodowork) T1.Start(InputValueforWork) Where I'm getting stuck is on how to pass into the task my parameter InputValueforWork Dim T As Tasks.Task = Tasks.Task.Create(AddressOf functi...
Certainly! In VB.NET, when you're using the Task Parallel Library (TPL), you can easily pass parameters to your function using lambda expressions or by modifying the function signature to accept parameters. Here’s an example that demonstrates how to use `Tasks.Task` to execute a method with a parameter: ### Example C...
31,332
[ { "from": "human", "value": "I am looking for an example of how to do the following in VB.net with Parallel Extensions.\nDim T As Thread = New Thread(AddressOf functiontodowork)\nT1.Start(InputValueforWork)\n\nWhere I'm getting stuck is on how to pass into the task my parameter InputValueforWork\nDim T As T...
I have 4 iframes in my page whose src's change as I scroll down my web page. The faster I scroll the src's change more frequently. If I scroll fast enough I get a download prompt in FF. The downloaded file contains garbled text followed by http response headers and then more garbled text. When I capture this on ethere...
The issue you’re experiencing with the iframes, where garbled text and HTTP response headers are being mixed together due to rapid scrolling and changing `src` attributes, points to a problem with how the server is handling requests and responses in relation to the timing of those requests on the client side (the brows...
32,853
[ { "from": "human", "value": "I have 4 iframes in my page whose src's change as I scroll down my web page. The faster I scroll the src's change more frequently. If I scroll fast enough I get a download prompt in FF. \nThe downloaded file contains garbled text followed by http response headers and then more g...
Is it possible to encode an assignment into an expression tree?
Yes, it is indeed possible to encode an assignment into an expression tree. In programming languages, assignments typically involve assigning a value to a variable. To represent this operation in an expression tree, we can treat the assignment as a special type of operation. ### Basic Concept of Expression Trees An e...
34,216
[ { "from": "human", "value": "Is it possible to encode an assignment into an expression tree?\n" }, { "from": "gpt", "value": "Yes, it is indeed possible to encode an assignment into an expression tree. In programming languages, assignments typically involve assigning a value to a variable. To re...
I am curious about what tools are used to build the next version of themselves. For example, Delphi has long claimed that "Delphi is written in Delphi". I assume Visual Studio is written using Visual Studio. What are some other examples of tools that written in themselves?
Many development tools, frameworks, and programming languages are indeed built using themselves or have components that are implemented in the same language or tool. Here are some notable examples: 1. **C and C++**: The C and C++ compilers themselves (like GCC and Clang) are often written in C or C++. The standard lib...
33,639
[ { "from": "human", "value": "I am curious about what tools are used to build the next version of themselves.\nFor example, Delphi has long claimed that \"Delphi is written in Delphi\".\nI assume Visual Studio is written using Visual Studio.\nWhat are some other examples of tools that written in themselves?\...
I have to write a reliable, totally-ordered multicast system from scratch in Python. I can't use any external libraries. I'm allowed to use a central sequencer. There seems to be two immediate approaches: write an efficient system, attaching a unique id to each multicasted message, having the sequencer multicast sequ...
Creating a reliable, totally-ordered multicast system in Python using UDP is a challenging task, especially when you need to ensure message delivery and order while maintaining simplicity. Since you're allowed to use a central sequencer, you can design your system around that. Below, I'll outline how you can achieve yo...
25,264
[ { "from": "human", "value": "I have to write a reliable, totally-ordered multicast system from scratch in Python. I can't use any external libraries. I'm allowed to use a central sequencer.\nThere seems to be two immediate approaches:\n\nwrite an efficient system, attaching a unique id to each multicasted ...
Do you know what's the format of the DepartureWindow parameter for sabre web-services' OTA_AirLowFareSearch call? Whatever I pass, it shows me an error. This is the entire documentation for those parameters (I kid you not): <!--"DepartureDateTime" represents the date and time of departure.--> <DepartureDateTime>2004-11...
The `DepartureWindow` parameter in the Sabre OTA_AirLowFareSearch call is used to specify a time window around the `DepartureDateTime` during which you want to search for available flights. The format of the `DepartureWindow` typically consists of a four-part string that indicates the time window in hours and minutes, ...
35,057
[ { "from": "human", "value": "Do you know what's the format of the DepartureWindow parameter for sabre web-services' OTA_AirLowFareSearch call? Whatever I pass, it shows me an error.\nThis is the entire documentation for those parameters (I kid you not):\n<!--\"DepartureDateTime\" represents the date and tim...
What is the proper way to terminate a Swing application from the code, and what are the pitfalls? I'd tried to close my application automatically after a timer fires. But just calling dispose() on the JFrame didn't do the trick - the window vanished but the application did not terminate. However when closing the window...
When developing Swing applications in Java, properly terminating the application can be a bit tricky. The typical behavior of Swing applications when closing the main window (JFrame) is determined by the default close operation set on the JFrame. ### Proper Way to Terminate a Swing Application 1. **Set the Default C...
30,530
[ { "from": "human", "value": "What is the proper way to terminate a Swing application from the code, and what are the pitfalls?\nI'd tried to close my application automatically after a timer fires. But just calling dispose() on the JFrame didn't do the trick - the window vanished but the application did not ...
I just moved a project to the the beta release of ASP.net MVC framework and the only problem I am having is with jQuery and jQueryUI. Here's the deal: In Site.Master are the following script references: <script src="../../Scripts/jquery-1.2.6.js" type="text/javascript"></script> <script src="../../Scripts/jquery-ui.js...
Based on your description, it sounds like you're encountering a couple of common issues related to relative paths and how CSS references image assets, especially when moving to a new project structure. ### Potential Solutions 1. **Check the Image Paths in CSS:** The default behavior for paths in CSS files is relat...
30,980
[ { "from": "human", "value": "I just moved a project to the the beta release of ASP.net MVC framework and the only problem I am having is with jQuery and jQueryUI. \nHere's the deal:\nIn Site.Master are the following script references:\n<script src=\"../../Scripts/jquery-1.2.6.js\" type=\"text/javascript\"><...
I have seen some declaration of a union inside a struct as follows. Example code given below. My questions is does it help in any memory savings(typical use for which a union is used for)? I do not see the benefit. typedef struct { int x1; unsigned int x2; ourstruct1 ov1; ourstruct1 ov2; union ...
To understand whether using a union inside a struct provides memory savings, let's break down how structures and unions work in C and how they relate to your example. ### Structures vs. Unions 1. **Struct**: A struct is a composite data type that groups different types of variables under one name. The total size of a...
26,468
[ { "from": "human", "value": "I have seen some declaration of a union inside a struct as follows. Example code given below.\nMy questions is does it help in any memory savings(typical use for which a union is used for)? I do not see the benefit. \ntypedef struct\n{\n int x1;\n unsigned int x2;\n our...
I have an sp with the following pseudo code... BEGIN TRANSACTION set @errorLocation='Deleting Permissions' DELETE [tblUsrPermissions] WHERE lngUserID = @lngUserID if @@error>0 begin goto roll_back end ...
To capture and handle custom error messages from a stored procedure in .NET, instead of allowing the exception to bubble up and interrupt your code, you can follow these steps: 1. **Change the Error Handling in the Stored Procedure**: Ensure the stored procedure handles errors correctly and sets the output parameters ...
32,801
[ { "from": "human", "value": "I have an sp with the following pseudo code... \n BEGIN TRANSACTION\n set @errorLocation='Deleting Permissions'\n DELETE [tblUsrPermissions]\n WHERE\n lngUserID = @lngUserID\n if @@error>0\n begin\n ...
For my website I configured some custom error pages. If I generate a 404, the redirect works fine. When hitting a 400, the "bad request" text shows up instead of the configured URl. As a test I copied the URL from 404 to 400. No change. Then I changed the redirect to a file. No change. Any ideas?
When dealing with custom error pages in a web server configuration, it's important to understand how different status codes are handled. The behavior you're observing—where the 404 custom error page works as expected, but the 400 error returns the default "Bad Request" message—can typically be attributed to the server'...
34,761
[ { "from": "human", "value": "For my website I configured some custom error pages.\nIf I generate a 404, the redirect works fine.\nWhen hitting a 400, the \"bad request\" text shows up instead of the configured URl.\nAs a test I copied the URL from 404 to 400. No change.\nThen I changed the redirect to a fil...
I'm about to release a set of Eclipse plug-ins as Open Source and noticed that most source code released under the LGPL/EPL contains a header banner in each file that refers to the license or contains the license itself. Since adding these banners to each file manually seems to be a daunting and error-prone task. How c...
It's great to hear that you're releasing your Eclipse plug-ins as Open Source! Adding license headers to each file can indeed be a time-consuming task if done manually, but there are several ways to automate the process. Since you've already discovered tools like Copyright Wizard and Copyright Generator, here are a fe...
32,858
[ { "from": "human", "value": "I'm about to release a set of Eclipse plug-ins as Open Source and noticed that most source code released under the LGPL/EPL contains a header banner in each file that refers to the license or contains the license itself.\nSince adding these banners to each file manually seems to...
It just happens to me about one code design question. Say, I have one "template" method that invokes some functions that may "alter". A intuitive design is to follow "Template Design Pattern". Define the altering functions to be "virtual" functions to be overridden in subclasses. Or, I can just use delegate functions w...
The difference in performance you are observing between the two methods `DoSomething` with the virtual method `IsTokenChar` and the second `DoSomething` with the delegate predicate can be explained by several factors, including the optimizations that the Just-In-Time (JIT) compiler can perform, method invocation overhe...
32,983
[ { "from": "human", "value": "It just happens to me about one code design question. Say, I have one \"template\" method that invokes some functions that may \"alter\". A intuitive design is to follow \"Template Design Pattern\". Define the altering functions to be \"virtual\" functions to be overridden in su...
I'd like my .NET Compact Framework app to delete itself after it finishes executing. What's the best way to do this? On a Windows machine it's possible to do this using a .bat file, but that's not an option on mobile devices.
To have a .NET Compact Framework application delete itself after it finishes executing, you have a couple of options, but they are somewhat limited compared to desktop environments. The primary challenge is that you cannot directly delete a running executable. However, you can use a workaround by creating a secondary p...
30,560
[ { "from": "human", "value": "I'd like my .NET Compact Framework app to delete itself after it finishes executing. What's the best way to do this?\nOn a Windows machine it's possible to do this using a .bat file, but that's not an option on mobile devices.\n" }, { "from": "gpt", "value": "To hav...
I am about to write junit tests for a XML parsing Java class that outputs directly to an OutputStream. For example xmlWriter.writeString("foo"); would produce something like <aTag>foo</aTag> to be written to the outputstream held inside the XmlWriter instance. The question is how to test this behaviour. One solution wo...
You're right in noting that using a `FileOutputStream` for unit testing is not elegant, and it can slow down your tests and introduce potential dependencies on the file system. A better approach would be to use a `ByteArrayOutputStream` for your tests, which allows you to capture the output in-memory and examine it eas...
33,984
[ { "from": "human", "value": "I am about to write junit tests for a XML parsing Java class that outputs directly to an OutputStream. For example xmlWriter.writeString(\"foo\"); would produce something like <aTag>foo</aTag> to be written to the outputstream held inside the XmlWriter instance. The question is ...
I am currently updating a web app that uses ActiveX objects in client side code to manipulate some xml. Of course, this app only works in IE and I need to get it cross browser compatible. I am looking to get a javascript xml library to handle the cross browser oddities, and was wondering if the ASP.Net ajax library wo...
To achieve cross-browser compatibility when manipulating XML in a web application, using a JavaScript library is a good approach. The ASP.NET AJAX library does provide some utilities for working with XML, but it might not be the most straightforward choice for your specific needs, especially if you're looking for gener...
31,186
[ { "from": "human", "value": "I am currently updating a web app that uses ActiveX objects in client side code to manipulate some xml. Of course, this app only works in IE and I need to get it cross browser compatible.\nI am looking to get a javascript xml library to handle the cross browser oddities, and wa...
ExtJS has Ext.each() function, but is there a map() also hidden somewhere? I have tried hard, but haven't found anything that could fill this role. It seems to be something simple and trivial, that a JS library so large as Ext clearly must have. Or when Ext really doesn't include it, what would be the best way to add i...
ExtJS does not include a built-in `map()` function like JavaScript's native array `map()` method. However, you can create your own utility function, similar to what you've suggested. The best practice in ExtJS is to use the existing utility methods and extend them when necessary. ### Implementing a Custom Map Function...
33,262
[ { "from": "human", "value": "ExtJS has Ext.each() function, but is there a map() also hidden somewhere?\nI have tried hard, but haven't found anything that could fill this role. It seems to be something simple and trivial, that a JS library so large as Ext clearly must have.\nOr when Ext really doesn't incl...
I'm looking for a tool that can pretty-print (AKA tidy or beautify) source code in as many languages as possible. Those I'm particularly keen on include: Java JSP HTML JavaScript SQL JSON XML Ideally, the tool should be able to update source files in-place and be able to format more than a single file at-a-time. ...
Hi Don, There are several tools available that can help you pretty-print or beautify code across multiple languages. Here are some options that can meet your requirements: ### 1. **Prettier** - **Languages Supported**: JavaScript, HTML, CSS, JSON, Markdown, YAML, and more (some support for other languages via plugins...
33,179
[ { "from": "human", "value": "I'm looking for a tool that can pretty-print (AKA tidy or beautify) source code in as many languages as possible. Those I'm particularly keen on include:\n\nJava \nJSP \nHTML \nJavaScript \nSQL\nJSON\nXML\n\nIdeally, the tool should be able to update source files in-place and be...
I'm writing a page that can use a couple of different themes, and I'm going to store some information about each theme in the web.config. Is it more efficient to create a new sectionGroup and store everything together, or just put everything in appSettings? configSection solution <configSections> <sectionGroup na...
When deciding between using a custom section group in `web.config` and placing everything in `appSettings`, there are several factors to consider, including organization, maintainability, and efficiency. Here's a breakdown of the pros and cons for each approach: ### Custom Section Group (`configSection` approach) **P...
32,923
[ { "from": "human", "value": "I'm writing a page that can use a couple of different themes, and I'm going to store some information about each theme in the web.config. \nIs it more efficient to create a new sectionGroup and store everything together, or just put everything in appSettings?\nconfigSection sol...
I have a property on a domain object that is declared in a many-to-one element. The basic syntax of this property looks like this: <many-to-one name="propertyName" class="propertyClass" fetch="select" not-found="ignore" lazy="proxy" /> Now, the idea is to have Hibernate NOT eagerly fetch this property. It may be nul...
To achieve your goal of preventing Hibernate from eagerly fetching a `many-to-one` relationship while allowing the property to be `null`, you can use the following configurations. Since you are using an XML mapping with Hibernate 3 and Java 1.4, you will need to stick to the XML configuration. Here are the key points ...
34,255
[ { "from": "human", "value": "I have a property on a domain object that is declared in a many-to-one element. The basic syntax of this property looks like this:\n<many-to-one name=\"propertyName\" class=\"propertyClass\" fetch=\"select\" not-found=\"ignore\" lazy=\"proxy\" />\n\nNow, the idea is to have Hib...
I am getting Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in *filename* on line 81 While running a query to build a chart. The query gets data from the mysql db and uses it to build the chart. Usually, I get this error and go to the code and find where I've screwed up, fix it...
The warning message you're encountering (`Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource`) indicates that the query you executed (in this case, the `$bashq` query) returned a result that was not valid, often meaning it failed for some reason. However, since you mentioned that the c...
34,122
[ { "from": "human", "value": "I am getting \nWarning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result \nresource in *filename* on line 81\n\nWhile running a query to build a chart. The query gets data from the mysql db and uses it to build the chart.\nUsually, I get this error and go to t...
I have an XLL Excel addin and now another team wants to use the same functionality in their project (unmanaged C++). Is there a way to interface with this XLL directly from C++?
Yes, you can interface with an XLL (Excel Add-in) directly from unmanaged C++ code, but you'll have to implement a communication mechanism since XLLs are primarily designed to be used within Excel. Here are a few approaches you could consider to achieve this: ### 1. **Use Excel COM Automation** If you're running your ...
29,833
[ { "from": "human", "value": "I have an XLL Excel addin and now another team wants to use the same functionality in their project (unmanaged C++). Is there a way to interface with this XLL directly from C++?\n" }, { "from": "gpt", "value": "Yes, you can interface with an XLL (Excel Add-in) direct...
Say I have the following interface that I want to share between my server (a regular web service) and my client (a silverlight 2.0 application): public interface ICustomerService { Customer GetCustomer(string name); } My web service implements this interface, and references a class library where Customer type is d...
In order to consume a WCF service from a Silverlight 2.0 application, there are some key considerations and limitations to keep in mind. Silverlight operates under a sandbox security model and has specific requirements for service communication, particularly around cross-domain access. Here’s how you can structure you...
33,116
[ { "from": "human", "value": "Say I have the following interface that I want to share between my server (a regular web service) and my client (a silverlight 2.0 application):\npublic interface ICustomerService\n{\n Customer GetCustomer(string name);\n}\n\nMy web service implements this interface, and refe...
Is there a library out there which I can use in my current ASP.NET app, to validate queryStrings? Edit ~ Using Regex to look for patterns, like string, only, numeric only, string with length x,...etc Thanks
Yes, there are several libraries and approaches you can use in an ASP.NET application to validate query strings. If you're looking specifically for regex-based validation or a more structured way to manage validation, here are a few options you might consider: ### 1. **Using Regular Expressions** If you want to stick ...
32,414
[ { "from": "human", "value": "Is there a library out there which I can use in my current ASP.NET app, to validate queryStrings?\nEdit ~ Using Regex to look for patterns, like string, only, numeric only, string with length x,...etc\nThanks\n" }, { "from": "gpt", "value": "Yes, there are several li...
Does anyone know of a good .NET library rules library (ideally open-source)? I need something that can do nested logic expressions, e.g., (A AND B) AND (B OR C OR D). I need to do comparisons of object properties, e.g., A.P1 AND B.P1. (Ideally, I could compare any property -- A.P1 AND B.P2). It should store the ru...
There are several .NET libraries available that could potentially fit your requirements for creating a rules engine with complex expressions, property comparisons, and actions. Here are a few open-source options that you may want to explore: ### 1. **NRules** - **GitHub:** [NRules](https://github.com/NRules/NRules) - ...
33,838
[ { "from": "human", "value": "Does anyone know of a good .NET library rules library (ideally open-source)? I need something that can do nested logic expressions, e.g., (A AND B) AND (B OR C OR D). I need to do comparisons of object properties, e.g., A.P1 AND B.P1. (Ideally, I could compare any property --...
I am wanting to create a program that talks with a Cometd server to allow for pushing of data to the app. I have done this on the web side using AJAX, but I am a little unsure of the best way to do this with Cocoa. I can make a standard connection using NSURLRequest and NSURLConnection, but how do I keep this connectio...
To communicate with a Cometd server in a Cocoa application, you would want to consider using a WebSocket or a Long Polling approach, as Cometd is designed for asynchronous messaging. Since Cocoa does not have built-in support for Cometd specifically, you'll need to implement it using a WebSocket client library, or you ...
33,819
[ { "from": "human", "value": "I am wanting to create a program that talks with a Cometd server to allow for pushing of data to the app.\nI have done this on the web side using AJAX, but I am a little unsure of the best way to do this with Cocoa.\nI can make a standard connection using NSURLRequest and NSURLC...
As most of you probably noticed, when uninstalling an MSI package Windows will ask for the original .msi file. Why is that? I can only see disadvantages to that: not resilient to network changes. not resilient to local disk changes. unexpected by users. typically requires users to leave their desk and start a crusade ...
When you uninstall an MSI (Microsoft Installer) package, Windows sometimes prompts for the original .msi file for several reasons related to how MSI installations are designed and function: 1. **Component-Based Installation**: MSI files are designed to install software in a component-based manner. This means that comp...
32,813
[ { "from": "human", "value": "As most of you probably noticed, when uninstalling an MSI package Windows will ask for the original .msi file. Why is that?\nI can only see disadvantages to that:\n\nnot resilient to network changes.\nnot resilient to local disk changes.\nunexpected by users.\ntypically requires...
I still haven't got my head around decorators in Python. I've already started using a lot of closures to do things like customize functions and classes in my coding. Eg. class Node : def __init__(self,val,children) : self.val = val self.children = children def makeRunner(f) : def run(node) : ...
You're on the right track in understanding decorators in Python, and you're correct that decorators can be seen as syntactic sugar for wrapping functions with other functions. However, there are a few important aspects to decorators that can help you understand them more deeply. ### What Are Decorators? Decorators ar...
31,532
[ { "from": "human", "value": "I still haven't got my head around decorators in Python.\nI've already started using a lot of closures to do things like customize functions and classes in my coding.\nEg.\nclass Node :\n def __init__(self,val,children) :\n self.val = val\n self.children = child...
Should i stay out of rails if a client has a cheap hosting service with a provider that do not support mod_rails? Will rails + fast.cgi provide a good experience for a user or should I choose, in this scenario, php + my-favorite-framework as platform ? Regards, Victor
Hi Victor, When considering whether to use Ruby on Rails on a cheap hosting service that doesn't support `mod_rails`, it's important to weigh the pros and cons based on the specific requirements of your project and the capabilities of the hosting environment. Here are some factors to consider: ### Rails and FastCGI ...
35,094
[ { "from": "human", "value": "Should i stay out of rails if a client has a cheap hosting service with a provider that do not support mod_rails? Will rails + fast.cgi provide a good experience for a user or should I choose, in this scenario, php + my-favorite-framework as platform ?\nRegards,\nVictor\n" }, ...
I have a table that stores all the volunteers, and each volunteer will be assigned to an appropriate venue to work the event. There is a table that stores all the venues. It stores the volunteer's appropriate venue assignment into the column venue_id. table: venues columns: id, venue_name table: volunteers_2009 column...
You're on the right track with your SQL joins, but there are some adjustments needed to properly display the venue assignments alongside the volunteers. Currently, you're fetching the venue information from the database separately (`$result_venues`), but you should include it in the same query where you're retrieving v...
26,916
[ { "from": "human", "value": "I have a table that stores all the volunteers, and each volunteer will be assigned to an appropriate venue to work the event. There is a table that stores all the venues.\nIt stores the volunteer's appropriate venue assignment into the column venue_id.\ntable: venues\ncolumns: i...
I'm wondering if there are any architectural frameworks out there to create desktop or standalone applications, in Java or C# for instance. It seems that there are tons of them available for web applications but I can't find many good resources on frameworks or architectural best-practices for desktop development. Idea...
Indeed, there are several architectural frameworks and best practices that can be applied to desktop or standalone applications in languages like Java and C#. While many frameworks and resources are available for web applications, desktop development also has some solid options. Here’s a breakdown of some architectural...
27,750
[ { "from": "human", "value": "I'm wondering if there are any architectural frameworks out there to create desktop or standalone applications, in Java or C# for instance. It seems that there are tons of them available for web applications but I can't find many good resources on frameworks or architectural bes...
I'm trying to copy both an image from a file and text from a file to the clipboard. My intention is to then open a word document or an outlook email and paste both the text and the image in one standard paste command (CTRL-V for example). I can do both separately easily enough, but doing them both in one operation does...
To copy both an image and text to the clipboard in a way that they can be pasted together (for example, into Microsoft Word or an Outlook email), you'll need to set the data to the clipboard in a format that supports mixed content (in this case, using `DataObject` in C#). This allows you to specify multiple formats for...
33,958
[ { "from": "human", "value": "I'm trying to copy both an image from a file and text from a file to the clipboard. My intention is to then open a word document or an outlook email and paste both the text and the image in one standard paste command (CTRL-V for example). I can do both separately easily enough, ...
I want to be able to load a serialized xml class to a Soap Envelope. I am starting so I am not filling the innards so it appears like: <Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/" /> I want it to appear like: <Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/" ></Envelope>` The cla...
It looks like you've made good progress in creating a serialized XML class for a SOAP Envelope, and you've even identified and resolved an issue with the memory stream's position. That's great! To clarify your original question, you're interested in ensuring that your serialized XML appears properly formatted as a SOA...
31,832
[ { "from": "human", "value": "I want to be able to load a serialized xml class to a Soap Envelope. I am starting so I am not filling the innards so it appears like:\n \n<Envelope \nxmlns=\"http://schemas.xmlsoap.org/soap/envelope/\" /> \n\nI want it to appear like: \n<Envelope \nxmlns=\"http://schemas....
We have a problem affecting the production environment only. We have a VB6/ASP website that allows for data in a database table to be hand edited. It looks alot like an editable datagrid. One of the editable columns is a date and when the record is saved dates day/month are being reversed. 03/11/2008 becomes 11/03/2008...
It sounds like you're dealing with a date format issue that could stem from several factors in the environment, especially given the differences between your production and test systems. Here are some suggestions on where to start investigating: 1. **Database Connection Settings**: Check the connection string being us...
33,467
[ { "from": "human", "value": "We have a problem affecting the production environment only.\nWe have a VB6/ASP website that allows for data in a database table to be hand edited.\nIt looks alot like an editable datagrid.\nOne of the editable columns is a date and when the record is saved dates day/month are b...
I am using SQL Server 2005 CE framework 3.5 and attempting to use merge replication between my hand held and my SQL Server. When I run the code to synchronise it just seems to sit forever, and when I put a breakpoint in my code it never gets past the call to Synchronize(). If I look at the replication monitor in sql s...
It looks like you're facing issues with the synchronization process for SQL Server CE (Compact Edition) and SQL Server using merge replication. There can be several reasons why the synchronization hangs. Below are some troubleshooting steps and suggestions that might help you resolve the issue. ### 1. Check for Networ...
30,138
[ { "from": "human", "value": "I am using SQL Server 2005 CE framework 3.5 and attempting to use merge replication between my hand held and my SQL Server. When I run the code to synchronise it just seems to sit forever, and when I put a breakpoint in my code it never gets past the call to Synchronize().\nIf ...
Im trying to craft a regex that only returns <link> tag hrefs Why does this regex return all hrefs including <a hrefs? (?&lt;=&lt;link\s+.*?)href\s*=\s*[\'\"][^\'\"]+ <link rel="stylesheet" rev="stylesheet" href="idlecore-tidied.css?T_2_5_0_228" media="screen"> <a href="anotherurl">Slash Boxes&lt;/a>
Your current regex is using a positive lookbehind assertion `(?<=<link\s+.*?)` which is trying to assert that the match is preceded by a `<link>` tag. However, this syntax can lead to unexpected matches, particularly if the regex engine does not fully respect the context you want to enforce. A more straightforward re...
34,054
[ { "from": "human", "value": "Im trying to craft a regex that only returns <link> tag hrefs\nWhy does this regex return all hrefs including <a hrefs?\n(?&lt;=&lt;link\\s+.*?)href\\s*=\\s*[\\'\\\"][^\\'\\\"]+\n\n<link rel=\"stylesheet\" rev=\"stylesheet\" href=\"idlecore-tidied.css?T_2_5_0_228\" media=\"scree...
I'm writing a Flash game, pretty intensive on CPU. Besides optimizing it a lot, I would like to be able to play it as players on slow PC's will, because I have a good CPU and I would like to make it also playable on bad CPU's First I thought that virtualization would help, but I've tried vmware player with an ubunto im...
To simulate lower CPU performance and ensure that your Flash game runs similarly to how it would on lower-spec machines, you can try the following approaches: ### 1. **Using CPU Limiting Software:** There are several tools that can throttle your CPU usage, effectively simulating a slower CPU. Some options include: - ...
35,181
[ { "from": "human", "value": "I'm writing a Flash game, pretty intensive on CPU.\nBesides optimizing it a lot, I would like to be able to play it as players on slow PC's will, because I have a good CPU and I would like to make it also playable on bad CPU's\nFirst I thought that virtualization would help, but...
My usage case is compiling generated source files from a java program using the ToolProvider and JavaCompiler classes provided in JDK 6. The source files contain references to classes in the context classloader (it runs in a J2EE container), but not in the system classloader. My understanding is that by default the To...
The `JavaCompiler` API provided by `ToolProvider` does indeed use the system classloader by default, and your attempt to create a custom `JavaFileManager` to control the class loader behavior is a good approach, but it has its limitations. Here are some points to consider and potential solutions: 1. **Custom ClassLoad...
31,470
[ { "from": "human", "value": "My usage case is compiling generated source files from a java program using the ToolProvider and JavaCompiler classes provided in JDK 6. The source files contain references to classes in the context classloader (it runs in a J2EE container), but not in the system classloader. M...
I have a custom control that exposes a property. When I set it using a fixed value, everything works correctly. But if I try to set its value using the <%= %> tags, it goes a little whacky: <cc:CustomControl ID="CustomControl" runat="server" Property1='<%= MyProperty %>' /> <%= MyProperty %> When this gets rendered,...
The issue you are encountering is due to the fact that the `<%= %>` syntax is only evaluated within the context of a response (such as in a code block) and not during the server-side processing of ASP.NET web controls. When you set properties of server controls in ASP.NET, you must use server-side code. The `<%= %>` sy...
34,108
[ { "from": "human", "value": "I have a custom control that exposes a property. When I set it using a fixed value, everything works correctly. But if I try to set its value using the <%= %> tags, it goes a little whacky:\n<cc:CustomControl ID=\"CustomControl\" runat=\"server\" Property1='<%= MyProperty %>' ...
I'm trying to place a class into a package where another public class is placed. The documentation says that only one external visible declaration can be put in a package. So i declare the second class internal. But then it gives the following error: 5006: An ActionScript file can not have more than one externally vis...
In ActionScript, you can only have one externally visible definition (public class, interface, or function) per file. This means that if you declare a public class in your file, you cannot have any other public or externally visible definitions in that same file. In your case, you have a public class `AnimatedCharacte...
30,218
[ { "from": "human", "value": "I'm trying to place a class into a package where another public class is placed. The documentation says that only one external visible declaration can be put in a package.\nSo i declare the second class internal. But then it gives the following error:\n\n5006: An ActionScript fi...
Is it possible to expose an API in a .NET application by embedding a scripting language like IronPython? How is it done?
Yes, it is possible to expose an API in a .NET application by embedding a scripting language like IronPython. This approach can allow you to provide a scripting environment for users to interact with your application, allowing for dynamic execution of Python scripts that can call into your .NET application. Here is a ...
32,363
[ { "from": "human", "value": "Is it possible to expose an API in a .NET application by embedding a scripting language like IronPython?\nHow is it done?\n" }, { "from": "gpt", "value": "Yes, it is possible to expose an API in a .NET application by embedding a scripting language like IronPython. Th...
We just switched from TFS to SVN, and so far we're loving it. However, it did introduce a few new issues. One is the way project files (.vbproj specifically) are handled. The .vbproj file is of course always changing as files and references are changed, and if a few people are collaberating there will be conflicts. ...
Switching from TFS to SVN can indeed present challenges, especially when dealing with project files like `.vbproj`, which are often subject to concurrent changes. Here are some strategies to manage those conflicts more effectively in SVN, particularly with VisualSVN: ### 1. **Establish a Clear Workflow** - **Single...
31,632
[ { "from": "human", "value": "We just switched from TFS to SVN, and so far we're loving it. \nHowever, it did introduce a few new issues.\nOne is the way project files (.vbproj specifically) are handled. The .vbproj file is of course always changing as files and references are changed, and if a few people a...
Are there any drawbacks to using the STL or templates. Are there any situations for which they are inappropriate.
Yes, while the Standard Template Library (STL) and templates in C++ provide powerful tools for generic programming and can greatly enhance code reuse and maintainability, they also come with certain drawbacks and situations where their use may be inappropriate. Here are some considerations: ### Drawbacks of STL and Te...
31,792
[ { "from": "human", "value": "Are there any drawbacks to using the STL or templates. Are there any situations for which they are inappropriate.\n" }, { "from": "gpt", "value": "Yes, while the Standard Template Library (STL) and templates in C++ provide powerful tools for generic programming and c...
I'm probably doing this all wrong. I have a text file full of data and I want to match and replace patterns of "item" and "catalog number" that are in the file. But the order of each element in the file is very important, so I want to match/replace starting from the top of the file and then work my way down. The code s...
To achieve your goal of matching and replacing only the first two instances of the specific "item" and "catalog number" pattern while processing the text in the correct order (from the top down), you should make a few adjustments to your regex replacement logic. The main issue in your current approach is that the rege...
24,515
[ { "from": "human", "value": "I'm probably doing this all wrong. I have a text file full of data and I want to match and replace patterns of \"item\" and \"catalog number\" that are in the file. But the order of each element in the file is very important, so I want to match/replace starting from the top of t...
I've been using virtualenv lately while developing in python. I like the idea of a segregated development environment using the --no-site-packages option, but doing this while developing a PyGTK app can be a bit tricky. The PyGTK modules are installed on Ubuntu by default, and I would like to make a virtualenv (with --...
Using `virtualenv` with the `--no-site-packages` option is a great way to maintain clean and isolated Python environments, which is particularly useful for avoiding dependency conflicts. However, as you've noted, it can complicate things when you rely on system-wide packages like PyGTK. Here are some strategies you ca...
26,367
[ { "from": "human", "value": "I've been using virtualenv lately while developing in python. I like the idea of a segregated development environment using the --no-site-packages option, but doing this while developing a PyGTK app can be a bit tricky.\nThe PyGTK modules are installed on Ubuntu by default, and ...
let me tell you a bit about where this question came from. I have been playing around with the SDK of Serious Sam 2, a first person shooter which runs on the Serious Engine 2. This engine introduces something called MetaData. MetaData is used in the engine to serialize classes and be able to edit them in the editor env...
It sounds like Croteam has implemented a custom preprocessor or a specialized build process that allows them to handle the metadata definitions effectively. Here are some potential approaches they might have taken to implement this functionality: 1. **Preprocessing with Macros**: Since the `meta`, `ver()`, and `_()` k...
35,330
[ { "from": "human", "value": "let me tell you a bit about where this question came from. I have been playing around with the SDK of Serious Sam 2, a first person shooter which runs on the Serious Engine 2. This engine introduces something called MetaData. MetaData is used in the engine to serialize classes a...
Is it possible to retrieve variable set in onreadystatechange function from outside the function? --edit-- Regarding execution of functions: If its possible i would like to execute ajaxFunction() with one click and then popup() with next click, or somehow wait for ajax function to end and then call for alert box In ...
In JavaScript, the variable `MyVariable` that you set inside the `onreadystatechange` function is scoped to that function, meaning it cannot be accessed directly from outside. However, you can achieve the desired functionality in a couple of different ways. ### Option 1: Use a Global Variable You can declare `MyVaria...
34,507
[ { "from": "human", "value": "Is it possible to retrieve variable set in onreadystatechange function from outside the function?\n--edit--\nRegarding execution of functions:\nIf its possible i would like to execute ajaxFunction() with one click\n and then popup() with next click, or \nsomehow wait for ajax f...
I have a remote EJB with a method that validates an object (returning true or false). I want to be able to pass it an ArrayList object and have the EJB load it with the errors encountered during validation, while still receiving true/false as result. How can I do this? So far, I can send it the list, and it's affected ...
To achieve the functionality you're looking for—where your EJB can validate an object, return a boolean result, and also populate a list of errors—there are a couple of approaches you can take. The key here is to ensure that modifications to the list on the server side are reflected back on the client side. In Java E...
29,639
[ { "from": "human", "value": "I have a remote EJB with a method that validates an object (returning true or false). I want to be able to pass it an ArrayList object and have the EJB load it with the errors encountered during validation, while still receiving true/false as result.\nHow can I do this? So far, ...
To recap for those .NET gurus who might not know the Java API: ConcurrentHashMap in Java has atomic methods (i.e. require no external locking) for common Map modification operations such as: putIfAbsent(K key, V value) remove(Object key, Object value) replace(K key, V value) It also allows iteration over the keyset wi...
Yes, .NET does have a collection that is similar to Java's `ConcurrentHashMap`, which is called `ConcurrentDictionary<TKey, TValue>`. ### Key Features of `ConcurrentDictionary`: - **Atomic Operations**: Just like `ConcurrentHashMap`, `ConcurrentDictionary` provides atomic operations for adding, removing, and updating...
34,792
[ { "from": "human", "value": "To recap for those .NET gurus who might not know the Java API:\nConcurrentHashMap in Java has atomic methods (i.e. require no external locking) for common Map modification operations such as:\nputIfAbsent(K key, V value)\nremove(Object key, Object value)\nreplace(K key, V value)...
I use UML Sequence Diagrams all the time, and am familiar with the UML2 notation. But I only ever use them to capture the essence of what I intend to do. In other words the diagram always exists at a level of abstraction above the actual code. Every time I use them to try and describe exactly what I intend to do I end ...
UML Sequence Diagrams are indeed a great tool for capturing the essence of interactions within a system, often at a high level of abstraction. However, as you've observed, when trying to detail every interaction at a low level, the diagrams can become unwieldy and cluttered. While most practitioners use sequence diag...
28,450
[ { "from": "human", "value": "I use UML Sequence Diagrams all the time, and am familiar with the UML2 notation.\nBut I only ever use them to capture the essence of what I intend to do. In other words the diagram always exists at a level of abstraction above the actual code. Every time I use them to try and d...
Does anyone know if it's possible to connect a C# client to an ActiveMQ instance over SSL using the Spring.Messaging.Nms library? Or if not using NMS then some other library?
Yes, it is indeed possible to connect a C# client to an ActiveMQ instance over SSL, and you can achieve this using the Spring.Messaging.Nms library or other libraries available for .NET. ### Using Spring.Messaging.Nms 1. **Configure ActiveMQ for SSL**: First, ensure that your ActiveMQ instance is properly configured ...
33,852
[ { "from": "human", "value": "Does anyone know if it's possible to connect a C# client to an ActiveMQ instance over SSL using the Spring.Messaging.Nms library? Or if not using NMS then some other library?\n" }, { "from": "gpt", "value": "Yes, it is indeed possible to connect a C# client to an Ac...
Are there any popular Mysql rss feeds you guys can recommend? IBM has random articles but those are usually not enough
There are several popular RSS feeds related to MySQL and databases that you might find useful for staying updated on news, tips, and articles. Here are some recommendations: 1. **MySQL Official Blog**: - RSS Feed: [MySQL Blog](https://mysqlserverteam.com/feed/) - This is the official blog of the MySQL server tea...
28,226
[ { "from": "human", "value": "Are there any popular Mysql rss feeds you guys can recommend? IBM has random articles but those are usually not enough\n" }, { "from": "gpt", "value": "There are several popular RSS feeds related to MySQL and databases that you might find useful for staying updated o...
Currently, my Objective C classes use C++ objects by doing a new when the owner is created, and calling delete when it is destroyed. But is there another way? I'd like to be able to declare, say, an auto_ptr whose scope lasts the duration of the Objective C class' lifetime.
In Objective-C, if you want to manage C++ objects without dealing directly with raw pointers and manual memory management (using `new` and `delete`), you can leverage smart pointers provided by C++. Starting with C++11, `std::unique_ptr` is commonly used for this purpose. It automatically handles memory management and ...
34,934
[ { "from": "human", "value": "Currently, my Objective C classes use C++ objects by doing a new when the owner is created, and calling delete when it is destroyed. But is there another way? I'd like to be able to declare, say, an auto_ptr whose scope lasts the duration of the Objective C class' lifetime.\n" ...
How can I AutoIncrement the assembly (build) number in Visual Studio? Duplicate: /questions/650/automatically-update-version-number
To auto-increment the assembly (build) number in a Visual Studio project, you can leverage the `AssemblyInfo.cs` file along with MSBuild or a pre-build event. Here are two common methods you can use: ### Method 1: Using `AssemblyInfo.cs` 1. **Open `AssemblyInfo.cs`:** Locate the `AssemblyInfo.cs` file in your proj...
31,831
[ { "from": "human", "value": "How can I AutoIncrement the assembly (build) number in Visual Studio?\nDuplicate:\n/questions/650/automatically-update-version-number\n" }, { "from": "gpt", "value": "To auto-increment the assembly (build) number in a Visual Studio project, you can leverage the `Asse...
We've all read the benchmarks and know the facts - event-based asynchronous network servers are faster than their threaded counterparts. Think lighttpd or Zeus vs. Apache or IIS. Why is that?
Event-based asynchronous network servers generally outperform their threaded counterparts for several reasons: 1. **Resource Efficiency**: Event-based servers use a single or a few threads to handle many connections, whereas threaded servers often create a new thread (or process) for each connection. This can lead to ...
34,433
[ { "from": "human", "value": "We've all read the benchmarks and know the facts - event-based asynchronous network servers are faster than their threaded counterparts. Think lighttpd or Zeus vs. Apache or IIS. Why is that?\n" }, { "from": "gpt", "value": "Event-based asynchronous network servers ...
When I ran ReSharper on my code, for example: if (some condition) { Some code... } ReSharper gave me the above warning (Invert "if" statement to reduce nesting), and suggested the following correction: if (!some condition) return; Some code... I would like to understand why that'...
The suggestion from ReSharper to invert the `if` statement is based on a common coding practice aimed at improving code readability and reducing nesting, which can often lead to cleaner and more maintainable code. ### Advantages of Inverting the `if` Statement 1. **Reduced Nesting**: By inverting the `if` statement a...
33,383
[ { "from": "human", "value": "When I ran ReSharper on my code, for example:\n if (some condition)\n {\n Some code... \n }\n\nReSharper gave me the above warning (Invert \"if\" statement to reduce nesting), and suggested the following correction:\n if (!some condition) return;\n ...
What is the best method to scrape a dynamic website where most of the content is generated by what appears to be ajax requests? I have previous experience with a Mechanize, BeautifulSoup, and python combo, but I am up for something new. --Edit-- For more detail: I'm trying to scrape the CNN primary database. There is...
Scraping dynamic websites, especially those using AJAX for content loading, can be a bit more complex than scraping static pages. Since you have experience with `Mechanize`, `BeautifulSoup`, and Python, you're already equipped with some valuable tools. However, for dynamic content, you might want to consider a few addi...
29,015
[ { "from": "human", "value": "What is the best method to scrape a dynamic website where most of the content is generated by what appears to be ajax requests? I have previous experience with a Mechanize, BeautifulSoup, and python combo, but I am up for something new.\n--Edit--\nFor more detail: I'm trying to...
The RichTextBox supports a spellcheck option which is very nice. (SpellCheck.IsEnabled = true) But I cannot seem to get it to another language. (I live in the Netherlands.. ;)) Does any of you have an experience with the SpellCheck option of TextBox? I know it can be change by changing the keyboard settings, but I want...
To enable spell checking in a `RichTextBox` (or `TextBox`) for a specific language like Dutch (nl-NL) in a WPF application, you need to set the `Language` property correctly and also ensure that the necessary dictionaries are available in the environment you're running the application. Here's a step-by-step approach ...
34,441
[ { "from": "human", "value": "The RichTextBox supports a spellcheck option which is very nice. (SpellCheck.IsEnabled = true)\nBut I cannot seem to get it to another language. (I live in the Netherlands.. ;))\nDoes any of you have an experience with the SpellCheck option of TextBox?\nI know it can be change b...
I've got a Java application that I'm writing an installer for. We're using the AdvancedInstaller program to create our installer (well, we're evaluating it currently, but will definitely purchase a license soon), and although it has special support for Java applications, it is geared more towards repackaging them as d...
Repackaging the JRE (Java Runtime Environment) for distribution with your Java application can indeed be a bit tricky, particularly when dealing with MSI installers. Here are some strategies you can employ to successfully include the JRE with your installation process: ### 1. Silent Installation of the JRE To avoid t...
33,186
[ { "from": "human", "value": "I've got a Java application that I'm writing an installer for. We're using the AdvancedInstaller program to create our installer (well, we're evaluating it currently, but will definitely purchase a license soon), and although it has special support for Java applications, it is ...