instruction
stringlengths
14
27.6k
completion
stringlengths
3
38.3k
__original_row_idx
int64
0
50k
conversations
listlengths
2
2
An easy jQuery question. I have several identical forms ( except their name ) on one page with a few hidden inputs in each. I want to refer to them by using the form name and then the input name. ( the input names are not unique in my page ) So for instance: var xAmt = $('#xForm'+num).('#xAmt'); I really want to sup...
To achieve your goal of accessing the hidden inputs from multiple forms based on their names and then using those values in an AJAX POST request, you can modify your jQuery code as follows: ### Step 1: Access the Input Values To access the hidden input values for a specific form by concatenating the form name and the ...
32,717
[ { "from": "human", "value": "An easy jQuery question.\nI have several identical forms ( except their name ) on one page with a few hidden inputs in each. I want to refer to them by using the form name and then the input name. ( the input names are not unique in my page )\nSo for instance: \nvar xAmt = $('#...
I have a number of string arrays. The string in every array are ordered the same way, according the same criteria. However, some string may be missing from some arrays, and there may be no array that has a complete set of strings. Moreover, the criteria used to compare the strings is not available to me: outside of the...
The problem you've described is essentially that of finding a topological ordering in a directed graph, where each string represents a node and the relationships between the strings (i.e., the order in which they appear in each array) represent directed edges. Here's a step-by-step outline of how to approach this prob...
35,366
[ { "from": "human", "value": "I have a number of string arrays. The string in every array are ordered the same way, according the same criteria. However, some string may be missing from some arrays, and there may be no array that has a complete set of strings. Moreover, the criteria used to compare the strin...
Well, what is one?
It seems like your question is a bit vague. Could you clarify what you're asking about? Are you referring to a concept, an object, or something else?
41,205
[ { "from": "human", "value": "Well, what is one?\n" }, { "from": "gpt", "value": "It seems like your question is a bit vague. Could you clarify what you're asking about? Are you referring to a concept, an object, or something else?" } ]
I have a Windows CE device that we are deploying, but we have complete control of the software installed on it. This is not a typical Windows Mobile device, this is a headless device that the user will not interact with. I know that on PDA-style WinCE devices, the .cab file is the preferred application distribution ...
Using a .CAB file for deploying updates on a Windows CE device is a common practice, and there are several reasons why it may be beneficial, even for a headless device. Here’s an overview of the considerations, benefits, requirements, and possible annoyances associated with using .CAB files compared to other packaging ...
36,109
[ { "from": "human", "value": "I have a Windows CE device that we are deploying, but we have complete control of the software installed on it. \nThis is not a typical Windows Mobile device, this is a headless device that the user will not interact with. I know that on PDA-style WinCE devices, the .cab file ...
With .net 3.5, there is a SyndicationFeed that will load in a RSS feed and allow you to run LINQ on it. Here is an example of the RSS that I am loading: <rss version="2.0" xmlns:media="http://search.yahoo.com/mrss/"> <channel> <title>Title of RSS feed</title> <link>http://www.google.com</link> <descrip...
To access the custom XML elements and attributes from an RSS feed using `SyndicationFeed` in .NET 3.5, you can use the `ElementExtensions` property of the `SyndicationItem` class. This property allows you to read custom elements defined in the feed that are not represented by the standard properties of `SyndicationItem...
37,871
[ { "from": "human", "value": "With .net 3.5, there is a SyndicationFeed that will load in a RSS feed and allow you to run LINQ on it. \nHere is an example of the RSS that I am loading:\n<rss version=\"2.0\" xmlns:media=\"http://search.yahoo.com/mrss/\"> \n<channel> \n <title>Title of RSS feed</title> \n ...
I've got a class with Parent and Children properties. ADO.NET Entity Framework Hierarchical Page Class http://img148.imageshack.us/img148/6802/edmxxe8.gif I want to display this hierarchy in a WPF treeview. Here's my XAML... <TreeView Margin="12" Name="TreeViewPages" ItemsSource="{Binding}"> <TreeView.Resources> ...
To get your WPF `TreeView` to display the hierarchical data correctly, it looks like you need to make sure that the `ItemsSource` of your `TreeView` is bound correctly to the collection of root pages. Additionally, you want to ensure that the `HierarchicalDataTemplate` is correctly applied to your items. Here are som...
37,523
[ { "from": "human", "value": "I've got a class with Parent and Children properties.\nADO.NET Entity Framework Hierarchical Page Class http://img148.imageshack.us/img148/6802/edmxxe8.gif\nI want to display this hierarchy in a WPF treeview.\nHere's my XAML...\n<TreeView Margin=\"12\" Name=\"TreeViewPages\" Ite...
I have a data acquisition hardware device attached to a PC via USB that I'd like to send some information and settings, acquire some data, and then retrieve the acquired data on the client and send it to the server. The plan is to use a web portal to communicate with the device attached to the client PC. I was planning...
To communicate with a hardware device attached to a client PC from a web portal using a web browser, particularly with Internet Explorer, you have a few options, especially considering the limitations and requirements you've outlined. Here’s a structured approach to accomplish your goals: ### 1. Use of a Local Helper ...
36,836
[ { "from": "human", "value": "I have a data acquisition hardware device attached to a PC via USB that I'd like to send some information and settings, acquire some data, and then retrieve the acquired data on the client and send it to the server. The plan is to use a web portal to communicate with the device ...
As part of our build process I need to set the version information for all of our compiled binaries. Some of the binaries already have version information (added at compile time) and some do not. I want to be able to apply the following information: Company Name Copyright Notice Product Name Product Description Fil...
To set version information for compiled binaries in C++ Builder 2007, especially if you're dealing with standard Windows binaries (EXE and DLL files), you can use a tool called **Resource Hacker** or a similar resource editing tool. Here’s how you can achieve this in a systematic way: ### Using Resource Hacker 1. **D...
35,322
[ { "from": "human", "value": "As part of our build process I need to set the version information for all of our compiled binaries. Some of the binaries already have version information (added at compile time) and some do not. \nI want to be able to apply the following information:\n\nCompany Name \nCopyright...
I had an odd problem today when I was trying to serialize an object. The object was generated via "Add service reference" from a web service (svcutil.exe). The problem was that the below property (agencyId) was not being serialized with the rest of the object. Out of desperation I commented the property below it be...
The issue you're encountering with the serialization of your `agencyId` property relates to how the `XmlIgnoreAttribute` and the `agencyIdSpecified` property interact within the XML serialization process. When using XML serialization in .NET, properties marked with `[XmlIgnore]` are excluded from serialization. In you...
33,841
[ { "from": "human", "value": "I had an odd problem today when I was trying to serialize an object. The object was generated via \"Add service reference\" from a web service (svcutil.exe). \nThe problem was that the below property (agencyId) was not being serialized with the rest of the object. Out of desp...
Currently have the following mapping file: <?xml version="1.0" encoding="utf-8" ?> <hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" namespace="NHibernateHelpers" assembly="App_Code.NHibernateHelpers"> <class name="NHibernateHelpers.Fixture, App_Code" table="Fixture_Lists"> <id name="Id" column="Uniq...
In NHibernate, you cannot directly call a stored procedure to populate a property in an entity through an XML mapping file. However, you can achieve the desired functionality by implementing a few steps involving a combination of your mapping and some additional code. ### Approach: 1. **Add the Property to Your Entit...
32,841
[ { "from": "human", "value": "Currently have the following mapping file:\n<?xml version=\"1.0\" encoding=\"utf-8\" ?>\n<hibernate-mapping xmlns=\"urn:nhibernate-mapping-2.2\" \n namespace=\"NHibernateHelpers\"\n assembly=\"App_Code.NHibernateHelpers\">\n <class name=\"NHibernateHelpers.Fixture, App_Co...
What is the way of separating Line-Breaks and Space in MultiLine Textbox or HTML Text area while inserting database (Asp.Net). For example what should I do if I want to insert Hello World to database with line breaks? And also While displaying what should I do? I don't want to use Editor for it. But the problem ...
When handling multiline text input (such as from a multi-line TextBox in ASP.NET or an HTML `<textarea>`), line breaks and spaces can indeed be tricky to handle properly in a database and when displaying the content. Here’s how you can deal with line breaks and spaces in ASP.NET while inserting and displaying text. ##...
37,305
[ { "from": "human", "value": "What is the way of separating Line-Breaks and Space in MultiLine Textbox or HTML Text area while inserting database (Asp.Net). For example what should I do if I want to insert \nHello \nWorld \nto database with line breaks? And also While displaying what should I do? I don't ...
Why doesn't the designer work if you inherit from an own written genericform? Suppose I've got the following genericform public class GenericForm<T> : System.Windows.Forms.Form { public T Test { get; set; } } When I go to the designer I get errors. The only workaround I made up is using com...
The issue you're encountering with the Windows Forms Designer arises from how generic types are handled in .NET. The designer does not fully support generic types. This is a known limitation and is why you're seeing errors when trying to use your `GenericForm<T>` in the designer. When you use the designer in Visual St...
36,629
[ { "from": "human", "value": "Why doesn't the designer work if you inherit from an own written genericform?\nSuppose I've got the following genericform\npublic class GenericForm<T> : System.Windows.Forms.Form\n{\n public T Test\n {\n get;\n set;\n }\n}\n\nWhen I go to the designer I ge...
I'm running into a recurrent problem with git on windows (I'm running MSysGit from package Git-1.6.0.2-preview20080923.exe, i tried as well with Git-1.5.6.1-preview20080701.exe and the results are the same). It happens very offen that some files are shown as changed when I didn't change them, and in git-gui it shows th...
The issue you're experiencing with Git on Windows, where files appear to be modified without any actual changes, could be related to several factors. Here are some common reasons for this behavior and steps to troubleshoot the problem: ### 1. Line Endings Windows and Unix-based systems (like Linux and macOS) handle l...
35,978
[ { "from": "human", "value": "I'm running into a recurrent problem with git on windows (I'm running MSysGit from package Git-1.6.0.2-preview20080923.exe, i tried as well with Git-1.5.6.1-preview20080701.exe and the results are the same).\nIt happens very offen that some files are shown as changed when I didn...
Is there a good way to determine if a person has a popup blocker enabled? I need to maintain a web application that unfortunately has tons of popups throughout it and I need to check if the user has popup blockers enabled. The only way I've found to do this is to open a window from javascript, check to see if it's open...
Detecting whether a user has a popup blocker enabled can be a bit tricky, and, as you mentioned, the common method of attempting to open a new window and checking if it was successfully created is somewhat intrusive. However, there are a few alternative approaches that you might consider. Keep in mind that none of the...
34,072
[ { "from": "human", "value": "Is there a good way to determine if a person has a popup blocker enabled? I need to maintain a web application that unfortunately has tons of popups throughout it and I need to check if the user has popup blockers enabled.\nThe only way I've found to do this is to open a window ...
I am writing a text editor which has an option to display a bullet in place of any invisible Unicode character. Unfortunately there appears to be no easy way to determine whether a Unicode character is invisible. I need to find a text file containing every Unicode character in order that I can look through for invisib...
Creating a text file that contains every Unicode character in order can be quite a task, but you can find existing resources that serve this purpose. One of the most comprehensive resources is the Unicode Consortium's official website, which offers the Unicode Character Database (UCD). However, extracting and formatt...
35,003
[ { "from": "human", "value": "I am writing a text editor which has an option to display a bullet in place of any invisible Unicode character. Unfortunately there appears to be no easy way to determine whether a Unicode character is invisible.\nI need to find a text file containing every Unicode character in...
What design pattern should I use to handle both forms authentication and active directory? (Administrative setting will allow you to chose either one of them). From what I know, .NET membership provider only has forms right?
In scenarios where you need to handle both Forms Authentication and Active Directory authentication interchangeably, especially in an administrative setting where the choice between the two can be made dynamically, you might consider using the **Strategy Pattern**. This design pattern allows you to define a family of a...
32,372
[ { "from": "human", "value": "What design pattern should I use to handle both forms authentication and active directory? (Administrative setting will allow you to chose either one of them).\nFrom what I know, .NET membership provider only has forms right?\n" }, { "from": "gpt", "value": "In scena...
I've created a list using the SharePoint (MOSS 2007) Issue Tracking List. A "Comments" field is automatically created in this list. The Comments column has extra functionality that provides a sort of history/log whenever an edit is made to a list item. Unfortunately, a comment entry is created even when an insignifi...
In SharePoint 2007 (MOSS 2007), the behavior of the Comments field in the Issue Tracking List is built into the list's functionality, and unfortunately, there is no direct way to prevent blank comment entries from being created through standard configurations. However, you might consider the following approaches: ### ...
35,899
[ { "from": "human", "value": "I've created a list using the SharePoint (MOSS 2007) Issue Tracking List. A \"Comments\" field is automatically created in this list. The Comments column has extra functionality that provides a sort of history/log whenever an edit is made to a list item. Unfortunately, a comm...
Help! I have a PHP (PHP 5.2.5) script on HOST1 trying to connect to an MySql database HOST2. Both hosts are in Shared Host environments controlled through CPanel. HOST2 is set to allow remote database connections from HOST1. The PHP connect I'm using is:- $h2 = IPADDRESS; $dbu = DBUSER; $dbp = DBPASS; $DBli...
It sounds like you're encountering an access issue with your MySQL connection from your PHP script on HOST1 to the MySQL database on HOST2. Here are several steps and tips to help you troubleshoot and resolve the issue: 1. **User Permissions**: Ensure that the MySQL user `<dbusername>` has permission to connect from t...
33,202
[ { "from": "human", "value": "Help!\nI have a PHP (PHP 5.2.5) script on HOST1 trying to connect to an MySql database HOST2. Both hosts are in Shared Host environments controlled through CPanel.\nHOST2 is set to allow remote database connections from HOST1.\nThe PHP connect I'm using is:-\n $h2 = IPADDRESS...
I'm trying to start using LINQ and specifically LINQ to SQL but I'm having some difficulties I've tried this with SqlMetal and now using the database table designer in Visual Studio and I keep getting similar errors, like in this code, using the data context I created with the database layout designer in VS2008. using ...
It looks like you're encountering a couple of issues with your LINQ query, primarily concerning how you're referencing your `User` entity and the nature of your LINQ to SQL queries. Here’s a breakdown of what might be going wrong: ### 1. Referencing the Data Context and Entity In the LINQ query, you're trying to refer...
32,439
[ { "from": "human", "value": "I'm trying to start using LINQ and specifically LINQ to SQL but I'm having some difficulties\nI've tried this with SqlMetal and now using the database table designer in Visual Studio and I keep getting similar errors, like in this code, using the data context I created with the ...
I'm currently in the process of replacing my homebrewn build script by an Ant build script. Now I need to replace various tokens by the size of a specific file. I know how to get the size in bytes via the <length> task and store in in a property, but I need the size in kilobytes and megabytes too. How can I access the ...
To compute file sizes in kilobytes and megabytes and store them in properties within an Ant build script, you can indeed use the `<script>` task for a more flexible solution, particularly if you prefer JavaScript for the calculations. However, there is also a way to do it using Ant's built-in capabilities without requ...
35,642
[ { "from": "human", "value": "I'm currently in the process of replacing my homebrewn build script by an Ant build script.\nNow I need to replace various tokens by the size of a specific file. I know how to get the size in bytes via the <length> task and store in in a property, but I need the size in kilobyte...
We have an application that generates simulated data for one of our services for testing purposes. Each data item has a unique Guid. However, when we ran a test after some minor code changes to the simulator all of the objects generated by it had the same Guid. There was a single data object created, then a for loop ...
It sounds like you're experiencing an issue where the `Guid.NewGuid()` method is not generating a unique Guid for each iteration of your loop, which is indeed puzzling given that `NewGuid()` is designed to always generate a new Guid. Here are some strategies you can employ to debug this issue: 1. **Check the `OrderTic...
35,446
[ { "from": "human", "value": "We have an application that generates simulated data for one of our services for testing purposes. Each data item has a unique Guid. However, when we ran a test after some minor code changes to the simulator all of the objects generated by it had the same Guid.\nThere was a si...
Throughout or C# sourcecode we have a lot of comments that miss the actual content such like this: /// <summary> /// </summary> or this: /// <summary> /// /// </summary> or this: /// <param Name="flag"></param> Unfortunately Visual Studio does not generate warnings for this type of missing comments. But for us it wo...
Certainly! Although Visual Studio does not provide built-in warnings for missing XML comment content, you can achieve this by creating a custom Roslyn analyzer. This analyzer can inspect the comments in your C# code and report missing documentation as warnings. Here’s how to get started: ### Step 1: Create a Roslyn An...
31,973
[ { "from": "human", "value": "Throughout or C# sourcecode we have a lot of comments that miss the actual content such like this:\n/// <summary>\n/// </summary>\n\nor this:\n/// <summary>\n///\n/// </summary>\n\nor this:\n/// <param Name=\"flag\"></param>\n\nUnfortunately Visual Studio does not generate warni...
I have a database table that i want to allow my friends to update. What is the quickest way to have a asp.net page that is simply a form that maps to every field in the database and allows for add, deletes, and updates. I assume there should be an out of the box solution for this without having to code up each contro...
Certainly! To quickly create an ASP.NET page that allows for adding, deleting, and updating records in a database, you can utilize ASP.NET Web Forms or ASP.NET MVC with a scaffolding approach. However, the quickest and most user-friendly way is to use ASP.NET Web Forms along with Entity Framework or any ORM (Object-Rel...
26,543
[ { "from": "human", "value": "I have a database table that i want to allow my friends to update. What is the quickest way to have a asp.net page that is simply a form that maps to every field in the database and allows for add, deletes, and updates. I assume there should be an out of the box solution for t...
Say you have an eclipse plugin with various views, these views should display data from some OSGi bundle that pushes data to the Views. Rather than have every view communicate with the OSGi bundle, I have an intermediate Facade class that acts as a blackboard for the views and manages communications between the views ...
To enable communication between your Eclipse plugin's application, views, and the OSGi-registered Facade, you can utilize a few different strategies to ensure that there is a single instance of the Facade that both the UI and the DataStore can interact with. Here are some approaches to consider: ### 1. **Service Looku...
36,798
[ { "from": "human", "value": "Say you have an eclipse plugin with various views, these views should display data from some OSGi bundle that pushes data to the Views. Rather than have every view communicate with the OSGi bundle, I have an intermediate Facade class that acts as a blackboard for the views and ...
I just came across this question about initializing local variables. Many of the answers debated simplicity/readability vs. robustness. As a developer of (remotely deployed) embedded systems, I always favor robustness and tend to follow several seemingly conflicting rules: Handle every error to the best of your abil...
Ensuring robustness in embedded systems is crucial, especially in scenarios where reliability and uptime are paramount. Here are several best practices and techniques that you can implement, along with examples where applicable: ### 1. **Use Defensive Programming** Always validate assumptions and check for unexpected...
34,592
[ { "from": "human", "value": "I just came across this question about initializing local variables. Many of the answers debated simplicity/readability vs. robustness. As a developer of (remotely deployed) embedded systems, I always favor robustness and tend to follow several seemingly conflicting rules:\n\n...
I'm using the following code to try to read the results of a df command in Linux using popen. #include <iostream> // file and std I/O functions int main(int argc, char** argv) { FILE* fp; char * buffer; long bufSize; size_t ret_code; fp = popen("df", "r"); if(fp == NULL) { // head off errors r...
You're correct that you can't use `fseek` and `ftell` to get the size of data read from a pipe, because the pipe does not support random access. Instead, you need to read from the pipe directly into a buffer without attempting to determine the size in advance. Here's an alternative approach to read the output of the ...
36,045
[ { "from": "human", "value": "I'm using the following code to try to read the results of a df command in Linux using popen.\n#include <iostream> // file and std I/O functions\n\nint main(int argc, char** argv) {\n FILE* fp;\n char * buffer;\n long bufSize;\n size_t ret_code;\n\n fp = popen(\"d...
I have built a windows C++ application that I'd like to port to linux. The main reasons to do this is ease of system maintenance for our IT staff. Apart from the one windows machine that runs this application we're a linux only operation. The reason this application was built in-, and runs on- windows is that it uses a...
Porting a Windows C++ application that relies on a proprietary Windows DLL can be challenging, particularly if the DLL uses Windows-specific APIs. However, there are several approaches you can consider to run your application on Linux, each with its advantages and disadvantages. Here’s a breakdown of potential solution...
37,139
[ { "from": "human", "value": "I have built a windows C++ application that I'd like to port to linux. The main reasons to do this is ease of system maintenance for our IT staff. Apart from the one windows machine that runs this application we're a linux only operation.\nThe reason this application was built i...
For taking data from SQL Server database, I can use the code as below Dim sql As String = "SELECT emp_id, emp_name FROM emp; SELECT dep_id, dep_name FROM department;" Dim da As New SqlClient.SqlDataAdapter(sql, connString) Dim ds As New DataSet("Data") da.Fill(ds) I will get two tables in ds dataset. How can I code t...
When transitioning from SQL Server to Oracle Database, there are a few key differences in syntax that you'll need to account for, especially concerning multiple SQL statements in a single execution and handling certain commands. ### Retrieving Data from Oracle Database To execute multiple `SELECT` statements and retr...
36,059
[ { "from": "human", "value": "For taking data from SQL Server database, I can use the code as below\nDim sql As String = \"SELECT emp_id, emp_name FROM emp; SELECT dep_id, dep_name FROM department;\"\nDim da As New SqlClient.SqlDataAdapter(sql, connString)\nDim ds As New DataSet(\"Data\")\n\nda.Fill(ds)\n\nI...
I am overriding a Grid, adding some customer features. One of the features is a drop-down to adjust page size. I am extending the grid using a customer server control, which works great for what I've done so far. Now, however I am having a bit of trouble getting the dynamically added control to do a postback. The j...
Yes, the issue you're experiencing likely has to do with how and when you're adding the controls dynamically and ensuring the proper event handling for the `DropDownList` to trigger a postback. ### Reasons Why the Postback May Not Be Triggering: 1. **AutoPostBack Property**: By default, the `DropDownList` control doe...
33,916
[ { "from": "human", "value": "I am overriding a Grid, adding some customer features. One of the features is a drop-down to adjust page size. I am extending the grid using a customer server control, which works great for what I've done so far. Now, however I am having a bit of trouble getting the dynamical...
I have Expression Blend 2, Service Pack 1, and cannot create a Silverlight 2 project. When I attempt to create a Silverlight 2 project, I get the following error: Blend cannot continue because a compatible Silverlight version could not be found. I installed Blend a few weeks ago, and service packed it yesterday. The ...
It sounds like you're encountering a compatibility issue with Expression Blend 2 and the Silverlight SDK. Here are several suggestions to help you troubleshoot and potentially resolve the issue without resorting to a complete uninstallation of your development stack: 1. **Check for the Silverlight SDK Installation**: ...
37,970
[ { "from": "human", "value": "I have Expression Blend 2, Service Pack 1, and cannot create a Silverlight 2 project. When I attempt to create a Silverlight 2 project, I get the following error:\n\nBlend cannot continue because a compatible Silverlight version could not be found.\n\nI installed Blend a few wee...
I thought that it would be fun to present some classic CS problems and let people show their algorithm optimization skills. The hope is that we get to see some clever techniques to solve abstract problems that we may be able to implement in practice. Ideally solutions would be presented in pseudo code with a big O clas...
This is a classic problem often referred to as the "100 lockers problem." Let's delve into the problem step by step to derive a solution. ### Problem Explanation 1. We have N lockers initially closed. 2. The first student opens every locker (lockers 1 to N). 3. The second student toggles (closes) every second locker (...
34,184
[ { "from": "human", "value": "I thought that it would be fun to present some classic CS problems and let people show their algorithm optimization skills. The hope is that we get to see some clever techniques to solve abstract problems that we may be able to implement in practice.\nIdeally solutions would be ...
Our application (C#/.NET) needs a lot of queries to search. Google's 50,000 policy per day is not enough. We need something that would crawl Internet websites by specific rules we set (for ex. country domains) and gather URLs, Texts, keywords, name of websites and create our own internal catalogue so we wouldn't be lim...
Yes, there are several open-source web crawling solutions you can consider for your project. These tools can help you gather data from the web according to your specific rules and build an internal catalog of URLs, texts, keywords, and website names. Below are some popular open-source web crawlers that you can install ...
31,742
[ { "from": "human", "value": "Our application (C#/.NET) needs a lot of queries to search. Google's 50,000 policy per day is not enough. We need something that would crawl Internet websites by specific rules we set (for ex. country domains) and gather URLs, Texts, keywords, name of websites and create our own...
I have a site a few years old that contains about 30 aspx Web Form pages with code behind. I want to add a common master page to all these with the minimum amount of work. Essentially, I just need to add everything in the body tags to the Content Placeholder, and preserve the code behind. Is there a fast way to do thi...
Yes, you can add a common master page to your existing ASP.NET Web Forms pages with minimal effort. Here’s a step-by-step guide to achieve this: ### Step 1: Create a Master Page 1. **Create the Master Page**: In your project, add a new Master Page (e.g., `Site.master`). - Right-click on your project in Solution Exp...
29,960
[ { "from": "human", "value": "I have a site a few years old that contains about 30 aspx Web Form pages with code behind. \nI want to add a common master page to all these with the minimum amount of work.\nEssentially, I just need to add everything in the body tags to the Content Placeholder, and preserve the...
How is the guest account in SQL Server (2000, 2005, 2008) supposed to be used? What is it good for? I've tried enabling the account but I still can't get certain users to be able to refresh Excel 2007 PivotTables attached to views which I have given SELECT rights to GUEST. What am I missing?
In SQL Server, the Guest account is a built-in user account that allows users who do not have a specific login to connect to the database. When the Guest account is enabled for a database, users without a login can access that database as the Guest user, provided that the necessary permissions have been granted. ### H...
34,661
[ { "from": "human", "value": "How is the guest account in SQL Server (2000, 2005, 2008) supposed to be used? What is it good for? I've tried enabling the account but I still can't get certain users to be able to refresh Excel 2007 PivotTables attached to views which I have given SELECT rights to GUEST.\nWhat...
Trying to implement a progress dialog window for file uploads that looks like a cross between IE download dialog and Firefox download dialog with a python GUI library on Windows. What asynchronous (S)FTP libraries are there for python? Ideally I should be able to do file upload resumes and track the progress of each p...
To implement a progress dialog for file uploads in Python that mimics the appearance of download dialogs from Internet Explorer and Firefox, you have several choices for asynchronous (S)FTP libraries, as well as strategies to handle progress tracking across parallel uploads in separate processes. Here’s an overview of ...
31,504
[ { "from": "human", "value": "Trying to implement a progress dialog window for file uploads that looks like a cross between IE download dialog and Firefox download dialog with a python GUI library on Windows.\n\nWhat asynchronous (S)FTP libraries are there for python? Ideally I should be able to do file uplo...
I have a swing application deployed in HTTP Server. Users use the browser to point an URL and install the client using java webstart. Now I need to enable https access to my application deployed on HTTP server. I am using JDK 1.5 as default jdk supported in the jnlp file. For time being I use a self signed certificate ...
To enable HTTPS access to your Java Web Start application, you'll need to follow several steps. Here's a high-level overview of the process, which includes generating a self-signed certificate, configuring your HTTP server to support HTTPS, and updating your JNLP file. ### Step 1: Generate a Self-Signed Certificate I...
31,886
[ { "from": "human", "value": "I have a swing application deployed in HTTP Server. Users use the browser to point an URL and install the client using java webstart. Now I need to enable https access to my application deployed on HTTP server. I am using JDK 1.5 as default jdk supported in the jnlp file. For ti...
Port was filtered by ISP. The problem is that HTTPS 443 port isn't accessible from internet, but it is open in our local network. Our iSeries v5r4 is connected to inet via L2TP withot IPSec. If no packet filters are active, nmap shows that ports 25, 80, 110 and even 10322 (WAS admin console) have state 'open' on intern...
When dealing with a situation where port 443 (HTTPS) is reported as "filtered" while other ports appear as "open," it typically indicates that there is a firewall or filtering device in the path that is blocking access to that port. Below are steps you can take to troubleshoot and potentially resolve this issue: ### 1...
36,440
[ { "from": "human", "value": "Port was filtered by ISP.\nThe problem is that HTTPS 443 port isn't accessible from internet, but it is open in our local network.\nOur iSeries v5r4 is connected to inet via L2TP withot IPSec.\nIf no packet filters are active, nmap shows that ports 25, 80, 110 and even 10322 (WA...
I have the following code to export certificates and keys from a keystore, that I created with keytool in Windows: final KeyStore keystore = KeyUtil.loadKeystore("keystore.jks", "pass"); UserInfo userinfo = new UserInfo(WSusername, WSpassword); X509Certificate clientcert = KeyUtil.getCertificate(CLIENT_KEY_ALIAS, k...
The error message "unable to retrieve private key for signing" typically indicates that the Java application is unable to retrieve the private key from the keystore, which can happen due to several reasons. Here are some common troubleshooting steps and possible solutions to resolve the issue: 1. **Verify Alias and Pa...
35,676
[ { "from": "human", "value": "I have the following code to export certificates and keys from a keystore, that I created with keytool in Windows:\nfinal KeyStore keystore = KeyUtil.loadKeystore(\"keystore.jks\", \"pass\"); \nUserInfo userinfo = new UserInfo(WSusername, WSpassword); \nX509Certificate clientc...
I am running into the problem of the "hanging JFileChooser" as described in the following threads: http://forums.sun.com/thread.jspa?threadID=5309960 http://forums.sun.com/thread.jspa?threadID=724817 http://x86.sun.com/thread.jspa?threadID=5275999&messageID=10156541 I am using JVM 1.6.0_07-b06. It happens on Windows XP...
The "hanging JFileChooser" issue can be frustrating, but here are several potential workarounds and solutions that you might consider: 1. **Update Java**: First and foremost, consider updating your JDK/JRE version. Java 1.6.0_07 is quite old, and many bugs, including the JFileChooser hanging issue, have been fixed in ...
36,278
[ { "from": "human", "value": "I am running into the problem of the \"hanging JFileChooser\" as described in the following threads:\nhttp://forums.sun.com/thread.jspa?threadID=5309960\nhttp://forums.sun.com/thread.jspa?threadID=724817\nhttp://x86.sun.com/thread.jspa?threadID=5275999&messageID=10156541\nI am u...
I have a controller class from which I call a method of model class. Now from this model class method I want to update textView object which is a data member of controller class continuously. I have method in the controller class to edit this textView. I tried creating a controller object from the model class method an...
In your current implementation, you are creating a new instance of the `Controller` class inside the `Model` class method. This means that you're working with a different `Controller` instance that does not have any visual components (like your `textView`) that you expect to update. Instead, you should pass the existin...
38,062
[ { "from": "human", "value": "I have a controller class from which I call a method of model class. Now from this model class method I want to update textView object which is a data member of controller class continuously. I have method in the controller class to edit this textView. I tried creating a control...
I work on a team with about 10 developers. Some of the developers have very exacting formatting needs. I would like to find a pretty printer that I could configure to these specifications and then add to the build processes. In this way no matter how badly other people mess up the format when it is pulled down from sou...
To address your need for consistent code formatting in a team of developers, integrating a code formatter (or pretty printer) into your build process is a great approach. Here's a structured way to do this: ### Step 1: Choose a Code Formatter 1. **Identify the Language(s)**: Determine the programming languages used i...
33,755
[ { "from": "human", "value": "I work on a team with about 10 developers. Some of the developers have very exacting formatting needs. I would like to find a pretty printer that I could configure to these specifications and then add to the build processes. In this way no matter how badly other people mess up t...
I use MVVM architecture to decouple my application. That is, you often see something like var u = new UserControl(); u.Content = new MyCustomType(); // MyCustomType is not a control The UI is defined via data templates that reside in resource dictionaries in their own XAML files <ResourceDictionary ...> <DataTempl...
You're encountering a common issue with data templates in WPF when working with MVVM architecture. When you change a DataTemplate in your ResourceDictionary, the changes may not automatically propagate to existing controls that are already displaying content of the associated type. The old data templates may still be u...
38,371
[ { "from": "human", "value": "I use MVVM architecture to decouple my application. That is, you often see something like\nvar u = new UserControl();\nu.Content = new MyCustomType(); // MyCustomType is not a control\n\nThe UI is defined via data templates that reside in resource dictionaries in their own XAML ...
We have built an application that receives several files in different formats, pdf, tiff, jpeg, doc, etc. After received, they are converted to tiff files using a third party printing driver which is installed locally on the server and set up as the default printer. In order to do that we open a System.Diagnostics.Proc...
The issue you're experiencing is likely related to how Windows Services handle user sessions and the desktop environment. When a Windows Service runs, it operates in a different user session than the interactive user, which can lead to problems when trying to interact with user-interface applications, like MS Paint. H...
33,299
[ { "from": "human", "value": "We have built an application that receives several files in different formats, pdf, tiff, jpeg, doc, etc. After received, they are converted to tiff files using a third party printing driver which is installed locally on the server and set up as the default printer. In order to ...
I have seen the following code: [DefaultValue(100)] [Description("Some descriptive field here")] public int MyProperty{...} The functionality from the above snippit seems clear enough, I have no idea as to how I can use it to do useful things. Im not even sure as to what name to give it! Does anyone know where I can ...
The code snippet you've shared demonstrates the use of attributes in C#, specifically `DefaultValue` and `Description`. These attributes are used to provide metadata about the `MyProperty` property in a class. Let's break down what each attribute does and how they can be useful, along with resources to learn more. ###...
33,853
[ { "from": "human", "value": "I have seen the following code:\n[DefaultValue(100)]\n[Description(\"Some descriptive field here\")]\npublic int MyProperty{...} \n\nThe functionality from the above snippit seems clear enough, I have no idea as to how I can use it to do useful things. Im not even sure as to wha...
I have a written a Visual C++ console application (i.e. subsystem:console) that prints useful diagnositic messages to the console. However, I would like to keep the application minimized most of the time, and instead of minimizing to the taskbar, appear as a nice icon on the system tray. I would also like to restore th...
To achieve your goal of minimizing your Visual C++ console application to the system tray and restoring it upon clicking the tray icon, you will need to create a Windows GUI application instead of a console application. Although your application starts as a console application, you can use some WinAPI functions to mana...
33,732
[ { "from": "human", "value": "I have a written a Visual C++ console application (i.e. subsystem:console) that prints useful diagnositic messages to the console.\nHowever, I would like to keep the application minimized most of the time, and instead of minimizing to the taskbar, appear as a nice icon on the sy...
I have an application in which HttpRuntime.AppDomainAppPath returns the correct path with the wrong casing. I am then trying to use this in a String.Replace and it does not find the path in the filename due to casing. I am aware that I can use Regex.Replace but would prefer not to. I have this problem only on the produ...
This issue arises because of the way file systems handle casing. On Windows, the file system is case-insensitive, meaning that `C:\MyFolder` and `C:\myfolder` refer to the same directory. However, the .NET framework may return paths with different casing depending on various factors, which can lead to issues when perfo...
37,387
[ { "from": "human", "value": "I have an application in which HttpRuntime.AppDomainAppPath returns the correct path with the wrong casing.\nI am then trying to use this in a String.Replace and it does not find the path in the filename due to casing.\nI am aware that I can use Regex.Replace but would prefer no...
When importing forms in access using loadfromtext, I continually get a runtime error 2285. Searching the internet shows many people with the same problem, yet no solutions. Does anyone know what causes this bug? Edit: In addition a file called 'errors.txt' is created in the folder containing the database. Edit: Sort of...
It sounds like you've encountered a frustrating issue with Microsoft Access, particularly when using the `LoadFromText` method for importing forms. Runtime error 2285 is typically associated with an inability to find or load the specified object, and can indeed occur due to various reasons. Here are some common causes ...
32,364
[ { "from": "human", "value": "When importing forms in access using loadfromtext, I continually get a runtime error 2285. Searching the internet shows many people with the same problem, yet no solutions. Does anyone know what causes this bug?\nEdit:\nIn addition a file called 'errors.txt' is created in the fo...
Yeah, I know the title is a mouthful... What I mean is to say is how do you communicate with a subject matter expert who needs a theory coded and tested? For example, weather simulation is a collaboration between meteorologists, computer scientists, and software engineers. The computer scientists and software engineer...
Communicating effectively with subject matter experts (SMEs) from different fields, such as meteorologists, biologists, or physicists, requires a structured approach to bridge the gap between disciplines. Here are several strategies to enhance communication and collaboration: ### 1. **Establish a Common Vocabulary** ...
36,299
[ { "from": "human", "value": "Yeah, I know the title is a mouthful...\nWhat I mean is to say is how do you communicate with a subject matter expert who needs a theory coded and tested?\nFor example, weather simulation is a collaboration between meteorologists, computer scientists, and software engineers. Th...
I've decided to get back into LISP (haven't used it since my AI classes) to get more comfortable with functional programming in general, so I downloaded Lisp In A Box (which we actually used in a previous class) which comes with CLISP and Emacs. When I run it, it says: Connected on port 1617. Take this REPL, brother, ...
Great to hear you're getting back into LISP and exploring SLIME! Let's break down what SLIME is and why it uses a server-client model. ### What is SLIME? SLIME (Superior Lisp Interaction Mode for Emacs) is indeed an extension for Emacs that provides an integrated development environment (IDE) for Common Lisp. It allo...
36,032
[ { "from": "human", "value": "I've decided to get back into LISP (haven't used it since my AI classes) to get more comfortable with functional programming in general, so I downloaded Lisp In A Box (which we actually used in a previous class) which comes with CLISP and Emacs.\nWhen I run it, it says:\n\nConne...
I have a dll that must be useable from C etc, so I cant use string objects etc as a normal would, but I'm not sure on how to do this safely.. const char *GetString() { std::stringstream ss; ss << "The random number is: " << rand(); return ss.str().c_str(); } could the c string be destroyed when ss falls of...
You're correct that your first approach has a major issue: `ss.str().c_str()` returns a pointer to a temporary string created by the `std::string`, which is destroyed when `ss` goes out of scope. This means that the pointer you return will become invalid as soon as the function exits. Your second approach has a couple...
34,699
[ { "from": "human", "value": "I have a dll that must be useable from C etc, so I cant use string objects etc as a normal would, but I'm not sure on how to do this safely..\nconst char *GetString()\n{\n std::stringstream ss;\n ss << \"The random number is: \" << rand();\n return ss.str().c_str();\n}\...
I have three related tables "A(id, val)", "B(id, val)", and a link table with a value "AB(aid, bid, val)" I am querying against B to bring back A values, for example: SELECT A.* FROM A INNER JOIN AB ON A.id = AB.aid INNER JOIN B ON AB.bid = B.id WHERE B.val = 'foo'; Every A has many B's and every B has many A's. And ...
To achieve your goal of filtering rows in the `AB` table so that you only select the ones where `AB.val` is the maximum for each `A/B` pair, you can use a Common Table Expression (CTE) or a subquery that identifies the maximum `val` for each `aid` and `bid` combination. Here's how you can structure your query using a...
37,953
[ { "from": "human", "value": "I have three related tables \"A(id, val)\", \"B(id, val)\", and a link table with a value \"AB(aid, bid, val)\"\nI am querying against B to bring back A values, for example:\nSELECT A.* \nFROM A INNER JOIN AB ON A.id = AB.aid INNER JOIN B ON AB.bid = B.id\nWHERE B.val = 'foo';\n...
Resharper claims to eat it's own dogfood, specifically, they claim that many of the features of Resharper are written ontop of R# (OpenAPI). I'm writing a simple plugin to fix up comments of the current document of a selection. When this plugin is run, it throws an exception as follows: Document can be modified insid...
The error message "Document can be modified inside a command scope only" indicates that you are trying to modify the text document outside of a command scope in ReSharper. In order to modify documents in ReSharper, you need to ensure that you're executing your document modifications within a command transaction. To a...
36,280
[ { "from": "human", "value": "Resharper claims to eat it's own dogfood, specifically, they claim that many of the features of Resharper are written ontop of R# (OpenAPI). I'm writing a simple plugin to fix up comments of the current document of a selection. When this plugin is run, it throws an exception a...
I am currently working within a custom framework that uses the database to setup a Page Object which contains the information about Module, View, Controller, etc which is used by a Front Controller to handle routing and the like within an MVC (obviously) pattern. The original reason for handling the pages within the da...
The decision to use a database-driven approach versus a file structure and code-driven approach for handling page requests in an MVC framework is a complex one and depends on various factors, including your team's expertise, the project's requirements, and your long-term maintenance strategy. Here are some consideratio...
34,414
[ { "from": "human", "value": "I am currently working within a custom framework that uses the database to setup a Page Object which contains the information about Module, View, Controller, etc which is used by a Front Controller to handle routing and the like within an MVC (obviously) pattern.\nThe original r...
I need to add text string to a TIFF image. I am planning to use libTIFF for editing the TIFF image. The plan is to convert text to image using freetype2 and then somehow render the text image on to TIFF. Is this the right approach? Any pointers on how to convert text to image? I saw the sample code of ft2 - initialisin...
Your approach of using FreeType to convert text to an image and then using libTIFF to save that image to a TIFF file is a valid one. Here’s a more detailed guide on how to accomplish this: ### 1. Initialize FreeType You need to initialize FreeType and load a font face, as you've already seen. Here’s a rough outline o...
31,410
[ { "from": "human", "value": "I need to add text string to a TIFF image. I am planning to use libTIFF for editing the TIFF image. The plan is to convert text to image using freetype2 and then somehow render the text image on to TIFF. Is this the right approach?\nAny pointers on how to convert text to image? ...
I have a list of URLs and am trying to collect their "descriptions." By description I mean what comes up, for example, if you Googled the link. For example, http://stackoverflow.com">Google: http://stackoverflow.com shows the description as A language-independent collaboratively edited question and answer site fo...
Collecting descriptions for URLs can be a bit tricky, especially since many websites do not provide a meta-description, and scraping search engine results can violate their terms of service. Here are some alternative approaches you could consider: 1. **Use Open Graph Tags**: Many websites use Open Graph protocol tags ...
37,667
[ { "from": "human", "value": "I have a list of URLs and am trying to collect their \"descriptions.\" By description I mean what comes up, for example, if you Googled the link. For example, http://stackoverflow.com\">Google: http://stackoverflow.com shows the description as \n\nA language-independent collab...
If you create a class library that uses things from other assemblies, is it possible to embed those other assemblies inside the class library as some kind of resource? I.e. instead of having MyAssembly.dll, SomeAssembly1.dll and SomeAssembly2.dll sitting on the file system, those other two files get bundled in to MyAss...
### Embedding Assemblies in a Class Library Yes, it is indeed possible to embed other assemblies as resources inside your own class library (DLL) and load them at runtime. This process involves a few steps: 1. **Embedding the Assemblies**: You can include the other assemblies (`SomeAssembly1.dll`, `SomeAssembly2.dll`...
36,502
[ { "from": "human", "value": "If you create a class library that uses things from other assemblies, is it possible to embed those other assemblies inside the class library as some kind of resource?\nI.e. instead of having MyAssembly.dll, SomeAssembly1.dll and SomeAssembly2.dll sitting on the file system, tho...
This code works perfectly myNotebook = new wxNotebook( this, IDC_NOTEBOOK, wxDefaultPosition, wxSize(500, 500) ); myNotebook->AddPage( new wxNotebookPage( myNotebook, -1 ), L"TEST RECOMMENDATIONS 1" ); myNotebook->AddPage( new wxNotebookPage( myNotebook, -1 ), L"TEST RECOMMENDATIONS 2" ); myNotebook->AddPage( new wxNot...
When using the `wxNB_MULTILINE` style for a `wxNotebook`, it’s important to make sure you set the right styles and manage the sizing properly, especially when dealing with long tab names. If you're experiencing issues with the second line of tabs being obscured, it may be due to the layout of the `wxNotebook` or its p...
36,943
[ { "from": "human", "value": "This code works perfectly\nmyNotebook = new wxNotebook( this, IDC_NOTEBOOK, wxDefaultPosition, wxSize(500, 500) );\nmyNotebook->AddPage( new wxNotebookPage( myNotebook, -1 ), L\"TEST RECOMMENDATIONS 1\" );\nmyNotebook->AddPage( new wxNotebookPage( myNotebook, -1 ), L\"TEST RECOM...
I'm aware of the Substance look and feels and that they have a Office 2007 look-a-like look and feel. But this look and feel doesn't look like the Office 2007 design at all, the colors are a lot different for example. Are there other look and feels which mimic the Office 2007 more accurately?
Substance is a popular look-and-feel framework for Java applications, but as you noted, its implementation of the Office 2007 style may not exactly replicate the colors and design elements of the original Office 2007 UI. If you're looking for alternatives that more accurately mimic the Office 2007 design, here are a f...
38,887
[ { "from": "human", "value": "I'm aware of the Substance look and feels and that they have a Office 2007 look-a-like look and feel. But this look and feel doesn't look like the Office 2007 design at all, the colors are a lot different for example.\nAre there other look and feels which mimic the Office 2007 m...
I query all security groups in a specific domain using PrincipalSearchResult<Principal> results = ps.FindAll(); where ps is a PrincipalSearcher. I then need to iterate the result (casting it to a GroupPrincipal first ) and locate the ones that contains a specific string in the notes field. But the Notes field from AD...
You're correct that the `GroupPrincipal` class does not expose the "Notes" field (which corresponds to the `description` attribute in Active Directory) as a public property. Instead, you can access it using the `DirectoryEntry` object associated with the `GroupPrincipal`. Here's how you can do that: 1. Cast the `Princ...
38,648
[ { "from": "human", "value": "I query all security groups in a specific domain using \nPrincipalSearchResult<Principal> results = ps.FindAll();\n\nwhere ps is a PrincipalSearcher.\nI then need to iterate the result (casting it to a GroupPrincipal first ) and locate the ones that contains a specific string in...
Is there a command, or a set of tables I can look at to determine which tables, stored procedures and views in SQL Server server 2005 have a certain user defined data type?
In SQL Server 2005, you can query the system catalog views to find out which tables, stored procedures, and views utilize a specific user-defined data type (UDT). Below are some queries that will help you gather that information. ### 1. Find Tables with a User-Defined Data Type You can use the `INFORMATION_SCHEMA.COL...
37,578
[ { "from": "human", "value": "Is there a command, or a set of tables I can look at to determine which tables, stored procedures and views in SQL Server server 2005 have a certain user defined data type?\n" }, { "from": "gpt", "value": "In SQL Server 2005, you can query the system catalog views to...
when a dll is created out of the source code in a given namespaces a,b with functions a::open,b::open will there be any conflict in calling these function.
In C++, if you create a DLL containing functions with the same name in different namespaces, such as `a::open` and `b::open`, there will be no conflict when calling these functions as long as you use the correct namespace when referring to them. Here’s a brief explanation: 1. **Namespaces**: Namespaces in C++ are use...
39,305
[ { "from": "human", "value": "when a dll is created out of the source code in a given namespaces a,b with functions a::open,b::open will there be any conflict in calling these function.\n" }, { "from": "gpt", "value": "In C++, if you create a DLL containing functions with the same name in differ...
I have code like this to move the player in my game left, right, up, and down: keysSetRepeat(20, 5); while (lives) { scanKeys(); if (keysDownRepeat() & (KEY_LEFT | KEY_RIGHT | KEY_UP | KEY_DOWN)) { u8 new_x = x; u8 new_y = y; if (keysDownRepeat() & KEY_LEFT) { new_x--; ...
It looks like the issue you're encountering stems from the way you're using the `keysDownRepeat()` function in your code. The `keysDownRepeat()` function is designed to check if a specific key is being held down and will only return true if the key has been held down for a certain duration, as defined by the repeat rat...
36,036
[ { "from": "human", "value": "I have code like this to move the player in my game left, right, up, and down:\nkeysSetRepeat(20, 5);\n\nwhile (lives) {\n scanKeys();\n\n if (keysDownRepeat() & (KEY_LEFT | KEY_RIGHT | KEY_UP | KEY_DOWN)) {\n u8 new_x = x;\n u8 new_y = y;\n\n if (keys...
I'm working on a tool to simplify an application's deployment. Hence I'm aiming to automate the build of the setup project. The Situation: When I use Visual Studio to build the setup project this, creates the msi and exe files and concludes successfully. The problem occurs when I run a command in the command prompt, I ...
It looks like you've already resolved your issue with the setup project by creating a solution that contains both the setup project and the main project. This is a common requirement when working with Visual Studio setup projects, as the setup project needs to reference the outputs of the main project. For anyone faci...
39,615
[ { "from": "human", "value": "I'm working on a tool to simplify an application's deployment. Hence I'm aiming to automate the build of the setup project.\nThe Situation:\nWhen I use Visual Studio to build the setup project this, creates the msi and exe files and concludes successfully. The problem occurs whe...
When you use the PHP copy function, the operation blindly copies over the destination file, even if it already exists. How do you copy a file safely, only performing the copy if there is no existing file?
To safely copy a file in PHP, ensuring that the destination file does not already exist, you can use the `file_exists` function to check if the destination file exists before performing the copy operation. Here’s an example of how you can implement this: ```php $source = 'path/to/source/file.txt'; $destination = 'path...
39,569
[ { "from": "human", "value": "When you use the PHP copy function, the operation blindly copies over the destination file, even if it already exists. How do you copy a file safely, only performing the copy if there is no existing file?\n" }, { "from": "gpt", "value": "To safely copy a file in PHP...
Compiling a program on Linux that calls POSIX timer functions (eg: timer_create, timer_settime) returns errors such as: In function `foo': timer.c:(.text+0xbb): undefined reference to `timer_create' timer.c:(.text+0x187): undefined reference to `timer_settime' collect2: ld returned 1 exit status Which library do I ne...
The errors you're encountering when compiling your program that uses POSIX timer functions (`timer_create`, `timer_settime`, etc.) are due to the fact that you need to link against the correct library. In this case, the functions for POSIX timers are part of the `rt` (real-time) library. To resolve the undefined refer...
39,642
[ { "from": "human", "value": "Compiling a program on Linux that calls POSIX timer functions (eg: timer_create, timer_settime) returns errors such as:\n\nIn function `foo':\ntimer.c:(.text+0xbb): undefined reference to `timer_create'\ntimer.c:(.text+0x187): undefined reference to `timer_settime'\ncollect2: ld...
Is it possible to build a .dmg file (for distributing apps) from a non-Mac platform? And if yes, how?
Yes, it is possible to create a `.dmg` file (disk image) for macOS applications from a non-Mac platform, although the process is not straightforward and may require some workarounds. Here are a few approaches you can consider: ### 1. Using a Virtual Machine - **Set Up a macOS Virtual Machine**: You can set up a macOS...
37,832
[ { "from": "human", "value": "Is it possible to build a .dmg file (for distributing apps) from a non-Mac platform?\nAnd if yes, how?\n" }, { "from": "gpt", "value": "Yes, it is possible to create a `.dmg` file (disk image) for macOS applications from a non-Mac platform, although the process is no...
how do you handle them?
Could you please provide more context about what "them" refers to? Whether it's a specific situation, task, or type of challenge, I'd be happy to help you with advice or strategies.
41,196
[ { "from": "human", "value": "how do you handle them?\n" }, { "from": "gpt", "value": "Could you please provide more context about what \"them\" refers to? Whether it's a specific situation, task, or type of challenge, I'd be happy to help you with advice or strategies." } ]
I am using LLBL Gen Pro v2.6 and am attempting to create a means of auditing changes made to the database. Now, I know that LLBL Gen has auditing built into it using AuditorBase and dependency injection. The question I have is; I need to track not only the stuff that LLBL Gen exposes as auditable, but also the User who...
To incorporate user tracking into your auditing system with LLBLGen Pro v2.6, you'll need to extend the built-in auditing mechanism. LLBLGen Pro’s built-in auditor is a good starting point, but to add user information, you will typically need to customize how auditing is done by subclassing `AuditorBase`. Here's a gen...
37,444
[ { "from": "human", "value": "I am using LLBL Gen Pro v2.6 and am attempting to create a means of auditing changes made to the database. Now, I know that LLBL Gen has auditing built into it using AuditorBase and dependency injection. The question I have is; I need to track not only the stuff that LLBL Gen ex...
I am writing an iframe based facebook app. Now I want to use the same html page to render the normal website as well as the canvas page within facebook. I want to know if I can determine whether the page has been loaded inside the iframe or directly in the browser?
Yes, you can determine whether your HTML page is being loaded inside an iframe (such as when it's rendered in a Facebook canvas app) or directly in the browser. You can do this using JavaScript by checking the `window` object's `top` and `self` properties. Here's a simple way to do it: ```javascript if (window.top ===...
39,147
[ { "from": "human", "value": "I am writing an iframe based facebook app. Now I want to use the same html page to render the normal website as well as the canvas page within facebook. I want to know if I can determine whether the page has been loaded inside the iframe or directly in the browser?\n" }, { ...
So, lets say I have a number 123456. 123456 % 97 = 72. How can I determine what two digits need to be added to the end of 123456 such that the new number % 97 = 1? Note--it must always be two digits. For example, 12345676 % 97 = 1. In this case, I need to add the digits "76" to the end of the number. (This is for I...
To find the two digits that need to be added to the end of the number 123456 so that the new number modulo 97 equals 1, we can follow these steps: 1. **Calculate the current remainder** of 123456 when divided by 97: \[ 123456 \mod 97 = 72 \] 2. **Define the two digits you want to add** as \( x \), where \( x...
29,769
[ { "from": "human", "value": "So, lets say I have a number 123456. 123456 % 97 = 72. How can I determine what two digits need to be added to the end of 123456 such that the new number % 97 = 1? Note--it must always be two digits.\nFor example, 12345676 % 97 = 1. In this case, I need to add the digits \"7...
I need a fast container with only two operations. Inserting keys on from a very sparse domain (all 32bit integers, and approx. 100 are set at a given time), and iterating over the inserted keys. It should deal with a lot of insertions which hit the same entries (like, 500k, but only 100 different ones). Currently, I'm ...
Given the requirements you've specified—particularly the sparse domain of 32-bit integers and a small number of unique keys (approximately 100) among a potentially large number of insertions—using a `std::set` may not be the most efficient approach. Instead, you could consider the following options: ### 1. **Bitset** ...
37,773
[ { "from": "human", "value": "I need a fast container with only two operations. Inserting keys on from a very sparse domain (all 32bit integers, and approx. 100 are set at a given time), and iterating over the inserted keys. It should deal with a lot of insertions which hit the same entries (like, 500k, but ...
I'm looking for a way to query the ink level for my Epson DX 4050 on Mac OS X. There is some UI called EPSON StatusMonitor to display cartridges levels graphically, but I'd like to get it from the command-line so it can feed a robot. Any idea ?
To query the ink levels of your Epson DX 4050 printer on Mac OS X using the command line, you may be able to use the `lpstat` command along with the `lpoptions` or `lpadmin` commands, though these may not directly provide ink levels. However, a more robust method involves utilizing a third-party tool or a script that ...
36,633
[ { "from": "human", "value": "I'm looking for a way to query the ink level for my Epson DX 4050 on Mac OS X. There is some UI called EPSON StatusMonitor to display cartridges levels graphically, but I'd like to get it from the command-line so it can feed a robot.\nAny idea ?\n" }, { "from": "gpt", ...
I am executing a diff command in perl. my @lines = `/usr/local/bin/diff -udr \"$expected_file\" \"$gen_file\"`; if ($? != 0) { print ERRFILE "Diff between $expected_file and $gen_file failed\n"; return $diff_err; } Here the diff might have failed because of some reason. For example: the stderr showed that /us...
To capture both the standard output (stdout) and standard error (stderr) from a command executed in Perl, you can use a combination of filehandles and redirection. Specifically, you can redirect the stderr to stdout so that you can capture both streams in the same array. Here's how you can modify your Perl code to cap...
38,660
[ { "from": "human", "value": "I am executing a diff command in perl.\nmy @lines = `/usr/local/bin/diff -udr \\\"$expected_file\\\" \\\"$gen_file\\\"`;\n\nif ($? != 0)\n{\n print ERRFILE \"Diff between $expected_file and $gen_file failed\\n\";\n return $diff_err;\n}\n\nHere the diff might have failed be...
On a page from a website (one of ours) I can enter in the url the following code: javascript:createNewWindow('Something', 100, 100, 'Text') Is there a way someone can exploit this? function createNewWindow(url, widthIn, heightIn, title) { var strOptions='toolbar=0,location=0,directories=0,status=1...
Yes, there are potential security vulnerabilities associated with the way the `createNewWindow` function is currently implemented, especially if the `url` parameter can be manipulated. Here are a few concerns to consider: ### 1. Open Redirects If the `url` parameter can be influenced by user input and is not properly ...
36,789
[ { "from": "human", "value": "On a page from a website (one of ours) I can enter in the url the following code:\njavascript:createNewWindow('Something', 100, 100, 'Text')\n\nIs there a way someone can exploit this?\nfunction createNewWindow(url, widthIn, heightIn, title) \n {\n var strOptio...
I have a xml file like this: <customer> <field1 /> <field2 /> <field3> <item1 /> </field3> <field3> <item1 /> </field3> </customer> field* can appear in any order and only field3 can appear more than once. How can I create a XSD file to validate this? Thank you!
To create an XSD file that validates the XML structure you provided, you need to consider the constraints you described: 1. Fields (`field1`, `field2`, and `field3`) can appear in any order. 2. `field3` can appear multiple times, while `field1` and `field2` can appear only once. Here’s how you can structure your XSD...
38,288
[ { "from": "human", "value": "I have a xml file like this:\n<customer>\n <field1 />\n <field2 />\n <field3>\n <item1 />\n </field3>\n <field3>\n <item1 />\n </field3>\n</customer>\n\nfield* can appear in any order and only field3 can appear more than once.\nHow can I create a XSD file to validate...
This may be a painfully simply question for which I will be mocked but I am having difficulty in using filepaths in master pages. I believe this is because if a page in a sub-directory to using the master page then the filepath is incorrect. To fix this I need to get the filepath from the root but I can't seem to get i...
It's common to face issues with file paths in ASP.NET web applications, especially when using master pages. The tilde (`~`) character is often used in ASP.NET to signify the root of the application, but it won't work directly in HTML attributes like `src` without being processed by the server. To use the root-relativ...
35,147
[ { "from": "human", "value": "This may be a painfully simply question for which I will be mocked but I am having difficulty in using filepaths in master pages. I believe this is because if a page in a sub-directory to using the master page then the filepath is incorrect.\nTo fix this I need to get the filepa...
For example, one instance of apache is managing www.site.com/folder1/a.html www.site.com/folder2/b.html www.site.com/folder3/c.html I need to make sure that access to www.site.com/folder3/c.html is https only. All these folders are in the same document root. Is this possible? If not, what you recommend as the minim...
Yes, it is possible to configure Apache to enforce HTTPS for a specific file or directory while allowing other resources to be accessed over HTTP. You can achieve this by using the `.htaccess` file or modifying the server configuration. Below are methods for both approaches. ### Option 1: Using `.htaccess` If you wan...
37,766
[ { "from": "human", "value": "For example, one instance of apache is managing\n\nwww.site.com/folder1/a.html\nwww.site.com/folder2/b.html\nwww.site.com/folder3/c.html\n\nI need to make sure that access to \nwww.site.com/folder3/c.html\nis https only.\nAll these folders are in the same document root.\nIs this...
Hi I want to create form on my site, which is run using Micrsoft Sharepoint.
Creating a form in Microsoft SharePoint can be done in a few different ways, depending on your specific requirements and the version of SharePoint you're using (SharePoint Online or SharePoint On-Premises). Here are some common methods for creating a form in SharePoint: ### 1. Using SharePoint Lists One of the simples...
33,047
[ { "from": "human", "value": "Hi I want to create form on my site, which is run using Micrsoft Sharepoint. \n" }, { "from": "gpt", "value": "Creating a form in Microsoft SharePoint can be done in a few different ways, depending on your specific requirements and the version of SharePoint you're us...
As the title says really. Does the virtual keyword cause a performance hit?
The `virtual` keyword in object-oriented programming languages like C# and C++ enables polymorphism, allowing a method to be overridden in derived classes. While it provides significant flexibility and extensibility, it can introduce a performance overhead compared to non-virtual methods. Here's a breakdown of how it c...
35,852
[ { "from": "human", "value": "As the title says really. Does the virtual keyword cause a performance hit?\n" }, { "from": "gpt", "value": "The `virtual` keyword in object-oriented programming languages like C# and C++ enables polymorphism, allowing a method to be overridden in derived classes. Wh...
I think the field type should be string of variable length (VARCHAR), but what length should I use? To clarify: I want to pick a size that would be able to store average URL, and don't really care about maximum possible.
When choosing a VARCHAR length for storing URLs, it's important to consider the average size of a URL in practice. The length of URLs can vary significantly, but here are some general guidelines: 1. **Average Length**: A common average length for URLs is around 50-70 characters. Many web pages have URLs that are relat...
39,057
[ { "from": "human", "value": "I think the field type should be string of variable length (VARCHAR), but what length should I use? \nTo clarify: I want to pick a size that would be able to store average URL, and don't really care about maximum possible.\n" }, { "from": "gpt", "value": "When choos...
How does one do namespaced controllers in Merb, for instance to create an admin section to the site? In Rails one would use Admin::CategoriesController, is this similar in Merb or is this another recommended way of doing it?
In Merb, you can create namespaced controllers similar to how you would do it in Rails. To create an admin section of your application, you would typically define a namespace for your controllers. This approach helps in organizing your application code and avoids name collisions between controllers. ### Creating Names...
37,333
[ { "from": "human", "value": "How does one do namespaced controllers in Merb, for instance to create an admin section to the site? In Rails one would use Admin::CategoriesController, is this similar in Merb or is this another recommended way of doing it?\n" }, { "from": "gpt", "value": "In Merb, ...
In regular Java, you can get the text of a stack trace by passing a PrintWriter to printStackTrace. I have a feeling I know the answer to this (i.e. "No") but, Is there any way to obtain the text of a stack trace in JavaME as a String? Update: I should mention that I'm restricted to CLDC 1.0
In Java ME, particularly with the CLDC 1.0 profile, you have very limited capabilities compared to standard Java. One of the notable limitations is the lack of built-in support for printing stack traces to a `PrintWriter` or similar constructs that you may be used to in standard Java. The `Throwable` class in Java ME ...
37,619
[ { "from": "human", "value": "In regular Java, you can get the text of a stack trace by passing a PrintWriter to printStackTrace. I have a feeling I know the answer to this (i.e. \"No\") but,\nIs there any way to obtain the text of a stack trace in JavaME as a String?\nUpdate:\nI should mention that I'm rest...
Does anyone have any experience with the triangulated GPS used by the non-3G iPhone? How does it compare with 3G positioning? Does the iPhone 3G use triangulation in the event that there is no GPS signal available? Is there anyway to determine the accuracy of the non 3G coordinates? Thanks.
The non-3G iPhone, such as the original iPhone, relies primarily on Wi-Fi and cell tower triangulation for positioning, as it does not have a built-in GPS chip. Here’s a breakdown of how these systems compare: ### Triangulated GPS (Non-3G iPhone) 1. **Wi-Fi Positioning**: The non-3G iPhone uses Wi-Fi networks to deter...
35,700
[ { "from": "human", "value": "Does anyone have any experience with the triangulated GPS used by the non-3G iPhone? How does it compare with 3G positioning? Does the iPhone 3G use triangulation in the event that there is no GPS signal available? Is there anyway to determine the accuracy of the non 3G coordi...
How do you do it, or is it even possible? I suppose you could fiddle with getCanonicalWhatever and the original path, but that's messy and I don't like it. Please include a definitive reason if you suggest it.
It seems like you're asking about managing or manipulating canonical paths in a programming context, though the specifics are a bit vague. To clarify your question and provide a helpful answer, I would need a bit more detail about what exactly you're trying to achieve. However, I can provide a general overview of worki...
37,570
[ { "from": "human", "value": "How do you do it, or is it even possible?\nI suppose you could fiddle with getCanonicalWhatever and the original path, but that's messy and I don't like it. Please include a definitive reason if you suggest it.\n" }, { "from": "gpt", "value": "It seems like you're as...
I find the following things extremely useful in my daily work: ido emacs muse Cscope desktop tabbar
It sounds like you have a well-rounded set of tools that enhance your productivity and workflow! Let's briefly discuss how each of these can contribute to your daily work: 1. **ido**: Ido is an Emacs package that provides an efficient way to navigate files and buffers using incremental completion. It helps speed up th...
37,830
[ { "from": "human", "value": "I find the following things extremely useful in my daily work:\n\nido\nemacs muse\nCscope\ndesktop\ntabbar\n\n" }, { "from": "gpt", "value": "It sounds like you have a well-rounded set of tools that enhance your productivity and workflow! Let's briefly discuss how ea...
This function appears to be a way to access all sorts of system values. For example nativemethods.GetSystemMetrics(4096) returns whether a session is remote or local. All I can find on the web are specific examples--does anyone know where I could find a complete list of input parameter values/what they return? Seems...
The `GetSystemMetrics` function is part of the Windows API, and it retrieves various system metrics and configuration settings. The numeric values passed to `GetSystemMetrics` as parameters correspond to specific metrics or settings. Here's a list of some common values you can use with `GetSystemMetrics`: - **0**: Scr...
39,551
[ { "from": "human", "value": "This function appears to be a way to access all sorts of system values. For example\nnativemethods.GetSystemMetrics(4096) returns whether a session is remote or local. All I can find on the web are specific examples--does anyone know where I could find a complete list of input...
Our application is getting a System Call Failed RPC error from DCOM (0x80010100), we suspect that the target thread's message queue is full (although I'm not convinced this is ture). I know the queue is limited to 10,000 messages and I want to see if we're close to this number in the common cases. Is there a way to mon...
In Windows, monitoring the size of a thread's message queue is not straightforward because there are no direct API calls that provide the exact number of messages currently in a thread's message queue. However, there are a few approaches you can consider to investigate this issue further: 1. **Custom Message Queue Mon...
37,248
[ { "from": "human", "value": "Our application is getting a System Call Failed RPC error from DCOM (0x80010100), we suspect that the target thread's message queue is full (although I'm not convinced this is ture). I know the queue is limited to 10,000 messages and I want to see if we're close to this number i...
I have a class and I want to be able to iterate over a certain array member. I did a quick search and found IteratorAggregate: class foo implements IteratorAggregate { protected $_array = array('foo'=>'bar', 'baz'=>'quux'); public function getIterator() { return new ArrayIterator($this->_array); ...
Your understanding of how `ArrayIterator` works is correct: it creates a snapshot of the array when it is instantiated. If you store an instance of `ArrayIterator` and modify the underlying array later, those changes will not be reflected in the iterator you stored. Using an `IteratorAggregate` interface allows you to...
38,658
[ { "from": "human", "value": "I have a class and I want to be able to iterate over a certain array member. I did a quick search and found IteratorAggregate:\nclass foo implements IteratorAggregate\n{\n protected $_array = array('foo'=>'bar', 'baz'=>'quux');\n\n public function getIterator()\n {\n ...
Requirements Practical Asp.net on Asp.net 2008 Express Environment Perspective
To set up an ASP.NET application using Visual Web Developer 2008 Express (which is the ASP.NET 2008 IDE), you'll want to consider a number of practical requirements and an appropriate environment setup. Here’s a guide to help you through the process: ### Requirements #### 1. **Software Requirements:** - **Visual W...
34,575
[ { "from": "human", "value": "Requirements\n\nPractical\nAsp.net on Asp.net 2008 Express\nEnvironment Perspective\n\n" }, { "from": "gpt", "value": "To set up an ASP.NET application using Visual Web Developer 2008 Express (which is the ASP.NET 2008 IDE), you'll want to consider a number of practi...
I'm seeing a very strange issue with a .NET webservice being consumed by Flex. I have a very simple class with nothing other than properties with [XmlAttribute('xxx')] attributes. public class OrderAddress { public OrderAddress() {} [XmlAttribute("firstName")] public string FirstName { get; set; } [Xm...
The issue you're experiencing with the .NET web service and the Flex client could be attributed to the way attributes and elements are deserialized across different platforms. Here are some points to consider that may help you troubleshoot and potentially resolve the issue: 1. **Serialization Attributes**: When using ...
36,959
[ { "from": "human", "value": "I'm seeing a very strange issue with a .NET webservice being consumed by Flex.\nI have a very simple class with nothing other than properties with [XmlAttribute('xxx')] attributes.\npublic class OrderAddress\n{\n public OrderAddress() {}\n\n [XmlAttribute(\"firstName\")]\n...
In ASP.NET, a ListBox has a Rows attribute I can set to say how many rows to show. A DropDownList, though, doesn't. Is there any way I can set the maximum number of rows a DropDownList should display? Code? Markup? CSS?
In ASP.NET, the `DropDownList` control does not provide a built-in property to set the maximum number of visible rows. By default, when the dropdown is expanded, the browser typically determines how many options to display based on its own styling and settings. However, you can control this behavior using some CSS and ...
33,722
[ { "from": "human", "value": "In ASP.NET, a ListBox has a Rows attribute I can set to say how many rows to show. A DropDownList, though, doesn't. Is there any way I can set the maximum number of rows a DropDownList should display? Code? Markup? CSS?\n" }, { "from": "gpt", "value": "In ASP.NE...
Is something like the following possible in PHP? $blah = 'foo1'; class foo2 extends $blah { //... } class foo1 { //... } This gives an error. I want to dynamically set $blah so I can extend whatever class I want. Edit: The reason for wanting to do this because I wanted to use a function out of another class ...
In PHP, you cannot use a variable directly in the class declaration as shown in your example. Class inheritance must be declared using the actual class name at compile time, and dynamic class inheritance (using a variable) is not supported in PHP. However, there are a couple of alternative approaches you can consider,...
35,226
[ { "from": "human", "value": "Is something like the following possible in PHP?\n$blah = 'foo1';\n\nclass foo2 extends $blah {\n //...\n}\n\nclass foo1 {\n //...\n}\n\nThis gives an error.\nI want to dynamically set $blah so I can extend whatever class I want.\nEdit: The reason for wanting to do this be...
Is there any way to de/serialize an object without round-tripping a XmlDocument/temp string? I am looking for something like the following: class Program { static void Main(string[] args) { XDocument doc = new XDocument(); MyClass c = new MyClass(); c.SomeValue = "bar"; doc.Add(...
In C#, the `XDocument` class does not directly support adding objects as children without converting them to XML first. When you attempt to add an instance of your `MyClass` directly to the `XDocument`, it doesn't know how to convert that object into an XML element representation, which leads to the errors you are enco...
36,639
[ { "from": "human", "value": "Is there any way to de/serialize an object without round-tripping a XmlDocument/temp string? I am looking for something like the following:\nclass Program\n{\n static void Main(string[] args)\n {\n XDocument doc = new XDocument();\n MyClass c = new MyClass();...
Until recently we used Oracle sequences to generate the IDs of a table. This is now changed, a new ID is now calculated by an Oracle function. Which means that my application needs a change to adept to the new situation. The application is a Spring/Hibernate webApp, which access the Oracle database. This was configured...
To adapt your Spring/Hibernate application to use an Oracle function for generating the IDs instead of a sequence, you will need to modify your Hibernate mapping configuration. In Hibernate, you can create a custom generator for ID generation that calls your Oracle function. Here's a step-by-step solution: ### 1. Cr...
35,726
[ { "from": "human", "value": "Until recently we used Oracle sequences to generate the IDs of a table. This is now changed, a new ID is now calculated by an Oracle function. Which means that my application needs a change to adept to the new situation. The application is a Spring/Hibernate webApp, which access...
I am using asp.net mvc for an application. I've taken some guidance from Rob Conery's series on the MVC storefront. I am using a very similar data access pattern to the one that he used in the storefront. However, I have added a small difference to the pattern. Each class I have created in my model has a property ca...
It looks like the issue you're experiencing stems from how you're handling the existing orders in your `SaveOrder` method. When you set `order.IsNew` to `false`, it implies that the order already exists in the database and you want to update it. However, in your current implementation, you're creating a new instance of...
35,749
[ { "from": "human", "value": "I am using asp.net mvc for an application. I've taken some guidance from Rob Conery's series on the MVC storefront. I am using a very similar data access pattern to the one that he used in the storefront.\nHowever, I have added a small difference to the pattern. Each class I ...
I have been given a task to convert code that is written in JavaScript over to VBScript. It is actually quite basic code and it is really just the syntax that needs to be converted. For example if (str == "string text") { foo = "foo"; } else { foo2 = "foo2"; } becomes If (str = "string text") Then foo = "fo...
As of my last knowledge update in October 2023, there is no dedicated tool specifically designed to convert JavaScript code to VBScript automatically. The syntax and structure of these two languages are quite different, so manual conversion is often necessary. However, there are some general strategies you can use to ...
39,428
[ { "from": "human", "value": "I have been given a task to convert code that is written in JavaScript over to VBScript.\nIt is actually quite basic code and it is really just the syntax that needs to be converted.\nFor example\n if (str == \"string text\") {\n foo = \"foo\";\n} else {\n foo2 = \"foo2\";\n...
I have an HTML input box <input type="text" id="foo" value="bar"> I've attached a handler for the 'keyup' event, but if I retrieve the current value of the input box during the event handler, I get the value as it was, and not as it will be! I've tried picking up 'keypress' and 'change' events, same problem. I'm sure...
It's great to hear that you resolved your issue with caching! However, just to clarify for anyone else who might face a similar situation, here’s a brief overview of how input events work in JavaScript: 1. **Keyup Event**: This event is fired when the user releases a key. At this point, the value of the input element ...
37,322
[ { "from": "human", "value": "I have an HTML input box\n<input type=\"text\" id=\"foo\" value=\"bar\">\n\nI've attached a handler for the 'keyup' event, but if I retrieve the current value of the input box during the event handler, I get the value as it was, and not as it will be!\nI've tried picking up 'key...
Unfortunately, the problem is not more specific than that. I've found a few examples of people reporting similar problems by doing a Google search, but I can't find the part of the restore that is actually causing the problem, which might help me track it down on my own. Suggestions for either resolving this problem or...
It seems you're experiencing a problem that is somewhat vague, but there are steps you can take to troubleshoot and potentially resolve it. Here are some general suggestions for diagnosing and addressing the issue: 1. **Clarify the Problem**: Try to document exactly what the problem is. What specific symptoms are you ...
38,524
[ { "from": "human", "value": "Unfortunately, the problem is not more specific than that. I've found a few examples of people reporting similar problems by doing a Google search, but I can't find the part of the restore that is actually causing the problem, which might help me track it down on my own.\nSugges...
What is BPEL? I'm looking for some nice simple examples of BPEL usage. The wikipedia page isn't too enlightening. How about a "Hello world" in BPEL? A BPEL shell? A BPEL IDE?
BPEL, or Business Process Execution Language, is an XML-based language designed to define business processes based on web services. It allows for the orchestration of web services by specifying how they interact with one another. BPEL is particularly useful for automating business workflows that involve multiple web se...
35,926
[ { "from": "human", "value": "What is BPEL? I'm looking for some nice simple examples of BPEL usage. The wikipedia page isn't too enlightening. How about a \"Hello world\" in BPEL? A BPEL shell? A BPEL IDE?\n" }, { "from": "gpt", "value": "BPEL, or Business Process Execution Language, is an XML-b...
For a load test of my application (under Linux), I'm looking for a tool that outputs data on stdout at a specific rate (like 100 bytes/s), so that I can pipe the output to netcat which sends it to my application. Some option for dd would be ideal, but I didn't find anything so far. It doesn't really matter what kind of...
You can achieve this by using a combination of `dd`, `pv`, and `netcat`. The `pv` (Pipe Viewer) utility can be particularly useful for controlling the output rate of data. First, make sure you have `pv` installed on your Linux system. You can usually install it using your package manager. For example: - On Debian/Ubu...
34,287
[ { "from": "human", "value": "For a load test of my application (under Linux), I'm looking for a tool that outputs data on stdout at a specific rate (like 100 bytes/s), so that I can pipe the output to netcat which sends it to my application. Some option for dd would be ideal, but I didn't find anything so f...