instruction stringlengths 14 27.6k | completion stringlengths 3 38.3k | __original_row_idx int64 0 50k | conversations listlengths 2 2 |
|---|---|---|---|
We use an ERP that has a bunch of reports in QuickReport format (.qr2). From what I could search, Quickreports has an interface for Delphi but not for .NET.
Anyone know if there's a (preferably free/OSS) solution for converting .qr2 reports to something I could work with in C#? Or a component for reading these reports ... | QuickReports is indeed a reporting tool primarily associated with Delphi and does not have native support for .NET, which can make working with .qr2 files a challenge. Unfortunately, there aren't many well-known libraries or tools that directly convert .qr2 files to a more compatible format for C#. However, here are a ... | 5,398 | [
{
"from": "human",
"value": "We use an ERP that has a bunch of reports in QuickReport format (.qr2). From what I could search, Quickreports has an interface for Delphi but not for .NET.\nAnyone know if there's a (preferably free/OSS) solution for converting .qr2 reports to something I could work with in C#?... |
My professor did an informal benchmark on a little program and the Java times were: 1.7 seconds for the first run, and 0.8 seconds for the runs thereafter.
Is this due entirely to the loading of the runtime environment into the operating environment ?
OR
Is it influenced by Java's optimizing the code and storing th... | The difference in execution times you observed in your professor's benchmark can be attributed to a combination of factors, including both the initial loading of the Java runtime environment and the optimizations performed by the Java Virtual Machine (JVM).
1. **Loading the Runtime Environment**: The first time you ru... | 7,590 | [
{
"from": "human",
"value": "My professor did an informal benchmark on a little program and the Java times were: 1.7 seconds for the first run, and 0.8 seconds for the runs thereafter. \n\nIs this due entirely to the loading of the runtime environment into the operating environment ?\nOR \nIs it influenced... |
I've seen there are a few of them. opencvdotnet, SharperCV, EmguCV, One on Code Project.
Does anyone have any experience with any of these? I played around with the one on Code Project for a bit, but as soon as I tried to do anything complicated I got some nasty uncatchable exceptions (i.e. Msgbox exceptions). Cro... | When it comes to using OpenCV with .NET, you're right that there are several wrappers and libraries available. Here's a brief overview of the ones you mentioned:
1. **Emgu CV**:
- **Overview**: Emgu CV is one of the most popular OpenCV wrappers for .NET. It's well-documented, widely used, and supports a range of .N... | 5,024 | [
{
"from": "human",
"value": "I've seen there are a few of them. opencvdotnet, SharperCV, EmguCV, One on Code Project. \nDoes anyone have any experience with any of these? I played around with the one on Code Project for a bit, but as soon as I tried to do anything complicated I got some nasty uncatchable... |
At work, we have multiple branches that we may be working on at any time.
Our solution so far as been to create multiple web-sites but you can only run one web-site at a time. This makes switching between branches more of a pain that in should be.
I just want to go to the URL, mapped in my hosts file, for that branch... | IIS 5.1, which is the version of Internet Information Services bundled with Windows XP Professional, does have limitations when it comes to hosting multiple websites simultaneously. It only supports one website running per IP address and does not support host headers for different sites by default, which means you cann... | 4,343 | [
{
"from": "human",
"value": "At work, we have multiple branches that we may be working on at any time. \nOur solution so far as been to create multiple web-sites but you can only run one web-site at a time. This makes switching between branches more of a pain that in should be. \nI just want to go to the UR... |
As part of improvements to our build process, we are currently debating whether we should have separate project/solution files on our CI production environment from our local development environments.
The reason this has come about is because of reference problems we experienced in our previous project. On a frequent ... | This is a common challenge in software development, especially as teams grow and projects become more complex. The problem of consistent references, paths, and dependencies can indeed lead to a variety of issues if not handled correctly. Here are some considerations, pros and cons of having separate project/solution fi... | 5,162 | [
{
"from": "human",
"value": "As part of improvements to our build process, we are currently debating whether we should have separate project/solution files on our CI production environment from our local development environments.\nThe reason this has come about is because of reference problems we experience... |
I've been having trouble getting my ASP.NET application to automatically log users into the Intranet site I'm building. No matter the googling or the experimentation I applied, there is always a login box displayed by IE7.
I've got Windows authentication mode set in the Web.config, disabled anonymous access and config... | Getting Windows Authentication to work smoothly with your ASP.NET application can sometimes be tricky, especially with older versions of Internet Explorer and Windows configurations. Here's a checklist you can follow to ensure everything is set up correctly for your scenario:
### Checklist for Configuring Windows Auth... | 2,830 | [
{
"from": "human",
"value": "I've been having trouble getting my ASP.NET application to automatically log users into the Intranet site I'm building. No matter the googling or the experimentation I applied, there is always a login box displayed by IE7.\nI've got Windows authentication mode set in the Web.co... |
What is the most efficient way to determine how many comments a particular blog post has? We want to store the data for a new web app. We have a list of permalink URl's as well as the RSS feeds.
| To efficiently determine how many comments a particular blog post has, especially when you have a list of permalink URLs and RSS feeds, you can follow these steps:
### 1. **Using RSS Feeds:**
RSS feeds typically contain metadata about blog posts, including the number of comments. Here's how to use RSS feeds:
- **Fet... | 3,751 | [
{
"from": "human",
"value": "What is the most efficient way to determine how many comments a particular blog post has? We want to store the data for a new web app. We have a list of permalink URl's as well as the RSS feeds. \n"
},
{
"from": "gpt",
"value": "To efficiently determine how many comm... |
I took a look at the "Beginner's Guide to LINQ" post here on StackOverflow (Beginners Guide to LINQ), but had a follow-up question:
We're about to ramp up a new project where nearly all of our database op's will be fairly simple data retrievals (there's another segment of the project which already writes the data). Mos... | When deciding between LINQ-to-SQL and stored procedures for simple data retrievals, there are several factors to consider. Below are some pros and cons for each approach:
### LINQ-to-SQL
#### Pros:
1. **Type Safety**: LINQ provides compile-time type checking. This reduces runtime errors and makes your code more robus... | 4,292 | [
{
"from": "human",
"value": "I took a look at the \"Beginner's Guide to LINQ\" post here on StackOverflow (Beginners Guide to LINQ), but had a follow-up question:\nWe're about to ramp up a new project where nearly all of our database op's will be fairly simple data retrievals (there's another segment of the... |
I have a database field that contains a raw date field (stored as character data), such as
Friday, September 26, 2008 8:30 PM Eastern Daylight Time
I can parse this as a Date easily, with SimpleDateFormat
DateFormat dbFormatter = new SimpleDateFormat("EEEE, MMMM dd, yyyy hh:mm aa zzzz");
Date scheduledDate = dbForma... | In Java, when you use `SimpleDateFormat` to parse a date string that includes time zone information, the parsed `Date` object does not retain the time zone information itself. However, you can extract the `TimeZone` from the `SimpleDateFormat` instance used for parsing the string.
The key steps to achieve this are:
1... | 5,085 | [
{
"from": "human",
"value": "I have a database field that contains a raw date field (stored as character data), such as \n\nFriday, September 26, 2008 8:30 PM Eastern Daylight Time\n\nI can parse this as a Date easily, with SimpleDateFormat\nDateFormat dbFormatter = new SimpleDateFormat(\"EEEE, MMMM dd, yyy... |
Once I have my renamed files I need to add them to my project's wiki page. This is a fairly repetitive manual task, so I guess I could script it but I don't know where to start.
The process is:
Got to appropriate page on the wiki
for each team member (DeveloperA, DeveloperB, DeveloperC)
{
for each of two files ('*... | To automate the process of updating files on a wiki page, you can consider using a scripting language that is well-suited for web automation. Here are some options, along with the steps to get started:
### Languages to Consider
1. **Python with Selenium**: Selenium is a popular library for web automation, allowing you... | 1,157 | [
{
"from": "human",
"value": "Once I have my renamed files I need to add them to my project's wiki page. This is a fairly repetitive manual task, so I guess I could script it but I don't know where to start.\nThe process is:\nGot to appropriate page on the wiki\n\nfor each team member (DeveloperA, DeveloperB... |
Wikipedia says SQL Server Express Edition is limited to "one processor, 1 GB memory and 4 GB database files". Does anyone have practical experience with how well this scales?
| SQL Server Express Edition is a lightweight, free version of Microsoft's SQL Server, designed primarily for small-scale applications, development, and educational purposes. While it has limitations—specifically, one processor, 1 GB of memory, and a maximum database size of 4 GB—many users have found it to be quite effe... | 5,596 | [
{
"from": "human",
"value": "Wikipedia says SQL Server Express Edition is limited to \"one processor, 1 GB memory and 4 GB database files\". Does anyone have practical experience with how well this scales?\n"
},
{
"from": "gpt",
"value": "SQL Server Express Edition is a lightweight, free versio... |
I am looking for a best practice for End to End Authentication for internal Web Applications to the Database layer.
The most common scenario I have seen is to use a single SQL account with the permissions set to what is required by the application. This account is used by all application calls. Then when people requi... | When considering End-to-End Authentication for internal web applications and their database layers, it’s crucial to balance security, maintainability, and usability. Here are some best practices and recommendations that can help you navigate the complexities of this architecture:
### 1. Use Role-Based Access Control (... | 5,117 | [
{
"from": "human",
"value": "I am looking for a best practice for End to End Authentication for internal Web Applications to the Database layer.\nThe most common scenario I have seen is to use a single SQL account with the permissions set to what is required by the application. This account is used by all ... |
I have a class with a bunch of properties that look like this:
public string Name
{
get { return _name; }
set { IsDirty = true; _name = value; }
}
It would be a lot easier if I could rely on C# 3.0 to generate the backing store for these, but is there any way to factor out the IsDirty=true; so that I can write... | Yes, you can achieve this by using custom attributes and a little bit of reflection to handle the `IsDirty` property automatically. However, C# does not allow you to automatically apply behavior like setting `IsDirty` to properties just by applying an attribute to them. But we can get close by creating a custom attribu... | 2,566 | [
{
"from": "human",
"value": "I have a class with a bunch of properties that look like this:\npublic string Name\n{\n get { return _name; }\n set { IsDirty = true; _name = value; }\n}\n\nIt would be a lot easier if I could rely on C# 3.0 to generate the backing store for these, but is there any way to ... |
How can I get PDO to work on my mac (os x 10.5)? I'm using the built in php and php in Zend/Eclipse. Can't seem to find useful drivers for it at all.
| To get PDO (PHP Data Objects) working on your Mac running OS X 10.5 with the built-in PHP, you need to ensure that the PDO extension is enabled in your PHP configuration and that the necessary PDO drivers for your database are available. Here are the steps you can follow to set this up:
### 1. Check PHP Version
First,... | 3,238 | [
{
"from": "human",
"value": "How can I get PDO to work on my mac (os x 10.5)? I'm using the built in php and php in Zend/Eclipse. Can't seem to find useful drivers for it at all.\n"
},
{
"from": "gpt",
"value": "To get PDO (PHP Data Objects) working on your Mac running OS X 10.5 with the built-i... |
I'm thinking that the reason I can't do this is because it might be a huge security hole, but here goes...
I want to have a bookmark on my browser (FF3, preferably) that is only a snippet of javascript code. It would merely construct a URL based on the current date and then do a window.location = on that URL.
I know t... | Yes, you can create a bookmarklet in your browser that contains JavaScript code. A bookmarklet is simply a bookmark that runs JavaScript instead of navigating to a URL. Here's how you can create one that constructs a URL based on the current date and navigates to it.
1. **Create the JavaScript Code**: First, you'll ne... | 5,701 | [
{
"from": "human",
"value": "I'm thinking that the reason I can't do this is because it might be a huge security hole, but here goes...\nI want to have a bookmark on my browser (FF3, preferably) that is only a snippet of javascript code. It would merely construct a URL based on the current date and then do... |
I'm using markdown to edit this question right now. In some wikis I used wiki markup. Are they the same thing? Are they related? Please explain. If I want to implement one or the other in a web project (like stackoverflow) what do I need to use?
| Markdown and wiki markup are related in that they are both lightweight markup languages used to format text, but they are not the same and have distinct syntax and features.
### Differences
1. **Syntax**:
- Markdown uses a simpler and more intuitive syntax. For example, to create a header, you use hashtags (`#`),... | 4,959 | [
{
"from": "human",
"value": "I'm using markdown to edit this question right now. In some wikis I used wiki markup. Are they the same thing? Are they related? Please explain. If I want to implement one or the other in a web project (like stackoverflow) what do I need to use?\n"
},
{
"from": "gpt",
... |
I understand about race conditions and how with multiple threads accessing the same variable, updates made by one can be ignored and overwritten by others, but what if each thread is writing the same value (not different values) to the same variable; can even this cause problems? Could this code:
GlobalVar.property = 1... | Yes, even if multiple threads are writing the same value to the same variable, race conditions can occur, leading to potential problems. This might not seem intuitive because if all threads are writing the same value, you might expect the final result to always be correct. However, the issue comes from the way memory w... | 6,094 | [
{
"from": "human",
"value": "I understand about race conditions and how with multiple threads accessing the same variable, updates made by one can be ignored and overwritten by others, but what if each thread is writing the same value (not different values) to the same variable; can even this cause problems... |
Does any know of a good calendar (not datepicker, but a BIG browsable calendar) plugin for one of the major javascript frameworks. I'd prefer jQuery.
| Yes, there are several good calendar plugins that you can use with jQuery. Here are some of the popular options:
1. **FullCalendar**:
- **Website**: [FullCalendar](https://fullcalendar.io/)
- This is one of the most popular calendar plugins for jQuery. It allows you to create a full-sized calendar that can displ... | 4,685 | [
{
"from": "human",
"value": "Does any know of a good calendar (not datepicker, but a BIG browsable calendar) plugin for one of the major javascript frameworks. I'd prefer jQuery.\n"
},
{
"from": "gpt",
"value": "Yes, there are several good calendar plugins that you can use with jQuery. Here are... |
I wrote an Active X plugin for IE7 which implements IObjectWithSite besides some other necessary interfaces (note no IOleClient). This interface is queried and called by IE7. During the SetSite() call I retrieve a pointer to IE7's site interface which I can use to retrieve the IHTMLDocument2 interface using the followi... | It looks like you're encountering some challenges with obtaining the `IPIEHTMLWindow2` interface in your ActiveX plugin for Internet Explorer. The key issue is that Internet Explorer's Plugin Interface Extensions (PIE) architecture is somewhat different from the standard approach used in IE7, which can lead to difficul... | 3,165 | [
{
"from": "human",
"value": "I wrote an Active X plugin for IE7 which implements IObjectWithSite besides some other necessary interfaces (note no IOleClient). This interface is queried and called by IE7. During the SetSite() call I retrieve a pointer to IE7's site interface which I can use to retrieve the I... |
I know two approaches to Exception handling, lets have a look at them.
Contract approach.
When a method does not do what it says it will do in the method header, it will throw an exception. Thus the method "promises" that it will do the operation, and if it fails for some reason, it will throw an exception.
Exception... | The debate between the contract approach and the exceptional approach to exception handling is a common one in software development. Both have their merits and appropriate contexts for use, and the choice between them often depends on the specific circumstances of the application being developed. Let’s break down both ... | 4,717 | [
{
"from": "human",
"value": "I know two approaches to Exception handling, lets have a look at them.\n\nContract approach.\nWhen a method does not do what it says it will do in the method header, it will throw an exception. Thus the method \"promises\" that it will do the operation, and if it fails for some ... |
I'd really like to get our host to pull from our Git repository instead of uploading files manually, but it doesn't have Git installed.
So is there a way to trick Subversion (which they do have) into checking out a Git repository?
I think I already know the answer, namely bug my host to add Git and live with it until t... | You're right that the most straightforward solution would be to request that your host install Git. However, if that's not an option, you can use a workaround to integrate your Git repository with Subversion, though it might not be as clean or efficient as using Git directly.
### Option 1: Use `git-svn`
One method to... | 6,476 | [
{
"from": "human",
"value": "I'd really like to get our host to pull from our Git repository instead of uploading files manually, but it doesn't have Git installed.\nSo is there a way to trick Subversion (which they do have) into checking out a Git repository?\nI think I already know the answer, namely bug ... |
I have a table similar to this:
CREATE TABLE example (
id integer primary key,
name char(200),
parentid integer,
value integer);
I can use the parentid field to arrange data into a tree structure.
Now here's the bit I can't work out. Given a parentid, is it possible to write an SQL statement to add up all the ... | In PostgreSQL, you can achieve this using a Common Table Expression (CTE) with a recursive query. This allows you to traverse the tree structure and accumulate the values from the `value` field for all descendants of a given `parentid`.
Here's how you could structure the query:
```sql
WITH RECURSIVE tree AS (
SEL... | 5,873 | [
{
"from": "human",
"value": "I have a table similar to this:\nCREATE TABLE example (\n id integer primary key,\n name char(200),\n parentid integer,\n value integer);\n\nI can use the parentid field to arrange data into a tree structure.\nNow here's the bit I can't work out. Given a parentid, is it poss... |
Which standalone Windows GUI application do you recommend for use for accessing a Subversion repository?
Edit: A lot of people are mentioning Tortoise, however I am looking for an application not a shell extension. Also people are questioning my reasoning behind not wanting to use a shell extension. In our environmen... | For a standalone Windows GUI application to access a Subversion repository without relying on a shell extension like TortoiseSVN, consider the following options:
1. **SmartSVN**: SmartSVN is a powerful, cross-platform Subversion client that offers a user-friendly interface. It provides features such as repository brow... | 7,197 | [
{
"from": "human",
"value": "Which standalone Windows GUI application do you recommend for use for accessing a Subversion repository?\nEdit: A lot of people are mentioning Tortoise, however I am looking for an application not a shell extension. Also people are questioning my reasoning behind not wanting to... |
I'm making a small web application in Seaside. I have a login component, and after the user logs in I want to send along a cookie when the next component renders itself. Is there a way to get at the object handling the response so I can add something to the headers it will output?
I'm trying to avoid using WASession>>r... | In Seaside, you can indeed manipulate the HTTP response headers directly to add cookies without needing to perform a redirect. Instead of using `WASession>>redirectWithCookies`, you can access the response context of the current request.
Here’s how you can set a cookie directly within your login component after the us... | 7,165 | [
{
"from": "human",
"value": "I'm making a small web application in Seaside. I have a login component, and after the user logs in I want to send along a cookie when the next component renders itself. Is there a way to get at the object handling the response so I can add something to the headers it will outpu... |
I know how to tell Castle Windsor to resolve a reference from a factory's method using XML, but can I do it programmatically via the Container.AddComponent() interface? If not is there any other way to do it from code?
EDIT:
There seems to be some confusion so let me clarify, I am looking for a way to do the followin... | To configure Castle Windsor programmatically to resolve a reference from a factory's method similar to what you've done in XML, you need to utilize the `Facility` feature to add the `FactorySupportFacility`, and then register the components with the factory as needed.
Here's how you can achieve that:
1. **Add the `Fa... | 6,349 | [
{
"from": "human",
"value": "I know how to tell Castle Windsor to resolve a reference from a factory's method using XML, but can I do it programmatically via the Container.AddComponent() interface? If not is there any other way to do it from code?\nEDIT:\nThere seems to be some confusion so let me clarify... |
I have been looking for a way to utilize a simple markup language, or just plain HTML, when displaying text in WinForm applications. I would like to avoid embedding a web browser control since in most of the case I just want to highlight a single word or two in a sentence.
I have looked at using a RTFControl but I beli... | If you're working with WinForms and want to display text with simple formatting, such as highlighting words or changing fonts and sizes, you can use a `RichTextBox`. Although you mentioned that RTF might seem heavy, it is a suitable option for your needs and offers quite a bit of flexibility with formatting.
Here's a ... | 3,540 | [
{
"from": "human",
"value": "I have been looking for a way to utilize a simple markup language, or just plain HTML, when displaying text in WinForm applications. I would like to avoid embedding a web browser control since in most of the case I just want to highlight a single word or two in a sentence.\nI ha... |
I am just starting to play with Django/Python and am trying to shift into the MTV mode of programming that Django asks for (insists on). Deciding on what functions should be methods of a model vs simple being a function in a view has so far been confusing. Does anyone know of a book, website, blog, slideshow, whateve... | It's great to hear that you're diving into Django and the MTV (Model-Template-View) architecture! Understanding where to place your functions can indeed be a bit challenging when you're getting started with Django. Here are some resources that can help you grasp web framework programming concepts, particularly in Djang... | 5,007 | [
{
"from": "human",
"value": "I am just starting to play with Django/Python and am trying to shift into the MTV mode of programming that Django asks for (insists on). Deciding on what functions should be methods of a model vs simple being a function in a view has so far been confusing. Does anyone know of ... |
Basically I want to get the number of lines-of-code in the repository after each commit.
The only (really crappy) ways I have found is to use git filter-branch to run wc -l *, and a script that runs git reset --hard on each commit, then runs wc -l
To make it a bit clearer, when the tool is run, it would output the line... | To achieve your goal of counting lines of code in a Git repository after each commit, you can use a Ruby script that leverages Git commands directly instead of relying on a library that may not give you the desired results. One straightforward way to get the number of lines of code in each commit is to check out each c... | 4,459 | [
{
"from": "human",
"value": "Basically I want to get the number of lines-of-code in the repository after each commit.\nThe only (really crappy) ways I have found is to use git filter-branch to run wc -l *, and a script that runs git reset --hard on each commit, then runs wc -l\nTo make it a bit clearer, whe... |
I've only been using VS 2008 Team Foundation for a few weeks. Over the last few days, I've noticed that sometimes one of my objects/controls on my page just disappears from intellisense. The project builds perfectly and the objects are still in the HTML, but I still can't find the object.
Any one else notice this?
Edi... | It sounds like you've been experiencing a common issue with IntelliSense in Visual Studio, particularly with older versions like VS 2008. Here are a few things you can try to address the disappearing IntelliSense for controls or objects:
1. **Clean and Rebuild the Solution**: Sometimes, a simple clean and rebuild of t... | 4,872 | [
{
"from": "human",
"value": "I've only been using VS 2008 Team Foundation for a few weeks. Over the last few days, I've noticed that sometimes one of my objects/controls on my page just disappears from intellisense. The project builds perfectly and the objects are still in the HTML, but I still can't find t... |
For my own project at home, I'm using the rather excellent managed subversion hosting from CVSDude. As it's only me working on the code right now, I'm not using CruiseControl.net, however I expect this will change in the next couple of months and will want a full build process to kick off upon check-in.
Has anyone man... | Setting up CruiseControl.NET with CVSDude's post-commit callback is definitely a feasible task, and several users have successfully integrated these tools for continuous integration and build automation. Here’s a general outline of how you can achieve this:
### Step 1: Setup CruiseControl.NET
1. **Install CruiseContro... | 2,453 | [
{
"from": "human",
"value": "For my own project at home, I'm using the rather excellent managed subversion hosting from CVSDude. As it's only me working on the code right now, I'm not using CruiseControl.net, however I expect this will change in the next couple of months and will want a full build process ... |
So, you are all ready to do a big SVN Commit and it bombs because you have inconsistent line endings in some of your files. Fun part is, you're looking at 1,000s of files spanning dozens of folders of different depths.
What do you do?
| Dealing with inconsistent line endings in a large codebase can be frustrating, but there are several steps you can take to resolve the issue effectively. Here’s a structured approach to help you clean up the line endings before your SVN commit:
### Step 1: Identify the Problem
1. **Check for inconsistent line endings... | 4,242 | [
{
"from": "human",
"value": "So, you are all ready to do a big SVN Commit and it bombs because you have inconsistent line endings in some of your files. Fun part is, you're looking at 1,000s of files spanning dozens of folders of different depths.\nWhat do you do?\n"
},
{
"from": "gpt",
"value"... |
I was planning to use url routing for a Web Forms application. But, after reading some posts, I am not sure if it is an easy approach.
Is it better to use the URL Rewrite module for web forms? But, it is only for IIS7. Initially, there was some buzz that URL routing is totally decoupled from Asp.Net MVC and it could be... | When it comes to ASP.NET Web Forms, both URL Routing and the URL Rewrite module can be utilized to achieve cleaner URLs, but they have different implications and setups.
### URL Routing in ASP.NET Web Forms
1. **Integration**: URL Routing was introduced with ASP.NET 3.5 and allows you to define clean URLs within a We... | 6,092 | [
{
"from": "human",
"value": "I was planning to use url routing for a Web Forms application. But, after reading some posts, I am not sure if it is an easy approach.\nIs it better to use the URL Rewrite module for web forms? But, it is only for IIS7. Initially, there was some buzz that URL routing is totally ... |
When setting up a new virtual directory for hosting a SOAP web service in IIS 6.0 on a Server 2003 box I am required to set the access permissions for the virtual directory. The various permissions are to allow/disallow the following:
Read
Run scripts (such as ASP)
Execute (such as ISAPI or CGI)
Write
Browse
The SOA... | When configuring a virtual directory for a SOAP web service in IIS 6.0 on a Windows Server 2003 machine, you need to set the access permissions carefully to ensure both functionality and security.
For a SOAP web service, you typically will need the following permissions:
1. **Read**: This permission must be enabled ... | 2,008 | [
{
"from": "human",
"value": "When setting up a new virtual directory for hosting a SOAP web service in IIS 6.0 on a Server 2003 box I am required to set the access permissions for the virtual directory. The various permissions are to allow/disallow the following:\n\nRead\nRun scripts (such as ASP)\nExecute... |
Given an Oracle table created using the following:
CREATE TABLE Log(WhenAdded TIMESTAMP(6) WITH TIME ZONE);
Using the Python ODBC module from its Win32 extensions (from the win32all package), I tried the following:
import dbi, odbc
connection = odbc.odbc("Driver=Oracle in OraHome92;Dbq=SERVER;Uid=USER;Pwd=PASSWD")
c... | The error you are encountering, `ORA-00932: inconsistent datatypes: expected %s got %s`, suggests that there is an issue with the way the ODBC driver is handling the `TIMESTAMP WITH TIME ZONE` data type.
Here are some steps you can take to resolve this issue:
### 1. Use an Alternative Driver
If you are using an older... | 5,981 | [
{
"from": "human",
"value": "Given an Oracle table created using the following:\nCREATE TABLE Log(WhenAdded TIMESTAMP(6) WITH TIME ZONE);\n\nUsing the Python ODBC module from its Win32 extensions (from the win32all package), I tried the following:\nimport dbi, odbc\n\nconnection = odbc.odbc(\"Driver=Oracle ... |
What are the steps to estimating using function points?
Is there a quick-reference guide of some sort out there?
| Estimating using function points involves a structured approach to measure the functionality delivered by a software application. Here's a simplified step-by-step process:
### Steps to Estimate Using Function Points:
1. **Identify the Application Boundary:**
- Define what part of the system you will be measuring.
... | 4,387 | [
{
"from": "human",
"value": "What are the steps to estimating using function points?\nIs there a quick-reference guide of some sort out there?\n"
},
{
"from": "gpt",
"value": "Estimating using function points involves a structured approach to measure the functionality delivered by a software app... |
Will I have to pay again? I have about 9 months left before renewal but my current provider doesn't offer many options / control panels.
Update: thanks for everyone's help - I've finally completed this now.
I had to:
Ask my old registrar to "Unlock" the domain
Ask my old registrar to set the admin email address of the... | It sounds like you went through quite a process to transfer your domain! Typically, when you transfer a domain to a new registrar, you don’t have to pay for a full renewal if you have time left on your current registration. However, most registrars will add an additional year to your existing registration as part of th... | 9,170 | [
{
"from": "human",
"value": "Will I have to pay again? I have about 9 months left before renewal but my current provider doesn't offer many options / control panels.\nUpdate: thanks for everyone's help - I've finally completed this now.\nI had to:\n\nAsk my old registrar to \"Unlock\" the domain\nAsk my old... |
I'm looking for the best method to parse various XML documents using a Java application. I'm currently doing this with SAX and a custom content handler and it works great - zippy and stable.
I've decided to explore the option having the same program, that currently recieves a single format XML document, receive two a... | Your approach of using SAX with a custom content handler is indeed efficient for processing large XML documents, especially in scenarios where performance is crucial. Given your requirement to handle multiple XML formats dynamically, there are a few ways you can achieve this without having to refactor your entire appli... | 1,581 | [
{
"from": "human",
"value": "I'm looking for the best method to parse various XML documents using a Java application. I'm currently doing this with SAX and a custom content handler and it works great - zippy and stable. \nI've decided to explore the option having the same program, that currently recieves a... |
I've been tasked with the the maintenance of a nonprofit website that recently fell victim to a SQL injection attack. Someone exploited a form on the site to add text to every available text-like field in the database (varchar, nvarchar, etc.) which, when rendered as HTML, includes and executes a JavaScript file.
A Go... | To tackle the SQL injection issue you’re facing, you can construct an SQL query that systematically updates the affected text fields across all tables in your SQL Server database. Given that you've indicated the malicious text is always appended to the end of the text fields, you can use string manipulation functions t... | 3,604 | [
{
"from": "human",
"value": "I've been tasked with the the maintenance of a nonprofit website that recently fell victim to a SQL injection attack. Someone exploited a form on the site to add text to every available text-like field in the database (varchar, nvarchar, etc.) which, when rendered as HTML, inclu... |
I have a repeater that is bound to some data.
I bind to the ItemDataBound event, and I am attempting to programmatically create a UserControl:
In a nutshell:
void rptrTaskList_ItemDataBound(object sender, RepeaterItemEventArgs e)
{
CCTask task = (CCTask)e.Item.DataItem;
if (task is ExecTask)
{
Exec... | The issue you are experiencing is likely due to the timing of when you are adding the UserControl to the Repeater's item controls. When you're dealing with data binding in ASP.NET Web Forms, there are a few important points to consider about the control lifecycle.
Here's how to ensure that your `UserControl` is render... | 3,872 | [
{
"from": "human",
"value": "I have a repeater that is bound to some data.\nI bind to the ItemDataBound event, and I am attempting to programmatically create a UserControl:\nIn a nutshell:\nvoid rptrTaskList_ItemDataBound(object sender, RepeaterItemEventArgs e)\n{\n CCTask task = (CCTask)e.Item.DataItem;... |
Which approach do you all think is better?
| Could you please provide more context or specify the approaches you're referring to? That way, I can offer a more informed opinion! | 9,793 | [
{
"from": "human",
"value": "Which approach do you all think is better?\n"
},
{
"from": "gpt",
"value": "Could you please provide more context or specify the approaches you're referring to? That way, I can offer a more informed opinion!"
}
] |
I am converting from existing CVS repository to SVN repository. CVS repository has few brances and I'd like to rename branches while converting.
Wanted conversion is like this:
CVS branch SVN branch
HEAD -> branches/branchX
branchA -> trunk
branchB -> branches/branchB
branchC -> ... | To convert a CVS repository to an SVN repository while renaming branches and optionally ignoring certain branches, you can use `cvs2svn`, which is a tool specifically designed for this purpose. Below is a step-by-step guide on how to achieve the desired conversion:
### Prerequisites
1. **Install `cvs2svn`:** Make sur... | 2,339 | [
{
"from": "human",
"value": "I am converting from existing CVS repository to SVN repository. CVS repository has few brances and I'd like to rename branches while converting.\nWanted conversion is like this:\nCVS branch SVN branch\nHEAD -> branches/branchX\nbranchA -> trunk\nbranch... |
I need to take a Word document that is a template of sorts...collect user input to populate specific fields in that template..then generate a PDF file that includes the completed template as well as a few other document types. Does anyone have a good suggestion on a component to achieve this? Preferably one that does n... | For your requirement of taking a Word document template, collecting user input, and generating a PDF without needing Microsoft Office installed on the web server, here are a few suggestions you can consider:
1. **Docx4j**: This is an open-source Java library that allows you to create and manipulate Word documents (DOC... | 4,856 | [
{
"from": "human",
"value": "I need to take a Word document that is a template of sorts...collect user input to populate specific fields in that template..then generate a PDF file that includes the completed template as well as a few other document types. Does anyone have a good suggestion on a component to... |
My users use the site pretty equally 24/7. Is there a meme for build timing?
International audience, single cluster of servers on eastern time, but gets hit well into the morning, by international clients.
1 db, several web servers, so if no db, simple, whenever.
But when the site has to come down, when would you, as a... | When deciding on a build or maintenance window for a site that has a global audience and uses a single cluster of servers, it's essential to choose a time that minimizes disruption to users while considering the distribution of your traffic. Since you mentioned that your users are active around the clock, it might be c... | 5,940 | [
{
"from": "human",
"value": "My users use the site pretty equally 24/7. Is there a meme for build timing?\nInternational audience, single cluster of servers on eastern time, but gets hit well into the morning, by international clients.\n1 db, several web servers, so if no db, simple, whenever.\nBut when the... |
I'm desperately looking for cheap ways to lower the build times on my home PC. I just read an article about disabling the Last Access Time attribute of a file on Windows XP, so that simple reads don't write anything back to disk.
It's really simple too. At a DOS-prompt write:
fsutil behavior set disablelastaccess 1
H... | Disabling the Last Access Time attribute in Windows can indeed improve performance, especially for development workflows that involve a lot of file reads, such as building C++ projects. When Last Access Time is enabled, every time a file is read, the file system updates its metadata, which can result in unnecessary dis... | 5,950 | [
{
"from": "human",
"value": "I'm desperately looking for cheap ways to lower the build times on my home PC. I just read an article about disabling the Last Access Time attribute of a file on Windows XP, so that simple reads don't write anything back to disk.\n\nIt's really simple too. At a DOS-prompt write:... |
I had an idea, if I add a python .py file to my C# project, and tag the file with a custom generator that would execute the python file, and treat the output as the result of the code generation, ie. put it into a C# file, that would allow me to do quite a lot of code generation as part of the build process.
Does anyon... | While there isn’t a built-in feature in Visual Studio 2008 specifically for executing Python scripts as custom generators for code generation, you can create a custom MSBuild task or item template to achieve this functionality.
Here's a basic outline of how you could set this up:
### Step 1: Create a Python Script
Fi... | 5,236 | [
{
"from": "human",
"value": "I had an idea, if I add a python .py file to my C# project, and tag the file with a custom generator that would execute the python file, and treat the output as the result of the code generation, ie. put it into a C# file, that would allow me to do quite a lot of code generation... |
I have been using Eclipse as an IDE for a short amount of time (about 3 months of full use) and almost every day I learn about some shortcut or feature that I had absolutely no idea about. For instance, just today I learned that Ctrl+3 was the shortcut for a Quick Access window.
I was wondering what your most useful/f... | Eclipse is indeed a powerful IDE with a wealth of features and shortcuts that can greatly enhance your productivity. Here are some of the most useful and commonly used features, including shortcuts, that you might find helpful:
### 1. **Quick Access (Ctrl + 3)**
As you've discovered, this feature allows you to quic... | 2,785 | [
{
"from": "human",
"value": "I have been using Eclipse as an IDE for a short amount of time (about 3 months of full use) and almost every day I learn about some shortcut or feature that I had absolutely no idea about. For instance, just today I learned that Ctrl+3 was the shortcut for a Quick Access window... |
When you roll out changes to a live web site, how do you go about checking that the live system is working correctly? Which tools do you use? Who does it? Do you block access to the site for the testing period? What amount of downtime is acceptable?
| When rolling out changes to a live website, it is crucial to have a robust process in place to ensure everything is functioning correctly. Here’s a general approach:
### 1. Pre-Deployment Checks
- **Code Review**: Ensure thorough code reviews and automated testing (unit tests, integration tests) before deployment.
- *... | 5,074 | [
{
"from": "human",
"value": "When you roll out changes to a live web site, how do you go about checking that the live system is working correctly? Which tools do you use? Who does it? Do you block access to the site for the testing period? What amount of downtime is acceptable?\n"
},
{
"from": "... |
I notice that StackOverflow has a views count for each question and that these view numbers are fairly low and accurate.
I have a similar thing on one of my sites. It basically logs a "hit" whenever the page is loaded in the backend code. Unfortunately it also does this for search engine hits giving bloated and inaccu... | Indeed, counting page views can lead to inflated statistics if search engine crawlers are included in the count. Here are several methods to ensure more accurate view counts while still allowing search engines to crawl your site:
### 1. **User-Agent Filtering:**
One of the simplest methods is to filter out known user ... | 4,269 | [
{
"from": "human",
"value": "I notice that StackOverflow has a views count for each question and that these view numbers are fairly low and accurate. \nI have a similar thing on one of my sites. It basically logs a \"hit\" whenever the page is loaded in the backend code. Unfortunately it also does this for ... |
I'm not talking about tools that let one view a page in combinations of operating systems and browsers like crossbrowsertesting.com but in creating or figuring out the actual CSS.
| It sounds like you're looking for strategies and techniques to write CSS that ensures cross-browser compatibility, rather than tools for testing. Here are some best practices and methods you can use:
### 1. **Use CSS Resets or Normalize.css**
- Start your stylesheet with a CSS reset or the Normalize.css file to create... | 2,489 | [
{
"from": "human",
"value": "I'm not talking about tools that let one view a page in combinations of operating systems and browsers like crossbrowsertesting.com but in creating or figuring out the actual CSS.\n"
},
{
"from": "gpt",
"value": "It sounds like you're looking for strategies and techn... |
I am trying to set a ViewState-variable when a button is pressed, but it only works the second time I click the button. Here is the code-behind:
protected void Page_Load(object sender, EventArgs e)
{
if (Page.IsPostBack)
{
lblInfo.InnerText = String.Format("Hello {0} at {1}!", YourName, DateTime.Now.ToL... | The issue you are experiencing is due to the timing of when the `Page_Load` method runs in relation to the button click event. When you click the button, the sequence of events is as follows:
1. The `Page_Load` event is fired first, before the button's click event.
2. If the page is a postback (`Page.IsPostBack` is tr... | 6,774 | [
{
"from": "human",
"value": "I am trying to set a ViewState-variable when a button is pressed, but it only works the second time I click the button. Here is the code-behind:\nprotected void Page_Load(object sender, EventArgs e)\n{\n if (Page.IsPostBack)\n {\n lblInfo.InnerText = String.Format(\... |
earlier today someone asked about free/cheap component libraries for winforms. I'm interested in the same thing, but for asp.net. There are some great commercial libraries like Telerik and DevExpress, but are there any great free/cheap alternatives?
| Yes, there are several free and inexpensive component libraries for ASP.NET that you can consider. Here are some of the popular options:
### Free Libraries
1. **Bootstrap**:
- While not a component library specific to ASP.NET, Bootstrap is a front-end framework that can be easily integrated with ASP.NET projects t... | 5,775 | [
{
"from": "human",
"value": "earlier today someone asked about free/cheap component libraries for winforms. I'm interested in the same thing, but for asp.net. There are some great commercial libraries like Telerik and DevExpress, but are there any great free/cheap alternatives?\n"
},
{
"from": "gp... |
I'm really beginning to understand what people mean when they say that C++'s error messages are pretty terrible in regards to templates. I've seen horrendously long errors for things as simple as a function not matching its prototype.
Are there any tricks to deciphering these errors?
EDIT: I'm using both gcc and MSVC... | You're not alone in your frustration with C++ template error messages; they can indeed be quite daunting and verbose. Here are some tips and tricks that may help you decipher them more effectively:
1. **Focus on the Important Parts**: Template error messages often contain a lot of information, but the crucial part is ... | 4,294 | [
{
"from": "human",
"value": "I'm really beginning to understand what people mean when they say that C++'s error messages are pretty terrible in regards to templates. I've seen horrendously long errors for things as simple as a function not matching its prototype.\nAre there any tricks to deciphering these ... |
We are automating Excel using VB.Net, and trying to place multiple lines of text on an Excel worksheet that we can set to not print. Between these we would have printable reports.
We can do this if we add textbox objects, and set the print object setting to false. (If you have another way, please direct me)
The code to... | To position a textbox over a specific cell in Excel using VB.Net, you can convert the cell's dimensions to points. Each cell has a specific position (top-left corner) and size (width and height) that can be accessed through Excel's object model. You can use these properties to determine where to place the textbox.
Her... | 3,595 | [
{
"from": "human",
"value": "We are automating Excel using VB.Net, and trying to place multiple lines of text on an Excel worksheet that we can set to not print. Between these we would have printable reports.\nWe can do this if we add textbox objects, and set the print object setting to false. (If you have ... |
A GUI driven application needs to host some prebuilt WinForms based components.
These components provide high performance interactive views using a mixture of GDI+ and DirectX.
The views handle control input and display custom graphical renderings.
The components are tested in a WinForms harness by the supplier.
Can a ... | Using `WindowsFormsHost` to host WinForms components within a WPF application is a common practice and can generally work well, but there are several considerations to keep in mind, particularly when dealing with high-performance interactive views that use GDI+ and DirectX.
### Pros of Using WindowsFormsHost:
1. **Int... | 5,378 | [
{
"from": "human",
"value": "A GUI driven application needs to host some prebuilt WinForms based components.\nThese components provide high performance interactive views using a mixture of GDI+ and DirectX.\nThe views handle control input and display custom graphical renderings.\nThe components are tested i... |
I see that within MySQL there are Cast() and Convert() functions to create integers from values, but is there any way to check to see if a value is an integer? Something like is_int() in PHP is what I am looking for.
| In MySQL, there isn't a direct equivalent of PHP's `is_int()` function. However, you can check if a value is an integer using various approaches. Here are a couple of methods you can use to determine if a value is an integer:
### 1. Using the `CAST()` or `CONVERT()` Functions
You can compare the original value to its ... | 7,276 | [
{
"from": "human",
"value": "I see that within MySQL there are Cast() and Convert() functions to create integers from values, but is there any way to check to see if a value is an integer? Something like is_int() in PHP is what I am looking for.\n"
},
{
"from": "gpt",
"value": "In MySQL, there ... |
I need to copy files using Windows command-line (available on XP Pro or later by default) and show progress during the process.
The progress indicator could be in a terminal or a GUI window. It is intended to be used during batch file scripting.
| In Windows command line, copying files with a progress indicator can be achieved using the `robocopy` command, which is available by default in Windows Vista and later versions, including Windows XP Professional. While `robocopy` does not provide a direct GUI, it does display progress in the command-line window.
Here’... | 6,550 | [
{
"from": "human",
"value": "I need to copy files using Windows command-line (available on XP Pro or later by default) and show progress during the process.\nThe progress indicator could be in a terminal or a GUI window. It is intended to be used during batch file scripting.\n"
},
{
"from": "gpt",
... |
I am sketching the architecture for a set of programs that share various interrelated objects stored in a database. I want one of the programs to act as a service which provides a higher level interface for operations on these objects, and the other programs to access the objects through that service.
I am currently ai... | Yes, it is indeed possible to run a Python program as a Windows service. To achieve this, you will typically use the `pywin32` library, which provides the necessary tools to create and manage Windows services using Python. Below is a high-level overview of how to implement this, as well as answers to your questions reg... | 3,198 | [
{
"from": "human",
"value": "I am sketching the architecture for a set of programs that share various interrelated objects stored in a database. I want one of the programs to act as a service which provides a higher level interface for operations on these objects, and the other programs to access the object... |
How can I determine all of the assemblies that my .NET desktop application has loaded? I'd like to put them in the about box so I can query customers over the phone to determine what version of XYZ they have on their PC.
It would be nice to see both managed and unmanaged assemblies. I realize the list will get long b... | To determine all of the assemblies that your .NET desktop application has loaded, you can use the `AppDomain` class in the `System` namespace, which provides access to the assemblies loaded in your application domain. Here’s a step-by-step guide on how to retrieve this information for both managed and unmanaged assembl... | 3,478 | [
{
"from": "human",
"value": "How can I determine all of the assemblies that my .NET desktop application has loaded? I'd like to put them in the about box so I can query customers over the phone to determine what version of XYZ they have on their PC.\nIt would be nice to see both managed and unmanaged assem... |
I use TFS 2008. We run unit tests as part of our continuous integration build and integration tests nightly.
What other types of testing do you automate and include in your build process? what technologies do you use to do so?
I'm thinking about smoke tests, performance tests, load tests but don't know how realisti... | Integrating various types of automated tests into your build process is a great approach to ensuring the quality and reliability of your software. Since you're using TFS 2008, there are some considerations to keep in mind, but it is definitely feasible to implement additional testing types like smoke tests, performance... | 4,384 | [
{
"from": "human",
"value": "I use TFS 2008. We run unit tests as part of our continuous integration build and integration tests nightly.\nWhat other types of testing do you automate and include in your build process? what technologies do you use to do so? \nI'm thinking about smoke tests, performance te... |
Do you refactor your SQL first? Your architecture? or your code base?
Do you change languages? Do you throw everything away and start from scratch? [Not refactoring]
| When it comes to improving a software system, the approach can vary widely based on the specific context, needs, and the existing state of the system. Here’s a breakdown of various strategies:
### 1. **Refactoring SQL:**
- **When to do it:** If the performance issues or bugs are rooted in the database layer, then r... | 6,227 | [
{
"from": "human",
"value": "Do you refactor your SQL first? Your architecture? or your code base?\nDo you change languages? Do you throw everything away and start from scratch? [Not refactoring]\n"
},
{
"from": "gpt",
"value": "When it comes to improving a software system, the approach can vary... |
I'm trying to install 'quadrupel', a library that relies on ffmpeg on Solaris x86.
I managed to build ffmpeg and its libraries live in /opt/gnu/lib and the includes are in /opt/gnu/include but when I try to build quadrupel, it can't find the ffmpeg headers.
What flags/configuration is required to include those two dire... | To ensure that the `quadrupel` build process can find your custom installation of FFmpeg, you will need to specify the include and library paths when you invoke the build process. This typically involves setting `CPPFLAGS`, `LDFLAGS`, and possibly `PKG_CONFIG_PATH` if `quadrupel` uses pkg-config for dependency manageme... | 3,819 | [
{
"from": "human",
"value": "I'm trying to install 'quadrupel', a library that relies on ffmpeg on Solaris x86.\nI managed to build ffmpeg and its libraries live in /opt/gnu/lib and the includes are in /opt/gnu/include but when I try to build quadrupel, it can't find the ffmpeg headers.\nWhat flags/configur... |
Specifically getting on Windows the "..\Documents & Settings\All Users, basicaly any path that needs the front end to be dynamically derived based on the OS your software is running on. (Now I need the answer to this)
the current users My Documents dirctory (okay this has been answered)
and basicaly any path that ne... | When developing software for Windows, you often need to access system-specific directories. Instead of hardcoding paths, you can dynamically derive them based on the operating system. Below are some common examples of how to retrieve paths for various directories, including the current user's "My Documents" directory, ... | 5,391 | [
{
"from": "human",
"value": "\nSpecifically getting on Windows the \"..\\Documents & Settings\\All Users, basicaly any path that needs the front end to be dynamically derived based on the OS your software is running on. (Now I need the answer to this)\nthe current users My Documents dirctory (okay this has... |
I've got a site that provides blog-friendly widgets via JavaScript. These work fine in most circumstances, including self-hosted Wordpress blogs. With blogs hosted at Wordpress.com, however, JavaScript isn't allowed in sidebar text modules. Has anyone seen a workaround for this limitation?
| Yes, the limitation of not being able to use JavaScript in sidebar text modules on WordPress.com can be a hurdle for integrating widgets. However, there are a few potential workarounds you can consider:
1. **Use a Plugin**: If you're able to switch to a self-hosted WordPress site (WordPress.org), you can use plugins s... | 6,501 | [
{
"from": "human",
"value": "I've got a site that provides blog-friendly widgets via JavaScript. These work fine in most circumstances, including self-hosted Wordpress blogs. With blogs hosted at Wordpress.com, however, JavaScript isn't allowed in sidebar text modules. Has anyone seen a workaround for this ... |
I'm using a Visual Studio web setup project to install an application that extends the functionality of Project Server. I want to call a method from the PSI ( Project Server Interface ) from one of the custom actions of my setup project, but every time a get a "401 Unauthorized access" error. What should I do to be abl... | When you encounter a "401 Unauthorized" error while trying to access the Project Server Interface (PSI) from a custom action in a Visual Studio web setup project, the issue typically arises from the context in which the custom action is executed. Here are some steps and considerations to resolve the issue:
### 1. **Ru... | 3,316 | [
{
"from": "human",
"value": "I'm using a Visual Studio web setup project to install an application that extends the functionality of Project Server. I want to call a method from the PSI ( Project Server Interface ) from one of the custom actions of my setup project, but every time a get a \"401 Unauthorized... |
Outlook (2007 now) is my favorite mail client and I would like to keep using it for both private and work emails. But with my new work, I discovered (with horror) that we have to use Lotus Domino and Lotus Notes 6.5 as client.
Is it possible to get my Lotus mails inside Outlook while maintaining my private POP mails in... | It looks like you’re trying to integrate your Lotus Domino emails with Outlook 2007 while keeping your existing private POP mail in a PST file. You have a couple of options, especially since you've found that you can use the POP/SMTP ports to access your Lotus emails.
### Option 1: Using POP3/SMTP
Since you mentioned... | 6,303 | [
{
"from": "human",
"value": "Outlook (2007 now) is my favorite mail client and I would like to keep using it for both private and work emails. But with my new work, I discovered (with horror) that we have to use Lotus Domino and Lotus Notes 6.5 as client.\nIs it possible to get my Lotus mails inside Outlook... |
I'm developing a .NET 3.5 XBAP application that runs perfectly fine in FF3 and IE6/7 etc. I'm just wondering if its possible to get these to run under other browsers, specifically (as its in the limelight at the moment) Google Chrome.
| As of .NET 3.5 and the XBAP (XAML Browser Application) technology, it is important to note that XBAP applications are designed to run in Internet Explorer specifically because they rely on the .NET Framework and the integration of XAML with the browser.
Unfortunately, XBAP applications will not run in Google Chrome or... | 5,517 | [
{
"from": "human",
"value": "I'm developing a .NET 3.5 XBAP application that runs perfectly fine in FF3 and IE6/7 etc. I'm just wondering if its possible to get these to run under other browsers, specifically (as its in the limelight at the moment) Google Chrome.\n"
},
{
"from": "gpt",
"value": ... |
We have a fairly standard client/server application built using MS RPC. Both client and server are implemented in C++. The client establishes a session to the server, then makes repeated calls to it over a period of time before finally closing the session.
Periodically, however, especially under heavy load conditions, ... | The `RPC_S_NOTHING_TO_EXPORT` error code (1754) in MS RPC indicates that no interfaces are exported by the server that the client is trying to call. This can seem confusing, especially if the session was previously functioning correctly, as you've described.
### Understanding `RPC_S_NOTHING_TO_EXPORT`
1. **Context**:... | 4,958 | [
{
"from": "human",
"value": "We have a fairly standard client/server application built using MS RPC. Both client and server are implemented in C++. The client establishes a session to the server, then makes repeated calls to it over a period of time before finally closing the session.\nPeriodically, however... |
How do I find duplicate addresses in a database, or better stop people already when filling in the form ? I guess the earlier the better?
Is there any good way of abstracting street, postal code etc so that typos and simple attempts to get 2 registrations can be detected? like:
Quellenstrasse 66/11
Quellenstr. 66a-11... | Finding duplicate addresses in a database and preventing duplicate registrations during form submission can be challenging, especially given the variations in how addresses can be entered. Here are some strategies to effectively address this issue:
### 1. **Input Validation and Normalization:**
Implement front-end va... | 1,836 | [
{
"from": "human",
"value": "How do I find duplicate addresses in a database, or better stop people already when filling in the form ? I guess the earlier the better?\nIs there any good way of abstracting street, postal code etc so that typos and simple attempts to get 2 registrations can be detected? like:... |
I just started to learn Ruby and as a .Net developer, I'm wondering if I should just go straight ahead and use IronRuby, without trying some pure Ruby first.
What do you think? Will I be missing anything?
-- rauchy
| As a .NET developer, using IronRuby might seem appealing because it allows you to leverage your existing knowledge of the .NET ecosystem while learning Ruby. However, there are a few things to consider before jumping straight into IronRuby:
1. **Understanding Ruby Core**: Learning pure Ruby first will help you underst... | 6,959 | [
{
"from": "human",
"value": "I just started to learn Ruby and as a .Net developer, I'm wondering if I should just go straight ahead and use IronRuby, without trying some pure Ruby first.\nWhat do you think? Will I be missing anything?\n-- rauchy\n"
},
{
"from": "gpt",
"value": "As a .NET develop... |
Are there any utilities or browser plugins that let you easily switch the version of the Flash player that is being used?
| As of my last update in October 2023, Adobe Flash Player has been officially discontinued and is no longer supported by Adobe as of December 31, 2020. Major web browsers have also removed Flash support, making it impossible to run Flash content safely or effectively.
Due to the discontinuation and security concerns a... | 8,223 | [
{
"from": "human",
"value": "Are there any utilities or browser plugins that let you easily switch the version of the Flash player that is being used?\n"
},
{
"from": "gpt",
"value": "As of my last update in October 2023, Adobe Flash Player has been officially discontinued and is no longer suppo... |
Edit - New Question
Ok lets rephrase the question more generically.
Using reflection, is there a way to dynamically call at runtime a base class method that you may be overriding. You cannot use the 'base' keyword at compile time because you cannot be sure it exists. At runtime I want to list my ancestors methods and ... | To dynamically call the `Dispose` method of a base class in a C# class hierarchy at runtime, especially when the specific base class implementation might not be known at compile-time, you can indeed use reflection. Here is a strategy to achieve this:
1. **Finding the base class methods**: You can iterate through the h... | 3,679 | [
{
"from": "human",
"value": "Edit - New Question\nOk lets rephrase the question more generically. \nUsing reflection, is there a way to dynamically call at runtime a base class method that you may be overriding. You cannot use the 'base' keyword at compile time because you cannot be sure it exists. At runti... |
Is there a way to change the encoding used by the String(byte[]) constructor ?
In my own code I use String(byte[],String) to specify the encoding but I am using an external library that I cannot change.
String src = "with accents: é à";
byte[] bytes = src.getBytes("UTF-8");
System.out.println("UTF-8 decoded: "+new Stri... | When you use the `new String(byte[])` constructor without specifying an encoding, it defaults to the platform's default charset. Unfortunately, you cannot change the default encoding at runtime for the `String(byte[])` constructor in a way that would affect external libraries.
The default charset is typically set base... | 6,234 | [
{
"from": "human",
"value": "Is there a way to change the encoding used by the String(byte[]) constructor ?\nIn my own code I use String(byte[],String) to specify the encoding but I am using an external library that I cannot change.\nString src = \"with accents: é à\";\nbyte[] bytes = src.getBytes(\"UTF-8\"... |
How do I cast an int to an enum in C#?
| In C#, you can cast an integer to an enum type using a simple cast operation. Here’s how you can do it:
First, let's define an enum for demonstration purposes:
```csharp
public enum MyEnum
{
FirstValue = 1,
SecondValue = 2,
ThirdValue = 3
}
```
To cast an integer to this enum, you can simply use a cast:
... | 5,988 | [
{
"from": "human",
"value": "How do I cast an int to an enum in C#?\n"
},
{
"from": "gpt",
"value": "In C#, you can cast an integer to an enum type using a simple cast operation. Here’s how you can do it:\n\nFirst, let's define an enum for demonstration purposes:\n\n```csharp\npublic enum MyEnum... |
I am using Firefox 3 to debug my ASP.NET applications in Visual Studio 2008. How can I configure either FF3 or VS2008 so that when I 'x' out of Firefox I don't have to hit the stop debugging button in Visual Studio? (The behavior you get with IE)
| In Visual Studio 2008, when you are debugging an ASP.NET application using Firefox, the default behavior is that closing the Firefox window does not stop the debugging session automatically, unlike with Internet Explorer. This can be a bit inconvenient when working with Firefox. However, you can adjust the settings in ... | 5,413 | [
{
"from": "human",
"value": "I am using Firefox 3 to debug my ASP.NET applications in Visual Studio 2008. How can I configure either FF3 or VS2008 so that when I 'x' out of Firefox I don't have to hit the stop debugging button in Visual Studio? (The behavior you get with IE)\n"
},
{
"from": "gpt",
... |
Situation:
I have a simple XML document that contains image information. I need to transform it into HTML. However, I can't see where the open tag is and when I use the XSL code below, it shows the following error message:
"Cannot write an attribute node when no element start tag is open."
XML content:
<root>
<H... | The error you're encountering, "Cannot write an attribute node when no element start tag is open," occurs because the XSLT processor is trying to create attributes for an `<img>` element while it isn't properly formatted as an HTML `<img>` tag. In HTML, an `<img>` tag is a self-closing tag and does not contain any chil... | 4,540 | [
{
"from": "human",
"value": "Situation:\nI have a simple XML document that contains image information. I need to transform it into HTML. However, I can't see where the open tag is and when I use the XSL code below, it shows the following error message: \n\n\"Cannot write an attribute node when no element st... |
The following bit of code catches the EOS Exception
using (var reader = new BinaryReader(httpRequestBodyStream)) {
try {
while (true) {
bodyByteList.Add(reader.ReadByte());
}
} catch (EndOfStreamException) { }
}
So why do I still receive first-chance exceptions in my console?
A f... | The reason you are still seeing the first-chance exceptions in your console, even though you are handling the `EndOfStreamException` in your code, is because of how first-chance exceptions work in .NET. First-chance exceptions occur when an exception is thrown, regardless of whether it is caught or not. In your case, t... | 5,363 | [
{
"from": "human",
"value": "The following bit of code catches the EOS Exception\nusing (var reader = new BinaryReader(httpRequestBodyStream)) {\n\n try {\n while (true) {\n bodyByteList.Add(reader.ReadByte());\n }\n } catch (EndOfStreamException) { }\n}\n\nSo why do I still r... |
I'm using ColdFusion to return a result set from a SQL database and turn it into a list.
I need some way to generate an alphabetical navigation bar for that list. I have ColdFusion and the jQuery library available.
I'm looking to generate something like this:
A | B | C | ...
- A
- A
- B
- B
- B
- C
- D
Where cl... | To create an alphabetical navigation bar in ColdFusion that allows users to jump to sections of a list based on the initial letter, you can follow these steps:
1. **Retrieve Data from the Database**: Get your data from the database and group it by the first letter of each item.
2. **Build the Navigation Bar**: Create... | 842 | [
{
"from": "human",
"value": "I'm using ColdFusion to return a result set from a SQL database and turn it into a list.\nI need some way to generate an alphabetical navigation bar for that list. I have ColdFusion and the jQuery library available.\nI'm looking to generate something like this:\nA | B | C | ...... |
The Recent Projects panel on the Start Page of VS2008 Professional doesn't appear to work, and constantly remains empty.
I've noticed this on 3 of our developers VS2008 installations, in fact all the installations that weren't updated from 2005 but installed from scratch. I generally treat this as a bit of a curiosity,... | The issue with the Recent Projects panel on the Start Page of Visual Studio 2008 not displaying any projects can be frustrating. Since you've already checked the setting for "Items shown in recently used lists" and it’s set correctly, here are a few other suggestions to troubleshoot the problem:
1. **Check Registry Se... | 5,149 | [
{
"from": "human",
"value": "The Recent Projects panel on the Start Page of VS2008 Professional doesn't appear to work, and constantly remains empty.\nI've noticed this on 3 of our developers VS2008 installations, in fact all the installations that weren't updated from 2005 but installed from scratch. I gen... |
i have created a workflow activity that do give the item creater of a specific list full control on the item and set everyone else to read only access (permission)
someone told me that doing it this way (if i have a lot of users) the performance will go down dramatically
is that correct ?!!
if yes what is the best so... | Yes, modifying permissions dynamically for a large number of users can impact performance, especially if these operations are frequent or if your SharePoint environment has many lists and complex permission structures. Changing permissions for each item can lead to increased overhead and may affect the responsiveness o... | 4,879 | [
{
"from": "human",
"value": "i have created a workflow activity that do give the item creater of a specific list full control on the item and set everyone else to read only access (permission) \nsomeone told me that doing it this way (if i have a lot of users) the performance will go down dramatically \nis ... |
How do you set the Windows time zone on the local machine programmatically in C#? Using an interactive tool is not an option because the remote units have no user interface or users. The remote machine is running .NET 2.0 and Windows XP Embedded and a local app that communicates with a central server (via web service... | To programmatically set the Windows time zone on a local machine running .NET 2.0 and Windows XP Embedded, you can use P/Invoke to call the Windows API function `SetTimeZoneInformation`. Here’s how you can do that in C#:
### Step 1: Define the Required Structures and Methods
You need to define a structure to hold the... | 4,953 | [
{
"from": "human",
"value": "How do you set the Windows time zone on the local machine programmatically in C#? Using an interactive tool is not an option because the remote units have no user interface or users. The remote machine is running .NET 2.0 and Windows XP Embedded and a local app that communicat... |
I'd like to bind a configuration file to my executable. I'd like to do this by storing an MD5 hash of the file inside the executable. This should keep anyone but the executable from modifying the file.
Essentially if someone modifies this file outside of the program the program should fail to load it again.
EDIT: The p... | To bind a configuration file to your executable using an MD5 hash for integrity checking while allowing the configuration file to be editable, you can follow a strategy where you calculate the hash of the configuration file and store that hash within the executable. This way, upon loading the configuration file, the ex... | 2,805 | [
{
"from": "human",
"value": "I'd like to bind a configuration file to my executable. I'd like to do this by storing an MD5 hash of the file inside the executable. This should keep anyone but the executable from modifying the file.\nEssentially if someone modifies this file outside of the program the program... |
I have an existing GUI application that should have been implemented as a service. Basically, I need to be able to remotely log onto and off of the Windows 2003 server and still keep this program running.
Is this even possible?
EDIT: Further refinement here... I do not have the source, it's not my application.
| Running a GUI application as a service on Windows Server 2003 can be a challenge, especially if you don't have access to the source code of the application. Typically, Windows services do not have a user interface and run in a different session than user logins, which means they cannot interact with a desktop session d... | 6,224 | [
{
"from": "human",
"value": "I have an existing GUI application that should have been implemented as a service. Basically, I need to be able to remotely log onto and off of the Windows 2003 server and still keep this program running.\nIs this even possible?\nEDIT: Further refinement here... I do not have th... |
I'm writing a web page in ASP.NET. I have some JavaScript code, and I have a submit button with a click event.
Is it possible to call a method I created in ASP with JavaScript's click event?
| Yes, you can call a server-side method in ASP.NET from a JavaScript click event, but it requires some setup because JavaScript runs on the client side while ASP.NET code runs on the server side. There are several common methods to achieve this:
### 1. **Using AJAX**
You can use AJAX to call a server-side method withou... | 2,552 | [
{
"from": "human",
"value": "I'm writing a web page in ASP.NET. I have some JavaScript code, and I have a submit button with a click event.\nIs it possible to call a method I created in ASP with JavaScript's click event?\n"
},
{
"from": "gpt",
"value": "Yes, you can call a server-side method in ... |
I thought jQuery Intellisense was supposed to be improved with SP1. I even downloaded an annotated version of jQuery 1.2.6, but intellisense will not work in a separate jscript file. I have the jQuery library referenced first on my web page in the <head> tag. Am I doing anything wrong?
| It sounds like you're having issues with jQuery Intellisense in your JavaScript files while using Visual Studio. Here are a few things to check that might help you resolve this problem:
1. **File Extension**: Ensure that your script file has the correct file extension, typically `.js`. Intellisense may not work proper... | 5,412 | [
{
"from": "human",
"value": "I thought jQuery Intellisense was supposed to be improved with SP1. I even downloaded an annotated version of jQuery 1.2.6, but intellisense will not work in a separate jscript file. I have the jQuery library referenced first on my web page in the <head> tag. Am I doing anything... |
When I try to compile code on VS 2005 and it fails, the line which causes the error gets underlined blue, and mouse-hovering over it displays the error message. Fine, but you can't see object types or whatever, because Intellisense will show the error message, and not object info.
In this image, I wanted to see what ty... | In Visual Studio 2005, the behavior of IntelliSense can indeed be frustrating when you're trying to obtain type information while also dealing with compilation errors. Here are a few strategies to work around this issue:
1. **Use the Object Browser**: Instead of relying solely on IntelliSense, you can use the Object B... | 7,236 | [
{
"from": "human",
"value": "When I try to compile code on VS 2005 and it fails, the line which causes the error gets underlined blue, and mouse-hovering over it displays the error message. Fine, but you can't see object types or whatever, because Intellisense will show the error message, and not object inf... |
Is there a way to combine Enums in VB.net?
| In VB.NET, you cannot directly combine Enum values like you might do with flags in other programming languages. However, you can achieve similar functionality by using the `Flags` attribute, which allows you to define an Enum such that its values can be combined using bitwise operations.
Here's how to define and use a... | 5,875 | [
{
"from": "human",
"value": "Is there a way to combine Enums in VB.net?\n"
},
{
"from": "gpt",
"value": "In VB.NET, you cannot directly combine Enum values like you might do with flags in other programming languages. However, you can achieve similar functionality by using the `Flags` attribute, ... |
Has anyone used both FogBugz and Axosoft's OnTime and care to offer an opinion? AxoSoft has a big feature comparison chart but I'm also interested in more subjective thoughts on things like ease of use and stability.
| While I can't provide personal opinions or experiences, I can summarize some common feedback regarding FogBugz and Axosoft's OnTime based on user reviews and general insights available up to 2023.
### FogBugz
**Pros:**
- **User-Friendly Interface**: Many users find FogBugz to have an intuitive and straightforward inte... | 5,712 | [
{
"from": "human",
"value": "Has anyone used both FogBugz and Axosoft's OnTime and care to offer an opinion? AxoSoft has a big feature comparison chart but I'm also interested in more subjective thoughts on things like ease of use and stability.\n"
},
{
"from": "gpt",
"value": "While I can't pr... |
In my second year of University we were "taught" Haskell, I know almost nothing about it and even less about functional programming.
What is functional programming, why and/xor where would I want to use it instead of non-functional programming and am I correct in thinking that C is a non-functional programming language... | Functional programming (FP) is a programming paradigm centered around the use of functions to create and manipulate data. It treats computation as the evaluation of mathematical functions and avoids changing-state and mutable data, emphasizing the application of functions to arguments.
Here are some key characteristic... | 5,417 | [
{
"from": "human",
"value": "In my second year of University we were \"taught\" Haskell, I know almost nothing about it and even less about functional programming.\nWhat is functional programming, why and/xor where would I want to use it instead of non-functional programming and am I correct in thinking tha... |
Two years ago, we shipped a multi-gigabyte Windows application, with lots of video files. Now we're looking to release a significant update, with approximately 1 gigabyte of new and changed data.
We're currently looking at DVD fulfillment houses (like these folks, for example), which claim to be able to ship DVDs to ou... | When dealing with a significant update to a multi-gigabyte application, it's important to weigh the options carefully, especially considering both physical and digital fulfillment methods. Here are some suggestions and considerations based on your requirements:
### DVD Fulfillment Houses
1. **Cost**: Many DVD fulfillm... | 5,755 | [
{
"from": "human",
"value": "Two years ago, we shipped a multi-gigabyte Windows application, with lots of video files. Now we're looking to release a significant update, with approximately 1 gigabyte of new and changed data.\nWe're currently looking at DVD fulfillment houses (like these folks, for example),... |
I have a couple of questions regarding VBScript and ASP Classic:
What is the preferred way to access an MS SQL Server database in VBScript/ASP?
What are best practices in regards to separating model from view from controller?
Any other things I should know about either VBScript or ASP?
If you haven't noticed, I'm new... | Welcome to the world of VBScript and ASP Classic! Here are some pointers and best practices to help you get started:
### 1. Preferred Way to Access an MS SQL Server Database in VBScript/ASP
In classic ASP, the most common way to connect to a Microsoft SQL Server database is by using ADO (ActiveX Data Objects). Here's... | 2,562 | [
{
"from": "human",
"value": "I have a couple of questions regarding VBScript and ASP Classic:\n\nWhat is the preferred way to access an MS SQL Server database in VBScript/ASP?\nWhat are best practices in regards to separating model from view from controller?\nAny other things I should know about either VBSc... |
Watching SO come online has been quite an education for me. I'd like to make a checklist of various vunerabilities and exploits used against web sites, and what programming techniques can be used to defend against them.
What categories of vunerabilities?
crashing site
breaking into server
breaking into other peopl... | Creating a checklist of vulnerabilities and corresponding defensive programming techniques is a great way to enhance your understanding of web security. Below is a categorized list of common vulnerabilities and techniques that can be used to defend against them:
### Categories of Vulnerabilities
1. **Injection Vulner... | 2,406 | [
{
"from": "human",
"value": "Watching SO come online has been quite an education for me. I'd like to make a checklist of various vunerabilities and exploits used against web sites, and what programming techniques can be used to defend against them.\n\nWhat categories of vunerabilities?\n\n\ncrashing site\... |
I'm on a little quest of merging the structure of two MySql databases. Is there a tool for this with the might of Red-Gate's SQL Compare? Are there any free alternatives?
| Yes, there are several tools that can help you merge the structure of two MySQL databases, similar to how Redgate's SQL Compare works for SQL Server. Here are some options, including both commercial and free alternatives:
### Commercial Tools:
1. **dbForge Studio for MySQL**: This is a powerful IDE that includes a dat... | 3,838 | [
{
"from": "human",
"value": "I'm on a little quest of merging the structure of two MySql databases. Is there a tool for this with the might of Red-Gate's SQL Compare? Are there any free alternatives?\n"
},
{
"from": "gpt",
"value": "Yes, there are several tools that can help you merge the struct... |
When working on ASP.NET 1.1 projects I always used the Global.asax to catch all errors. I'm looking for a similar way to catch all exceptions in a Windows Forms user control, which ends up being a hosted IE control. What is the proper way to go about doing something like this?
| In a Windows Forms application, there isn't a built-in global exception handler analogous to the Global.asax file in ASP.NET. However, you can achieve similar functionality by handling exceptions at different levels of your application.
### 1. Application-Level Exception Handling
You can catch unhandled exceptions fo... | 2,485 | [
{
"from": "human",
"value": "When working on ASP.NET 1.1 projects I always used the Global.asax to catch all errors. I'm looking for a similar way to catch all exceptions in a Windows Forms user control, which ends up being a hosted IE control. What is the proper way to go about doing something like this?\n... |
I'm wondering if it's a good idea to make verifications in getters and setters, or elsewhere in the code.
This might surprise you be when it comes to optimizations and speeding up the code, I think you should not make verifications in getters and setters, but in the code where you're updating your files or database. Am... | You're not wrong, and your perspective on when and where to place verification logic in your code is a common one. The decision on whether to put verification checks in getters and setters, or elsewhere, depends on several factors, including the design of your application, the complexity of your data, and your specific... | 2,469 | [
{
"from": "human",
"value": "I'm wondering if it's a good idea to make verifications in getters and setters, or elsewhere in the code.\nThis might surprise you be when it comes to optimizations and speeding up the code, I think you should not make verifications in getters and setters, but in the code where ... |
I'm using the RxTx library over usbserial on a Linux distro. The RxTx lib seems to behave quite differently (in a bad way) than how it works over serial.
My application has several threads and one of my biggest problems is that out of nowhere, I seem to be getting one to two extra bytes on my stream. I can't figure... | When working with the RxTx library over USB serial on a Linux system, especially in a multi-threaded environment, it's crucial to consider how threading impacts data handling and synchronization. Here are some points to consider when deciding whether to process reads on the current RxTx thread or in another thread upon... | 4,367 | [
{
"from": "human",
"value": "I'm using the RxTx library over usbserial on a Linux distro. The RxTx lib seems to behave quite differently (in a bad way) than how it works over serial. \nMy application has several threads and one of my biggest problems is that out of nowhere, I seem to be getting one to two... |
I am a developer. An architect on good days. Somehow I find myself also being the DBA for my small company. My background is fair in the DB arts but I have never been a full fledged DBA. My question is what do I have to do to ensure a realiable and reasonably functional database environment with as little actual ef... | Managing a database can be daunting, especially when you’re juggling multiple roles. To ensure a reliable and functional database environment with minimal effort, here are key practices to follow:
### 1. **Automate Backups**
- **Backup Scheduling:** Ensure that backups are automated and run regularly (daily or week... | 4,220 | [
{
"from": "human",
"value": "I am a developer. An architect on good days. Somehow I find myself also being the DBA for my small company. My background is fair in the DB arts but I have never been a full fledged DBA. My question is what do I have to do to ensure a realiable and reasonably functional data... |
Usually Flash and Flex applications are embedded on in HTML using either a combination of object and embed tags, or more commonly using JavaScript. However, if you link directly to a SWF file it will open in the browser window and without looking in the address bar you can't tell that it wasn't embedded in HTML with th... | Linking directly to a SWF file has both upsides and downsides. Here’s a more comprehensive overview:
### Upsides of Linking Directly to a SWF File:
1. **Simplicity**: The most obvious advantage is simplicity. You can point directly to the SWF file without needing to deal with the overhead of HTML, JavaScript, or CSS.... | 6,474 | [
{
"from": "human",
"value": "Usually Flash and Flex applications are embedded on in HTML using either a combination of object and embed tags, or more commonly using JavaScript. However, if you link directly to a SWF file it will open in the browser window and without looking in the address bar you can't tel... |
Before I start, I know there is this post and it doesn't answer my question: How to generate getters and setters in Visual Studio?
In Visual Studio 2008 there is the ability to auto generate getters and setters (accessors) by right clicking on a private variable -> Refactor -> Encapsulate Field...
This is great for a c... | As of Visual Studio 2008, there isn’t a built-in feature that allows you to automatically generate getters and setters for all private fields in a class with a single click, similar to what you would find in Eclipse. However, there are a few workarounds and options that you can consider to speed up the process:
### 1.... | 3,796 | [
{
"from": "human",
"value": "Before I start, I know there is this post and it doesn't answer my question: How to generate getters and setters in Visual Studio?\nIn Visual Studio 2008 there is the ability to auto generate getters and setters (accessors) by right clicking on a private variable -> Refactor -> ... |
In the project I am currently working on, we have the need to develop a web chat application, not a very complex chat, just a way to connect two people to talk about a very specific topic, we don't need any kind of authentication for one of the two users, we don't have to support emoticons, avatars, or stuff like that.... | Building a simple web chat application can indeed be done in various ways, and each approach has its own pros and cons. Given your description, here are a few potential solutions:
### 1. **Using WebSockets**
WebSockets are designed for real-time communication and are generally more efficient than polling. This method ... | 5,231 | [
{
"from": "human",
"value": "In the project I am currently working on, we have the need to develop a web chat application, not a very complex chat, just a way to connect two people to talk about a very specific topic, we don't need any kind of authentication for one of the two users, we don't have to suppor... |
As part of our product release we ship Apache HTTP Server binaries that we have compiled on our (UNIX) development machine.
We tell our clients to install the binaries (on their UNIX servers) under the same directory structure that we compiled it under. For some clients this is not appropriate, e.g. where there are res... | Compiling the Apache HTTP Server (httpd) to support dynamic installation paths can be a challenge, primarily because certain paths are indeed hardcoded during the compilation process. However, you can take some steps to achieve a more portable installation by using environment variables and configuration options.
Here... | 4,728 | [
{
"from": "human",
"value": "As part of our product release we ship Apache HTTP Server binaries that we have compiled on our (UNIX) development machine.\nWe tell our clients to install the binaries (on their UNIX servers) under the same directory structure that we compiled it under. For some clients this is... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.