instruction
stringlengths
14
27.6k
completion
stringlengths
3
38.3k
__original_row_idx
int64
0
50k
conversations
listlengths
2
2
Unable to find a SQL diff tool that meets my needs, I am writing my own. Between the INFORMATION_SCHEMA and sys tables, I have a mostly-complete working version. But one thing I can't find in the metadata is the definition of a trigger, you know, the actual SQL code. Am I overlooking something? Thanks. Thanks, Pete...
It sounds like you're on the right track with your custom solution to gather database metadata. When it comes to retrieving the definitions of triggers in SQL Server, you're correct that you won't find the actual SQL code in `INFORMATION_SCHEMA` views. However, you can obtain the definitions of triggers from the `sys.t...
10,450
[ { "from": "human", "value": "Unable to find a SQL diff tool that meets my needs, I am writing my own. Between the INFORMATION_SCHEMA and sys tables, I have a mostly-complete working version. But one thing I can't find in the metadata is the definition of a trigger, you know, the actual SQL code. Am I ove...
I'm a bit perplexed by drag and drop in wxPython (but perhaps this questions pertains to drag and drop in other GUI frameworks as well). The frameworks provides a couple of callbacks (OnEnter and OnDragOver) that purportedly allow me to inform the system whether the current mouse position is a valid place to drop whate...
Your confusion about drag and drop in wxPython is quite common, and it stems from the way drag-and-drop operations are designed to work within GUI frameworks in general, including wxPython. Let's break down the process to clarify things. ### Drag and Drop in wxPython 1. **Drag-and-Drop Basics**: When you initiate a d...
5,730
[ { "from": "human", "value": "I'm a bit perplexed by drag and drop in wxPython (but perhaps this questions pertains to drag and drop in other GUI frameworks as well). The frameworks provides a couple of callbacks (OnEnter and OnDragOver) that purportedly allow me to inform the system whether the current mous...
My development team uses source safe at a very basic level. We're moving into some more advanced and extended development cycles and I can't help but think that not using branching and merging in order to manage changes is going to be biting us very soon. What arguments did you find most useful in order to convince yo...
Transitioning from a basic version control system like SourceSafe to a more robust system such as SVN (or Git) can significantly enhance your team's development practices. Here are some compelling arguments to help convince your team to make the switch, along with suggestions for bridging the functionality gap and cons...
8,995
[ { "from": "human", "value": "My development team uses source safe at a very basic level. We're moving into some more advanced and extended development cycles and I can't help but think that not using branching and merging in order to manage changes is going to be biting us very soon. \nWhat arguments did yo...
I've got a couple large checkouts where the .svn folder has become damaged so I'm getting and error, "Cleanup failed to process the following path.." And I can no longer commit or update files in that directory. I'd just delete and do the checkout again but the whole directory is over a gig. Is there a tool that will r...
If you're facing issues with a corrupted `.svn` folder and you want to avoid a complete checkout of the repository due to its size, you have a couple of options to consider. Unfortunately, there is no direct tool specifically designed to restore only the `.svn` folders without some level of re-download, but you can tak...
9,342
[ { "from": "human", "value": "I've got a couple large checkouts where the .svn folder has become damaged so I'm getting and error, \"Cleanup failed to process the following path..\" And I can no longer commit or update files in that directory.\nI'd just delete and do the checkout again but the whole director...
I have subclassed Form to include some extra functionality, which boils down to a List<Image> which displays in a set of predefined spots on the form. I have the following: public class ButtonForm : Form { public class TitleButton { public TitleButton() { /* does stuff here */ } // there's othe...
The issue you're encountering with the Windows Forms Designer not generating code for your custom collection (`List<TitleButton>`) is likely related to the way the `TitleButton` class is defined and how the designer handles serialization of custom types. For the Windows Forms Designer to properly serialize the objects...
8,781
[ { "from": "human", "value": "I have subclassed Form to include some extra functionality, which boils down to a List<Image> which displays in a set of predefined spots on the form. I have the following:\npublic class ButtonForm : Form \n{\n public class TitleButton\n {\n public TitleButton() { /...
All I want is to update an ListViewItem's text whithout seeing any flickering. This is my code for updating (called several times): listView.BeginUpdate(); listViewItem.SubItems[0].Text = state.ToString(); // update the state listViewItem.SubItems[1].Text = progress.ToString(); // update the progress listView.EndUpd...
When you're updating a `ListViewItem` in a `ListView`, flickering can occur due to the way Windows redraws controls. This can happen especially when you're displaying icons and other visual elements in the `ListView`. Although you've tried using `BeginUpdate` and `EndUpdate`, there are additional techniques you can app...
6,406
[ { "from": "human", "value": "All I want is to update an ListViewItem's text whithout seeing any flickering.\nThis is my code for updating (called several times):\nlistView.BeginUpdate();\nlistViewItem.SubItems[0].Text = state.ToString(); // update the state\nlistViewItem.SubItems[1].Text = progress.ToStr...
In my Servlet I would like to access the root of the context so that I can do some JavaScript minifying. It would be possible to do the minify as part of the install process but I would like to do it on Servlet startup to reduce the implementation cost. Does anyone know of a method for getting the context directory so ...
To access the root directory of your web application's context from a Servlet, you can use the `ServletContext` object. This allows you to obtain a handle to the context of your web application, which includes a method for getting the real path to the context root on the filesystem. Here’s a basic example of how you c...
7,726
[ { "from": "human", "value": "In my Servlet I would like to access the root of the context so that I can do some JavaScript minifying.\nIt would be possible to do the minify as part of the install process but I would like to do it on Servlet startup to reduce the implementation cost.\nDoes anyone know of a m...
I am a bit confused about socket programming in C. You create a socket, bind it to an interface and an IP address and get it to listen. I found a couple of web resources on that, and understood it fine. In particular, I found an article Network programming under Unix systems to be very informative. What confuses me is ...
Socket programming can indeed be a bit confusing, especially when it comes to handling incoming data. Let's break down your questions about timing, packet size, and how to handle incoming data. ### 1. When Do You Know Data Has Arrived? In socket programming, you typically wait for data to arrive on a socket by using ...
7,595
[ { "from": "human", "value": "I am a bit confused about socket programming in C.\nYou create a socket, bind it to an interface and an IP address and get it to listen. I found a couple of web resources on that, and understood it fine. In particular, I found an article Network programming under Unix systems to...
Is it worth designing a system to expect test accounts and products to be present and active in production, or should there be no contamination of production databases with test entities, even if your shipping crew knows not to ship any box addressed to "Test Customer"? I've implemented messaging protocols that have a ...
When considering whether to include test accounts and products in a production environment, there are several important factors to evaluate. Here's a structured way to think about it: ### Pros of Having Test Accounts and Products in Production 1. **Integration Testing**: Having test entities in production can help yo...
9,853
[ { "from": "human", "value": "Is it worth designing a system to expect test accounts and products to be present and active in production, or should there be no contamination of production databases with test entities, even if your shipping crew knows not to ship any box addressed to \"Test Customer\"?\nI've ...
I have a static library written in C++ and I have a structure describing data format, i.e. struct Format{ long fmtId; long dataChunkSize; long headerSize; Format(long, long, long); bool operator==(Format const & other) const; }; Some of data formats are widely used, like {fmtId=0, dataChunkSize=1...
To solve the issue of making your global `Format` instances accessible across different modules while avoiding linker errors, you can follow these steps: ### Step 1: Declare the Global Variables in the Header In your header file (let's say `format.h`), declare the global instances with the `extern` keyword, like so: ...
11,303
[ { "from": "human", "value": "I have a static library written in C++ and I have a structure describing data format, i.e.\nstruct Format{\n long fmtId;\n long dataChunkSize;\n long headerSize;\n\n Format(long, long, long);\n\n bool operator==(Format const & other) const;\n};\n\nSome of data for...
Intel's Threading Building Blocks (TBB) open source library looks really interesting. Even though there's even an O'Reilly Book about the subject I don't hear about a lot of people using it. I'm interested in using it for some multi-level parallel applications (MPI + threads) in Unix (Mac, Linux, etc.) environments. ...
Intel's Threading Building Blocks (TBB) is indeed a powerful library designed for parallel programming in C++. It's particularly well-suited for high-performance computing (HPC) applications, especially those involving numerical methods and complex algorithms. ### Experiences with TBB 1. **Performance**: Many users h...
7,129
[ { "from": "human", "value": "Intel's Threading Building Blocks (TBB) open source library looks really interesting. Even though there's even an O'Reilly Book about the subject I don't hear about a lot of people using it. I'm interested in using it for some multi-level parallel applications (MPI + threads) ...
I would like to know if there is any way to add custom behaviour to the auto property get/set methods. An obvious case I can think of is wanting every set property method to call on any PropertyChanged event handlers as part of a System.ComponentModel.INotifyPropertyChanged implementation. This would allow a class to ...
In C#, auto-implemented properties do not allow for custom behavior in the `get` or `set` accessors. This means that you can't directly add custom logic like invoking `PropertyChanged` notifications through the property syntax itself. However, you can achieve similar functionality by using standard properties instead o...
9,931
[ { "from": "human", "value": "I would like to know if there is any way to add custom behaviour to the auto property get/set methods.\nAn obvious case I can think of is wanting every set property method to call on any PropertyChanged event handlers as part of a System.ComponentModel.INotifyPropertyChanged imp...
Okay, so this probably sounds terribly nefarious, but I need such capabilities for my senior project. Essentially I'm tasked with writing something that will cut down outbound spam on a zombified pc through a system of packet interception and evaluation. We have a number of algorithms we'll use on the captured messages...
It's great to hear that you found a way to scale back your project and still achieve a good outcome! For future reference or for anyone else tackling a similar project, here are a few approaches for packet interception and evaluation on Windows: 1. **WinPcap/Npcap**: As you've mentioned, WinPcap is a library for captu...
11,597
[ { "from": "human", "value": "Okay, so this probably sounds terribly nefarious, but I need such capabilities for my senior project. Essentially I'm tasked with writing something that will cut down outbound spam on a zombified pc through a system of packet interception and evaluation. We have a number of algo...
I noticed in another post, someone had done something like: double d = 3.1415; int i = Convert.ToInt32(Math.Floor(d)); Why did they use the convert function, rather than: double d = 3.1415; int i = (int)d; which has an implicit floor and convert. Also, more concerning, I noticed in some production code I was reading:...
The use of conversion methods like `Convert.ToInt32()` and `Convert.ToSingle()` versus casting (e.g., `(int)d` or `(float)d`) can lead to different behaviors, especially in terms of rounding and handling of special cases like `null` or `NaN` values. Let’s explore the differences between these approaches. ### 1. **Conv...
8,871
[ { "from": "human", "value": "I noticed in another post, someone had done something like:\ndouble d = 3.1415;\nint i = Convert.ToInt32(Math.Floor(d));\n\nWhy did they use the convert function, rather than:\ndouble d = 3.1415;\nint i = (int)d;\n\nwhich has an implicit floor and convert.\nAlso, more concerning...
I am curious about how do you protect your software against cracking, hacking etc. Do you employ some kind of serial number check? Hardware keys? Do you use any third-party solutions? How do you go about solving licensing issues? (e.g. managing floating licenses) EDIT: I'm not talking any open source, but strictly com...
Protecting commercial software from cracking, hacking, and unauthorized use is a multi-faceted challenge that typically involves a combination of techniques and technologies. Here are some common approaches: ### 1. **Serial Number Verification** - **Unique Serial Keys:** Generate unique serial numbers for each soft...
8,166
[ { "from": "human", "value": "I am curious about how do you protect your software against cracking, hacking etc.\nDo you employ some kind of serial number check? Hardware keys? \nDo you use any third-party solutions?\nHow do you go about solving licensing issues? (e.g. managing floating licenses)\nEDIT: I'm ...
In a .net system I'm building, there is a need for automated e-mail notifications. These should be editable by an admin. What's the easiest way to do this? SQL table and WYSIWIG for editing? The queue is a great idea. I've been throwing around that type of process for awhile with my old company.
To implement automated email notifications in your .NET system, while allowing for easy editing by an admin, here’s a simple yet effective approach: ### 1. Database Design You can create a SQL table to store email templates and relevant metadata. A basic structure could look like this: ```sql CREATE TABLE EmailTempl...
4,862
[ { "from": "human", "value": "In a .net system I'm building, there is a need for automated e-mail notifications. These should be editable by an admin. What's the easiest way to do this? SQL table and WYSIWIG for editing?\n\nThe queue is a great idea. I've been throwing around that type of process for awhile ...
I want to setup a mechanism for tracking DB schema changes, such the one described in this answer: For every change you make to the database, you write a new migration. Migrations typically have two methods: an "up" method in which the changes are applied and a "down" method in which the changes are undone. ...
In theory, most Data Definition Language (DDL) commands are designed to be reversible, but in practice, there are certain operations that pose challenges for implementing a reliable "down" method. Here are some examples of DDL commands that may not be easily reversible, and why: 1. **Dropping a Table**: - **Up**: ...
10,853
[ { "from": "human", "value": "I want to setup a mechanism for tracking DB schema changes, such the one described in this answer:\n\nFor every change you make to the\n database, you write a new migration.\n Migrations typically have two methods:\n an \"up\" method in which the changes\n are applied and a ...
I need some info on how to use margins and how exactly padding works. For example: Should I put a line to occupy the whole width of the page (no matter what resolution is used to display the web page) letting just a small border on each side, how could I achieve this?
Margins and padding are essential concepts in CSS that control the spacing around and within elements, respectively. Here's a breakdown of how to use them effectively. ### Margins Margins are the space outside an element. You can think of it as the space that creates separation between different elements on a page. Ma...
9,395
[ { "from": "human", "value": "I need some info on how to use margins and how exactly padding works.\nFor example: Should I put a line to occupy the whole width of the page (no matter what resolution is used to display the web page) letting just a small border on each side, how could I achieve this?\n" }, ...
My question is related to the command pattern, where we have the following abstraction (C# code) : public interface ICommand { void Execute(); } Let's take a simple concrete command, which aims to delete an entity from our application. A Person instance, for example. I'll have a DeletePersonCommand, which implemen...
To manage parameterized commands in the Command pattern, you can use a few different approaches. Given your example with a `DeletePersonCommand`, you can create a constructor that takes the required parameters and initializes the command instance. Here's how you can do it: ### Approach 1: Constructor Injection This i...
8,254
[ { "from": "human", "value": "My question is related to the command pattern, where we have the following abstraction (C# code) :\npublic interface ICommand\n{\n void Execute();\n}\n\nLet's take a simple concrete command, which aims to delete an entity from our application. A Person instance, for example.\...
The company has the traditional complex organizational structure, defining the amount of levels using the letter 'n' rather than an actual number. I will try and express the structure I'm trying to achieve in mono-spaced font: Alice ,--------|-------,------,------, Bob Fred Jack Kim Lucy | ...
Yes, you can achieve this conditional formatting in a WPF TreeView, but it involves a combination of styles, data templates, and triggers. While the default `TreeView` items are arranged in a vertical manner, you can customize their display to switch between horizontal and vertical orientations based on whether they ha...
8,746
[ { "from": "human", "value": "The company has the traditional complex organizational structure, defining the amount of levels using the letter 'n' rather than an actual number. I will try and express the structure I'm trying to achieve in mono-spaced font: \n Alice\n ,--------|-------,------,------,...
Imagine I have an function which goes through one million/billion strings and checks smth in them. f.ex: foreach (String item in ListOfStrings) { result.add(CalculateSmth(item)); } it consumes lot's of time, because CalculateSmth is very time consuming function. I want to ask: how to integrate multithreading in th...
In .NET 2.0, you do not have access to the more advanced features of the Task Parallel Library or the `async/await` keywords that are available in later versions. However, you can achieve multithreading using the `Thread` class or the `ThreadPool` class to perform the work concurrently. Here's a simple example demonst...
8,088
[ { "from": "human", "value": "Imagine I have an function which goes through one million/billion strings and checks smth in them.\nf.ex:\nforeach (String item in ListOfStrings)\n{\n result.add(CalculateSmth(item));\n}\n\nit consumes lot's of time, because CalculateSmth is very time consuming function.\nI w...
So, when I was a comparative novice to the novice I am right now, I used to think that these two things were syntactic sugar for each other, i.e. that using one over the other was simply a personal preference. Over time, I'm come to find that these two are not the same thing, even in a default implementation (see this ...
It seems like you are referring to the differences between **operators** and **methods** in programming, particularly in object-oriented languages. While this explanation can apply broadly to many languages, I will focus on languages like Python, Java, or C++. ### Key Differences 1. **Syntax and Readability**: - ...
11,068
[ { "from": "human", "value": "So, when I was a comparative novice to the novice I am right now, I used to think that these two things were syntactic sugar for each other, i.e. that using one over the other was simply a personal preference. Over time, I'm come to find that these two are not the same thing, ev...
I'm programming an application in MFC (don't ask) and I have a CEdit box that holds a number. When that number is edited, I would like to act on the change, and then replace the caret where it was before I acted on the change - if the user was just before the "." in "35.40", I would like it to still be placed before t...
In an MFC application, you can achieve this by handling the `EN_CHANGE` notification for your `CEdit` control. The general approach is to: 1. Store the current caret position before processing the change. 2. Respond to the change, which can be any kind of processing or validation. 3. Restore the caret to the original ...
9,150
[ { "from": "human", "value": "I'm programming an application in MFC (don't ask) and I have a CEdit box that holds a number. When that number is edited, I would like to act on the change, and then replace the caret where it was before I acted on the change - if the user was just before the \".\" in \"35.40\"...
Our build server is taking too long to build one of our C++ projects. It uses Visual Studio 2008, running devenv.com MyApp.sln /Build -- see devenv command-line switches (although that's for a newer version of VS). Is there a way to get devenv.com to log the time taken to build each project in the solution, so that I k...
In Visual Studio 2008, you won't have direct support for logging build times per project in the same way that more recent versions of Visual Studio and MSBuild support detailed logging and diagnostics. However, there are a few approaches you can use to get more insight into build times for each project in your solution...
8,855
[ { "from": "human", "value": "Our build server is taking too long to build one of our C++ projects. It uses Visual Studio 2008, running devenv.com MyApp.sln /Build -- see devenv command-line switches (although that's for a newer version of VS). Is there a way to get devenv.com to log the time taken to build ...
I'm a complete perl novice, am running a perl script using perl 5.10 and getting this warning: $* is no longer supported at migrate.pl line 380. Can anyone describe what $* did and what the recommended replacement of it is now? Alternatively if you could point me to documentation that describes this that would be gre...
In Perl, the variable `$*` used to control whether the input record separator (the special variable `$/`) is treated as a multi-line record separator. However, starting from Perl 5.10, the use of `$*` has been deprecated and is no longer supported, which is why you are seeing the warning. The `$*` variable was histori...
7,535
[ { "from": "human", "value": "I'm a complete perl novice, am running a perl script using perl 5.10 and getting this warning: \n$* is no longer supported at migrate.pl line 380.\n\nCan anyone describe what $* did and what the recommended replacement of it is now?\nAlternatively if you could point me to docume...
Where can i find some .Net or conceptual resources to start working with Natural Language where I can pull context and subjects from text. I wish not to work with word frequency algorithms.
To start working with Natural Language Processing (NLP) in .NET and to focus on understanding context and subjects from text without relying on word frequency algorithms, you can explore the following resources: ### Books 1. **"Natural Language Processing with .NET"** by Archit Sood - A comprehensive guide specificall...
10,156
[ { "from": "human", "value": "Where can i find some .Net or conceptual resources to start working with Natural Language where I can pull context and subjects from text. I wish not to work with word frequency algorithms.\n" }, { "from": "gpt", "value": "To start working with Natural Language Proce...
Has anyone else experienced (and possibly solved) unintentional pitch changes using MS SAPI TTS voices? I'm using the SpVoice automation interface with SAPI 5.1. Right now, my application (VB6 app) can get into a state where the TTS (Microsoft Anna) starts to sound like a chipmunk (proper rate, but high pitch) and eve...
The issue you're experiencing with the Microsoft Speech API (SAPI) TTS voices, where the voice sounds like a chipmunk (high pitch), can be frustrating. Here are several troubleshooting steps and potential solutions that have worked for others facing similar problems: 1. **XML Speech Markup**: Ensure that you're correc...
9,338
[ { "from": "human", "value": "Has anyone else experienced (and possibly solved) unintentional pitch changes using MS SAPI TTS voices? \nI'm using the SpVoice automation interface with SAPI 5.1.\nRight now, my application (VB6 app) can get into a state where the TTS (Microsoft Anna) starts to sound like a chi...
I have the following code: String inputFile = "somefile.txt"; FileInputStream in = new FileInputStream(inputFile); FileChannel ch = in.getChannel(); ByteBuffer buf = ByteBuffer.allocateDirect(BUFSIZE); // BUFSIZE = 256 /* read the file into a buffer, 256 bytes at a time */ ...
The issue you're encountering with the characters being displayed as '?' is likely related to how you're interpreting the bytes read from the file. When you use `buf.getChar()`, you're interpreting the bytes as Unicode characters (16-bit), but if the file contains text in a different encoding (such as UTF-8 or ASCII), ...
10,518
[ { "from": "human", "value": "I have the following code:\n String inputFile = \"somefile.txt\";\n FileInputStream in = new FileInputStream(inputFile);\n FileChannel ch = in.getChannel();\n ByteBuffer buf = ByteBuffer.allocateDirect(BUFSIZE); // BUFSIZE = 256\n\n /* read th...
What are some good package naming conventions for domain specific object models. For example, say you have a Person.java POJO, would you put it in a mydomain.model or mydomain.entity or mydomain.om (object model) package. The idea is to separate the MVC model objects from the domain object model. Our MVC based appl...
Choosing a package naming convention for domain-specific object models is indeed important for maintaining clarity, separation of concerns, and ease of navigation within your codebase. Here are some considerations and recommendations regarding package naming conventions for domain-specific models: ### 1. **Follow Doma...
9,906
[ { "from": "human", "value": "What are some good package naming conventions for domain specific object models. For example, say you have a Person.java POJO, would you put it in a mydomain.model or mydomain.entity or mydomain.om (object model) package. The idea is to separate the MVC model objects from the...
Is there a specific pattern that developers generally follow? I never really gave it much thought before in my web applications, but the ASP.NET MVC routing engine pretty much forces you to at least take it into consideration. So far I've liked the controller/action/index structure (e.g. Products/Edit/1), but I'm stru...
When designing URL structures for web applications, especially in an MVC context, it’s important to consider several principles: clarity, consistency, and RESTful practices. Here’s a breakdown of the options you mentioned and some additional suggestions based on common best practices. ### 1. RESTful Principles In a RE...
10,906
[ { "from": "human", "value": "Is there a specific pattern that developers generally follow? I never really gave it much thought before in my web applications, but the ASP.NET MVC routing engine pretty much forces you to at least take it into consideration.\nSo far I've liked the controller/action/index stru...
I am working on upgrades to a screen scraping application. We are using an ActiveX control to scrape screens out of an IBM mainframe. The mainframe program often hangs and crashes the ActiveX control causing our application to crash. We don't have access to the mainframe or the ActiveX source code. We are not going to ...
Encapsulating an ActiveX control to handle potential hangs is a challenging task, especially since you don't have access to its source code and you want to ensure that your application remains stable. Here are some recommendations on how to approach this problem: ### 1. Create a Controller-Worker Architecture Creating...
8,690
[ { "from": "human", "value": "I am working on upgrades to a screen scraping application. We are using an ActiveX control to scrape screens out of an IBM mainframe. The mainframe program often hangs and crashes the ActiveX control causing our application to crash. We don't have access to the mainframe or the ...
What VM technologies exist for Linux, their pros and cons, and which is recommended for which application? Since this kind of question can be asked for X other than "VM technologies for Linux", and since the answer changes with progress, I suggest to define a template for this kind of pages. Those pages will have the ...
That sounds like a great initiative! Having a standardized template will help streamline the information and make it easier for users to navigate through various technologies. Below is a proposed template for your "stateoftheart" pages, along with a sample section specifically for VM technologies for Linux: --- ### S...
8,007
[ { "from": "human", "value": "What VM technologies exist for Linux, their pros and cons, and which is recommended for which application?\nSince this kind of question can be asked for X other than \"VM technologies for Linux\", and since the answer changes with progress, I suggest to define a template for thi...
I am getting ready to start a new asp.net web project, and I am going to LINQ-to-SQL. I have done a little bit of work getting my data layer setup using some info I found by Mike Hadlow that uses an Interface and generics to create a Repository for each table in the database. I thought this was an interesting approach ...
Your current implementation of the `Repository<T>` class is a good foundation for a generic repository pattern, and it provides a lot of flexibility and reuse. When considering whether to continue using this generic repository or to create specific repository classes for each table, there are several factors to weigh i...
9,933
[ { "from": "human", "value": "I am getting ready to start a new asp.net web project, and I am going to LINQ-to-SQL. I have done a little bit of work getting my data layer setup using some info I found by Mike Hadlow that uses an Interface and generics to create a Repository for each table in the database. I ...
I wand to construct an MSI which, in its installation process, will deploy itself along with its contained Files/Components, to the TargetDir. So MyApp.msi contains MyApp.exe and MyAppBootstrapperEmpty.exe (with no resources) in its File Table. The user launches a MyAppBootstrapperPackaged.exe (containing MyApp.msi as ...
Creating an MSI installer for your application that meets the requirements you've outlined involves several key steps, particularly using custom actions to manipulate the installation process dynamically. Given your description, here’s a conceptual approach on how to achieve this, particularly using WiX for the MSI cre...
6,811
[ { "from": "human", "value": "I wand to construct an MSI which, in its installation process, will deploy itself along with its contained Files/Components, to the TargetDir.\nSo MyApp.msi contains MyApp.exe and MyAppBootstrapperEmpty.exe (with no resources) in its File Table.\nThe user launches a MyAppBootstr...
A coworker has been struggling with this problem. The desired result is an installable plugin for Notes that will add a button emails with attachments that will let users save the attachment to a document management system. Finding documentation on doing this for Notes has been an uphill battle to say the least. Writin...
Creating a plugin for IBM Notes to add functionality, such as a button for saving attachments to a document management system, involves a few key steps. Below are some guidelines to help your coworker get started: ### Step 1: Set Up the Development Environment Before beginning the development of a plugin, ensure you ...
8,634
[ { "from": "human", "value": "A coworker has been struggling with this problem.\nThe desired result is an installable plugin for Notes that will add a button emails with attachments that will let users save the attachment to a document management system.\nFinding documentation on doing this for Notes has bee...
I'm just starting to design some embedded devices, and am looking for resources. What I want to be able to do is to connect a GPS receiver to a lightweight SBC or mini-ITX, x86-based computer, and track a remote-controlled vehicle's location/progress. Ideally, this could morph into building some hobby, semi-autonomous ...
That sounds like an exciting project! For your requirements, there are several options for development boards that support GPS integration and can eventually lead to building semi-autonomous vehicles. Here are some recommended boards along with resources for programming and development: ### Development Boards 1. **Ra...
7,741
[ { "from": "human", "value": "I'm just starting to design some embedded devices, and am looking for resources.\nWhat I want to be able to do is to connect a GPS receiver to a lightweight SBC or mini-ITX, x86-based computer, and track a remote-controlled vehicle's location/progress.\nIdeally, this could morph...
I have an application that writes information to file. This information is used post-execution to determine pass/failure/correctness of the application. I'd like to be able to read the file as it is being written so that I can do these pass/failure/correctness checks in real time. I assume it is possible to do this, bu...
Reading a file as it is being written to is a common requirement in many applications, particularly for logging or monitoring. In Java, it is indeed possible to read from a file while it is being written to, but there are some considerations and "gotchas" that you should keep in mind: ### 1. File Reading Mechanism: - ...
4,604
[ { "from": "human", "value": "I have an application that writes information to file. This information is used post-execution to determine pass/failure/correctness of the application. I'd like to be able to read the file as it is being written so that I can do these pass/failure/correctness checks in real tim...
I want to make an entity that has an autogenerated primary key, but also a unique compound key made up of two other fields. How do I do this in JPA? I want to do this because the primary key should be used as foreign key in another table and making it compound would not be good. In the following snippet, I need the com...
To achieve your goal of having an autogenerated primary key while also maintaining a unique compound key made up of two other fields (in your case, `command` and `model`), you can use JPA's `@GeneratedValue` annotation for the primary key and the `@Table` annotation's `uniqueConstraints` attribute for the unique constr...
9,657
[ { "from": "human", "value": "I want to make an entity that has an autogenerated primary key, but also a unique compound key made up of two other fields. How do I do this in JPA?\nI want to do this because the primary key should be used as foreign key in another table and making it compound would not be good...
Most restrictions and tricks with windows forms are common to most programmers. But since .NET 3.0 there is also WPF available, the Windows Presentation Foundation. It is said that you can make "sexy applications" more easy with it and with .NET 3.5 SP1 it got a good speed boost on execution. But on the other side a lo...
Whether it's worth investing time in learning WPF (Windows Presentation Foundation) over Windows Forms largely depends on your specific situation, including the project's requirements, your long-term goals, and the advantages WPF brings. Here are some considerations to help you decide: ### Advantages of WPF 1. **Rich...
9,461
[ { "from": "human", "value": "Most restrictions and tricks with windows forms are common to most programmers. But since .NET 3.0 there is also WPF available, the Windows Presentation Foundation. It is said that you can make \"sexy applications\" more easy with it and with .NET 3.5 SP1 it got a good speed boo...
What are the strategies for versioning of a web application/ website? I notice that here in the Beta there is an svn revision number in the footer and that's ideal for an application that uses svn over one repository. But what if you use externals or a different source control application that versions separate files...
Versioning a web application is important for maintaining a clear understanding of the application's iterations and deployments. While versioning can seem more straightforward in desktop applications, there are effective strategies for ASP.NET web applications too. Here are some strategies for building and auto-increme...
8,794
[ { "from": "human", "value": "What are the strategies for versioning of a web application/ website? \nI notice that here in the Beta there is an svn revision number in the footer and that's ideal for an application that uses svn over one repository. But what if you use externals or a different source contro...
I am working on an application for college music majors. A feature i am considering is slowing down music playback without changing its pitch. I have seen this done in commercial software, but cannot find any libraries or open source apps that do anything like this. Are there libraries out there? How could this be d...
Slowing down music playback without changing its pitch is often referred to as "time stretching." There are several libraries and tools available, as well as techniques for implementing this functionality from scratch. Below is a breakdown of your options. ### Libraries for Time Stretching 1. **TarsosDSP**: - **L...
6,764
[ { "from": "human", "value": "I am working on an application for college music majors. A feature i am considering is slowing down music playback without changing its pitch. I have seen this done in commercial software, but cannot find any libraries or open source apps that do anything like this. \n\nAre the...
Yacc does not permit objects to be passed around. Because the %union can only contain POD types, complex objects must be new'd and passed around by pointer. If a syntax error occurs, the yacc parser just stops running, and references to all of those created objects are lost. The only solution I've come up with is that ...
Your approach of managing dynamic memory and ensuring cleanup in the event of a syntax error is a sound strategy. Using a base class for your objects and storing them in a container provides a structured way to handle these allocations. Here are a few additional suggestions and tricks that might help you improve this a...
11,897
[ { "from": "human", "value": "Yacc does not permit objects to be passed around. Because the %union can only contain POD types, complex objects must be new'd and passed around by pointer. If a syntax error occurs, the yacc parser just stops running, and references to all of those created objects are lost.\nTh...
I'm new to BIRT and I'm trying to make the Report Engine running. I'm using the code snippets provided in http://www.eclipse.org/birt/phoenix/deploy/reportEngineAPI.php But I have a strange exception: java.lang.AssertionError at org.eclipse.birt.core.framework.Platform.startup(Platform.java:86) and nothing in t...
The `java.lang.AssertionError` you're encountering when trying to start the BIRT report engine can occur due to various reasons related to configuration and environment setup. Here are some steps you can take to troubleshoot and resolve the issue: ### 1. Verify BIRT Installation Ensure that your BIRT installation is ...
8,827
[ { "from": "human", "value": "I'm new to BIRT and I'm trying to make the Report Engine running. I'm using the code snippets provided in http://www.eclipse.org/birt/phoenix/deploy/reportEngineAPI.php\nBut I have a strange exception:\n\njava.lang.AssertionError\n at org.eclipse.birt.core.framework.Platfor...
Why does Kerberos authentication use T125 protocol? I believe Kerberos authentication behaves this way: Client asks for a ticket to the Kerberos authority The Kerberos authority provides a Ticket to the client The Client tries to authenticate towards a Server and sends to the server this Ticket. The Server verifies th...
It seems there may be a slight misunderstanding regarding your reference to the T125 protocol in relation to Kerberos authentication. Kerberos is a network authentication protocol designed to provide strong authentication for client-server applications through secret-key cryptography. It does not inherently use the T12...
11,832
[ { "from": "human", "value": "Why does Kerberos authentication use T125 protocol? I believe Kerberos authentication behaves this way:\n\nClient asks for a ticket to the Kerberos authority\nThe Kerberos authority provides a Ticket to the client\nThe Client tries to authenticate towards a Server and sends to t...
This is a 3 part question regarding embedded RegEx into SQL statements. How do you embed a RegEx expression into an Oracle PL/SQL select statement that will parse out the “DELINQUENT” string in the text string shown below? What is the performance impact if used within a mission critical business transaction? Since em...
To address your questions regarding embedding a RegEx expression into an Oracle PL/SQL `SELECT` statement, let's go through them step by step. ### 1. Embedding a RegEx Expression into Oracle PL/SQL In Oracle, you can use the `REGEXP_INSTR` or `REGEXP_SUBSTR` functions to find or extract text based on a regex pattern....
8,305
[ { "from": "human", "value": "This is a 3 part question regarding embedded RegEx into SQL statements. \n\nHow do you embed a RegEx expression into an Oracle PL/SQL\nselect statement that will parse out\nthe “DELINQUENT” string in the text\nstring shown below?\nWhat is the performance impact if used within a\...
I have C# winforms application that needs to start an external exe from time to time, but I do not wish to start another process if one is already running, but rather switch to it. So how in C# would I so this in the example below? using System.Diagnostics; ... Process foo = new Process(); foo.StartInfo.FileName = @...
To achieve the desired behavior of either switching to an already running process or starting a new instance of the process, you can use the `System.Diagnostics` namespace to check for running instances of the process and then use `SetForegroundWindow` to bring the existing process to the front. Here’s how you can imp...
8,626
[ { "from": "human", "value": "I have C# winforms application that needs to start an external exe from time to time, but I do not wish to start another process if one is already running, but rather switch to it.\nSo how in C# would I so this in the example below?\nusing System.Diagnostics;\n\n...\n\nProcess f...
I am running following PHP code to interact with a MS Access database. $odbc_con = new COM("ADODB.Connection"); $constr = "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" . $db_path . ";"; $odbc_con -> open($constr); $rs_select = $odbc_con -> execute ("SELECT * FROM Main"); Using ($rs_select -> RecordCount) gives -1 ...
When working with MS Access databases using ADO in PHP, encountering a `RecordCount` of -1 can be frustrating. Here are the answers to your questions: ### (a) What can be the reason? The `RecordCount` property in ADO is not always reliable for certain types of recordsets, particularly for forward-only cursors, which ...
11,090
[ { "from": "human", "value": "I am running following PHP code to interact with a MS Access database.\n$odbc_con = new COM(\"ADODB.Connection\");\n$constr = \"DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=\" . $db_path . \";\";\n$odbc_con -> open($constr);\n\n$rs_select = $odbc_con -> execute (\"SELECT * FROM...
I just wonder what the best approach is to have multiple users work on a Project in Visual Studio 2005 Professional. We got a Solution with multiple Class Libraries, but when everyone opens the solution, we keep getting the "X was modified, Reload/Discard?" prompt all the time. Just opening one project is an obvious al...
When working with multiple users on a project in Visual Studio 2005, especially in an environment where you have limited resources, it is essential to establish practices that facilitate collaboration and minimize conflicts. Here are some guidelines to consider: ### 1. **Version Control System (VCS)** Using a Version ...
6,555
[ { "from": "human", "value": "I just wonder what the best approach is to have multiple users work on a Project in Visual Studio 2005 Professional.\nWe got a Solution with multiple Class Libraries, but when everyone opens the solution, we keep getting the \"X was modified, Reload/Discard?\" prompt all the tim...
The RefEdit control that comes as part of VBA is a little buggy, but it's good for putting on a form when you want people to specify one or more ranges of cells (i.e. Excel.Range objects). The main problem is that you can only use the RefEdit control on a VBA UserForm (Microsoft states this, and my tests confirm it too...
Creating a user-friendly alternative to the RefEdit control in Delphi for selecting Excel ranges can be quite a challenge due to the unique functionality of RefEdit itself. However, there are a few approaches and tips you can consider to achieve a similar outcome: ### 1. Custom Range Selector You can create your own r...
7,389
[ { "from": "human", "value": "The RefEdit control that comes as part of VBA is a little buggy, but it's good for putting on a form when you want people to specify one or more ranges of cells (i.e. Excel.Range objects).\nThe main problem is that you can only use the RefEdit control on a VBA UserForm (Microsof...
I'm developing a WinForms application (.Net 3.5, no WPF) where I want to be able to display foreign key lookups in a databound DataGridView. An example of the sort of relationship is that I have a table of OrderLines. Orderlines have a foreign key relationship to Products and Products in turn have a foreign key relat...
Your approach is on the right track, but there are a few aspects to consider that could streamline the process, especially concerning the use of NHibernate for ORM and how you handle data binding in WinForms with the DataGridView. ### General Approach 1. **Domain Objects**: As you've stated, create domain objects to ...
7,885
[ { "from": "human", "value": "I'm developing a WinForms application (.Net 3.5, no WPF) where I want to be able to display foreign key lookups in a databound DataGridView. \nAn example of the sort of relationship is that I have a table of OrderLines. Orderlines have a foreign key relationship to Products and...
Does anyone know if it's possible to use regex capture within Apache's DirectoryMatch directive? I'd like to do something like the following: <DirectoryMatch ^/home/www/(.*)> AuthType Basic AuthName $1 AuthUserFile /etc/apache2/svn.passwd Require group $1 admin </DirectoryMatch> but so far I've had no ...
Using regex capture groups within the `DirectoryMatch` directive in Apache is not directly supported. The Apache configuration does not allow you to use captured variables from regex in directives such as `AuthName` or `Require`. However, you can achieve your goal using a combination of the following approaches: 1. ...
7,563
[ { "from": "human", "value": "Does anyone know if it's possible to use regex capture within Apache's DirectoryMatch directive? I'd like to do something like the following:\n<DirectoryMatch ^/home/www/(.*)>\n AuthType Basic\n AuthName $1\n AuthUserFile /etc/apache2/svn.passwd\n Require group $1 ad...
I have an XML file that's the output from a database. I'm using the Java SAX parser to parse the XML and output it in a different format. The XML contains some invalid characters and the parser is throwing errors like 'Invalid Unicode character (0x5)' Is there a good way to strip all these characters out besides pre-...
Handling invalid characters in XML files can be challenging, especially when you're dealing with large files like a 4GB database dump. When using the SAX parser, it's essential to ensure that the XML input is well-formed. Since you're facing issues with invalid Unicode characters, there are a few strategies to consider...
10,806
[ { "from": "human", "value": "I have an XML file that's the output from a database. I'm using the Java SAX parser to parse the XML and output it in a different format. The XML contains some invalid characters and the parser is throwing errors like 'Invalid Unicode character (0x5)'\nIs there a good way to s...
For our online game, we have written tons of PHP classes and functions grouped by theme in files and then folders. In the end, we have now all our backend code (logic & DB access layers) in a set of files that we call libs and we include our libs in our GUI (web pages, presentation layer) using include_once('pathtolib/...
To improve the performance of your PHP application and address the issues with inefficient `include` statements, you have several options. Here are the best approaches to consider: ### 1. Refactor Include Statements **Remove unnecessary includes from the libs:** - As you mentioned, removing all `include` statements fr...
10,186
[ { "from": "human", "value": "For our online game, we have written tons of PHP classes and functions grouped by theme in files and then folders. In the end, we have now all our backend code (logic & DB access layers) in a set of files that we call libs and we include our libs in our GUI (web pages, presentat...
I'm a newbie to pgsql. I have few questionss on it: 1) I know it is possible to access columns by <schema>.<table_name>, but when I try to access columns like <db_name>.<schema>.<table_name> it throwing error like Cross-database references are not implemented How do I implement it? 2) We have 10+ tables and 6 of have ...
Welcome to PostgreSQL! I'll address each of your questions one by one. ### 1. Cross-database References In PostgreSQL, you cannot directly reference tables across different databases. This limitation is a design choice in PostgreSQL. If you need to work with data from multiple databases, you typically have a few opti...
11,311
[ { "from": "human", "value": "I'm a newbie to pgsql. I have few questionss on it:\n1) I know it is possible to access columns by <schema>.<table_name>, but when I try to access columns like <db_name>.<schema>.<table_name> it throwing error like\nCross-database references are not implemented\n\nHow do I imple...
I want to use Apple's or RedHat's built-in Apache but I want to use Perl 5.10 and mod_perl. What's the least intrusive way to accomplish this? I want the advantage of free security patching for the vendor's Apache, dav, php, etc., but I care a lot about which version of Perl I use and what's in my @INC path. I don't...
If you want to use Apple's or RedHat's built-in Apache while maintaining control over your Perl version and `@INC` path, you can achieve this with a minimal intrusion approach. Here’s how you can set this up: ### Steps to Use Built-in Apache with Custom Perl and mod_perl 1. **Install Perl 5.10**: - If you haven't ...
8,342
[ { "from": "human", "value": "I want to use Apple's or RedHat's built-in Apache but I want to use Perl 5.10 and mod_perl. What's the least intrusive way to accomplish this? I want the advantage of free security patching for the vendor's Apache, dav, php, etc., but I care a lot about which version of Perl I...
I am quite new to JavaScript libraries. I wanted to replace my current code with jQuery. My current code looks like this: var req; function createRequest() { var key = document.getElementById("key"); var keypressed = document.getElementById("keypressed"); keypressed.value = key.value; var url = "/My_Servle...
To replace your current code with jQuery, you can simplify your AJAX request and the handling of the response. jQuery does indeed provide a more user-friendly way to handle AJAX requests. ### Step 1: Converting the AJAX request Here's how you can rewrite your `createRequest` function using jQuery: ```javascript func...
9,100
[ { "from": "human", "value": "I am quite new to JavaScript libraries. I wanted to replace my current code with jQuery. My current code looks like this:\nvar req;\n\nfunction createRequest() {\n var key = document.getElementById(\"key\");\n var keypressed = document.getElementById(\"keypressed\");\n key...
We have two offices in different states and issues with performance when using integrated source control over the WAN. We were contemplating using replication in TFS to allow both office to have fast and robust connectivity. We need to understand network load, speed of access, how conflicts are managed.
When considering using Team Foundation Server (TFS) or Azure DevOps Server with replication to support multiple offices across different states, there are several aspects to take into account, including network load, speed of access, and conflict management. ### 1. Network Load **Replication Mechanism:** - TFS suppor...
9,783
[ { "from": "human", "value": "We have two offices in different states and issues with performance when using integrated source control over the WAN. We were contemplating using replication in TFS to allow both office to have fast and robust connectivity. We need to understand network load, speed of access, h...
I just finished setting up an out-of-place build system for our existing C++ code using inherited property sheets, a feature that seems to be specific to the Visual C++ product. Building out-of-place requires that many of the project settings be changed, and the inherited property sheets allowed me to change all the ne...
In C# projects, particularly with .NET and MSBuild, the concept of "inherited property sheets" from Visual C++ does not exist in the same way. However, you can achieve similar functionality by using MSBuild files (.targets and .props) to manage your project properties. Here's how you can approach this to create out-of-...
4,952
[ { "from": "human", "value": "I just finished setting up an out-of-place build system for our existing C++ code using inherited property sheets, a feature that seems to be specific to the Visual C++ product. Building out-of-place requires that many of the project settings be changed, and the inherited proper...
We are currently working on a new version of our main application. one thing that I really wish to work on is providing support for multiple monitors. Increasingly, our target users are adding second screens to their desktops and I think our product could leverage this extra space to improve user performance. Our app...
It’s great to hear that you’re considering improving support for multiple monitors in your application! Many users find that multi-monitor setups enhance their productivity, especially in specialized fields like finance. Here are some common pain points and potential enhancements that could improve user experience in a...
6,515
[ { "from": "human", "value": "We are currently working on a new version of our main application. one thing that I really wish to work on is providing support for multiple monitors. Increasingly, our target users are adding second screens to their desktops and I think our product could leverage this extra s...
I'm trying to grasp the concept of continuations and I found several small teaching examples like this one from the Wikipedia article: (define the-continuation #f) (define (test) (let ((i 0)) ; call/cc calls its first function argument, passing ; a continuation variable representing this point in ; the ...
Continuations can be a bit abstract at first, but they offer powerful control flow capabilities that can be used in various scenarios. Here are some common applications and examples where continuations can be particularly useful: ### 1. Early Exits or "Return" from Nested Contexts Continuations allow you to exit from ...
3,901
[ { "from": "human", "value": "I'm trying to grasp the concept of continuations and I found several small teaching examples like this one from the Wikipedia article:\n(define the-continuation #f)\n\n(define (test)\n (let ((i 0))\n ; call/cc calls its first function argument, passing \n ; a continuation...
My company is in education industry and we use XML to store course content. We also store some course related information (mostly metainfo) in relational database. Right now we are in the process of switching from our proprietary XML Schema to DocBook 5. Along with the switch we want to move course related information ...
What you are looking to achieve is quite feasible, and several options are available that can help you implement a solution that meets your requirements. Here's a breakdown of some alternatives and recommendations: ### Options for Managing XML with XQuery 1. **BaseX**: - BaseX is a lightweight, high-performance XM...
10,765
[ { "from": "human", "value": "My company is in education industry and we use XML to store course content. We also store some course related information (mostly metainfo) in relational database. Right now we are in the process of switching from our proprietary XML Schema to DocBook 5. Along with the switch we...
I have simple application that uses dbExpress to connect Informix database. If I compile it with TurboDelphi it works on both WinXP and Win2003. When I use new Deplhi 2009 my app works ok on WinXP but do not start on Win2003. No MessageBox with error, only info in EventLog: Faulting application inf_dbexpress_test.exe,...
It sounds like you're experiencing a compatibility issue between Delphi 2009's dbExpress driver and Windows Server 2003 when attempting to connect to an Informix database. Since you've already tried several troubleshooting steps, here are some additional suggestions you might consider: 1. **Check for Missing Dependenc...
11,701
[ { "from": "human", "value": "I have simple application that uses dbExpress to connect Informix database.\nIf I compile it with TurboDelphi it works on both WinXP and Win2003.\nWhen I use new Deplhi 2009 my app works ok on WinXP but do not start on Win2003.\nNo MessageBox with error, only info in EventLog:\n...
I'm trying to create a self signed certificate for use with Apache Tomcat 6. Every certificate I can make always results in the browser connecting with AES-128. The customer would like me to demonstrate that I can create a connection at AES-256. I've tried java's keytool and openssl. I've tried with a variety of par...
To configure Apache Tomcat 6 to use AES-256 encryption with a self-signed certificate, you need to ensure a couple of things: 1. **Java Cryptography Extension (JCE)**: Ensure that you have the Unlimited Strength Jurisdiction Policy files installed for your Java installation. This will allow your Java environment to s...
8,700
[ { "from": "human", "value": "I'm trying to create a self signed certificate for use with Apache Tomcat 6. Every certificate I can make always results in the browser connecting with AES-128. The customer would like me to demonstrate that I can create a connection at AES-256.\nI've tried java's keytool and ...
I've asked this question to the forums on the Mootools website and one person said that my class selection was corrupted before an admin came along and changed my post status to invalid. Needless to say this did not help much. I then posted to a google group for Mootools with no response. My question is why doesn't ...
The issue you're experiencing with the `enter`, `leave`, and `drop` events not firing for your `.drop` elements in MooTools likely arises from a misunderstanding of how the Drag and Drop system works in combination with the events and the way you're attempting to attach them. Here's a breakdown of the setup and a sugg...
3,744
[ { "from": "human", "value": "I've asked this question to the forums on the Mootools website and one person said that my class selection was corrupted before an admin came along and changed my post status to invalid. Needless to say this did not help much. I then posted to a google group for Mootools with ...
I hope someone might be able to help me here. I've tried to simplify my example as best I can. I have an absolutely positioned DIV, which for this example I've made fill the browser window. This div has the overflow:auto attribute to provide scroll bars when the content is too big for the DIV to display. Within the DIV...
The issue you're experiencing with Internet Explorer 7 is a known quirk related to how it handles the rendering of tables and scrollbars. When a vertical scrollbar appears, it may not properly adjust the width of the container and the table within it, leading to the unintended appearance of a horizontal scrollbar. Her...
10,480
[ { "from": "human", "value": "I hope someone might be able to help me here. I've tried to simplify my example as best I can.\nI have an absolutely positioned DIV, which for this example I've made fill the browser window. This div has the overflow:auto attribute to provide scroll bars when the content is too ...
Should I bind directly to objects returned from a webservice or should I have client-side objects that I bind to my gridcontrols? For instance if I have a service that returns object Car should I have a client side Car object that I populate with values from the webservice Car object? What is considered best-practice?...
When designing applications that consume web services, particularly with data binding scenarios (like binding to grid controls), you should generally prefer to use client-side objects rather than binding directly to the objects returned from the web service. Here are some best practices and considerations for this appr...
8,030
[ { "from": "human", "value": "Should I bind directly to objects returned from a webservice or should I have client-side objects that I bind to my gridcontrols? For instance if I have a service that returns object Car should I have a client side Car object that I populate with values from the webservice Car o...
Whether this is possible I don't know, but it would mighty useful! I have a process that fails periodically (running in Windows 2000). I then have just one chance to react to it before having to restart it and painfully wait for it to fail again. I didn't write the process so don't have the source to debug. The failure...
Capturing the state of a process in Windows, especially on an older operating system like Windows 2000, and then replaying that state to test various reactions can be challenging, but it's not impossible. Here are a few options you might consider: 1. **Memory Dumps**: You can use tools like WinDbg or other debugging u...
11,645
[ { "from": "human", "value": "Whether this is possible I don't know, but it would mighty useful!\nI have a process that fails periodically (running in Windows 2000). I then have just one chance to react to it before having to restart it and painfully wait for it to fail again. I didn't write the process so d...
I'm looking to have windows recognize that certain folders are associated to my application - maybe by naming the folder 'folder.myExt'. Can this be done via the registry? A bit more info - This is for a x-platform app ( that's why I suggested the folder with an extension - mac can handle that ) - The RAD I'm using do...
Yes, you can associate a specific file extension with your application in Windows using the Windows Registry. However, Windows does not natively recognize folders with extensions (like `.myExt`) in the same way it does with file types. Still, you can achieve similar functionality by creating a custom context menu entry...
7,158
[ { "from": "human", "value": "I'm looking to have windows recognize that certain folders are associated to my application - maybe by naming the folder 'folder.myExt'.\nCan this be done via the registry?\nA bit more info\n- This is for a x-platform app ( that's why I suggested the folder with an extension - m...
This is what my browser sent, when logging into some site: POST http://www.some.site/login.php HTTP/1.0 User-Agent: Opera/8.26 (X2000; Linux i686; Z; en) Host: www.some.site Accept: text/html, application/xml;q=0.9, application/xhtml+xml, image/png, image/jpeg, image/gif, image/x-xbitmap, */*;q=0.1 Accept-Language: en...
Yes, you are correct that the way your credentials are being sent in that HTTP request means they can potentially be sniffed by someone on your local network (LAN) or any intermediary that can capture unencrypted traffic. Here are a few points to consider: 1. **Unencrypted HTTP**: The request you posted is using HTTP ...
11,592
[ { "from": "human", "value": "This is what my browser sent, when logging into some site:\n\nPOST http://www.some.site/login.php HTTP/1.0\nUser-Agent: Opera/8.26 (X2000; Linux i686; Z; en)\nHost: www.some.site\nAccept: text/html, application/xml;q=0.9, application/xhtml+xml, image/png, image/jpeg, image/gif, ...
Can you please clarify the folowing query? I am not sure if the way I am trying to code is correct. Kindly advise me if I am moving in the right/wrong direction. I am trying to develop an automation framework using QuickTest Professional, a testing tool. There is an Excel sheet from which the data is being taken for e...
It sounds like you're on the right track for developing your automation framework using QuickTest Professional (QTP), now known as Micro Focus Unified Functional Testing (UFT). Let’s break down your requirements and see how you can structure your code to handle exceptional cases while allowing the execution to continue...
8,799
[ { "from": "human", "value": "Can you please clarify the folowing query? I am not sure if the way I am trying to code is correct. Kindly advise me if I am moving in the right/wrong direction.\nI am trying to develop an automation framework using QuickTest Professional, a testing tool.\n\nThere is an Excel sh...
For my acceptance testing I'm writing text into the auto complete extender and I need to click on the populated list. In order to populate the list I have to use AppendText instead of TypeText, otherwise the textbox looses focus before the list is populated. Now my problem is when I try to click on the populated list. ...
It looks like you are working with an autocomplete feature that requires some specific interactions to trigger the desired actions correctly. Let's break down your requirements and provide a solution to your issue. ### 1. Use `AppendText` to Focus on Autocomplete As you mentioned, using `AppendText` is necessary to ke...
5,656
[ { "from": "human", "value": "For my acceptance testing I'm writing text into the auto complete extender and I need to click on the populated list.\nIn order to populate the list I have to use AppendText instead of TypeText, otherwise the textbox looses focus before the list is populated.\nNow my problem is ...
I want to try to convert a string to a Guid, but I don't want to rely on catching exceptions ( for performance reasons - exceptions are expensive for usability reasons - the debugger pops up for design reasons - the expected is not exceptional In other words the code: public static Boolean TryStrToGuid(String s, out...
To convert a string to a `Guid` without relying on exceptions, you can implement a method that uses regular expressions for initial validation of the string format before trying to create the `Guid`. This way, you can avoid the performance hit associated with exception handling when working with invalid input. Here's h...
7,632
[ { "from": "human", "value": "I want to try to convert a string to a Guid, but I don't want to rely on catching exceptions (\n\nfor performance reasons - exceptions are expensive\nfor usability reasons - the debugger pops up \nfor design reasons - the expected is not exceptional\n\nIn other words the code:\n...
I create a web application (WAR) and deploy it on Tomcat. In the webapp there is a page with a form where an administrator can enter some configuration data. I don't want to store this data in an DBMS, but just in an XML file on the file system. Where to put it? I would like to put the file somewhere in the directory t...
When deploying a web application in a servlet container like Tomcat, the `WEB-INF` directory is often used to store resources that should not be publicly accessible via HTTP. This makes it a good candidate for your configuration file, especially if you want to prevent direct access to it from outside the web applicatio...
9,319
[ { "from": "human", "value": "I create a web application (WAR) and deploy it on Tomcat. In the webapp there is a page with a form where an administrator can enter some configuration data. I don't want to store this data in an DBMS, but just in an XML file on the file system. Where to put it?\nI would like to...
With my multiproject pom I get an error while running release:prepare. There is nothing fancy about the project setup and every release-step before runs fine. The error I get is: [INFO] ------------------------------------------------------------------------ [ERROR] BUILD FAILURE [INFO] -------------------...
The error you are encountering when trying to run the `maven-release-plugin`'s `release:prepare` command suggests that the tagging process is failing because the tag directory (in this case, `/repos/june/tags/foo-1.0.2/foo.bar.org/pom.xml`) already exists in the SVN repository. Here are several steps to diagnose and re...
7,985
[ { "from": "human", "value": "With my multiproject pom I get an error while running release:prepare. There is nothing fancy about the project setup and every release-step before runs fine.\nThe error I get is:\n\n [INFO] ------------------------------------------------------------------------\n [ERROR]...
We have CC.NET setup on our ASP.NET app. When we build the project, the ASP.NET app is pre-compiled and copied to a network share, from which a server runs the application. The server is a bit different from development box'es, and the next server in our staging environment differs even more. The difference is specific...
Yes, you can execute a batch file (or any other executable) in CruiseControl.NET (CC.NET) by using the `<exec>` task or the `<msbuild>` task with a custom target. This way, you can run your cleanup or replacement script as part of the build process. Here are two options based on your requirement: ### Option 1: Use the...
7,908
[ { "from": "human", "value": "We have CC.NET setup on our ASP.NET app. When we build the project, the ASP.NET app is pre-compiled and copied to a network share, from which a server runs the application.\nThe server is a bit different from development box'es, and the next server in our staging environment dif...
I am designing a page to Add/Edit users - I used a repeater control and a table to display users. In users view the individual columns of the table row have labels to display a record values and when users click on edit button, the labels are hidden and text boxes are displayed for users to edit values - The problem is...
Certainly! When dealing with a table that switches between displaying labels and text boxes, it's common for the row height to change due to the different inherent sizes of the elements. Here are a few strategies to ensure that the text boxes maintain the same dimensions as the labels: ### 1. CSS Styling You can use ...
10,862
[ { "from": "human", "value": "I am designing a page to Add/Edit users - I used a repeater control and a table to display users. In users view the individual columns of the table row have labels to display a record values and when users click on edit button, the labels are hidden and text boxes are displayed ...
I'm playing with the routing.rb code in Rails 2.1, and trying to to get it to the point where I can do something useful with the RoutingError exception that is thrown when it can't find the appropriate path. This is a somewhat tricky problem, because there are some class of URLs which are just plain BAD: the /azenv.php...
In Rails 2.1, managing routing errors effectively can be a bit of a balancing act, as you've noted. You want to differentiate between "bad" requests and legitimate routing issues while still logging errors appropriately for further analysis. Your approach to overriding `log_error(exception)` in `ApplicationController` ...
9,525
[ { "from": "human", "value": "I'm playing with the routing.rb code in Rails 2.1, and trying to to get it to the point where I can do something useful with the RoutingError exception that is thrown when it can't find the appropriate path.\nThis is a somewhat tricky problem, because there are some class of URL...
I am interested in hearing about experiences using TDD and unit testing for C++ in general with Visual Studio 2005 (Professional) First some background. We have a fairly large project and much of it has been developed on Linux using CppUnit for the unit tests. The project is divided into several libraries, each with th...
Integrating Test-Driven Development (TDD) and unit testing into a C++ project using Visual Studio 2005 can greatly enhance your development process, especially when transitioning from a Linux environment. Here’s how you can approach both of your questions: ### 1. Laying Out the Code for Tests in a Large Code Base For...
9,627
[ { "from": "human", "value": "I am interested in hearing about experiences using TDD and unit testing for C++ in general with Visual Studio 2005 (Professional)\nFirst some background. We have a fairly large project and much of it has been developed on Linux using CppUnit for the unit tests. The project is di...
I'm struggling with a problem with the Script.aculo.us Autocompleter control in IE (I've tried it in IE6 & 7). The suggestions fail to appear for the first character is entered into the text box after the page has been loaded. After that initial failure, the control works as it should. I've verified that the suggestion...
The issue you're encountering with the Script.aculo.us Autocompleter control in Internet Explorer (IE6 & IE7) can be quite tricky, especially since it works fine in other browsers. Here are a few suggestions that could help you troubleshoot and potentially fix the problem: 1. **Check for CSS Issues**: Since you've men...
9,620
[ { "from": "human", "value": "I'm struggling with a problem with the Script.aculo.us Autocompleter control in IE (I've tried it in IE6 & 7). The suggestions fail to appear for the first character is entered into the text box after the page has been loaded. After that initial failure, the control works as it ...
I'm looking to create a dashboard type gui for a web application. I'm looking for the user to be able to drag and drop different elements (probably either image buttons, anchor tags, or maybe just divs) to different (defined) places and be able to save their setup (in a cookie or on the server). I'm working with c# i...
Creating a drag-and-drop dashboard for a web application can be accomplished using several libraries. Since you're working with .NET 2.0 and experiencing issues with MooTools, you may want to consider the following alternative approaches and libraries: ### 1. **jQuery UI** One of the most popular libraries for drag-an...
7,204
[ { "from": "human", "value": "I'm looking to create a dashboard type gui for a web application. I'm looking for the user to be able to drag and drop different elements (probably either image buttons, anchor tags, or maybe just divs) to different (defined) places and be able to save their setup (in a cookie ...
In simple terms, what are the reasons for, and what are the differences between the GPL v2 and GPL v3 open source licenses? Explanations and references to legal terms and further descriptions would be appreciated.
The GNU General Public License (GPL) is one of the most widely used open source licenses. There are different versions of the GPL, with GPL v2 and GPL v3 being the most notable. Here’s a simple breakdown of the reasons for the differences and the key distinctions between these two versions. ### Reasons for Creating GP...
6,875
[ { "from": "human", "value": "In simple terms, what are the reasons for, and what are the differences between the GPL v2 and GPL v3 open source licenses? Explanations and references to legal terms and further descriptions would be appreciated.\n" }, { "from": "gpt", "value": "The GNU General Publ...
When developing an application that sends out notification email messages, what are the best practices for not getting flagged as a spammer by your hosting company. (Cover any of:) best technique for not flooding a mail server best mail server products, if you were to set up your own sending messages as if from a ...
When developing an application that sends out notification email messages, it’s essential to ensure that your emails are not flagged as spam, both by your hosting provider and by the recipients' email clients. Below are best practices and lessons learned to help you achieve this: ### Not Getting Flagged as a Spammer b...
8,825
[ { "from": "human", "value": "When developing an application that sends out notification email messages, what are the best practices for \n\nnot getting flagged as a spammer by your hosting company. (Cover any of:)\n\n\nbest technique for not flooding a mail server\nbest mail server products, if you were to...
I have developed some custom DAO-like classes to meet some very specialized requirements for my project that is a server-side process that does not run inside any kind of framework. The solution works great except that every time a new request is made, I open a new connection via MySQLdb.connect. What is the best "...
For implementing connection pooling in a Python application using MySQL, a commonly used and idiomatic library is `mysql-connector-python` in combination with `SQLAlchemy`, or simply using the built-in connection pooling features of the `mysql-connector-python` library itself. Here's a breakdown of some effective ways...
11,804
[ { "from": "human", "value": "I have developed some custom DAO-like classes to meet some very specialized requirements for my project that is a server-side process that does not run inside any kind of framework. \nThe solution works great except that every time a new request is made, I open a new connection...
I am building out a solution that will be deployed in multiple data centers in multiple regions around the world, with each data center having a replicated copy of data actively updated in each region. I will have a combination of multiple databases and file systems in each data center, the state of which must be kept ...
Designing a solution that manages data replication across multiple data centers while ensuring consistency and minimizing conflicts is a complex task. Given your requirements and tolerances, here are some architectural patterns and tools that might help: ### Architectural Patterns: 1. **Event Sourcing**: - **Patte...
5,842
[ { "from": "human", "value": "I am building out a solution that will be deployed in multiple data centers in multiple regions around the world, with each data center having a replicated copy of data actively updated in each region. I will have a combination of multiple databases and file systems in each data...
i have a control that is organized like this and i want to have the javascript registered on the calling master pages, etc, so that anywhere this control folder is dropped and then registered, it will know how to find the URL to the js. Here is what i have so far (in the user control ) protected void Page_Load(object ...
To make sure that your user control can dynamically register JavaScript files in a way that works regardless of where the control is placed, you can use a combination of `ResolveUrl` and ensuring that your script paths are relative to your application's root directory. Here are a few tips to enhance your existing code:...
11,002
[ { "from": "human", "value": "i have a control that is organized like this\n\nand i want to have the javascript registered on the calling master pages, etc, so that anywhere this control folder is dropped and then registered, it will know how to find the URL to the js.\nHere is what i have so far (in the use...
So I'm refactoring my code to implement more OOP. I set up a class to hold page attributes. class PageAtrributes { private $db_connection; private $page_title; public function __construct($db_connection) { $this->db_connection = $db_connection; $this->page_title = ''; } public f...
The error message you're receiving indicates that the variable `$objPage` is not initialized as an object of the `PageAtrributes` class before you call the `set_page_title()` method on it. This means that when you're trying to call the method, `$objPage` is likely `null` or not defined, leading to the "Call to a member...
11,472
[ { "from": "human", "value": "So I'm refactoring my code to implement more OOP. I set up a class to hold page attributes.\nclass PageAtrributes \n{\n private $db_connection;\n private $page_title;\n\n public function __construct($db_connection) \n {\n $this->db_connection = $db_connection;\n ...
My app is installed via NSIS. I want the installer to install the program for all users. I can do this, by installing to the 'program files' directory. There is a database file (firebird), that all user accounts on the system should share. If I store this database file in the 'program files' directory it will be read...
You've outlined a good approach to managing shared data between users in a multi-user environment using NSIS. Creating a writable directory under the Program Files directory is indeed one way to allow all users to access a shared database. However, there are a few other options you might consider: ### 1. Use a Common ...
9,415
[ { "from": "human", "value": "My app is installed via NSIS.\nI want the installer to install the program for all users.\nI can do this, by installing to the 'program files' directory.\nThere is a database file (firebird), that all user accounts on the system should share. \nIf I store this database file in ...
I have user control named DateTimeUC which has two textboxes on its markup: <asp:TextBox ID="dateTextBox" runat="server"></asp:TextBox> <asp:TextBox ID="timeTextBox" runat="server"></asp:TextBox> I am dynamically creating this control in another user control: Controls.Add(GenerateDateTime(parameter)); private DateTime...
When working with dynamically created controls in ASP.NET, it is important to remember the lifecycle of the page and the controls. If the controls are not added to the page in the right place in the lifecycle, they will not be rendered or maintain their state across postbacks. Here are some key points to consider and ...
10,408
[ { "from": "human", "value": "I have user control named DateTimeUC which has two textboxes on its markup:\n<asp:TextBox ID=\"dateTextBox\" runat=\"server\"></asp:TextBox>\n<asp:TextBox ID=\"timeTextBox\" runat=\"server\"></asp:TextBox>\n\nI am dynamically creating this control in another user control:\nContr...
I've inherited a hoary old piece of code (by hoary, I mean warty with lots of undocumented bug fixes than WTF-y) and there's one part that's giving me a bit of trouble. Here's how it connects to the remote registry to get the add/remove programs key: try { remoteKey = RegistryKey.OpenRemoteBaseKey( Registry...
Let's tackle your two problems one at a time. ### Problem 1: Distinction between UnauthorizedAccessException and SecurityException 1. **UnauthorizedAccessException**: This exception occurs when the code does not have permission to access the registry key or the operation being performed is not allowed due to lack of ...
7,987
[ { "from": "human", "value": "I've inherited a hoary old piece of code (by hoary, I mean warty with lots of undocumented bug fixes than WTF-y) and there's one part that's giving me a bit of trouble. Here's how it connects to the remote registry to get the add/remove programs key:\ntry\n{\n remoteKey = Reg...
I have a dev, that will get around our code coverage by writing tests that never fail. The code is just atrocious, but the tests never catch it because they assert(true). I code review, but I can't do everyones work for them, all the time. How do you get people like this motivated to make good software? Is there a buil...
Dealing with developers who write ineffective tests can be a challenge, but there are several strategies you can employ to encourage better practices and improve overall code quality. Here are some suggestions: ### 1. **Educate on the Importance of Tests:** - **Workshops and Training:** Conduct workshops or trainin...
10,281
[ { "from": "human", "value": "I have a dev, that will get around our code coverage by writing tests that never fail.\nThe code is just atrocious, but the tests never catch it because they assert(true).\nI code review, but I can't do everyones work for them, all the time. How do you get people like this motiv...
In a asp.net web application, I want to write to a file. This function will first get data from the database, and then write out the flat file. What can I do to make sure only 1 write occurs, and once the write occurrs, the other threads that maybe want to write to the file don't since the write took place. I want to ...
To achieve the goal of writing to a flat file from an ASP.NET web application, ensuring that this occurs only once every 15 minutes and is thread-safe, you can implement a combination of a lock mechanism and a timestamp check. Here is a sample approach to guide you through this process: 1. **Define a static object fo...
10,622
[ { "from": "human", "value": "In a asp.net web application, I want to write to a file. This function will first get data from the database, and then write out the flat file.\nWhat can I do to make sure only 1 write occurs, and once the write occurrs, the other threads that maybe want to write to the file do...
I'm trying to implement the WMD editor used on StackOverflow to create some basic Wiki-style functionality. I'm up to the point where it's time to save to the database, but I'm unsure as to what I should be saving. If I save the produced HTML then I can retrieve and display it correctly, but on re-edit I'm faced with ...
When implementing a Markdown editor like the WMD (Wysiwyg Markdown Editor) used on StackOverflow, you typically have a couple of options for saving content, each with its own advantages and disadvantages. Here’s a breakdown of how you can manage the saving and displaying of Markdown content: ### Option 1: Save Markdow...
10,711
[ { "from": "human", "value": "I'm trying to implement the WMD editor used on StackOverflow to create some basic Wiki-style functionality. I'm up to the point where it's time to save to the database, but I'm unsure as to what I should be saving.\nIf I save the produced HTML then I can retrieve and display it...
Why do I get following error when trying to start a ruby on rails application with mongrel_rails start? C:\RailsTest\cookbook2>mongrel_rails start ** WARNING: Win32 does not support daemon mode. ** Daemonized, any open files are closed. Look at log/mongrel.pid and log/mongr el.log for info. ** Starting Mongrel liste...
The error you are encountering is caused by an attempt to bind to a network port that is already in use. Specifically, the error message `Only one usage of each socket address (protocol/network address/port) is normally permitted - bind(2) (Errno::EADDRINUSE)` indicates that the port (in this case, port 3000) is alread...
10,593
[ { "from": "human", "value": "Why do I get following error when trying to start a ruby on rails application with mongrel_rails start?\n \nC:\\RailsTest\\cookbook2>mongrel_rails start\n** WARNING: Win32 does not support daemon mode.\n** Daemonized, any open files are closed. Look at log/mongrel.pid and log/m...
Programming languages had several (r)evolutionary steps in their history. Some people argue that model-driven approaches will be The Next Big Thing. There are tools like openArchitectureWare, AndroMDA, Sculptor/Fornax Platform etc. that promise incredible productivity boosts. However, I made the experience that it is e...
Model-driven development (MDD) has certainly had its share of enthusiasts and skeptics since its emergence. Here are some insights that reflect the current understanding and experiences related to MDD: ### Potential of Model-Driven Development 1. **Higher Abstraction**: MDD allows developers to work at a higher level...
3,583
[ { "from": "human", "value": "Programming languages had several (r)evolutionary steps in their history. Some people argue that model-driven approaches will be The Next Big Thing. There are tools like openArchitectureWare, AndroMDA, Sculptor/Fornax Platform etc. that promise incredible productivity boosts. Ho...
Working on implementing TFS throughout our organization. It is easy to integrate with .NET projects and any platform that uses Eclipse or a derivative of Eclipse for editing. What's the best way to use TFS version control with Xcode (now that I find out we need to write some iPhone apps)?
Using Team Foundation Server (TFS) version control with Xcode can be a bit challenging since TFS is primarily geared towards .NET projects and there is no direct integration for Xcode as there is for other IDEs like Visual Studio or Eclipse. However, there are a few ways you can set this up to manage your version contr...
8,162
[ { "from": "human", "value": "Working on implementing TFS throughout our organization. It is easy to integrate with .NET projects and any platform that uses Eclipse or a derivative of Eclipse for editing.\nWhat's the best way to use TFS version control with Xcode (now that I find out we need to write some i...
I have a table called OffDays, where weekends and holiday dates are kept. I have a table called LeadTime where amount of time (in days) for a product to be manufactured is stored. Finally I have a table called Order where a product and the order date is kept. Is it possible to query when a product will be finished ma...
Yes, it is possible to calculate the expected finish date of a product's manufacturing directly within a SQL query without using stored procedures or loops, although the approach may vary depending on your SQL database system (e.g., MySQL, PostgreSQL, SQL Server, etc.). Below is a general approach that should work in S...
9,210
[ { "from": "human", "value": "I have a table called OffDays, where weekends and holiday dates are kept. I have a table called LeadTime where amount of time (in days) for a product to be manufactured is stored. Finally I have a table called Order where a product and the order date is kept.\nIs it possible t...
In our game project we did have a timer loop set to fire about 20 times a second (the same as the application framerate). We use this to move some sprites around. I'm wondering if this could cause problems and we should instead do our updates using an EnterFrame event handler? I get the impression that having a timer l...
Using a timer loop to perform updates in your game can indeed cause issues, especially if the timer's interval is faster than the frame rate of your application. When the timer fires at a rate that exceeds the frame rate, you can end up with updates that aren't in sync with the rendering of frames, leading to potential...
10,996
[ { "from": "human", "value": "In our game project we did have a timer loop set to fire about 20 times a second (the same as the application framerate). We use this to move some sprites around.\nI'm wondering if this could cause problems and we should instead do our updates using an EnterFrame event handler?\...
I'm just wondering if there's a better way of doing this in SQL Server 2005. Effectively, I'm taking an originator_id (a number between 0 and 99) and a 'next_element' (it's really just a sequential counter between 1 and 999,999). We are trying to create a 6-character 'code' from them. The originator_id is multiplied u...
Your current implementation does a good job of generating the 6-character code based on the originator ID and next element, but I can understand your concern about the verbosity and complexity of the code, especially when it comes to the repetitive operations of division and subtraction. Here are a few suggestions to ...
8,758
[ { "from": "human", "value": "I'm just wondering if there's a better way of doing this in SQL Server 2005.\nEffectively, I'm taking an originator_id (a number between 0 and 99) and a 'next_element' (it's really just a sequential counter between 1 and 999,999).\nWe are trying to create a 6-character 'code' fr...
I suspect that one of my applications eats more CPU cycles than I want it to. The problem is - it happens in bursts, and just looking at the task manager doesn't help me as it shows immediate usage only. Is there a way (on Windows) to track the history of CPU & Memory usage for some process. E.g. I will start tracking ...
Yes, you can track the history of CPU and memory usage for a specific process in Windows using several methods. Here are a few options: ### Option 1: Resource Monitor Windows has a built-in tool called Resource Monitor that allows you to track resource usage over time. Here's how to use it: 1. Open the **Resource Mon...
6,756
[ { "from": "human", "value": "I suspect that one of my applications eats more CPU cycles than I want it to. The problem is - it happens in bursts, and just looking at the task manager doesn't help me as it shows immediate usage only.\nIs there a way (on Windows) to track the history of CPU & Memory usage for...
I have a JSP page that contains a scriplet where I instantiate an object. I would like to pass that object to the JSP tag without using any cache. For example I would like to accomplish this: <%@ taglib prefix="wf" uri="JspCustomTag" %> <% Object myObject = new Object(); %> <wf:my-tag obj=myObject /> I'm tryin...
In JSP, when you want to pass an object to a custom tag without using the implicit caches (like page, session, or application context), you can accomplish this by using tag attributes. However, since JSP does not directly allow passing Java objects as attributes in the way you're suggesting (i.e., using Java variables ...
7,253
[ { "from": "human", "value": "I have a JSP page that contains a scriplet where I instantiate an object. I would like to pass that object to the JSP tag without using any cache. \nFor example I would like to accomplish this: \n<%@ taglib prefix=\"wf\" uri=\"JspCustomTag\" %>\n\n<% \n Object myObject = new O...