instruction stringlengths 14 27.6k | completion stringlengths 3 38.3k | __original_row_idx int64 0 50k | conversations listlengths 2 2 |
|---|---|---|---|
If you had to provide a wizard like form entry experience in mvc how would you abstract the page flow?
| Creating a wizard-like form entry experience in an MVC (Model-View-Controller) application involves managing state between multiple steps while providing a smooth user interface for users to navigate through the process. Here's a way to abstract the page flow for such a wizard using a combination of models, views, and ... | 275 | [
{
"from": "human",
"value": "If you had to provide a wizard like form entry experience in mvc how would you abstract the page flow?\n"
},
{
"from": "gpt",
"value": "Creating a wizard-like form entry experience in an MVC (Model-View-Controller) application involves managing state between multiple... |
I'm trying to install some Ruby Gems so I can use Ruby to notify me when I get twitter messages. However, after doing a gem update --system, I now get a zlib error every time I try and do a gem install of anything. below is the console output I get when trying to install ruby gems. (along with the output from gem envir... | The `Zlib::BufError` you're encountering usually indicates that there's an issue with the installation of the RubyGems library or the Zlib library itself. Here are a few steps you can take to troubleshoot and fix the problem:
### 1. Reinstall Ruby
The easiest way to fix issues with Ruby and RubyGems is often to reins... | 1,688 | [
{
"from": "human",
"value": "I'm trying to install some Ruby Gems so I can use Ruby to notify me when I get twitter messages. However, after doing a gem update --system, I now get a zlib error every time I try and do a gem install of anything. below is the console output I get when trying to install ruby ge... |
When developing a desktop application in .NET, is it possible to not require the .NET Framework? Is developing software in .NET a preferred way to develop desktop applications? What is the most used programming language that software companies use to develop desktop applications?
Is the requirement of the .NET Framew... | When developing a desktop application in .NET, it's important to understand the relationship between the .NET Framework (or .NET Core/.NET 5 and later) and the deployment of your application.
### 1. **Is it possible to not require the .NET Framework?**
- **Using .NET Core/.NET 5 and later:** With .NET Core and .NET 5+... | 1,493 | [
{
"from": "human",
"value": "When developing a desktop application in .NET, is it possible to not require the .NET Framework? Is developing software in .NET a preferred way to develop desktop applications? What is the most used programming language that software companies use to develop desktop applicatio... |
I want to bring up a file dialog in Java that defaults to the application installation directory.
What's the best way to get that information programmatically?
| To get the application installation directory in Java, you can typically use the `System.getProperty` method to retrieve the location of the user's working directory or the classpath. However, the best approach might vary depending on the context of your application (e.g., if it's a standalone application, a web applic... | 1,749 | [
{
"from": "human",
"value": "I want to bring up a file dialog in Java that defaults to the application installation directory.\nWhat's the best way to get that information programmatically?\n"
},
{
"from": "gpt",
"value": "To get the application installation directory in Java, you can typically ... |
I've just started using Linq to SQL, and I'm wondering if anyone has any best practices they can share for managing dbml files.
How do you keep them up to date with the database?
Do you have a single dbml file for the entire database, or is it split into multiple logical units?
How does managing this file work in a ... | Using LINQ to SQL can streamline the data access layer in your .NET applications, but managing `.dbml` files effectively is crucial for a smooth development experience. Here are some best practices for managing `.dbml` files:
### 1. Keeping `.dbml` Files Up to Date
- **Automate Synchronization**: Consider using tools ... | 681 | [
{
"from": "human",
"value": "I've just started using Linq to SQL, and I'm wondering if anyone has any best practices they can share for managing dbml files.\n\nHow do you keep them up to date with the database?\nDo you have a single dbml file for the entire database, or is it split into multiple logical uni... |
Friend of mine has a problem :).
There is an application written in Visual Basic 6.0 (not by him).
One of users reported that when it run on Windows 2000 and tried to scan folders on disk it raised box with message:
Run-time error 1012 Error accessing application data directories
We couldn't google anything about it an... | The "Run-time error 1012" in Visual Basic 6.0 typically isn't a common error, as you've discovered while searching for it. However, it's important to approach troubleshooting systematically, especially since the issue occurs in a specific environment (Windows 2000) and under specific circumstances (when attempting to s... | 979 | [
{
"from": "human",
"value": "Friend of mine has a problem :).\nThere is an application written in Visual Basic 6.0 (not by him).\nOne of users reported that when it run on Windows 2000 and tried to scan folders on disk it raised box with message:\nRun-time error 1012 Error accessing application data directo... |
Does anyone know a tool for Profiling JavaScript in IE?
List available:
IE8 (Internet Explorer 8 only)
JavaScript Profiler
YUI!
| Profiling JavaScript in Internet Explorer, especially older versions like IE8, can be challenging due to the limited tools available compared to modern browsers. However, here are some options for profiling JavaScript in IE8:
1. **Built-in Developer Tools**:
- IE8 includes a basic set of developer tools that can h... | 2,653 | [
{
"from": "human",
"value": "Does anyone know a tool for Profiling JavaScript in IE?\nList available:\n\nIE8 (Internet Explorer 8 only)\nJavaScript Profiler\nYUI!\n\n"
},
{
"from": "gpt",
"value": "Profiling JavaScript in Internet Explorer, especially older versions like IE8, can be challenging ... |
What's the best way to close the loop and have a desktop app "call home" with customer feedback? Right now our code will login to our SMTP server and send me some email.
| Closing the loop for customer feedback in a desktop application is crucial for understanding user experience and improving your product. While sending an email through SMTP is one method, there are several other effective approaches you can consider that can streamline the process and improve data collection. Here are ... | 994 | [
{
"from": "human",
"value": "What's the best way to close the loop and have a desktop app \"call home\" with customer feedback? Right now our code will login to our SMTP server and send me some email.\n"
},
{
"from": "gpt",
"value": "Closing the loop for customer feedback in a desktop applicati... |
Since you can use reflector to reverse-engineer a .Net app, is there any reason to NOT ship the pdb files with the app? If you do ship them with it, then your stack trace will include the line number with the problem, which is useful if it crashes.
Please only enter 1 reason per comment for voting.
| One reason to not ship PDB files with the app is that they may expose sensitive information about the application's logic and internal workings, making it easier for malicious actors to exploit vulnerabilities. | 5,195 | [
{
"from": "human",
"value": "Since you can use reflector to reverse-engineer a .Net app, is there any reason to NOT ship the pdb files with the app? If you do ship them with it, then your stack trace will include the line number with the problem, which is useful if it crashes.\nPlease only enter 1 reason pe... |
I'm looking for some examples or samples of routing for the following sort of scenario:
The general example of doing things is: {controller}/{action}/{id}
So in the scenario of doing a product search for a store you'd have:
public class ProductsController: Controller
{
public ActionResult Search(string id) // id be... | To achieve a URL routing scheme that allows you to have a structure like `{category}/{controller}/{action}/{id}`, while maintaining the ability to execute different search methods based on the category, you can use ASP.NET's routing features effectively.
### Step 1: Define Custom Routes
In your `RouteConfig.cs` file,... | 525 | [
{
"from": "human",
"value": "I'm looking for some examples or samples of routing for the following sort of scenario:\nThe general example of doing things is: {controller}/{action}/{id}\nSo in the scenario of doing a product search for a store you'd have:\npublic class ProductsController: Controller\n{\n ... |
I have been working with Visual Studio (WinForm and ASP.NET applications using mostly C#) for several months now. For the most part my IDE is set up fairly standard but I have been wondering what are some suggestions in terms of plugins/settings that you find to be the most useful?
Update: Thanks for all the great sug... | It's great to see you're exploring ways to enhance your Visual Studio environment! Here are some additional suggestions and tools, both free and paid, that can improve your productivity and make your development experience smoother.
### Additional Plugins & Extensions
1. **Visual Studio Marketplace**: Don't forget to... | 307 | [
{
"from": "human",
"value": "I have been working with Visual Studio (WinForm and ASP.NET applications using mostly C#) for several months now. For the most part my IDE is set up fairly standard but I have been wondering what are some suggestions in terms of plugins/settings that you find to be the most use... |
The IE Developer Toolbar is a plugin that can dock or separate from the browser. I understand its much more difficult to do this in IE than in Firefox.
How does one create an IE plugin?
What languages are available for this task?
How can I make a Hello World plugin?
| Creating a plugin for Internet Explorer (IE) can be quite complex compared to developing extensions for other browsers like Firefox or Chrome due to the architecture and design of IE. However, it is possible to create a plugin using COM (Component Object Model) technology. Below are the steps and information needed to ... | 1,244 | [
{
"from": "human",
"value": "The IE Developer Toolbar is a plugin that can dock or separate from the browser. I understand its much more difficult to do this in IE than in Firefox.\n\nHow does one create an IE plugin?\nWhat languages are available for this task?\nHow can I make a Hello World plugin?\n\n"
... |
I am working on a new project. Is there any benefit with going with a WCF web service over a regular old fashion web service?
Visual Studio offers templates for both. What are the differences? Pros and cons?
| When considering whether to use WCF (Windows Communication Foundation) web services versus traditional ASMX (Active Server Methods XML) web services, there are several differences, benefits, and drawbacks to weigh. Here’s a breakdown to help you make an informed decision:
### WCF (Windows Communication Foundation)
**... | 1,211 | [
{
"from": "human",
"value": "I am working on a new project. Is there any benefit with going with a WCF web service over a regular old fashion web service?\nVisual Studio offers templates for both. What are the differences? Pros and cons?\n"
},
{
"from": "gpt",
"value": "When considering whether ... |
When I'm joining three or more tables together by a common column, I'd write my query like this:
SELECT *
FROM a, b, c
WHERE a.id = b.id
AND b.id = c.id
a colleague recently asked my why I didn't do explicit Join Transitive Closure in my queries like this:
SELECT *
FROM a, b, c
WHERE a.id = b.id
AND b.id =... | Your colleague's suggestion to use an explicit Join Transitive Closure by adding the condition `c.id = a.id` is generally unnecessary in most SQL databases because the query optimizer can infer the relationships between the tables based on the join conditions you provide. Here's a breakdown of the situation:
### Curre... | 879 | [
{
"from": "human",
"value": "When I'm joining three or more tables together by a common column, I'd write my query like this:\nSELECT *\nFROM a, b, c\nWHERE a.id = b.id\nAND b.id = c.id\n\na colleague recently asked my why I didn't do explicit Join Transitive Closure in my queries like this:\nSELECT *... |
I've been programming in C# and Java recently and I am curious where the best place is to initialize my class fields.
Should I do it at declaration?:
public class Dice
{
private int topFace = 1;
private Random myRand = new Random();
public void Roll()
{
// ......
}
}
or in a constructor?:
p... | The choice between initializing fields at declaration and in a constructor often depends on various factors, including readability, maintainability, and specific needs of your class. Here’s a breakdown of both approaches:
### Initializing at Declaration
```csharp
public class Dice
{
private int topFace = 1;
pr... | 1,041 | [
{
"from": "human",
"value": "I've been programming in C# and Java recently and I am curious where the best place is to initialize my class fields.\nShould I do it at declaration?:\npublic class Dice\n{\n private int topFace = 1;\n private Random myRand = new Random();\n\n public void Roll()\n {\... |
I've long been under the impression that goto should never be used if possible.
However, while perusing libavcodec (which is written in C) the other day, I was surprised to notice multiple uses of it.
Is it ever advantageous to use goto in a language that supports loops and functions? If so, why? Please provide a co... | The `goto` statement in programming, especially in C, is often frowned upon because it can lead to unreadable and difficult-to-maintain code. However, there are scenarios where its use can be justified for clarity and structure, particularly in error handling and resource management.
One common reason to use `goto` i... | 613 | [
{
"from": "human",
"value": "I've long been under the impression that goto should never be used if possible.\nHowever, while perusing libavcodec (which is written in C) the other day, I was surprised to notice multiple uses of it.\nIs it ever advantageous to use goto in a language that supports loops and fu... |
In Lucene if you had multiple indexes that covered only one partition each. Why does the same search on different indexes return results with different scores? The results from different servers match exactly.
i.e. if I searched for :
Name - John Smith
DOB - 11/11/1934
Partition 0 would return a score of 0.345
Parti... | When using Lucene (or similar search engines) to index and search documents across multiple partitions, it is not uncommon to observe variations in scores for identical matches across different indexes. This discrepancy can stem from several factors:
1. **Different Index Configurations**: Each index might have slightl... | 2,291 | [
{
"from": "human",
"value": "In Lucene if you had multiple indexes that covered only one partition each. Why does the same search on different indexes return results with different scores? The results from different servers match exactly. \ni.e. if I searched for :\n\nName - John Smith\nDOB - 11/11/1934\n\n... |
Came across this error today. Wondering if anyone can tell me what it means:
Cannot sort a row of size 9522, which is greater than the allowable maximum of 8094.
Is that 8094 bytes? Characters? Fields? Is this a problem joining multiple tables that are exceeding some limit?
| The error message you're encountering, "Cannot sort a row of size 9522, which is greater than the allowable maximum of 8094," typically indicates that you are trying to sort a data row that exceeds the maximum size limit allowed by the database or the specific operation being performed.
In many database systems, this... | 1,772 | [
{
"from": "human",
"value": "Came across this error today. Wondering if anyone can tell me what it means:\n\n\nCannot sort a row of size 9522, which is greater than the allowable maximum of 8094.\n\n\nIs that 8094 bytes? Characters? Fields? Is this a problem joining multiple tables that are exceeding some l... |
Is there a good yacc/bison type LALR parser generator for .NET ?
| Yes, there are several LALR parser generators available for .NET that you can use, similar to Yacc/Bison. Here are a few popular options:
1. **Irony**: Irony is a .NET language implementation kit that includes a powerful parser generator. It's quite flexible and allows you to define grammars using C# code. It can be u... | 3,047 | [
{
"from": "human",
"value": "Is there a good yacc/bison type LALR parser generator for .NET ?\n"
},
{
"from": "gpt",
"value": "Yes, there are several LALR parser generators available for .NET that you can use, similar to Yacc/Bison. Here are a few popular options:\n\n1. **Irony**: Irony is a .NE... |
Every time I turn on my company-owned development machine, I have to kill 10+ processes using the Task Manager or any other process management app just to get decent performance out of my IDE. Yes, these are processes from programs that my company installs on my machine for security and compliance. What I'd like to do... | Yes, you can create a batch file (.bat) to kill specific processes on your Windows machine. Here's a simple step-by-step guide to help you set this up:
### Step 1: Identify the Processes
Before you create the script, make sure you know the exact names of the processes you want to kill. You can find this in Task Manage... | 1,599 | [
{
"from": "human",
"value": "Every time I turn on my company-owned development machine, I have to kill 10+ processes using the Task Manager or any other process management app just to get decent performance out of my IDE. Yes, these are processes from programs that my company installs on my machine for sec... |
I am coding a client-server application using Eclipse's RCP.
We are having trouble testing the interaction between the two sides
as they both contain a lot of GUI and provide no command-line or other
remote API.
Got any ideas?
| Testing a client-server application that heavily relies on GUI can indeed be challenging, especially when both components lack a command-line interface or remote APIs for automation. Here are several strategies you could consider to facilitate testing the interaction between the client and server:
### 1. **Use GUI Tes... | 185 | [
{
"from": "human",
"value": "I am coding a client-server application using Eclipse's RCP.\nWe are having trouble testing the interaction between the two sides\nas they both contain a lot of GUI and provide no command-line or other\nremote API.\nGot any ideas?\n"
},
{
"from": "gpt",
"value": "Tes... |
We generate dynamic reports in all of our business web applications written for .Net and J2EE. On the server side we use ActiveReports.Net and JasperReports to generate the reports. We then export them to PDF to send down to the browser.
Our clients all use Adobe Reader. We have endless problems with the different v... | When dealing with dynamic reports that require precise layout and consistent rendering across different clients, there are several alternatives to PDF that you could consider. Here are a few options and their potential benefits:
1. **XPS (XML Paper Specification)**:
- **Pros**: XPS files maintain precise layout and... | 819 | [
{
"from": "human",
"value": "We generate dynamic reports in all of our business web applications written for .Net and J2EE. On the server side we use ActiveReports.Net and JasperReports to generate the reports. We then export them to PDF to send down to the browser.\nOur clients all use Adobe Reader. We ... |
What software do you use when designing classes and their relationship, or just pen and paper?
| When designing classes and their relationships in software development, a variety of tools can be used, depending on personal preference and project needs. Here are some common software options:
1. **UML Tools**:
- **Lucidchart**: A web-based diagramming application that supports UML diagrams and collaboration.
... | 2,740 | [
{
"from": "human",
"value": "What software do you use when designing classes and their relationship, or just pen and paper?\n"
},
{
"from": "gpt",
"value": "When designing classes and their relationships in software development, a variety of tools can be used, depending on personal preference an... |
I'm a long time hobbyist programmer interested in getting into web application development. I have a fair amount of personal experience with various non-web languages, but have never really branched over to web applications.
I don't usually have any issues learning new languages or technologies, so I'm not worried abou... | Transitioning from standalone application development to web application development is an exciting journey, and understanding the design principles behind web applications is crucial for success. Here are some recommended resources across various formats that can help you learn about web application design, security, ... | 363 | [
{
"from": "human",
"value": "I'm a long time hobbyist programmer interested in getting into web application development. I have a fair amount of personal experience with various non-web languages, but have never really branched over to web applications.\nI don't usually have any issues learning new language... |
Specifically this is regarding when using a client session cookie to identify a session on the server.
Is the best answer to use SSL/HTTPS encryption for the entire web site, and you have the best guarantee that no man in the middle attacks will be able to sniff an existing client session cookie?
And perhaps second bes... | You are correct in your assessment of the security considerations involved in using client session cookies to identify a session on the server. Let's break down your points:
1. **Using SSL/HTTPS Encryption**:
- Using SSL (Secure Sockets Layer) or its successor, TLS (Transport Layer Security), is indeed one of the ... | 1,540 | [
{
"from": "human",
"value": "Specifically this is regarding when using a client session cookie to identify a session on the server.\nIs the best answer to use SSL/HTTPS encryption for the entire web site, and you have the best guarantee that no man in the middle attacks will be able to sniff an existing cli... |
I have read that the iPhone SDK (part of Xcode 3) is restricted to Mac's with the intel chipset. Does this restriction apply to only the simulator part of the SDK or the complete shebang?
I have a Powerbook G4 running Leopard and would very much like to do dev on it rather than fork out for a new machine.
It is also wo... | The restriction regarding the iPhone SDK (part of Xcode 3 and later versions) being limited to Intel-based Macs applies to both the simulator and the complete SDK. The iPhone SDK requires an Intel architecture because it utilizes frameworks and technologies that are not compatible with the PowerPC architecture found in... | 3,848 | [
{
"from": "human",
"value": "I have read that the iPhone SDK (part of Xcode 3) is restricted to Mac's with the intel chipset. Does this restriction apply to only the simulator part of the SDK or the complete shebang?\nI have a Powerbook G4 running Leopard and would very much like to do dev on it rather than... |
In Django's template language, you can use {% url [viewname] [args] %} to generate a URL to a specific view with parameters. How can you programatically do the same in Python code?
What I need is to create a list of menu items where each item has name, URL, and an active flag (whether it's the current page or not). Th... | In Django, you can programmatically generate URLs in your Python code using the `reverse` function from `django.urls`. This function allows you to reverse-resolve a view name to its corresponding URL, just like the `{% url %}` template tag does.
Here's how you can create a list of menu items in Python, including the n... | 877 | [
{
"from": "human",
"value": "In Django's template language, you can use {% url [viewname] [args] %} to generate a URL to a specific view with parameters. How can you programatically do the same in Python code?\nWhat I need is to create a list of menu items where each item has name, URL, and an active flag ... |
When I defragment my XP machine I notice that there is a block of "Unmovable Files". Is there a file attribute I can use to make my own files unmovable?
Just to clarify, I want a way to programmatically tell Windows that a file that I create should be unmovable. Is this possible, and if so, how can I do it?
Thanks,
Ter... | On Windows XP, certain files are categorized as "unmovable" during defragmentation due to their attributes or system usage. Common examples of unmovable files include the page file (pagefile.sys), hibernation file (hiberfil.sys), and the Master File Table (MFT). These files are critical for the system's operation, and ... | 2,060 | [
{
"from": "human",
"value": "When I defragment my XP machine I notice that there is a block of \"Unmovable Files\". Is there a file attribute I can use to make my own files unmovable?\nJust to clarify, I want a way to programmatically tell Windows that a file that I create should be unmovable. Is this possi... |
I have a web reference for our report server embedded in our application. The server that the reports live on could change though, and I'd like to be able to change it "on the fly" if necessary.
I know I've done this before, but can't seem to remember how. Thanks for your help.
I've manually driven around this for the ... | To set the URL for a web service reference dynamically in Visual Studio 2008, you are correct in thinking that you can use the `web.config` file to make this change without hardcoding the URL directly in your code.
Here’s a more detailed approach on how you can manage the service URL dynamically:
1. **Update the Web... | 2,362 | [
{
"from": "human",
"value": "I have a web reference for our report server embedded in our application. The server that the reports live on could change though, and I'd like to be able to change it \"on the fly\" if necessary.\nI know I've done this before, but can't seem to remember how. Thanks for your hel... |
Is is possible to construct a regular expression that rejects all input strings?
| Yes, it is possible to construct a regular expression that rejects all input strings. The simplest way to create such a regular expression is to use a pattern that cannot match any valid string.
One common example is the regular expression `^$`. This expression matches the empty string (a string with no characters). ... | 3,537 | [
{
"from": "human",
"value": "Is is possible to construct a regular expression that rejects all input strings?\n"
},
{
"from": "gpt",
"value": "Yes, it is possible to construct a regular expression that rejects all input strings. The simplest way to create such a regular expression is to use a pa... |
I have a large application (~50 modules) using a structure similar to the following:
Application
Communication modules
Color communication module
SSN communication module
etc. communication module
Router module
Service modules
Voting service module
Web interface submodule for voting
Vote collector submodule... | Choosing between a hierarchical (tree-like) structure and a flat structure for organizing your Maven multi-module application and Subversion repository depends on various factors, including maintainability, complexity, team size, and the nature of your application.
### Option 1: Tree Structure
#### Pros:
1. **Modular... | 1,864 | [
{
"from": "human",
"value": "I have a large application (~50 modules) using a structure similar to the following:\n\nApplication \n\n\nCommunication modules\n\n\nColor communication module\nSSN communication module\netc. communication module\n\nRouter module\nService modules\n\n\nVoting service module\n\n\... |
If I have something like a UILabel linked to a xib file, do I need to release it on dealloc of my view? The reason I ask is because I don't alloc it, which makes me think I don't need to release it either?
eg (in the header):
IBOutlet UILabel *lblExample;
in the implementation:
....
[lblExample setText:@"whatever"];
.... | In your scenario, since `lblExample` is an IBOutlet connected to a XIB file, you do not need to release it in the `dealloc` method if you are using Automatic Reference Counting (ARC). However, if you are not using ARC, the management of memory is manual.
### If you are using ARC:
- You do **not** need to release `lblE... | 3,282 | [
{
"from": "human",
"value": "If I have something like a UILabel linked to a xib file, do I need to release it on dealloc of my view? The reason I ask is because I don't alloc it, which makes me think I don't need to release it either?\neg (in the header):\nIBOutlet UILabel *lblExample;\n\nin the implementat... |
I have a PHP application that displays a list of options to a user. The list is generated from a simple query against SQL 2000. What I would like to do is have a specific option at the top of the list, and then have the remaining options sorted alphabetically.
For example, here's the options if sorted alphabetically:... | You can achieve this with a single SQL query by using a `CASE` statement in the `ORDER BY` clause. In your case, you want "Montreal" to appear at the top of the list, and then sort the remaining options alphabetically.
Here's how you can write your SQL query:
```sql
SELECT city_name
FROM your_table_name
ORDER BY
... | 3,077 | [
{
"from": "human",
"value": "I have a PHP application that displays a list of options to a user. The list is generated from a simple query against SQL 2000. What I would like to do is have a specific option at the top of the list, and then have the remaining options sorted alphabetically.\nFor example, he... |
I have been trying to find a really fast way to parse yyyy-mm-dd [hh:mm:ss] into a Date object. Here are the 3 ways I have tried doing it and the times it takes each method to parse 50,000 date time strings.
Does anyone know any faster ways of doing this or tips to speed up the methods?
castMethod1 takes 3673 ms
castM... | To speed up your date parsing in ActionScript, you can optimize your existing methods and possibly implement some changes to minimize overhead. Here are some suggestions:
### 1. Optimize the String Manipulations
String operations can be costly, especially when you split and join strings multiple times. Try to limit t... | 718 | [
{
"from": "human",
"value": "I have been trying to find a really fast way to parse yyyy-mm-dd [hh:mm:ss] into a Date object. Here are the 3 ways I have tried doing it and the times it takes each method to parse 50,000 date time strings.\nDoes anyone know any faster ways of doing this or tips to speed up the... |
Not very technical, but... I have to implement a bad words filter in a new site we are developing. So I need a "good" bad words list to feed my db with... any hint / direction? Looking around with google I found this one, and it's a start, but nothing more.
Yes, I know that this kind of filters are easily escaped... bu... | Implementing a bad words filter is a common requirement for many websites, especially those that allow user-generated content. Here are some steps you can follow to create an effective bad words list for your project, along with some resources to help you get started:
### 1. Use Existing Lists
- **GitHub Repositories... | 1,035 | [
{
"from": "human",
"value": "Not very technical, but... I have to implement a bad words filter in a new site we are developing. So I need a \"good\" bad words list to feed my db with... any hint / direction? Looking around with google I found this one, and it's a start, but nothing more.\nYes, I know that t... |
I thought .Net code gets compiled into MSIL, so I always wondered how do Yellow Screens produce the faulty code. If it's executing the compiled code, how is the compiler able to produce code from the source files in the error message?
Feel free to edit this question/title, I know it doesn't really make sense.
| Your question makes sense, and it's a common point of confusion regarding how .NET applications work, particularly in relation to error messages and the yellow screen of death (YSOD) that you might encounter in ASP.NET applications.
### Understanding .NET Compilation
1. **Compilation Process**: When you write .NET co... | 2,107 | [
{
"from": "human",
"value": "I thought .Net code gets compiled into MSIL, so I always wondered how do Yellow Screens produce the faulty code. If it's executing the compiled code, how is the compiler able to produce code from the source files in the error message?\nFeel free to edit this question/title, I k... |
In VB.NET is there a library of template dialogs I can use? It's easy to create a custom dialog and inherit from that, but it seems like there would be some templates for that sort of thing.
I just need something simple like Save/Cancel, Yes/No, etc.
Edit: MessageBox is not quite enough, because I want to add drop-do... | In VB.NET, while the built-in `MessageBox` provides basic dialog functionality, it sounds like you’re looking for a more advanced dialog framework that allows customization with controls like dropdowns, list boxes, and grids.
For this purpose, you can create your own base dialog form class that can be inherited and e... | 2,081 | [
{
"from": "human",
"value": "In VB.NET is there a library of template dialogs I can use? It's easy to create a custom dialog and inherit from that, but it seems like there would be some templates for that sort of thing.\nI just need something simple like Save/Cancel, Yes/No, etc. \nEdit: MessageBox is not ... |
I would like to have a reference for the pros and cons of using include files vs objects(classes) when developing PHP applications.
I know I would benefit from having one place to go for this answer...I have a few opinions of my own but I look forward to hearing others.
A Simple Example:
Certain pages on my site are on... | When deciding between using include files and objects (classes) for structuring your PHP application, it’s important to consider the pros and cons of each approach. Below is a breakdown of these two options based on various criteria:
### Pros and Cons of Using Include Files
#### Pros:
1. **Simplicity**: Includes are ... | 88 | [
{
"from": "human",
"value": "I would like to have a reference for the pros and cons of using include files vs objects(classes) when developing PHP applications.\nI know I would benefit from having one place to go for this answer...I have a few opinions of my own but I look forward to hearing others.\nA Simp... |
I'm creating an application that will store a hierarchical collection of items in an XML file and I'm wondering about the industry standard for storing collections in XML. Which of the following two formats is preferred? (If there is another option I'm not seeing, please advise.)
Option A
<School>
<Student Name="Ja... | When it comes to representing hierarchical collections in XML, the choice between Option A and Option B often depends on clarity, maintainability, and ease of use. Let's break down the options you've presented:
### Option A
```xml
<School>
<Student Name="Jack" />
<Student Name="Jill" />
<Class Name="Englis... | 2,275 | [
{
"from": "human",
"value": "I'm creating an application that will store a hierarchical collection of items in an XML file and I'm wondering about the industry standard for storing collections in XML. Which of the following two formats is preferred? (If there is another option I'm not seeing, please advise.... |
Is there any good way to deal with the class renaming refactor from Resharper when the file is under source control and TortoiseSVN is the client. I have am trying VisualSVN right now but I haven't had the need to rename anything recently. I don't want to change our repository just to try this out.
Also not sure if t... | Dealing with class renaming and other refactoring tasks in a source-controlled environment, particularly with TortoiseSVN, can indeed be tricky. Here are some strategies and considerations that might help streamline the process:
### Renaming a Class Under Source Control with TortoiseSVN
1. **Use ReSharper's Rename Fe... | 1,060 | [
{
"from": "human",
"value": "Is there any good way to deal with the class renaming refactor from Resharper when the file is under source control and TortoiseSVN is the client. I have am trying VisualSVN right now but I haven't had the need to rename anything recently. I don't want to change our repository... |
I remember first learning about vectors in the STL and after some time, I wanted to use a vector of bools for one of my projects. After seeing some strange behavior and doing some research, I learned that a vector of bools is not really a vector of bools.
Are there any other common pitfalls to avoid in C++?
| Yes, C++ has its fair share of pitfalls, especially for beginners or those not familiar with certain nuances of the language. Here are some common pitfalls to be aware of:
1. **Vector of Bools**: As you mentioned, `std::vector<bool>` is a specialized template that behaves differently from other `std::vector` types. It... | 799 | [
{
"from": "human",
"value": "I remember first learning about vectors in the STL and after some time, I wanted to use a vector of bools for one of my projects. After seeing some strange behavior and doing some research, I learned that a vector of bools is not really a vector of bools.\nAre there any other co... |
here is the input i am getting from my flash file
process.php?Q2=898&Aa=Grade1&Tim=0%3A0%3A12&Q1=908&Bb=lkj&Q4=jhj&Q3=08&Cc=North%20America&Q0=1
and in php i use this code
foreach ($_GET as $field => $label)
{
$datarray[]=$_GET[$field];
echo "$field :";
echo $_GET[$field];;
echo "<br>";
i get this out put
Q2 :8... | To sort the data alphabetically by keys in the `$_GET` array before inserting it into the database, you can use the `ksort()` function in PHP, which sorts an array by its keys. Here’s how you can modify your existing code to achieve this:
```php
// First, ensure the datarray is initialized
$datarray = [];
// Use ksor... | 3,621 | [
{
"from": "human",
"value": "here is the input i am getting from my flash file \nprocess.php?Q2=898&Aa=Grade1&Tim=0%3A0%3A12&Q1=908&Bb=lkj&Q4=jhj&Q3=08&Cc=North%20America&Q0=1\nand in php i use this code\nforeach ($_GET as $field => $label)\n{\n $datarray[]=$_GET[$field];\necho \"$field :\";\necho $_GE... |
How would one display any add content from a "dynamic" aspx page? Currently I am working on using the System.Web.HttpResponse "Page.Response" to write a file that is stored on a web server to a web request.
This would allow people to hit a url to the type http://www.foo.com?Image=test.jpg and have the image display in ... | To dynamically serve files of different types in an ASP.NET (ASPX) page, you can determine the correct `Content-Type` based on the file extension. This will allow the browser to correctly interpret and display the content you're sending back. Below is a general approach for how to handle different file types and set th... | 1,034 | [
{
"from": "human",
"value": "How would one display any add content from a \"dynamic\" aspx page? Currently I am working on using the System.Web.HttpResponse \"Page.Response\" to write a file that is stored on a web server to a web request.\nThis would allow people to hit a url to the type http://www.foo.com... |
I have a datalist with a OnDeleteCommand="Delete_Command".
I want the delete a record with multiple primary Keys but I do not know how to access it from the Delete_Command event.
If I use DataKeyField I'm limited to only one key.
Any workarounds for this?
| If you're working with a `DataList` in ASP.NET and need to delete a record that is identified by multiple primary keys, you can use a combination of the `DataKeys` property along with custom attributes to store the additional key values. Here’s a general approach to handling this situation:
1. **Define the DataList**:... | 430 | [
{
"from": "human",
"value": "I have a datalist with a OnDeleteCommand=\"Delete_Command\".\nI want the delete a record with multiple primary Keys but I do not know how to access it from the Delete_Command event.\nIf I use DataKeyField I'm limited to only one key.\nAny workarounds for this?\n"
},
{
"f... |
I'm writing my first Perl app -- an AOL Instant Messenger bot that talks to an Arduino microcontroller, which in turn controls a servo that will push the power button on our sysadmin's server, which freezes randomly every 28 hours or so.
I've gotten all the hard stuff done, I'm just trying to add one last bit of code ... | To solve the problem of blocking when reading from STDIN in your Perl script, you can use non-blocking I/O. One approach is to use the `IO::Select` module, which allows you to check if there is input available on the standard input stream without blocking the main loop. Here's how you can modify your code to achieve th... | 1,682 | [
{
"from": "human",
"value": "I'm writing my first Perl app -- an AOL Instant Messenger bot that talks to an Arduino microcontroller, which in turn controls a servo that will push the power button on our sysadmin's server, which freezes randomly every 28 hours or so. \nI've gotten all the hard stuff done, I'... |
This problem started on a different board, but Dave Ward, who was very prompt and helpful there is also here, so I'd like to pick up here for hopefully the last remaining piece of the puzzle.... | It sounds like you're dealing with a frustrating issue related to how responses are buffered on the WebHost4Life server. Since you've identified that the problem is not present on the Brinkster server, it's likely due to server configuration or settings specific to WebHost4Life.
Here are some potential causes and solu... | 1,973 | [
{
"from": "human",
"value": "This problem started on a different board, but Dave Ward, who was very prompt and helpful there is also here, so I'd like to pick up here for hopefully the last remaining piece of the puzzle.... |
Is there a simple way, in a pretty standard UNIX environment with bash, to run a command to delete all but the most recent X files from a directory?
To give a bit more of a concrete example, imagine some cron job writing out a file (say, a log file or a tar-ed up backup) to a directory every hour. I'd like a way to hav... | Yes, you can accomplish this using a combination of shell commands in a simple bash script. Here's a way to do it:
You can create a script that uses `ls`, `sort`, and `head` to determine which files to delete. Here's an example of a script that removes all but the most recent 5 files from a specified directory:
```ba... | 1,445 | [
{
"from": "human",
"value": "Is there a simple way, in a pretty standard UNIX environment with bash, to run a command to delete all but the most recent X files from a directory?\nTo give a bit more of a concrete example, imagine some cron job writing out a file (say, a log file or a tar-ed up backup) to a d... |
I'm basically trying to figure out the simplest way to perform your basic insert operation in C#.NET using the SqlClient namespace.
I'm using SqlConnection for my db link, I've already had success executing some reads, and I want to know the simplest way to insert data. I'm finding what seem to be pretty verbose metho... | Performing an insert operation using the `SqlClient` namespace in C# is relatively straightforward. Here’s a simple example of how to insert data into a SQL Server database using `SqlConnection`, `SqlCommand`, and parameters to prevent SQL injection attacks.
Here’s a basic outline of the steps:
1. Establish a connect... | 1,130 | [
{
"from": "human",
"value": "I'm basically trying to figure out the simplest way to perform your basic insert operation in C#.NET using the SqlClient namespace. \nI'm using SqlConnection for my db link, I've already had success executing some reads, and I want to know the simplest way to insert data. I'm fi... |
Let's say that I want to have a table that logs the date and the number of columns in some other table (or really any sort of math / string concat etc).
CREATE TABLE `log` (
`id` INTEGER NOT NULL AUTO_INCREMENT ,
`date` DATETIME NOT NULL ,
`count` INTEGER NOT NULL ,
PRIMARY KEY (`id`)
);
Is it possible to have the cou... | In MySQL, you cannot directly calculate and insert a value into a column during an `INSERT` operation without explicitly retrieving the value beforehand. However, there are ways to achieve similar functionality using triggers or stored procedures. Below are two approaches you could consider:
### Approach 1: Using a Tr... | 1,865 | [
{
"from": "human",
"value": "Let's say that I want to have a table that logs the date and the number of columns in some other table (or really any sort of math / string concat etc).\nCREATE TABLE `log` (\n`id` INTEGER NOT NULL AUTO_INCREMENT ,\n`date` DATETIME NOT NULL ,\n`count` INTEGER NOT NULL ,\nPRIMARY... |
My organization has a form to allow users to update their email address with us.
It's suggested that we have two input boxes for email: the second as an email confirmation.
I always copy/paste my email address when faced with the confirmation.
I'm assuming most of our users are not so savvy.
Regardless, is this conside... | Using two input boxes for email address input, with one serving as an email confirmation, is generally considered a good practice in web forms. Here are a few reasons why this approach is beneficial:
1. **Error Reduction**: Users may accidentally mistype their email address. Having them enter it twice provides an oppo... | 1,555 | [
{
"from": "human",
"value": "My organization has a form to allow users to update their email address with us.\nIt's suggested that we have two input boxes for email: the second as an email confirmation.\nI always copy/paste my email address when faced with the confirmation.\nI'm assuming most of our users a... |
I would have thought this would be an easy one to Google, but I've been unsuccessful.
I want to assign a variable the value out of an attribute (easy so far) then use that variable to select another node based on the value of that attribute.
Example:
<xsl:variable name="myId" select="@id" />
<xsl value-of select="//Roo... | You're on the right track, but the syntax for using a variable inside an XPath expression isn't quite correct. In XSLT, you can't just use the variable within curly braces like that. Instead, you can use the `concat()` function or other approaches to build your XPath expression.
Here’s a common way to achieve what you... | 2,983 | [
{
"from": "human",
"value": "I would have thought this would be an easy one to Google, but I've been unsuccessful.\nI want to assign a variable the value out of an attribute (easy so far) then use that variable to select another node based on the value of that attribute.\nExample:\n<xsl:variable name=\"myId... |
I have a rails application where each user has a separate database. (taking Joel Spolsky's advice on this). I want to run DB migrations from the rails application to create a new database and tables for this user.
What is the easiest way to do this?
Maybe the db migration is not the best for this type of thing. Thank... | Running separate databases for each user in a Rails application can be a suitable approach for multi-tenancy, especially if you're looking to isolate user data. Automating the process of creating a new database and running migrations can be achieved, but it requires careful implementation. Here’s how you can approach t... | 19 | [
{
"from": "human",
"value": "I have a rails application where each user has a separate database. (taking Joel Spolsky's advice on this). I want to run DB migrations from the rails application to create a new database and tables for this user. \nWhat is the easiest way to do this? \nMaybe the db migration is... |
There are several types of objects in a system, and each has it's own table in the database. A user should be able to comment on any of them. How would you design the comments table(s)? I can think of a few options:
One comments table, with a FK column for each object type (ObjectAID, ObjectBID, etc)
Several comments ... | When designing a comments system that allows users to comment on various object types in a database, each approach you mentioned has its merits and potential drawbacks. However, one option tends to provide a good balance between flexibility, maintainability, and simplicity: using a single comments table with a polymorp... | 1,343 | [
{
"from": "human",
"value": "There are several types of objects in a system, and each has it's own table in the database. A user should be able to comment on any of them. How would you design the comments table(s)? I can think of a few options:\n\nOne comments table, with a FK column for each object type (O... |
Is there a way to run a regexp-string replace on the current line in the bash?
I find myself rather often in the situation, where I have typed a long commandline and then realize, that I would like to change a word somewhere in the line.
My current approach is to finish the line, press Ctrl+A (to get to the start of th... | In Bash, the default line-editing mode is Emacs mode, which provides a variety of keyboard shortcuts for efficient line editing. Although there isn't a built-in way to perform a regex search and replace directly on the current line, there are a few strategies and shortcuts that can help speed up the process.
### Using... | 1,680 | [
{
"from": "human",
"value": "Is there a way to run a regexp-string replace on the current line in the bash?\nI find myself rather often in the situation, where I have typed a long commandline and then realize, that I would like to change a word somewhere in the line.\nMy current approach is to finish the li... |
What is the quickest way to get a large amount of data (think golf) and the most efficient (think performance) to get a large amount of data from a MySQL database to a session without having to continue doing what I already have:
$sql = "SELECT * FROM users WHERE username='" . mysql_escape_string($_POST['username']) . ... | To efficiently retrieve a large amount of data from a MySQL database and store it in a session, you should consider the following steps:
1. **Switch to mysqli or PDO**: The `mysql_*` functions are deprecated and removed in newer versions of PHP. You should use either the `mysqli` or `PDO` extension for better security... | 1,401 | [
{
"from": "human",
"value": "What is the quickest way to get a large amount of data (think golf) and the most efficient (think performance) to get a large amount of data from a MySQL database to a session without having to continue doing what I already have:\n$sql = \"SELECT * FROM users WHERE username='\" ... |
I'm trying to call an Antlr task in my Ant build.xml as follows:
<path id="classpath.build">
<fileset dir="${dir.lib.build}" includes="**/*.jar" />
</path>
...
<target name="generate-lexer" depends="init">
<antlr target="${file.antlr.lexer}">
<classpath refid="classpath.build"/>
</antlr>
</target>
But Ant ... | It looks like you're trying to use the Antlr task in your Ant build script, but Ant is unable to locate the Antlr task definition. This is likely because the Antlr library you're using does not include the necessary Ant tasks.
### Steps to Resolve the Issue
1. **Download the Correct Antlr Ant Task**:
Ensure that ... | 66 | [
{
"from": "human",
"value": "I'm trying to call an Antlr task in my Ant build.xml as follows:\n<path id=\"classpath.build\">\n <fileset dir=\"${dir.lib.build}\" includes=\"**/*.jar\" />\n</path>\n\n...\n\n<target name=\"generate-lexer\" depends=\"init\">\n <antlr target=\"${file.antlr.lexer}\">\n <clas... |
For certain programs nothing beats the command line. Unfortunately, I have never seen good documentation or examples on how to write console applications that go beyond "Hello World". I'm interested in making console apps like Vim or Emacs. Well not exactly like Vim or Emacs but one that takes over the entire command... | Creating console applications that take control of the entire command prompt and provide an interactive user interface similar to Vim or Emacs is indeed a fascinating task. While Unix systems often utilize the `curses` library for terminal handling, Windows has its own APIs and libraries that can help you accomplish si... | 875 | [
{
"from": "human",
"value": "For certain programs nothing beats the command line. Unfortunately, I have never seen good documentation or examples on how to write console applications that go beyond \"Hello World\". I'm interested in making console apps like Vim or Emacs. Well not exactly like Vim or Emacs... |
When is this called? More specifically, I have a control I'm creating - how can I release handles when the window is closed. In normal win32 I'd do it during wm_close - is DestroyHandle the .net equivalent?
I don't want to destroy the window handle myself - my control is listening for events on another object and when... | In .NET, particularly when working with Windows Forms, you don't explicitly call `DestroyHandle` as you might in native Win32 programming. Instead, you would typically use the `Dispose` pattern to release resources and unsubscribe from events when your control is being disposed of.
You are correct that in native Win32... | 1,768 | [
{
"from": "human",
"value": "When is this called? More specifically, I have a control I'm creating - how can I release handles when the window is closed. In normal win32 I'd do it during wm_close - is DestroyHandle the .net equivalent?\n\nI don't want to destroy the window handle myself - my control is list... |
I have inherited some legacy PHP code what was written back when it was standard practice to use register_globals (As of PHP 4.2.0, this directive defaults to off, released 22. Apr 2002).
We know now that it is bad for security to have it enabled. The problem is how do I find all the places in the code where I need to ... | Inheriting legacy PHP code that relies on `register_globals` can indeed be a challenge, especially considering the security implications and the need to refactor the code to use superglobals like `$_GET`, `$_POST`, `$_SESSION`, and so on.
### Strategies to Refactor Code
Here are some steps and strategies to help you ... | 1,173 | [
{
"from": "human",
"value": "I have inherited some legacy PHP code what was written back when it was standard practice to use register_globals (As of PHP 4.2.0, this directive defaults to off, released 22. Apr 2002).\nWe know now that it is bad for security to have it enabled. The problem is how do I find a... |
Java has Scala and .NET has F#. Both of these languages are very highly integrated into the respective Java and .NET platforms. Classes can be written in Scala then extended in Java for example.
Does there exist an equivalent functional language that interoperates highly with C++?
| Yes, there are several functional programming languages that provide interoperability with C++. Here are a few notable examples:
1. **Clojure**: Clojure is a modern functional Lisp that runs on the JVM, but it can also interoperate with C++. Clojure can call native C/C++ libraries via the Java Native Interface (JNI) a... | 3,167 | [
{
"from": "human",
"value": "Java has Scala and .NET has F#. Both of these languages are very highly integrated into the respective Java and .NET platforms. Classes can be written in Scala then extended in Java for example.\nDoes there exist an equivalent functional language that interoperates highly with... |
I am trying to run the VS 2008 SP1 installer, but it says that I need 6,366MB of available space, and my C drive currently only has 2,452MB available. Is there any good way to install that doesn't require so much free space?
I have also tried downloading the ISO image and mounting that, but it still requires 5,864MB fr... | It can be quite challenging to install Visual Studio 2008 SP1 when you're running low on disk space. Here are some suggestions that may help you reduce the amount of required space or work around the limitation:
### 1. **Free Up Disk Space:**
- **Clean Up Temporary Files:** Use the Disk Cleanup tool to remove tempo... | 222 | [
{
"from": "human",
"value": "I am trying to run the VS 2008 SP1 installer, but it says that I need 6,366MB of available space, and my C drive currently only has 2,452MB available. Is there any good way to install that doesn't require so much free space?\nI have also tried downloading the ISO image and mount... |
MySQL has this incredibly useful yet proprietary REPLACE INTO SQL Command.
Can this easily be emulated in SQL Server 2005?
Starting a new Transaction, doing a Select() and then either UPDATE or INSERT and COMMIT is always a little bit of a pain, especially when doing it in the application and therefore always keeping ... | In SQL Server, the functionality of MySQL's `REPLACE INTO` can be emulated using a combination of `MERGE` or `IF EXISTS` statements for conditional `INSERT` and `UPDATE` operations. Since you're using SQL Server 2005, the `MERGE` statement is not available as it was introduced in SQL Server 2008. However, you can achie... | 2,238 | [
{
"from": "human",
"value": "MySQL has this incredibly useful yet proprietary REPLACE INTO SQL Command. \nCan this easily be emulated in SQL Server 2005?\nStarting a new Transaction, doing a Select() and then either UPDATE or INSERT and COMMIT is always a little bit of a pain, especially when doing it in th... |
I'm writing a few little bash scripts under Ubuntu linux. I want to be able to run them from the GUI without needing a terminal window to enter any input or view any output.
So far the only input required is a password for sudo - and gksudo handles that fine.
But I haven't found an easy way to show a message box yet. I... | For displaying message boxes from Bash scripts in Ubuntu, you can use the `zenity` tool, which is included by default in most Ubuntu installations. `zenity` allows you to create simple GUI dialogs from shell scripts, including message boxes, input boxes, and more.
### Example Usage of Zenity
Here’s a simple example o... | 1,929 | [
{
"from": "human",
"value": "I'm writing a few little bash scripts under Ubuntu linux. I want to be able to run them from the GUI without needing a terminal window to enter any input or view any output.\nSo far the only input required is a password for sudo - and gksudo handles that fine.\nBut I haven't fou... |
Are square brackets in URLs allowed?
I noticed that Apache commons HttpClient (3.0.1) throws an IOException, wget and Firefox however accept square brackets.
URL example:
http://example.com/path/to/file[3].html
My HTTP client encounters such URLs but I'm not sure whether to patch the code or to throw an exception (as ... | Square brackets are technically allowed in URLs according to the URI specification (RFC 3986). They are typically used in certain contexts, such as for IPv6 addresses. However, they may not always be properly handled by all tools or libraries, leading to inconsistencies in how they are processed.
Here are some importa... | 3,477 | [
{
"from": "human",
"value": "Are square brackets in URLs allowed?\nI noticed that Apache commons HttpClient (3.0.1) throws an IOException, wget and Firefox however accept square brackets.\nURL example:\nhttp://example.com/path/to/file[3].html\n\nMy HTTP client encounters such URLs but I'm not sure whether t... |
Below is an example class hierarchy and code. What I'm looking for is a way to determine if 'ChildClass1' or 'ChildClass2' had the static method whoAmI() called on it without re-implementing it in each child class.
<?php
abstract class ParentClass {
public static function whoAmI () {
// NOT correct, alwa... | In PHP, to determine the class that a static method was called from, you can use the `self` keyword, which refers to the class from which the static method was called. However, the `self` keyword refers to the class where the method is defined, which in your case is `ParentClass`. Instead, you should use the `static` k... | 3,821 | [
{
"from": "human",
"value": "Below is an example class hierarchy and code. What I'm looking for is a way to determine if 'ChildClass1' or 'ChildClass2' had the static method whoAmI() called on it without re-implementing it in each child class.\n<?php\n\nabstract class ParentClass {\n\n public static func... |
What are some resources for getting started writing a Firefox Addon? Is there an API guide somewhere? Is there a getting started tutorial somewhere? Is there a developer discussion board somewhere?
| Certainly! If you're looking to get started with writing a Firefox add-on, there are several resources available that can help you through the process. Here’s a list of useful resources:
### Official Mozilla Documentation
1. **MDN Web Docs**: The Mozilla Developer Network (MDN) has comprehensive documentation on WebEx... | 1,792 | [
{
"from": "human",
"value": "What are some resources for getting started writing a Firefox Addon? Is there an API guide somewhere? Is there a getting started tutorial somewhere? Is there a developer discussion board somewhere?\n"
},
{
"from": "gpt",
"value": "Certainly! If you're looking to g... |
What is the best solution for maintaining backup and revision control on live websites?
As part of my job I work with several live websites. We need an efficient means of maintaining backups of the live folders over time. Additionally, updating these sites can be a pain, especially if a change happens to break in the ... | Maintaining backups and revision control on live websites is crucial for ensuring reliability, ease of updates, and quick recovery from issues. Here’s a detailed approach that addresses your requirements while considering the drawbacks of various tools you've mentioned.
### 1. **Version Control Systems (VCS)**
While y... | 190 | [
{
"from": "human",
"value": "What is the best solution for maintaining backup and revision control on live websites?\nAs part of my job I work with several live websites. We need an efficient means of maintaining backups of the live folders over time. Additionally, updating these sites can be a pain, espec... |
I'm sure there is a good (or at least decent) reason for this. What is it?
| It seems like you might be referring to a specific situation or topic, but without more context, it's hard to provide a precise answer. Could you provide more details or clarify what you are asking about? This way, I can give you a better explanation or insight into the matter! | 5,161 | [
{
"from": "human",
"value": "I'm sure there is a good (or at least decent) reason for this. What is it?\n"
},
{
"from": "gpt",
"value": "It seems like you might be referring to a specific situation or topic, but without more context, it's hard to provide a precise answer. Could you provide more... |
With the Visual Studio 2005 C++ compiler, I get the following warning when my code uses the fopen() and such calls:
1>foo.cpp(5) : warning C4996: 'fopen' was declared deprecated
1> c:\program files\microsoft visual studio 8\vc\include\stdio.h(234) : see declaration of 'fopen'
1> Message: 'This function or... | The warning you are encountering indicates that the C++ Standard Library in Visual Studio 2005 has marked certain functions, including `fopen`, as deprecated due to safety concerns. Microsoft recommends using their safer versions of these functions, which include an additional parameter that helps mitigate common secur... | 2,376 | [
{
"from": "human",
"value": "With the Visual Studio 2005 C++ compiler, I get the following warning when my code uses the fopen() and such calls:\n1>foo.cpp(5) : warning C4996: 'fopen' was declared deprecated\n1> c:\\program files\\microsoft visual studio 8\\vc\\include\\stdio.h(234) : see declaration... |
I am trying to snoop on a log file that an application is writing to.
I have successfully hooked createfile with the detours library from MSR, but createfile never seems to be called with file I am interested in snooping on. I have also tried hooking openfile with the same results.
I am not an experienced Windows/C++ ... | If you are trying to monitor file access by an application and your hooks on `CreateFile` or `OpenFile` are not being hit, there are a few things you can investigate and alternative approaches you can take.
### Possible Issues:
1. **Timing of Hooks**:
- If the application is already running when you apply your hoo... | 1,237 | [
{
"from": "human",
"value": "I am trying to snoop on a log file that an application is writing to.\nI have successfully hooked createfile with the detours library from MSR, but createfile never seems to be called with file I am interested in snooping on. I have also tried hooking openfile with the same res... |
I am trying to INSERT INTO a table using the input from another table. Although this is entirely feasible for many database engines, I always seem to struggle to remember the correct syntax for the SQL engine of the day (MySQL, Oracle, SQL Server, Informix, and DB2).
Is there a silver-bullet syntax coming from an SQL s... | SQL standards, like SQL-92, provide a general structure for SQL queries, but there's no silver-bullet syntax that works across all SQL database engines for every operation, including the `INSERT INTO ... SELECT` statement. However, most modern relational database management systems (RDBMS) support a similar form of thi... | 1,806 | [
{
"from": "human",
"value": "I am trying to INSERT INTO a table using the input from another table. Although this is entirely feasible for many database engines, I always seem to struggle to remember the correct syntax for the SQL engine of the day (MySQL, Oracle, SQL Server, Informix, and DB2).\nIs there a... |
We get the following error;
The request was aborted: Could not create SSL/TLS secure channel
while using a WebRequest object to make an HTTPS request. The funny thing is that this only happens after a while, and is temporarily fixed when the application is restarted, which suggests that something is being filled to ca... | Yes, the error message "The request was aborted: Could not create SSL/TLS secure channel" is commonly encountered when working with HTTPS requests in .NET applications. The fact that you experience this issue after some time and a restart resolves it temporarily suggests there could be a few underlying causes. Here are... | 1,930 | [
{
"from": "human",
"value": "We get the following error;\nThe request was aborted: Could not create SSL/TLS secure channel\n\nwhile using a WebRequest object to make an HTTPS request. The funny thing is that this only happens after a while, and is temporarily fixed when the application is restarted, which s... |
Looks like here in StackOveflow there is a group of F# enthusiasts.
I'd like to know better this language, so, apart from the functional programming theory, can you point me to the better starting points to start using the F# language? I mean, tutorials, how-tos, but first of all working samples to have the chance to ... | Hello Andrea!
F# is a great choice for functional programming, and there are plenty of resources available to help you get started. Here are some recommendations for tutorials, how-tos, and working samples:
### Official Documentation and Tutorials
1. **F# Official Documentation**: The [F# language documentation](htt... | 1,107 | [
{
"from": "human",
"value": "Looks like here in StackOveflow there is a group of F# enthusiasts. \nI'd like to know better this language, so, apart from the functional programming theory, can you point me to the better starting points to start using the F# language? I mean, tutorials, how-tos, but first of ... |
Does any one know any good resources for creating Visual Slick macros?
| Creating Visual Slick macros can enhance your experience with automation in Visual Slick applications. Here are some resources that can help you get started:
1. **Official Documentation**: Check the official documentation for Visual Slick. It often contains comprehensive guides and tutorials on creating macros, includ... | 3,683 | [
{
"from": "human",
"value": "Does any one know any good resources for creating Visual Slick macros?\n"
},
{
"from": "gpt",
"value": "Creating Visual Slick macros can enhance your experience with automation in Visual Slick applications. Here are some resources that can help you get started:\n\n1.... |
I want to setup a cron job to rsync a remote system to a backup partition, something like:
bash -c 'rsync -avz --delete --exclude=proc --exclude=sys root@remote1:/ /mnt/remote1/'
I would like to be able to "set it and forget it" but what if /mnt/remote1 becomes unmounted? (After a reboot or something) I'd like to erro... | Your script provides a good starting point for ensuring that the backup process only occurs when the target mount point is available. However, I see some areas where you can improve the script for clarity, error handling, and conciseness. Here’s a refined version of your script:
```bash
#!/bin/bash
# Define constants... | 297 | [
{
"from": "human",
"value": "I want to setup a cron job to rsync a remote system to a backup partition, something like:\nbash -c 'rsync -avz --delete --exclude=proc --exclude=sys root@remote1:/ /mnt/remote1/'\n\nI would like to be able to \"set it and forget it\" but what if /mnt/remote1 becomes unmounted? ... |
I'm trying to learn C. As a C# developer, my IDE is Visual Studio. I've heard this is a good environment for C/C++ development. However, it seems no matter what little thing I try to do, intuition fails me. Can someone give good resources for how to either:
learn the ins and out of C in Visual Studio
recommend a bette... | Transitioning from C# to C can be a bit of a challenge, especially when dealing with different paradigms and conventions. Visual Studio is indeed a powerful IDE for C/C++ development, but there are also other options if you want to explore. Here are some resources and recommendations to help you get started:
### Learn... | 656 | [
{
"from": "human",
"value": "I'm trying to learn C. As a C# developer, my IDE is Visual Studio. I've heard this is a good environment for C/C++ development. However, it seems no matter what little thing I try to do, intuition fails me. Can someone give good resources for how to either:\n\nlearn the ins and ... |
In Ruby 1.8 and earlier,
Foo
is a constant (a Class, a Module, or another constant). Whereas
foo
is a variable. The key difference is as follows:
module Foo
bar = 7
BAZ = 8
end
Foo::BAZ
# => 8
Foo::bar
# NoMethodError: undefined method 'bar' for Foo:Module
That's all well and good, but Ruby 1.9 allows UTF-8 ... | In Ruby, constants are typically defined using uppercase letters, while variables are defined using lowercase letters or symbols. This convention holds for ASCII characters and extends to Unicode characters, but there are some nuances regarding the classification of Unicode characters as "uppercase" or "lowercase".
##... | 999 | [
{
"from": "human",
"value": "In Ruby 1.8 and earlier,\nFoo\n\nis a constant (a Class, a Module, or another constant). Whereas\nfoo\n\nis a variable. The key difference is as follows:\nmodule Foo\n bar = 7\n BAZ = 8\nend\n\nFoo::BAZ\n# => 8\n\nFoo::bar\n# NoMethodError: undefined method 'bar' for Foo:Mod... |
Do I need to register new extension types with Apple before I release an application that would create them on OS X?
| Yes, you need to register new file extension types with Apple before releasing an application that creates them on macOS. This is typically done through the macOS app’s Info.plist file, where you specify the UTI (Uniform Type Identifier) for your new file type. This includes providing details such as the file extension... | 4,265 | [
{
"from": "human",
"value": "Do I need to register new extension types with Apple before I release an application that would create them on OS X?\n"
},
{
"from": "gpt",
"value": "Yes, you need to register new file extension types with Apple before releasing an application that creates them on ma... |
I have the following web config file. I am having some difficulty in retrieving the value from the "AppName.DataAccess.ConnectionString" key. I know I could move it to the AppSetting block and get it realtively easily but I do not wnat to duplicate the key (and thereby clutter my already cluttered web.config file). ... | To retrieve the value of the "AppName.DataAccess.ConnectionString" key from your custom configuration section in VB.NET, you can follow these steps:
1. **Define a class to read the custom configuration section**: Since you're dealing with a custom configuration section, you need to create a class that will represent t... | 755 | [
{
"from": "human",
"value": "I have the following web config file. I am having some difficulty in retrieving the value from the \"AppName.DataAccess.ConnectionString\" key. I know I could move it to the AppSetting block and get it realtively easily but I do not wnat to duplicate the key (and thereby clutt... |
The MSDN documentation on Object.GetHashCode() describes 3 contradicting rules for how the method should work.
If two objects of the same type represent the same value, the hash function must return the same constant value for either object.
For the best performance, a hash function must generate a random distributi... | The rules you cited about `Object.GetHashCode()` do indeed seem contradictory at first glance, but they can be understood in the context of how hash codes are generally used in .NET and the design philosophy behind `GetHashCode()`.
### Understanding the Rules:
1. **Same Value, Same Hash Code**: If two objects of the ... | 396 | [
{
"from": "human",
"value": "The MSDN documentation on Object.GetHashCode() describes 3 contradicting rules for how the method should work. \n\nIf two objects of the same type represent the same value, the hash function must return the same constant value for either object.\nFor the best performance, a has... |
How do I create a new webpage in the Documentum front end Webtop?
| Creating a new webpage in Documentum's Webtop environment typically involves a combination of creating a new document type and customizing the web interface. Here’s a general step-by-step guide on how to do it:
### Step 1: Access Documentum Webtop
1. **Log in** to your Documentum Webtop interface using your credential... | 1,518 | [
{
"from": "human",
"value": "How do I create a new webpage in the Documentum front end Webtop? \n"
},
{
"from": "gpt",
"value": "Creating a new webpage in Documentum's Webtop environment typically involves a combination of creating a new document type and customizing the web interface. Here’s a... |
I have a solution with several projects. One of them is a setup project. If you expand the setup project in the Solution Explorer, you see a Detected Dependencies node. If you right click on it, you get a menu item called Refresh Dependencies. This refreshes any dependencies based on the files included in the setup.
I ... | The issue you've encountered with Visual Studio Setup projects not automatically detecting dependencies during automated builds is a common challenge, especially when using continuous integration tools like CruiseControl.NET. Unfortunately, there is no direct command-line option in either `devenv.com` or MSBuild to ref... | 2,730 | [
{
"from": "human",
"value": "I have a solution with several projects. One of them is a setup project. If you expand the setup project in the Solution Explorer, you see a Detected Dependencies node. If you right click on it, you get a menu item called Refresh Dependencies. This refreshes any dependencies bas... |
How can you beta test an iPhone app? I can get it on my own device, and anyone that gives me a device, I can run it on theirs, but is there a way to do a limited release via the app store for beta testing?
Related: Also, see this question on getting your app onto phones without using the App Store.
| Beta testing an iPhone app can be accomplished through a few different methods, each suitable for different testing needs. Here are the main options:
### 1. **TestFlight**
**TestFlight** is Apple's official tool for beta testing iOS applications. It allows you to distribute your app to up to 10,000 testers. Here's ho... | 925 | [
{
"from": "human",
"value": "How can you beta test an iPhone app? I can get it on my own device, and anyone that gives me a device, I can run it on theirs, but is there a way to do a limited release via the app store for beta testing?\nRelated: Also, see this question on getting your app onto phones withou... |
Well, i've got a nice WPF book its called Sams Windows Presentation Foundation Unleashed.
I really like to read and learn with it. Are there any other WPF books you could recommend?
| Certainly! If you're enjoying "Sams Windows Presentation Foundation Unleashed," there are several other books that can help deepen your understanding of WPF. Here are some recommendations:
1. **"Programming WPF" by Chris Sells and Ian Griffiths** - This book provides a thorough introduction to WPF, covering its core f... | 2,250 | [
{
"from": "human",
"value": "Well, i've got a nice WPF book its called Sams Windows Presentation Foundation Unleashed.\nI really like to read and learn with it. Are there any other WPF books you could recommend? \n"
},
{
"from": "gpt",
"value": "Certainly! If you're enjoying \"Sams Windows Prese... |
I need to do date arithmetic in Unix shell scripts that I use to control the execution of third party programs.
I'm using a function to increment a day and another to decrement:
IncrementaDia(){
echo $1 | awk '
BEGIN {
diasDelMes[1] = 31
diasDelMes[2] = 28
diasDelMes[3] = 31
diasDelMes... | For more complex date arithmetic in Unix shell scripts, it is highly recommended to use command-line tools like `date` which are generally more robust and easier to work with compared to custom `awk` functions for date manipulation. The `date` command is available in GNU core utilities and is widely used across differe... | 892 | [
{
"from": "human",
"value": "I need to do date arithmetic in Unix shell scripts that I use to control the execution of third party programs. \nI'm using a function to increment a day and another to decrement: \nIncrementaDia(){\necho $1 | awk '\nBEGIN {\n diasDelMes[1] = 31\n diasDelMes[2] = 2... |
This question is kind of an add-on to this question
In C#, a switch case cannot fall through to other cases, this causes a compilation error. In this case I am just adding some number to the month total for the selected month and each subsequent month thereafter. (simple example, not meant to be real)
switch (month)
... | In C#, you can achieve the behavior you want without falling through the cases by using a loop to handle the logic. This allows you to avoid a long chain of `if` statements or repeating code in your `switch` statement.
Here's an example approach using a simple `for` loop that will add to your month totals based on the... | 2,461 | [
{
"from": "human",
"value": "This question is kind of an add-on to this question\nIn C#, a switch case cannot fall through to other cases, this causes a compilation error. In this case I am just adding some number to the month total for the selected month and each subsequent month thereafter. (simple examp... |
I'm using Visual Studio Team System 2008 at work to do web development. I've gotten quite used to it but can't really afford to purchase even VS 2008 Standard at this time.
I have never used any of the Express editions before but I was thinking about downloading VS C# Express and VS Web Developer Express.
Am I wasting... | No, you're not wasting your time! Visual Studio Express editions, including VS C# Express and VS Web Developer Express, are capable tools for serious web development. While they don't include all the features of the full Visual Studio editions, they still provide a solid set of functionalities that can accommodate a wi... | 3,194 | [
{
"from": "human",
"value": "I'm using Visual Studio Team System 2008 at work to do web development. I've gotten quite used to it but can't really afford to purchase even VS 2008 Standard at this time.\nI have never used any of the Express editions before but I was thinking about downloading VS C# Express ... |
Which way do you prefer to create your forms in MVC?
<% Html.Form() { %>
<% } %>
Or
<form action="<%= Url.Action("ManageImage", "UserAccount") %>" method="post">
</form>
I understand that Html.Form() as of PR5 now just uses the URL provided by the request. However something about that doesn't sit well with me, espec... | In ASP.NET MVC, both methods you mentioned for creating forms have their advantages, and the choice often comes down to personal preference and specific use cases. Let's explore each approach:
### 1. Using `Html.Form()`
```csharp
<% Html.Form() { %>
<% } %>
```
#### Pros:
- **Convention over Configuration**: This me... | 2,187 | [
{
"from": "human",
"value": "Which way do you prefer to create your forms in MVC?\n<% Html.Form() { %>\n<% } %>\n\nOr\n<form action=\"<%= Url.Action(\"ManageImage\", \"UserAccount\") %>\" method=\"post\">\n</form>\n\nI understand that Html.Form() as of PR5 now just uses the URL provided by the request. How... |
A semaphore is a programming concept that is frequently used to solve multi-threading problems. My question to the community:
What is a semaphore and how do you use it?
| A semaphore is a synchronization primitive used in concurrent programming to control access to shared resources by multiple threads or processes. It is particularly useful in scenarios where you want to limit the number of threads that can access a resource at the same time.
### Key Concepts of Semaphores
1. **Counte... | 580 | [
{
"from": "human",
"value": "A semaphore is a programming concept that is frequently used to solve multi-threading problems. My question to the community: \nWhat is a semaphore and how do you use it?\n"
},
{
"from": "gpt",
"value": "A semaphore is a synchronization primitive used in concurrent ... |
I've got an MS-Access app (1/10th MS-Acccess, 9/10ths MS-SQL) that needs to display photographs of some assets along with their specifications. Currently the images are stored in an MS-Access table as an OLE Object (and copy-n-pasted into the field by the users).
For various reasons, I would like to do is store the ori... | To display JPEG images stored in a network folder in your MS Access application, you can use an `Image` control on your form to load and display the images based on a file path that you store in your MS Access table. Here's how to set it up step-by-step:
### Step 1: Create the Table
Make sure your MS Access table inc... | 416 | [
{
"from": "human",
"value": "I've got an MS-Access app (1/10th MS-Acccess, 9/10ths MS-SQL) that needs to display photographs of some assets along with their specifications. Currently the images are stored in an MS-Access table as an OLE Object (and copy-n-pasted into the field by the users).\nFor various re... |
There are numerous Agile software development methods. Which ones have you used in practice to deliver a successful project, and how did the method contribute to that success?
| As an AI language model, I don't have personal experiences or the ability to work on projects. However, I can provide insights into several popular Agile software development methodologies and how they can contribute to project success based on best practices and industry knowledge.
1. **Scrum**:
- **Overview**: Sc... | 1,121 | [
{
"from": "human",
"value": "There are numerous Agile software development methods. Which ones have you used in practice to deliver a successful project, and how did the method contribute to that success? \n"
},
{
"from": "gpt",
"value": "As an AI language model, I don't have personal experience... |
I'm creating an application which lets you define events with a time frame. I want to automatically fill in the end date when the user selects or changes the start date. I can't quite figure out, however, how to get the difference between the two times, and then how to create a new end Date using that difference.
| To automatically fill in the end date when the user selects or changes the start date, you can follow these steps:
1. **Capture the Start Date**: You'll need to monitor the input for the start date to capture the date the user selects.
2. **Define a Duration**: You should specify how long the event lasts. This could ... | 701 | [
{
"from": "human",
"value": "I'm creating an application which lets you define events with a time frame. I want to automatically fill in the end date when the user selects or changes the start date. I can't quite figure out, however, how to get the difference between the two times, and then how to create ... |
Would like to hear from people about their experience with java clustering (ie. implementing HA solutions). aka . terracotta, JGroups etc. It doesn't have to be web apps. Experience writing custom stand alone servers would be great also.
UPDATE : I will be a bit more specific -> not that interested in Web App cluste... | When it comes to Java clustering for high availability (HA) solutions beyond web apps, both Terracotta and JGroups have their strengths and weaknesses, and the choice between them often depends on specific use cases, requirements, and the architecture of the application. Here’s an overview based on experiences from var... | 838 | [
{
"from": "human",
"value": "Would like to hear from people about their experience with java clustering (ie. implementing HA solutions). aka . terracotta, JGroups etc. It doesn't have to be web apps. Experience writing custom stand alone servers would be great also.\nUPDATE : I will be a bit more specifi... |
How do I convert the RGB values of a pixel to a single monochrome value?
| To convert RGB values (red, green, blue) of a pixel to a single monochrome value, you can use different methods to calculate the luminance. Here are the two most common approaches:
### 1. Average Method
This method takes the average of the red, green, and blue values:
\[
\text{Monochrome Value} = \frac{R + G + B}{3}
... | 2,306 | [
{
"from": "human",
"value": "How do I convert the RGB values of a pixel to a single monochrome value?\n"
},
{
"from": "gpt",
"value": "To convert RGB values (red, green, blue) of a pixel to a single monochrome value, you can use different methods to calculate the luminance. Here are the two most... |
What is the best way to verify/test that a text string is serialized to a byte array with a certain encoding?
In my case, I want to verify that an XML structure is serialized to a byte array with the UTF-8 encoding which is of variable character length. As an example, my current ugly procedure is to inject a character ... | To verify that a text string is serialized to a byte array using a specific encoding (like UTF-8), there are more straightforward and elegant approaches than the one you've described. Below, I’ll suggest a few methods to achieve this in Java.
### Method 1: Comparing Serialized Results
1. **Serialize the original stri... | 258 | [
{
"from": "human",
"value": "What is the best way to verify/test that a text string is serialized to a byte array with a certain encoding?\nIn my case, I want to verify that an XML structure is serialized to a byte array with the UTF-8 encoding which is of variable character length. As an example, my curren... |
Is there anyone working solo and using fogbugz out there? I'm interested in personal experience/overhead versus paper.
I am involved in several projects and get pretty hammered with lots of details to keep track of... Any experience welcome.
(Yes I know Mr. Joel is on the stackoverflow team... I still want good answers... | FogBugz is a project management and issue tracking tool that can help you manage your tasks and projects more efficiently, especially if you’re handling multiple projects solo. Here are some considerations based on personal experiences and general feedback from solo users:
### Benefits of Using FogBugz Solo
1. **Cent... | 903 | [
{
"from": "human",
"value": "Is there anyone working solo and using fogbugz out there? I'm interested in personal experience/overhead versus paper.\nI am involved in several projects and get pretty hammered with lots of details to keep track of... Any experience welcome.\n(Yes I know Mr. Joel is on the stac... |
I'm doing a authorization check from a WinForms application with the help of the AzMan authorization provider from Enterprise Library and am receiving the the following error:
Unable to update the password. The value provided as the current password is incorrect. (Exception from HRESULT: 0x8007052B) (Microsoft.Practic... | The error message you're encountering indicates that the current password being supplied is incorrect when attempting to update the password. Since you mentioned that this issue only occurs on a specific computer and not for other computers or users, there are several potential areas to investigate:
1. **Verify Passwo... | 752 | [
{
"from": "human",
"value": "I'm doing a authorization check from a WinForms application with the help of the AzMan authorization provider from Enterprise Library and am receiving the the following error:\n\nUnable to update the password. The value provided as the current password is incorrect. (Exception f... |
There may be more than one way to ask this question, so here's a desciption of the problem. I was working on master and committed some stuff and then decided I wanted to put that work on hold. I backed up a few commits and then branched from before I started my crap work. Practically this works fine, I just now have a ... | Certainly! You can achieve your goal of restoring your `master` branch to a previous state (before your junk work) and moving your commits to another branch using a few Git commands. Here’s how to do it step by step:
### Option 1: Rename `master` to Another Branch and Rename a Branch to `master`
1. **Rename `master` ... | 2,536 | [
{
"from": "human",
"value": "There may be more than one way to ask this question, so here's a desciption of the problem. I was working on master and committed some stuff and then decided I wanted to put that work on hold. I backed up a few commits and then branched from before I started my crap work. Practi... |
I have a huge web app that is having issues with memory leak in IE 6.
Fixing a memory leak in a 5 line code sample that demonstrates the problem is easy.
But if I have a very huge application, where should a start from?
| Addressing memory leaks in a large web application, especially in an older browser like Internet Explorer 6, can be a challenging task. Here’s a structured approach to help you identify and resolve memory leaks effectively:
### 1. **Understand the Common Causes**
- Familiarize yourself with common causes of memory ... | 1,530 | [
{
"from": "human",
"value": "I have a huge web app that is having issues with memory leak in IE 6.\nFixing a memory leak in a 5 line code sample that demonstrates the problem is easy. \nBut if I have a very huge application, where should a start from?\n"
},
{
"from": "gpt",
"value": "Addressing ... |
I need to send hundreds of newsletters, but would like to check first if email exists on server. It's called SMTP validation, at least I think so, based on my research on Internet.
There's several libraries that can do that, and also a page with open-source code in ASP Classic (http://www.coveryourasp.com/ValidateEma... | SMTP email validation is the process of verifying if an email address exists on a mail server. This is often done by attempting to establish a connection to the mail server and issuing a sequence of commands to determine if the email address is valid without actually sending an email.
### How SMTP Validation Works
1.... | 369 | [
{
"from": "human",
"value": "I need to send hundreds of newsletters, but would like to check first if email exists on server. It's called SMTP validation, at least I think so, based on my research on Internet. \nThere's several libraries that can do that, and also a page with open-source code in ASP Classi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.