instruction stringlengths 14 27.6k | completion stringlengths 3 38.3k | __original_row_idx int64 0 50k | conversations listlengths 2 2 |
|---|---|---|---|
I recently resolved an issue my VB6 application had when saving large binary objects to sql server using ADO 2.8 and the AppendChunck method for Recordset.Field. If the data was too big I would get either 'Invalid Handle' in a for loop or 'Not enough system storage to perform this operation'. I fixed the issue by sen... | It seems like you're working with a SQL Server database and dealing with a large binary object (BLOB) that is stored in a `TEXT`, `IMAGE`, or `VARBINARY(MAX)` column. The limitations you're experiencing with the `UPDATETEXT` function and 8KB chunk sizes can indeed be problematic. However, there are a few alternatives a... | 49,474 | [
{
"from": "human",
"value": "I recently resolved an issue my VB6 application had when saving large binary objects to sql server using ADO 2.8 and the AppendChunck method for Recordset.Field. If the data was too big I would get either 'Invalid Handle' in a for loop or 'Not enough system storage to perform t... |
After reading some threads on misuses of exceptions (basically saying you don't want to unwind the stack if a functions preconditions are incorrect - possibly signalling that all your memory is corrupt or something equally dangerous) I'm thinking about using assert() more often. Previously I have only used assert() as ... | Your concerns about using `assert()` in your code for runtime error checking are valid, especially in contexts where you need to ensure the application does not enter a corrupted state. Here's a breakdown of some key points regarding the use of assertions, error handling, and potential pitfalls:
### 1. Understanding `... | 49,655 | [
{
"from": "human",
"value": "After reading some threads on misuses of exceptions (basically saying you don't want to unwind the stack if a functions preconditions are incorrect - possibly signalling that all your memory is corrupt or something equally dangerous) I'm thinking about using assert() more often.... |
Ok, after seeing this post by PJ Hyett, I have decided to skip to the end and go with Git.
So what I need is a beginner's practical guide to Git. "Beginner" being defined as someone who knows how to handle their compiler, understands to some level what a Makefile is, and has touched source control without understandin... | # Beginner's Practical Guide to Git
This guide is designed for beginners who are familiar with compiling code and have limited exposure to source control. We’ll focus on practical commands and concepts without diving deep into the underlying mechanics of Git.
## 1. Installation/Setup
### How to Install Git
- **Linux... | 41,629 | [
{
"from": "human",
"value": "Ok, after seeing this post by PJ Hyett, I have decided to skip to the end and go with Git.\nSo what I need is a beginner's practical guide to Git. \"Beginner\" being defined as someone who knows how to handle their compiler, understands to some level what a Makefile is, and has... |
I am trying to use Bill the Lizard's code to send an email using Google Apps. I am getting this error:
Exception in thread "main" javax.mail.SendFailedException: Sending failed;
nested exception is:
javax.mail.MessagingException: 530 5.7.0 Must issue a STARTTLS command first. f3sm9277120nfh.74
at javax.mai... | The error you're encountering indicates that the JavaMail API is trying to send an email using SMTP but requires an explicit command to start TLS (Transport Layer Security) encryption before proceeding. The line `props.put("mail.smtp.starttls.enable", "true");` is indeed needed to enable this, but it seems there's a po... | 48,480 | [
{
"from": "human",
"value": "I am trying to use Bill the Lizard's code to send an email using Google Apps. I am getting this error: \nException in thread \"main\" javax.mail.SendFailedException: Sending failed;\n nested exception is: \n javax.mail.MessagingException: 530 5.7.0 Must issue a STARTTLS comm... |
I have a scenario in which I'm going to need an arbitrary number of servers to provide the same SOAP web service. I would like to generate one set of proxy classes and be able to supply them with a location to point them at the different servers at runtime. Unfortunately, it looks as though the wsdl:port node (child of... | You're correct that the way WSDL and the generated proxy classes work can create a tight coupling between the service interface and the server address. However, there are several strategies you can use to decouple the service location from the interface definition without manually editing the generated code or modifyin... | 47,451 | [
{
"from": "human",
"value": "I have a scenario in which I'm going to need an arbitrary number of servers to provide the same SOAP web service. I would like to generate one set of proxy classes and be able to supply them with a location to point them at the different servers at runtime. Unfortunately, it loo... |
I'd like a textbox that allows for certain text within to be "constant" and uneditable while the rest of the text is editable. For instance, I'd like to define a template like this:
<Name:>[]
<Address:>[] <City>:[]
So that the user could later enter:
<Name:>[Stefan]
<Address:>[Nowhere] <City>:[Alaska]
But not:
<I'm ... | To create a text input where certain text is constant and uneditable while allowing the user to fill in other parts, you can use a combination of fixed labels and input fields rather than relying on a single text box. This approach would allow you to maintain the desired structure, preventing users from modifying the c... | 48,012 | [
{
"from": "human",
"value": "I'd like a textbox that allows for certain text within to be \"constant\" and uneditable while the rest of the text is editable. For instance, I'd like to define a template like this:\n<Name:>[]\n<Address:>[] <City>:[]\n\nSo that the user could later enter:\n<Name:>[Stefan]\n<A... |
Is it possible to embed a windows form within another windows form?
I have created a windows form in Visual Studio along with all its associated behaviour.
I now want to create another windows form containing a tab view, and I want to embed the first windows form into the tab view. Is this possible?
| Yes, it is possible to embed one Windows Forms (WinForms) into another WinForm in a Windows Forms application. You can achieve this by using a `UserControl`, which can host your first form, and then you can embed that `UserControl` into a tab page on your main form.
Here’s how you can do it:
### Step-by-Step Process
... | 44,049 | [
{
"from": "human",
"value": "Is it possible to embed a windows form within another windows form?\nI have created a windows form in Visual Studio along with all its associated behaviour.\nI now want to create another windows form containing a tab view, and I want to embed the first windows form into the tab ... |
I've got a program that tends to crash quite often while I'm asleep and I need to keep it running. So I thought I might writeup a vb6 application that monitors the process list, if something disappears it will relaunch it. Anyone know of an easy way?
| Creating a VB6 application that monitors the process list and relaunches a specific application if it crashes is definitely feasible. Below is a simple example of how you can achieve this using VB6.
### Step-by-step Guide
1. **Create a New VB6 Project**:
Open VB6 and create a new Standard EXE project.
2. **Add a ... | 47,510 | [
{
"from": "human",
"value": "I've got a program that tends to crash quite often while I'm asleep and I need to keep it running. So I thought I might writeup a vb6 application that monitors the process list, if something disappears it will relaunch it. Anyone know of an easy way?\n"
},
{
"from": "g... |
I'm just finishing up a computer architecture course this semester where, among other things, we've been dabbling in MIPS assembly and running it in the MARS simulator. Today, out of curiosity, I started messing around with NASM on my Ubuntu box, and have basically just been piecing things together from tutorials and g... | The behavior you're encountering is due to how the stack works in your assembly code. In your code snippet, the lines `pop ecx` are popping values off the stack into the `ecx` register. The stack is a data structure that grows downward in memory and is typically used to store temporary data, including function paramete... | 47,784 | [
{
"from": "human",
"value": "I'm just finishing up a computer architecture course this semester where, among other things, we've been dabbling in MIPS assembly and running it in the MARS simulator. Today, out of curiosity, I started messing around with NASM on my Ubuntu box, and have basically just been pie... |
I am develop a medium system in ASP.net with MS SQL Server Database and I wonder what is the best way to create a model layer with LINQ or create own classes that dealing with database?
| When developing a medium-sized application in ASP.NET with MS SQL Server, you have a couple of options for your data access layer: using LINQ (especially with Entity Framework or LINQ to SQL) or creating your own data access classes that directly interact with the database. Each approach has its pros and cons, and the ... | 49,321 | [
{
"from": "human",
"value": "I am develop a medium system in ASP.net with MS SQL Server Database and I wonder what is the best way to create a model layer with LINQ or create own classes that dealing with database?\n"
},
{
"from": "gpt",
"value": "When developing a medium-sized application in AS... |
Im writing a .net webforms app. It has a number of classes, for example users, bookings etc.
At the moment I have a number of manager classes, say bookingManager, that manage these classes. For example when creating a new booking, you call the add method in the bookingManager, and pass a booking. It then checks the boo... | Using manager classes to handle your business logic in a .NET Web Forms application is a common practice, especially in scenarios where you have distinct entities such as Users and Bookings. However, there are several design patterns and best practices you can consider to improve the architecture of your application an... | 48,461 | [
{
"from": "human",
"value": "Im writing a .net webforms app. It has a number of classes, for example users, bookings etc.\nAt the moment I have a number of manager classes, say bookingManager, that manage these classes. For example when creating a new booking, you call the add method in the bookingManager, ... |
I've got multiple UpdatePanel's on a page and i'm updating 2 of them manually by calling __doPostBack.
However the problem is the first call seems to be reset when the second call is made (it never updates the panel that i requested to update first).
I've got these calls wrapped in setTimeout, but it does not seem to h... | The issue you're experiencing may be due to the fact that the `__doPostBack` function triggers asynchronous postbacks for ASP.NET UpdatePanels, and if multiple postbacks are initiated in quick succession, they can interfere with each other, leading to unpredictable results.
### Suggested Solutions
1. **Sequential Pos... | 47,489 | [
{
"from": "human",
"value": "I've got multiple UpdatePanel's on a page and i'm updating 2 of them manually by calling __doPostBack.\nHowever the problem is the first call seems to be reset when the second call is made (it never updates the panel that i requested to update first).\nI've got these calls wrapp... |
I'm building a website to display products, and categories of products. The data comes from an external service in the form of a 500k XML file. The website is ASP.NET, C#.
The XML is structured as a list of categories. Inside each category might be some products and/or some more categories.
Obviously, we cannot call th... | Your questions touch on various aspects of application architecture, performance, and best practices when dealing with large XML data and caching in an ASP.NET web application. Let's address your concerns step by step:
### 1. Memory Usage and Caching of XML Data
When you load the XML data into memory (e.g., using `XD... | 45,787 | [
{
"from": "human",
"value": "I'm building a website to display products, and categories of products. The data comes from an external service in the form of a 500k XML file. The website is ASP.NET, C#.\nThe XML is structured as a list of categories. Inside each category might be some products and/or some mor... |
I want to use pretty 3d button images on my website. However, currently the way this works is the text is part of the image.
So, when I want to change the text (or make a new button) it's a 10 minute editing chore instead of a 20 second text change.
I've seen a few websites that have a blank button with text on it.
The... | To create a 3D button effect with a clickable area that is the entire button, you can indeed use CSS to style a `div` or an `a` tag with a background image while placing the text inside it. This will allow you to change the text without editing the image itself. Here's how you can achieve this:
### HTML Structure
You... | 49,833 | [
{
"from": "human",
"value": "I want to use pretty 3d button images on my website. However, currently the way this works is the text is part of the image.\nSo, when I want to change the text (or make a new button) it's a 10 minute editing chore instead of a 20 second text change.\nI've seen a few websites th... |
We're trying to decide between having all the devs on a particular team to use an absolute path for their code base or if relative paths are fine.
One reason I can think for an absolute path, meaning everyone has the same path, is because of IIS and functional tests. Our asp.net functional test use Nunit and WatiN to ... | Using absolute paths for your code base can provide some benefits, especially in the context you described. However, there are also several trade-offs that you should consider. Here are some reasons why you might lean towards using absolute paths, as well as potential deal breakers that might argue against them:
### R... | 49,647 | [
{
"from": "human",
"value": "We're trying to decide between having all the devs on a particular team to use an absolute path for their code base or if relative paths are fine.\nOne reason I can think for an absolute path, meaning everyone has the same path, is because of IIS and functional tests. Our asp.n... |
So, I am trying to deploy a Web Application feature that updates the web.config using the WebConfigModifications collection. There is lots of information on doing this including all the issues you run into so I am very confident in the code but no matter what I try the config elements are not added to the web config. T... | It sounds like you are dealing with a situation in SharePoint where modifications to the `web.config` file are not being applied as expected when deploying to a farm environment, despite your code working fine in a development environment. This can be a common issue with SharePoint due to the way configuration modifica... | 49,931 | [
{
"from": "human",
"value": "So, I am trying to deploy a Web Application feature that updates the web.config using the WebConfigModifications collection. There is lots of information on doing this including all the issues you run into so I am very confident in the code but no matter what I try the config el... |
I have a mobile platform that I am trying to write some communications code on.
The platform provides a proprietary communication mechanism that is based on standard socket functions. Basically, the platform's socket API looks exactly the same as the standard Windows Socket API, except with a prefix on each of the fun... | Creating a custom socket-based transport for WCF (Windows Communication Foundation) can be a complex task, especially if you're trying to create a transport that can use HTTP bindings over your proprietary socket mechanism. However, I can guide you through some essential concepts and steps to help you get started.
###... | 47,615 | [
{
"from": "human",
"value": "I have a mobile platform that I am trying to write some communications code on.\nThe platform provides a proprietary communication mechanism that is based on standard socket functions. Basically, the platform's socket API looks exactly the same as the standard Windows Socket AP... |
I am trying to unlock a file from a C# program, using unlocker.
In my UI, I put a button to unlock the file the app couldn't delete. When the user pushes the button, I want unlocker (the famous app) to be opened.
I have read about in the Unlocker web, and there is some explanations about the commandline to use but noth... | To execute an external application like Unlocker from a C# program, you can use the `Process` class in the `System.Diagnostics` namespace. It's important to ensure that you are correctly specifying the file path, including escaping the backslashes (`\\`) in the file path or using a verbatim string with the `@` symbol.
... | 45,508 | [
{
"from": "human",
"value": "I am trying to unlock a file from a C# program, using unlocker.\nIn my UI, I put a button to unlock the file the app couldn't delete. When the user pushes the button, I want unlocker (the famous app) to be opened.\nI have read about in the Unlocker web, and there is some explana... |
for a paper I'm looking for an real-life C function which uses volatile variables. That in itself is not hard to find, but I am looking for a function in which the value of the volatile variable must change during the course of the execution of the function, for a particular branch of the function to be reached. Some... | A suitable example that showcases the use of `volatile` variables, particularly in embedded systems or hardware-related programming, is often found in interrupt service routines (ISRs) or polling operations for hardware status registers. These scenarios typically involve waiting for a certain flag or status to change, ... | 48,760 | [
{
"from": "human",
"value": "for a paper I'm looking for an real-life C function which uses volatile variables. That in itself is not hard to find, but I am looking for a function in which the value of the volatile variable must change during the course of the execution of the function, for a particular br... |
Server 2008 machine with SP1, Visual Studio 2008 with SP1. My user; Developer, is in the local Administrators group. That said, some actions I perform in Visual Studio (use the properties window of a web application to invoke the creation of a virtual directory in local IIS) tell me that Admin privileges are required. ... | In Windows Server 2008, even if your user account is a member of the local Administrators group, User Account Control (UAC) can still impose certain restrictions on what actions can be performed without explicit elevation. Here are some key points to understand this behavior:
1. **User Account Control (UAC)**: UAC is ... | 45,978 | [
{
"from": "human",
"value": "Server 2008 machine with SP1, Visual Studio 2008 with SP1. My user; Developer, is in the local Administrators group. That said, some actions I perform in Visual Studio (use the properties window of a web application to invoke the creation of a virtual directory in local IIS) tel... |
I have two third-party libraries occasionally having the same symbol name exported. When the executable is loaded, ld usually picks the wrong one and I getting crash as a result. I cannot do too much about the content of these libraries, so may be there is a way to instruct ld how to find the proper imlementation ?
OS ... | Dealing with symbol conflicts between third-party libraries can be challenging, especially when you're working on a platform like Solaris. Here are a few strategies you can try to resolve the symbol conflict between the `libclntsh` (Oracle driver) and `libldap_r` (OpenLDAP):
### 1. Use Symbol Versioning
If you can mo... | 49,916 | [
{
"from": "human",
"value": "I have two third-party libraries occasionally having the same symbol name exported. When the executable is loaded, ld usually picks the wrong one and I getting crash as a result. I cannot do too much about the content of these libraries, so may be there is a way to instruct ld h... |
Make a new AS3 Document in Flash, paste in the following code and run it:
var a:Number=0;
trace(a) // 0
a+=0.3;
trace(a) // 0.3
a+=0.3;
trace(a) // 0.6
a+=0.3;
trace(a) // 0.8999999999999999
a+=0.3;
trace(a) // 1.2
a+=0.3;
trace(a) // 1.5
a+=0.3;
trace(a) // 1.8
a+=0.3;
trace(a) // 2.1
a+=0.3;
... | The behavior you're observing is due to the way floating-point numbers are represented in computers. Most programming languages, including ActionScript 3 (AS3), use binary floating-point representation as defined by the IEEE 754 standard. This representation can introduce small inaccuracies when dealing with decimal nu... | 46,168 | [
{
"from": "human",
"value": "Make a new AS3 Document in Flash, paste in the following code and run it:\nvar a:Number=0;\ntrace(a) // 0\na+=0.3;\ntrace(a) // 0.3\na+=0.3;\ntrace(a) // 0.6\na+=0.3;\n\ntrace(a) // 0.8999999999999999\na+=0.3;\ntrace(a) // 1.2\na+=0.3;\ntrace(a) // 1.5\na+=0.3;\ntrac... |
Ok, let me explain more... the goal is to make the checkbox checked if there's a change on select. The actual code was:
function checkit(date)
{
document.forms[0].date.checked = true;
}
<input type="checkbox" name="date[]" value="2008-08-14">Aug 14, 2008<br>
<select name="slot[]" size="1" onchange="checkit(date[]... | To achieve what you're describing—checking the appropriate checkbox based on the selected option in its corresponding dropdown—you need to ensure that your JavaScript function can correctly identify which checkbox should be checked based on the dropdown that triggered the `onchange` event.
Here's an updated version of... | 49,179 | [
{
"from": "human",
"value": "Ok, let me explain more... the goal is to make the checkbox checked if there's a change on select. The actual code was:\nfunction checkit(date)\n{\n document.forms[0].date.checked = true;\n}\n\n\n<input type=\"checkbox\" name=\"date[]\" value=\"2008-08-14\">Aug 14, 2008<br> \n ... |
In the past I've written sites in ASP.NET just to get nice reusable templating via master pages (layouts) and user controls (partials). I'm talking about sites that have no more complicated code in them than simple variable substitution in templates - I'm just using it to keep my HTML organized. It's great to be able t... | It sounds like you're looking for a lightweight templating system in PHP that allows for reusable layouts and partials without the overhead of more complex frameworks. Here are a few options that might suit your needs:
1. **Twig**:
- Twig is a modern templating engine for PHP that is fast, secure, and flexible. It ... | 48,342 | [
{
"from": "human",
"value": "In the past I've written sites in ASP.NET just to get nice reusable templating via master pages (layouts) and user controls (partials). I'm talking about sites that have no more complicated code in them than simple variable substitution in templates - I'm just using it to keep m... |
I'm intrigued by the idea in TeamCity of pre-testing commits (i.e. verifying they don't break the build before allowing check-in to occur) and I'm wondering if there is any way to implement this in TFS. It looks like TeamCity can interface to TFS version control as a backing store but of course I'd prefer a free soluti... | Implementing a pre-testing mechanism for commits in TFS (Team Foundation Server) is a great way to ensure that your codebase remains stable. While TFS doesn't natively support the same pre-commit hooks that some other version control systems do, there are still a few strategies you can implement to achieve a similar ou... | 49,882 | [
{
"from": "human",
"value": "I'm intrigued by the idea in TeamCity of pre-testing commits (i.e. verifying they don't break the build before allowing check-in to occur) and I'm wondering if there is any way to implement this in TFS. It looks like TeamCity can interface to TFS version control as a backing sto... |
We have a WinForms desktop application that uses the .NET 2.0 framework WebBrowser control quite extensively for displaying HTML. The HTML may be simple, or quite complicated. It may reside on disk, or it may be written directly to the document property at runtime.
I was wondering if anyone had any experience with usi... | Using jQuery in a WinForms desktop application with the .NET 2.0 framework's WebBrowser control is indeed possible, and you can reference the jQuery library just as you would in a web application. However, there are a few considerations and potential pitfalls to keep in mind:
### How to Use jQuery with WebBrowser Cont... | 46,964 | [
{
"from": "human",
"value": "We have a WinForms desktop application that uses the .NET 2.0 framework WebBrowser control quite extensively for displaying HTML. The HTML may be simple, or quite complicated. It may reside on disk, or it may be written directly to the document property at runtime. \nI was wonde... |
If there will be a small number of files it should be easy with a recursive function to pass through all the files and add the size but what if there are lots of files, and by lots i really mean lots of files.
| When dealing with a very large number of files, using a recursive function can indeed be straightforward, but it may lead to performance issues or even stack overflow errors due to excessive recursion depth. Additionally, it might not be the most efficient way to traverse the filesystem.
Here are several strategies yo... | 49,124 | [
{
"from": "human",
"value": "If there will be a small number of files it should be easy with a recursive function to pass through all the files and add the size but what if there are lots of files, and by lots i really mean lots of files.\n"
},
{
"from": "gpt",
"value": "When dealing with a very... |
I have data bound DataGridView in a desktop app with columns that have their ToolTipText property set, yet no tool tip is displayed when I hover over grid view (cells or cell headers).
The ShowCellToolTips property of the grid view is true, and I have verified using break points that it is not changed programmatically ... | It sounds like you've already checked a few common points of failure regarding tooltips in a `DataGridView`. Since you're using .NET Framework 2.0, here are a few more troubleshooting steps and considerations that might help resolve the issue:
1. **Data Binding**: Ensure that the `DataGridView` is properly bound to a ... | 49,860 | [
{
"from": "human",
"value": "I have data bound DataGridView in a desktop app with columns that have their ToolTipText property set, yet no tool tip is displayed when I hover over grid view (cells or cell headers).\nThe ShowCellToolTips property of the grid view is true, and I have verified using break point... |
When you are developing a web-based application and you want to allow richly formatted text from the user you have to make a choice about how to allow that input. Many different markup languages have been created because it is arguably more difficult to sanitize HTML.
What are the advantages and disadvantages of the v... | When developing a web-based application that allows user-generated richly formatted text, the choice of markup language is crucial. Each markup language has its own strengths and weaknesses, which can significantly impact user experience, security, and ease of implementation. Here are some of the key considerations whe... | 45,370 | [
{
"from": "human",
"value": "When you are developing a web-based application and you want to allow richly formatted text from the user you have to make a choice about how to allow that input. Many different markup languages have been created because it is arguably more difficult to sanitize HTML.\nWhat are... |
I have an ASP.net application that has a request item, which is disappearing after several postbacks. The postbacks are just for validation and ajax calls. The session is not resetting as I still have ~60 items in the params collection.
| When working with ASP.NET applications, especially those that make use of postbacks or AJAX calls, it's important to understand the scope and lifecycle of different state management mechanisms such as Request, Session, ViewState, and so on.
1. **Understanding Request Scope**:
- The `Request` object is specific to a... | 49,945 | [
{
"from": "human",
"value": "I have an ASP.net application that has a request item, which is disappearing after several postbacks. The postbacks are just for validation and ajax calls. The session is not resetting as I still have ~60 items in the params collection.\n"
},
{
"from": "gpt",
"value"... |
I see the "More Action" drop-down box in gmail inbox page.
It has levels and some disabled item in the list.
How to do that in HTML+CSS?
Thank you
| Creating a "More Actions" drop-down menu similar to the one in Gmail can be accomplished using HTML, CSS, and a bit of JavaScript for interactivity. Below is a simple implementation that demonstrates how to create a dropdown menu with enabled and disabled items.
### HTML
```html
<!DOCTYPE html>
<html lang="en">
<head>... | 46,405 | [
{
"from": "human",
"value": "I see the \"More Action\" drop-down box in gmail inbox page.\nIt has levels and some disabled item in the list.\nHow to do that in HTML+CSS?\nThank you\n"
},
{
"from": "gpt",
"value": "Creating a \"More Actions\" drop-down menu similar to the one in Gmail can be acco... |
Quake3 has disabled the alt and windows keys.
Is there any way to reenable them even while quake3 is running? I need those keys even while I have the game open.
They way I think it works is that the game registers a hotkey using RegisterHotKey and then sets the handled property to true every time the key is pressed.
So... | Re-enabling specific keys while a game like Quake III is running can be quite tricky, as you noted. The game is likely intercepting those key events at the application level. While the approach you're thinking of—using `UnregisterHotKey`—is logical, unfortunately, there is no direct way to enumerate all the hotkeys reg... | 47,431 | [
{
"from": "human",
"value": "Quake3 has disabled the alt and windows keys.\nIs there any way to reenable them even while quake3 is running? I need those keys even while I have the game open.\nThey way I think it works is that the game registers a hotkey using RegisterHotKey and then sets the handled propert... |
Looking for good project methodologies.Anyone got some good reference links..want to share.
| Certainly! Here are some widely recognized project management methodologies along with brief descriptions and links for further reading:
1. **Agile**: Agile is an iterative and incremental project management methodology, primarily used in software development, which focuses on delivering small, workable increments of ... | 45,080 | [
{
"from": "human",
"value": "Looking for good project methodologies.Anyone got some good reference links..want to share.\n"
},
{
"from": "gpt",
"value": "Certainly! Here are some widely recognized project management methodologies along with brief descriptions and links for further reading:\n\n1.... |
I'm using ASP.NET MVC and I have a partial control that needs a particular CSS & JS file included. Is there a way to make the parent page render the script and link tags in the 'head' section of the page, rather than just rendering them inline in the partial contol?
To clarify the control that I want to include the fi... | In ASP.NET MVC, rendering resources like CSS and JavaScript files for a partial view can be a bit tricky since partial views are designed to be self-contained and do not have access to the layout's `<head>` section. However, you can manage this by using a few different approaches to ensure that the necessary CSS and Ja... | 48,511 | [
{
"from": "human",
"value": "I'm using ASP.NET MVC and I have a partial control that needs a particular CSS & JS file included. Is there a way to make the parent page render the script and link tags in the 'head' section of the page, rather than just rendering them inline in the partial contol?\nTo clarify... |
I'm building a small web app in PHP that stores some information in a plain text file. However, this text file is used/modified by all users of my app at some given point in time and possible at the same time.
So the questions is. What would be the best way to make sure that only one user can make changes to the file a... | When multiple users can potentially access and modify the same resource concurrently, such as a text file, it is crucial to implement proper file locking to prevent data corruption and ensure data integrity. Here are a few strategies to consider when building your PHP web app to safely manage concurrent access to a tex... | 48,800 | [
{
"from": "human",
"value": "I'm building a small web app in PHP that stores some information in a plain text file. However, this text file is used/modified by all users of my app at some given point in time and possible at the same time.\nSo the questions is. What would be the best way to make sure that on... |
I have a webpart that renders random list items (from any list and list type) in a specified format. I want the items that are being displayed in the webpart to link to their ListItem detail views. However, I don't see a property on the list itself that would tell me what view is the default DETAIL view for the list ... | In SharePoint, the default detail view of a list item can vary based on the list type and the configurations of your SharePoint environment. While there is no single property that explicitly defines the detail view for all list types, you can typically derive the appropriate URL for the detail view by utilizing SharePo... | 49,607 | [
{
"from": "human",
"value": "I have a webpart that renders random list items (from any list and list type) in a specified format. I want the items that are being displayed in the webpart to link to their ListItem detail views. However, I don't see a property on the list itself that would tell me what view... |
Our company (xyz) is moving a lot of our Flash code to Python.
In Flash, we have a shared library between our Flash apps - package xyz. We can make changes to the package without fear of breaking other apps when they are deployed because Flash compiles their code and includes the contents of the library. We deploy the ... | Transitioning from Flash to Python while managing shared libraries and dependencies can be challenging. Here are several approaches to consider that balance modularity, stability, and developer efficiency:
### 1. **Versioned Shared Libraries**:
Implement a versioning strategy for your shared library. Each app can expl... | 47,466 | [
{
"from": "human",
"value": "Our company (xyz) is moving a lot of our Flash code to Python.\nIn Flash, we have a shared library between our Flash apps - package xyz. We can make changes to the package without fear of breaking other apps when they are deployed because Flash compiles their code and includes t... |
I'm porting our old Active-Record based API over to a new structure to make unit testing easier etc. We are using the repository pattern for our data access and StructureMap for dependency injection.
I'm struggling a little now with how to structure everything. Using our 'Product' class as an example, we previously had... | Hi James,
It's great that you're moving towards a more structured approach to your application, as it can significantly improve the maintainability and testability of your code. Your current design does raise some concerns, particularly with the tight coupling between the `Product` model and the service layer (`IProdu... | 49,964 | [
{
"from": "human",
"value": "I'm porting our old Active-Record based API over to a new structure to make unit testing easier etc. We are using the repository pattern for our data access and StructureMap for dependency injection.\nI'm struggling a little now with how to structure everything. Using our 'Produ... |
I am trying to coach some guys on building web applications. They understand and use MVC, but I am interested in other common patterns that you use in building web apps.
So, what patterns have you found to fit nicely into a properly MVC app. Perhaps something for Asynchronous processes, scheduled tasks, dealing with ... | It's great that you're helping others understand web application development! While MVC is a foundational pattern, there are several additional architectural and design patterns that can complement it effectively, especially in the context of asynchronous processes, scheduled tasks, and handling emails. Here are some c... | 46,862 | [
{
"from": "human",
"value": "I am trying to coach some guys on building web applications. They understand and use MVC, but I am interested in other common patterns that you use in building web apps. \nSo, what patterns have you found to fit nicely into a properly MVC app. Perhaps something for Asynchronous... |
Is there a way to update more than one Database having same schema using single ObjectDataSource in C#???
i.e Just by providing more than one connection string is it some how possible to update more than one Database? I need to update/insert same record in multiple Database with same schema using ObjectDataSource in C#... | The `ObjectDataSource` in ASP.NET is a component that allows you to bind data to controls and supports CRUD (Create, Read, Update, Delete) operations. However, it is not natively designed to support operations across multiple databases in a single call.
To achieve the functionality of updating or inserting the same re... | 49,711 | [
{
"from": "human",
"value": "Is there a way to update more than one Database having same schema using single ObjectDataSource in C#???\ni.e Just by providing more than one connection string is it some how possible to update more than one Database? I need to update/insert same record in multiple Database wit... |
From reading here and around the net, I'm close to assuming the answer is "no", but...
Let's say I have an ASP.Net page that sometimes has a query string parameter. If the page has the query string parameter, I want to strip it off before, during, or after postback. The page already has a lot of client-side script (pur... | To achieve your goal of removing the query string parameter after the initial load of your ASP.NET page while allowing normal postback behavior, you can utilize a combination of server-side logic and client-side redirection.
Here's a step-by-step approach to accomplish this:
1. **Check for the Query String on Initial... | 49,431 | [
{
"from": "human",
"value": "From reading here and around the net, I'm close to assuming the answer is \"no\", but...\nLet's say I have an ASP.Net page that sometimes has a query string parameter. If the page has the query string parameter, I want to strip it off before, during, or after postback. The page ... |
I'm trying to launch another process from a service (it's a console app that collects some data and writes it to the registry) but for some reason I can't get it to launch properly.
I basics of what I'm am trying to do is as follows:
Launch the process
Wait for the process to finish
Retrieve the return code from the p... | It looks like you're facing an issue with launching a console application from a Windows service, where the application appears to hang when executed. This is a common situation due to the interaction of services and user session interfaces. Here are a few points to consider and some potential solutions:
### Reasons f... | 46,984 | [
{
"from": "human",
"value": "I'm trying to launch another process from a service (it's a console app that collects some data and writes it to the registry) but for some reason I can't get it to launch properly.\nI basics of what I'm am trying to do is as follows:\n\nLaunch the process\nWait for the process ... |
I have two services and am sending pretty chunky messages between them (~100kb). Though the previously mentioned value is typical of the size of the message, it is possible for it to fluctuate greatly (in both positive and negative directions).
Thus, to deal with such situations where i have to transport a swollen mess... | The behavior you're experiencing with your inter-service communication, where larger messages are not being received without throwing exceptions, can be frustrating. There are several factors and settings that could be influencing this situation. Here are some possible areas to investigate:
1. **Bindings and Maximum S... | 46,231 | [
{
"from": "human",
"value": "I have two services and am sending pretty chunky messages between them (~100kb). Though the previously mentioned value is typical of the size of the message, it is possible for it to fluctuate greatly (in both positive and negative directions).\nThus, to deal with such situation... |
I have a question about css selectors.
Say I have the following html
<div class="message">
<div class="messageheader">
<div class='name'>A news story</div>
</div>
</div>
In the css I could refer to the class called name either like this
div.message div.messageheader div.name {}
or
.name {} /* ie *.name{} */
... | In the initial scenario you provided, both ways of selecting the `.name` class in CSS are valid, but they serve different purposes, and one may be better suited than the other based on context and your goals.
### 1. Specificity
- **Specific Selector**: `div.message div.messageheader div.name {}` is more specific. It t... | 47,220 | [
{
"from": "human",
"value": "I have a question about css selectors.\nSay I have the following html \n<div class=\"message\">\n <div class=\"messageheader\">\n <div class='name'>A news story</div>\n </div>\n</div>\n\nIn the css I could refer to the class called name either like this\ndiv.message div.mes... |
As a UI guy (coding and designing user interfaces) I often find myself in the odd situation arguing about the quality of userinterfaces with programmers and other "laymen".
I find it somewhat hard to argue about things like colors, icons or layout and it doesn't seem that there is a factual right or wrong. But still - ... | Navigating discussions about user interface design can indeed be challenging, especially when the perspectives of designers and developers (or other stakeholders) differ. Here are several strategies you can use to approach these discussions effectively:
### 1. **Ground Discussions in User-Centered Principles**
- **... | 49,839 | [
{
"from": "human",
"value": "As a UI guy (coding and designing user interfaces) I often find myself in the odd situation arguing about the quality of userinterfaces with programmers and other \"laymen\".\nI find it somewhat hard to argue about things like colors, icons or layout and it doesn't seem that the... |
Is it possible to host a Maven repository that serves the artifacts (at least the jar files) from SourceForge's file release system (since they are already there and SF provides download statistics and such)?
All the repositories I have seen use the same directory layout, but is that a must?
Download URLs would have t... | Hosting a Maven repository that serves artifacts from SourceForge's file release system is possible, but there are several considerations to keep in mind. Maven expects artifacts to be organized in a specific directory layout, and it uses a well-defined metadata structure for dependency resolution. However, since you m... | 49,730 | [
{
"from": "human",
"value": "Is it possible to host a Maven repository that serves the artifacts (at least the jar files) from SourceForge's file release system (since they are already there and SF provides download statistics and such)? \nAll the repositories I have seen use the same directory layout, but ... |
I am using jQuery to invoke page methods for my AJAX calls using $.Ajax. This works very well, and is very lightweight. However, I have noticed that when an exception is thrown from the .NET code, Elmah just logs it as a File Not Found exception, or will not log anything at all, rather than logging the actual exception... | When you're using jQuery AJAX calls to invoke server-side methods, if an exception occurs during the execution of the method, it can sometimes lead to situations where Elmah (Error Logging Modules and Handlers for ASP.NET) doesn't log the actual exception as you expect. Instead, you might see a generic File Not Found e... | 46,311 | [
{
"from": "human",
"value": "I am using jQuery to invoke page methods for my AJAX calls using $.Ajax. This works very well, and is very lightweight. However, I have noticed that when an exception is thrown from the .NET code, Elmah just logs it as a File Not Found exception, or will not log anything at all,... |
I've got a number of WebService methods that all include some very boilerplate code of wrapping the actual work in a try/catch/finally and performing the same tasks in the catch/finally. So as a way to encapsulate all of the shared catch/finally stuff I wrote a simple generic.
This works and really eliminates a bunch o... | Your approach to handling common boilerplate code in web service methods using a generic delegate and an exception handler is certainly a valid technique to reduce code duplication. However, it can indeed lead to code that is less readable and harder to understand, especially for those who are not familiar with your de... | 49,520 | [
{
"from": "human",
"value": "I've got a number of WebService methods that all include some very boilerplate code of wrapping the actual work in a try/catch/finally and performing the same tasks in the catch/finally. So as a way to encapsulate all of the shared catch/finally stuff I wrote a simple generic.\n... |
As you can see in the image below I have a tree datamodel consisting of groups that can contain other groups plus an arbitary number of items wich again can hold Parameters. The Parameters itself are defined globally and just reoccur in the items. Only the parameter's actual value may differ from parameter usage to par... | To achieve the layout you want using WPF, you can use a combination of `ItemsControl` instead of a `TreeView`, since `ItemsControl` allows more flexible layout control. You can use a `Grid` or `UniformGrid` to achieve the desired columnar layout. Below is a step-by-step approach to accomplish your layout with MVVM:
##... | 45,794 | [
{
"from": "human",
"value": "As you can see in the image below I have a tree datamodel consisting of groups that can contain other groups plus an arbitary number of items wich again can hold Parameters. The Parameters itself are defined globally and just reoccur in the items. Only the parameter's actual val... |
I've been doing html, css and javascript for quite a long time, mostly for my very own enjoyment. I would say I know fairly much, I've created many simple games and apps and experiments with javascript. However there is only so much that is possible to do in the browser, for any more "complete" websites I am constantly... | It's great to hear that you've been enjoying HTML, CSS, and JavaScript and have created various projects! Moving into server-side programming and database management will open up many more possibilities for your web applications. Here’s a guide to help you get started:
### 1. Server-Side Programming Languages
You hav... | 47,337 | [
{
"from": "human",
"value": "I've been doing html, css and javascript for quite a long time, mostly for my very own enjoyment. I would say I know fairly much, I've created many simple games and apps and experiments with javascript. However there is only so much that is possible to do in the browser, for any... |
It seems like more and more OS X apps these days are doing all kinds of fancy drawing stuff for custom controls. Apps like Twitterific, Things, EventBox, Versions just to name a few....
So basically I'm looking for any information on how to get started doing this kind of thing. Not sure if it is just done by subclassin... | Creating custom controls with fancy drawing in macOS (formerly known as OS X) applications involves understanding a combination of Core Graphics, AppKit, and potentially some custom view drawing techniques. Below are some steps and concepts to help you get started with custom control creation and drawing:
### 1. Under... | 47,365 | [
{
"from": "human",
"value": "It seems like more and more OS X apps these days are doing all kinds of fancy drawing stuff for custom controls. Apps like Twitterific, Things, EventBox, Versions just to name a few....\nSo basically I'm looking for any information on how to get started doing this kind of thing.... |
I want to align my member variables based on a class template type but I'm not sure if it is actually possible.
The following is a (very) simple example of what I'd like to do
template<int Align>
class MyClass
{
private:
struct MyStruct
{
// Some stuff
} __declspec(align(Align));
__declspec(align(Align)) i... | In C++, the alignment of types cannot be set based on a runtime value; it can only be done using compile-time constants. In your case, `Align` is a template parameter that is used at compile time, but it's defined as a non-type template parameter, which indeed requires that it be a constant expression.
Here’s a way to... | 49,503 | [
{
"from": "human",
"value": "I want to align my member variables based on a class template type but I'm not sure if it is actually possible.\nThe following is a (very) simple example of what I'd like to do\ntemplate<int Align>\nclass MyClass\n{\nprivate:\n struct MyStruct\n {\n // Some stuff\n } __dec... |
I have some funny deadlock caused by a stupid simple SQL UPDATE query, on a flat plain table, under default "READ COMMITED" transaction.
UPDATE table SET column=@P1 WHERE PK=@P2
Column PK is varchar(11), has a clustered index on it.
no trigger or table relation..etc on the table.
I did some check and find that the dea... | Deadlocks in SQL Server can indeed be quite frustrating, especially when they seem to arise from straightforward queries. Here are some suggestions and considerations to help mitigate and potentially resolve the deadlock issues you're experiencing with your simple `UPDATE` query:
### 1. **Lock Escalation**
SQL Server ... | 49,779 | [
{
"from": "human",
"value": "I have some funny deadlock caused by a stupid simple SQL UPDATE query, on a flat plain table, under default \"READ COMMITED\" transaction.\nUPDATE table SET column=@P1 WHERE PK=@P2\n\nColumn PK is varchar(11), has a clustered index on it.\nno trigger or table relation..etc on th... |
I'm looking for an algorithm to generate permutations of a set in such a way that I could make a lazy list of them in Clojure. i.e. I'd like to iterate over a list of permutations where each permutation is not calculated until I request it, and all of the permutations don't have to be stored in memory at once.
Alterna... | Yes, you can implement a lazy sequence of permutations in Clojure, which allows you to generate permutations one at a time without storing all of them in memory at once. One of the ways to generate the next permutation is through a well-known algorithm called the "lexicographic permutation algorithm". This approach fin... | 47,015 | [
{
"from": "human",
"value": "I'm looking for an algorithm to generate permutations of a set in such a way that I could make a lazy list of them in Clojure. i.e. I'd like to iterate over a list of permutations where each permutation is not calculated until I request it, and all of the permutations don't hav... |
What do you consider "best practice" when it comes to error handling errors in a consistent way in a C library.
There are two ways I've been thinking of:
Always return error code. A typical function would look like this:
MYAPI_ERROR getObjectSize(MYAPIHandle h, int* returnedSize);
The always provide an error pointer a... | When it comes to error handling in a C library, both approaches you mentioned have their merits, and the choice between them can depend on the context in which your library will be used, the complexity of your API, and the preferences of your users. Here are some considerations for each approach, along with a potential... | 48,418 | [
{
"from": "human",
"value": "What do you consider \"best practice\" when it comes to error handling errors in a consistent way in a C library.\nThere are two ways I've been thinking of:\nAlways return error code. A typical function would look like this:\nMYAPI_ERROR getObjectSize(MYAPIHandle h, int* returne... |
I am working on a project where we are converted the old system to a brand new system. We are currently converted from the database of the old system to the database of the new system, and a team is working on creating a set of maps and transforms to run at the end of development to convert over the old system.
I woul... | Implementing unit testing for a database transformation project can be a challenging but rewarding task. Here’s a structured approach to help you get started, along with specific suggestions tailored for working with Oracle databases:
### 1. Define Test Cases
Before writing tests, define the expected behavior of your ... | 49,660 | [
{
"from": "human",
"value": "I am working on a project where we are converted the old system to a brand new system. We are currently converted from the database of the old system to the database of the new system, and a team is working on creating a set of maps and transforms to run at the end of developme... |
I'm thinking about using log4net in a MOSS(SharePoint) 2007 project, but I need to know if the logging can easily be configured to log using a certain username + password.
| Using log4net in a MOSS (Microsoft Office SharePoint Server) 2007 project can be a good choice for logging purposes. However, when it comes to logging with specific credentials (like a username and password), there are a few considerations to keep in mind.
### Configuring log4net
1. **Basic Configuration**: First, yo... | 45,720 | [
{
"from": "human",
"value": "I'm thinking about using log4net in a MOSS(SharePoint) 2007 project, but I need to know if the logging can easily be configured to log using a certain username + password. \n"
},
{
"from": "gpt",
"value": "Using log4net in a MOSS (Microsoft Office SharePoint Server) ... |
I'm trying to have text spans pop up on a hover pseudo-class for different lines in a menu (list items). I can have the pop-ups occupy the same space in the div if the menu/list is horizontal, but a vertical list places the popups at the same vertical height as the "parent" list/menu item.
Here is the relevant code I ... | To achieve the effect you want—having all the popups appear in the same position relative to the parent list item regardless of the vertical positioning of the items—you can utilize a combination of `position: absolute` and a common container for the popup elements.
Here's how you can do that:
1. **Wrap the popup `<s... | 48,899 | [
{
"from": "human",
"value": "I'm trying to have text spans pop up on a hover pseudo-class for different lines in a menu (list items). I can have the pop-ups occupy the same space in the div if the menu/list is horizontal, but a vertical list places the popups at the same vertical height as the \"parent\" l... |
How to arrange a Makefile to compile a kernel module with multiple .c files?
Here is my current Makefile. It was auto generated by KDevelop
TARGET = nlb-driver
OBJS = nlb-driver.o
MDIR = drivers/misc
EXTRA_CFLAGS = -DEXPORT_SYMTAB
CURRENT = $(shell uname -r)
KDIR = /lib/modules/$(CURRENT)/build
PWD = $(shell pwd)
DEST... | To modify your Makefile for a kernel module that consists of multiple `.c` files, you need to adjust the `OBJS` variable to include all the object files corresponding to your source files. Here's a refined version of your Makefile that accommodates multiple `.c` files:
```makefile
TARGET = nlb-driver
# List all your s... | 49,469 | [
{
"from": "human",
"value": "How to arrange a Makefile to compile a kernel module with multiple .c files?\nHere is my current Makefile. It was auto generated by KDevelop\nTARGET = nlb-driver\nOBJS = nlb-driver.o\nMDIR = drivers/misc\n\nEXTRA_CFLAGS = -DEXPORT_SYMTAB\nCURRENT = $(shell uname -r)\nKDIR = /lib... |
I'm doing a addin system where the main app loads assemblies Addin1.dll and Addin2.dll on runtime in new AppDomain's.
However, in case that Addin1.dll is signed (strong name) with my key and Addin2.dll is not, I want to be able to only load Addin1.dll and reject Addin2.dll.
I'm suspecting that it needs to be done by se... | To achieve the behavior you're looking for, you can set up an `AppDomain` with a custom `AppDomainSetup` that specifies security policies to enforce loading only strong-named assemblies. However, the .NET Framework does not directly allow you to reject non-strong-named assemblies at the `AppDomain` level, but you can e... | 49,696 | [
{
"from": "human",
"value": "I'm doing a addin system where the main app loads assemblies Addin1.dll and Addin2.dll on runtime in new AppDomain's.\nHowever, in case that Addin1.dll is signed (strong name) with my key and Addin2.dll is not, I want to be able to only load Addin1.dll and reject Addin2.dll.\nI'... |
I am trying to set the margin of an object from JavaScript. I am able to do it in Opera & Firefox, but the code doesn't work in Internet Explorer.
Here is the JavaScript I have:
function SetTopMargin (ObjectID, Value)
{
document.getElementById(ObjectID).style.marginTop = Value.toString() + "px";
}
And it is calle... | The code you've provided for setting the margin of an HTML element using JavaScript is generally correct and should work across most modern browsers, including Internet Explorer. However, if you are encountering issues with Internet Explorer, there are a few things you can check or modify.
1. **Ensure the Element Exis... | 45,974 | [
{
"from": "human",
"value": "I am trying to set the margin of an object from JavaScript. I am able to do it in Opera & Firefox, but the code doesn't work in Internet Explorer.\nHere is the JavaScript I have:\nfunction SetTopMargin (ObjectID, Value)\n{\n document.getElementById(ObjectID).style.marginTop =... |
In a simple dialog app, using designer, I've set up the usual shortcut keys for cut, copy, paste and delete in the edit menu.
My problem is that I only want to handle delete events when a certain tree control is in focus. Otherwise, in my datagrid control for example, I want delete to work as usual.
What's the best way... | To handle the Delete key event differently based on which control is in focus in your application, you can use the `KeyDown` event (or `KeyPress`, depending on your needs) at the main form level. Here’s a strategy to selectively handle the Delete key for your tree control and let the default behavior take place when ot... | 43,763 | [
{
"from": "human",
"value": "In a simple dialog app, using designer, I've set up the usual shortcut keys for cut, copy, paste and delete in the edit menu.\nMy problem is that I only want to handle delete events when a certain tree control is in focus. Otherwise, in my datagrid control for example, I want de... |
I am working on a small project with a few friends and need to set up a server to run our tools. I looked around at hosted solutions like Unfuddle but they don't provide a CI server.
I am now considering buying a Linode and running the following on it:
Mail : Apache JAMES
CI : Hudson
Wiki... | Setting up a server with your specified stack is a great way to manage your project's development workflow. Here's a basic overview of how to set up each of these components on a Linode server, along with some tips and resources to help you along the way:
### General Preparation
1. **Choose a Distribution**: A common ... | 46,885 | [
{
"from": "human",
"value": "I am working on a small project with a few friends and need to set up a server to run our tools. I looked around at hosted solutions like Unfuddle but they don't provide a CI server.\nI am now considering buying a Linode and running the following on it:\n\nMail : Ap... |
I'm working on a site now that have to fetch users feeds. But how can I best optimize fetching if I have a database with, lets say, 300 feeds. I'm going to set up a cron-job to which fetches the feeds, but should I do it like 5 every second minute or something?
Any ideas on how to do this the best way in PHP?
| When optimizing the fetching of user feeds from a database, there are several strategies to consider, especially if you're dealing with a large number of feeds. Here’s a structured approach to ensure efficiency and reliability:
### 1. **Batch Fetching**
Instead of fetching all feeds at once, divide them into smaller ... | 47,100 | [
{
"from": "human",
"value": "I'm working on a site now that have to fetch users feeds. But how can I best optimize fetching if I have a database with, lets say, 300 feeds. I'm going to set up a cron-job to which fetches the feeds, but should I do it like 5 every second minute or something? \nAny ideas on ho... |
I just read Joel Spolsky's article, Up the tata without a tutu, where Joel says,
In those days, there were no
application servers.
and
There really weren't any other app
servers in those days.
So basically, how did people write web apps in those days? Did they write their own implementations of web servers and ... | In the early days of web development, particularly in the 1990s, there was a different landscape for building web applications compared to today. Developers often built web applications using simpler technologies, relying primarily on web servers and scripting languages without the robust frameworks and application ser... | 49,913 | [
{
"from": "human",
"value": "I just read Joel Spolsky's article, Up the tata without a tutu, where Joel says,\n\nIn those days, there were no\n application servers.\n\nand\n\nThere really weren't any other app\n servers in those days.\n\nSo basically, how did people write web apps in those days? Did they ... |
I’ve built a custom Maven2 plug-in using Ant. I would like to call another maven plug-in in particular the Cargo Maven2 plug-in immediately after the custom Ant plug-in successfully completes. However, I do not want to attach the Cargo plug-in to another goal or phase. Is there a way to have them run consecutively with... | To run a Maven plugin (such as the Cargo plugin) immediately after your custom Ant plugin in Maven, you can use the `maven-invoker-plugin` or programmatically invoke the Cargo plugin from your custom Ant task without having to write an external script. Here's how you can achieve this:
### Approach 1: Use the Maven Inv... | 49,202 | [
{
"from": "human",
"value": "I’ve built a custom Maven2 plug-in using Ant. I would like to call another maven plug-in in particular the Cargo Maven2 plug-in immediately after the custom Ant plug-in successfully completes. However, I do not want to attach the Cargo plug-in to another goal or phase. Is there ... |
I have written a Django app that makes use of Python threading to create a web spider, the spider operates as a series of threads to check links.
When I run this app using the django test server (built in), the app runs fine and the threads seem to start and stop on time.
However, running the app on Apache it seems the... | Running a Django application on Apache, particularly with `mod_wsgi`, introduces some considerations regarding how threads and processes are managed that can affect the behavior of your threaded web spider. Here are some points to consider that may help you troubleshoot the issue:
1. **Threading Support in Apache**: A... | 44,903 | [
{
"from": "human",
"value": "I have written a Django app that makes use of Python threading to create a web spider, the spider operates as a series of threads to check links.\nWhen I run this app using the django test server (built in), the app runs fine and the threads seem to start and stop on time.\nHowe... |
I have a WPF calendar control and the template for the day has a property called
cal.DayTemplate =
I have created a dictionary file contaning my control template for the day of the calendar
But I am not sure how to load it into the DayTemplate property.
I have added my dictionary to the Application.Resources in App.x... | To assign a `DataTemplate` from your resource dictionary to the `DayTemplate` property of your WPF Calendar control, you need to retrieve the template from the application resources rather than trying to create a new instance using the `DataTemplate` constructor. The `DataTemplate` you're trying to access is already de... | 49,963 | [
{
"from": "human",
"value": "I have a WPF calendar control and the template for the day has a property called\ncal.DayTemplate = \n\nI have created a dictionary file contaning my control template for the day of the calendar\nBut I am not sure how to load it into the DayTemplate property.\nI have added my di... |
I am looking at using groovy scripts in an existing web application and am busy setting up and configuring the GroovyScriptEngine.
What are the "best practices" for managing the scripts in the container ?
Should I store them in a database
and then serve them up to the engine
via URLs ?
I could store them in the
file ... | Using Groovy scripts in a web application can provide powerful scripting capabilities, but managing those scripts effectively is crucial for maintainability, security, and performance. Here are some best practices and suggestions for managing Groovy scripts in your web application:
### 1. **Storage Options**
- **Data... | 47,005 | [
{
"from": "human",
"value": "I am looking at using groovy scripts in an existing web application and am busy setting up and configuring the GroovyScriptEngine.\nWhat are the \"best practices\" for managing the scripts in the container ?\n\nShould I store them in a database\nand then serve them up to the eng... |
I am thinking about a DB Design Problem.
For example, I am designing this stackoverflow website where I have a list of Questions.
Each Question contains certain meta data that will probably not change.
Each Question also contains certain data that will be consistently changing (Recently Viewed Date, Total Views...etc)
... | When designing a database for a system like Stack Overflow that involves questions with both stable and frequently changing data, it's essential to consider a balance between performance, complexity, and data integrity. Let's analyze the two approaches you mentioned:
### 1. Separate Tables for Constant and Changing Da... | 47,374 | [
{
"from": "human",
"value": "I am thinking about a DB Design Problem.\nFor example, I am designing this stackoverflow website where I have a list of Questions.\nEach Question contains certain meta data that will probably not change.\nEach Question also contains certain data that will be consistently changin... |
Getting started with jquery and having trouble getting hello world type example going for asp.net mvc. I get a runtime error "object expected" when trying to load a page with this script.
A. Where should script tags be placed in a master page?
B. What might I be doing wrong? There are definitely "a" elements in my pag... | When you're working with jQuery in an ASP.NET MVC application and experiencing a runtime error such as "object expected," it typically indicates that the jQuery library is not loading correctly or that there is an issue with how scripts are structured. Let's address your questions and some potential solutions.
### A. ... | 49,490 | [
{
"from": "human",
"value": "Getting started with jquery and having trouble getting hello world type example going for asp.net mvc. I get a runtime error \"object expected\" when trying to load a page with this script. \nA. Where should script tags be placed in a master page?\nB. What might I be doing wrong... |
I want to create a right click context menu for my textboxes to provide the typical copy/paste functionality. Any ideas on how to go about this?
| Creating a right-click context menu for textboxes that provides copy, paste, and potentially other functionalities can enhance user experience in your application. Below is a step-by-step guide on how to implement this in a Windows Forms application using C# as an example. The process will be similar in other framework... | 49,576 | [
{
"from": "human",
"value": "I want to create a right click context menu for my textboxes to provide the typical copy/paste functionality. Any ideas on how to go about this?\n"
},
{
"from": "gpt",
"value": "Creating a right-click context menu for textboxes that provides copy, paste, and potentia... |
Which libraries for Java are there that have a fast implementation for floating point or fixed point operations with a precision of several thousands of digits? How performant are they?
A requirement for me is that it implements a multiplication algorithm that is better than the naive multiplication algorithm that take... | If you're looking for Java libraries that can handle high-precision floating point or fixed point arithmetic with several thousand digits and implement efficient multiplication algorithms, here are some prominent options:
### 1. **Apache Commons Math**
- **Description**: This library provides various mathematical util... | 45,606 | [
{
"from": "human",
"value": "Which libraries for Java are there that have a fast implementation for floating point or fixed point operations with a precision of several thousands of digits? How performant are they?\nA requirement for me is that it implements a multiplication algorithm that is better than th... |
An example of what I'm talking about is on some political candidate websites, like BJ Lawson or Ron Paul's old site.
When you donate, it shows your name in Flash as a recent donor. It might also show a "goal" and how far along you are. Just curious if you can give me ideas on how to accomplish something similar, star... | Creating a donation system similar to what you've described involves several components: accepting credit card payments, tracking donations, and displaying that information dynamically. Here’s a breakdown of how to accomplish each part, including how to work with a third-party payment processor.
### Step 1: Choose a P... | 48,482 | [
{
"from": "human",
"value": "An example of what I'm talking about is on some political candidate websites, like BJ Lawson or Ron Paul's old site.\nWhen you donate, it shows your name in Flash as a recent donor. It might also show a \"goal\" and how far along you are. Just curious if you can give me ideas ... |
I'm writing this question from the standpoint of an ASP.NET application. However I realize it may be suited to other contexts as well.
There are so many approaches to developing the common elements of an ASP.NET website. Here are a few I have come across:
LLBLGen
SubSonic
LINQ to SQL
Entity Framework
CodeSmith + .net... | When you're faced with a blank canvas for an ASP.NET application and have your system requirements and documentation ready, it's essential to establish a solid architecture to guide your development. Here’s a step-by-step approach to help you get started:
### 1. Define Your Application Architecture
Given the availabl... | 49,715 | [
{
"from": "human",
"value": "I'm writing this question from the standpoint of an ASP.NET application. However I realize it may be suited to other contexts as well.\nThere are so many approaches to developing the common elements of an ASP.NET website. Here are a few I have come across:\n\nLLBLGen\nSubSonic\... |
Is it possible to get an exported (C style?) function's signature (parameter count/types, return type) from a DLL? I can view the list of function names, addresses, ordinals, etc. with DLL Export Viewer but I can't view the signatures. I only have the dll file and don't have neither .h nor .def files.
UPDATE: Using a t... | Extracting the exact function signatures from a DLL without access to the original headers or definition files can be quite challenging, but it is possible to get a rough idea of the signatures by using various techniques and tools.
Here are some methods you can use to gather information about the exported functions i... | 48,500 | [
{
"from": "human",
"value": "Is it possible to get an exported (C style?) function's signature (parameter count/types, return type) from a DLL? I can view the list of function names, addresses, ordinals, etc. with DLL Export Viewer but I can't view the signatures. I only have the dll file and don't have nei... |
I want to place all my programs content in a compressed archive file as its starting to get quite large. I know theres a few libraries around like zlib but i dont know how to make them do what I want to do:
Be able to load textures/models etc from the file, curretly im using d3dx methods such as D3DXCreateTextureFromF... | To achieve your goal of loading textures and models from a compressed archive file while maintaining compatibility with DirectX's D3DX methods, you can use a combination of a library for zip file handling and in-memory file loading. Below is a general approach on how to accomplish this, using `miniz` or `zlib` for comp... | 45,665 | [
{
"from": "human",
"value": "I want to place all my programs content in a compressed archive file as its starting to get quite large. I know theres a few libraries around like zlib but i dont know how to make them do what I want to do:\n\nBe able to load textures/models etc from the file, curretly im using ... |
I have an executable module created by third party. I would like to "inject" my code (kind of watchdog running in separate thread) into this process.
So far there are two possible ways - one is to run my code as executable and dynamically load a proess on top of it (seems to be very hard and tricky) or to make my code... | Injecting code into a running process can be a complex and risky task, especially if you want to avoid modifying the original executable. Here are a few common methods to achieve this, along with considerations for your specific requirements on Linux x86 and Solaris-SPARC:
1. **LD_PRELOAD Method**:
- As you mentio... | 49,700 | [
{
"from": "human",
"value": "I have an executable module created by third party. I would like to \"inject\" my code (kind of watchdog running in separate thread) into this process. \nSo far there are two possible ways - one is to run my code as executable and dynamically load a proess on top of it (seems to... |
OK, this is an odd request, and it might not even be fully true... but I'm upgrading someone's system ... and they are using OSCommerce (from a long time ago).
It appears their variables are referrenced without a dollar sign in front of them (which is new to me). I haven't done PHP in about 7 years, and I've always use... | It sounds like you’re dealing with a PHP codebase that utilizes some unconventional or non-standard practice for referencing variables. In standard PHP, variable names must always be preceded by a dollar sign (`$`). If you’re seeing variable names referenced without the dollar sign, they are likely not being treated as... | 49,207 | [
{
"from": "human",
"value": "OK, this is an odd request, and it might not even be fully true... but I'm upgrading someone's system ... and they are using OSCommerce (from a long time ago).\nIt appears their variables are referrenced without a dollar sign in front of them (which is new to me). I haven't done... |
If a user copies a file to the clipboard in Windows from an Outlook email attachment, is there any way I can get the name of that file in VB.NET?
If the file is copied from Windows Explorer, Clipboard.GetFileDropList has data that I can use to get this, but that list is empty when the file is copied from an email atta... | To retrieve the name of a file copied from an Outlook email attachment to the clipboard in VB.NET, you can work with the clipboard formats available, specifically the `FileGroupDescriptorW` format, which contains metadata about the files.
The `FileGroupDescriptorW` format holds a structure that contains the names of t... | 45,302 | [
{
"from": "human",
"value": "If a user copies a file to the clipboard in Windows from an Outlook email attachment, is there any way I can get the name of that file in VB.NET? \nIf the file is copied from Windows Explorer, Clipboard.GetFileDropList has data that I can use to get this, but that list is empty ... |
I'm working on a new project, a web application, where I need to focus the user on a particular task. Therefore I want to eliminate all other "System Generated Noise", like Browser Menus, Buttons, Address Bar, OS Task Bar and so forth. I have seen implementations like Lightbox, but this modal approach is limited to the... | Creating a web application that takes over the entire screen to focus the user on a particular task is often referred to as a "fullscreen" or "kiosk" mode. Here are some strategies and techniques you can use to achieve this effect:
### 1. Fullscreen API
The Fullscreen API allows you to request that the browser displa... | 48,244 | [
{
"from": "human",
"value": "I'm working on a new project, a web application, where I need to focus the user on a particular task. Therefore I want to eliminate all other \"System Generated Noise\", like Browser Menus, Buttons, Address Bar, OS Task Bar and so forth. I have seen implementations like Lightbox... |
I have a table where I'm storing Lat/Long coordinates, and I want to make a query where I want to get all the records that are within a distance of a certain point.
This table has about 10 million records, and there's an index over the Lat/Long fields
This does not need to be precise. Among other things, I'm consideri... | It sounds like you're facing a performance issue when using a User-Defined Function (UDF) in SQL Server. Your approach to filter records with a bounding box first is good, but the performance hit when using the UDF is likely due to the way SQL Server processes UDFs, especially scalar UDFs.
### Reasons for UDF Performa... | 48,686 | [
{
"from": "human",
"value": "I have a table where I'm storing Lat/Long coordinates, and I want to make a query where I want to get all the records that are within a distance of a certain point.\nThis table has about 10 million records, and there's an index over the Lat/Long fields\nThis does not need to be... |
Wanted to get some consensus around a UI feature I'm working on right now. The general idea is that I have a list of items, and you can select an item, and operate upon it. Currently, the sub functionality is implemented as a browser popup window. We've found that our users generally dislike having a ton of pop ups.... | It sounds like you're navigating a common challenge in UI/UX design—balancing user engagement with functionality while maintaining a smooth workflow. Here are some thoughts and suggestions that could help you refine your approach:
1. **Inline Editing / Expanding Rows**: Instead of using a separate popup or a detailed ... | 47,302 | [
{
"from": "human",
"value": "Wanted to get some consensus around a UI feature I'm working on right now. The general idea is that I have a list of items, and you can select an item, and operate upon it. Currently, the sub functionality is implemented as a browser popup window. We've found that our users g... |
What in C#.NET makes it more suitable for some projects than VB.NET?
Performance?, Capabilities?, Libraries/Components?, Reputation?, Reliability? Maintainability?, Ease?
Basically anything C# can do, that is impossible using VB, or vice versa.
Things you just have to consider when choosing C#/VB for a project.
| Choosing between C#.NET and VB.NET for a project can depend on various factors, including but not limited to the characteristics of each language and the specific needs of the project. Below are some key considerations that can help in making this decision:
### 1. **Performance:**
- **C#:** Typically, the performan... | 46,934 | [
{
"from": "human",
"value": "What in C#.NET makes it more suitable for some projects than VB.NET?\nPerformance?, Capabilities?, Libraries/Components?, Reputation?, Reliability? Maintainability?, Ease?\n\nBasically anything C# can do, that is impossible using VB, or vice versa.\nThings you just have to consi... |
I have a flex web app and want to integrate it with Java.
The app will have a very small database (2-3 tables), and some routine logic like sending mail.
According to this link (http://learn.adobe.com/wiki/display/Flex/2b.+Code+Files), I would need to also have a .jsp file. I thought Flex would only be interested in my... | Integrating a Flex web application with Java is quite straightforward once you understand how Flex communicates with server-side technologies. Below, I'll explain the steps you need to follow to accomplish this integration and provide a simple example.
### Step 1: Set Up Your Java Server (JSP)
You will need to create... | 47,939 | [
{
"from": "human",
"value": "I have a flex web app and want to integrate it with Java.\nThe app will have a very small database (2-3 tables), and some routine logic like sending mail.\nAccording to this link (http://learn.adobe.com/wiki/display/Flex/2b.+Code+Files), I would need to also have a .jsp file. I ... |
I have a screen with a ListBox of items. The item template contains an expander control with some of the data in the header and some of the data in the content part of the expander.
The data template for the ListBox ItemTemplate is similar to this:
<DataTemplate x:Key="MyTypeTemplate" DataType="{x:Type MyType}">
<Ex... | The issue you're facing with the Expander collapsing when the properties change is likely due to how the UI elements are recreated when the underlying data changes. Since the `Expander` might be losing its expanded state when its data context changes, you might need to manage its state explicitly.
Here are a few possi... | 47,167 | [
{
"from": "human",
"value": "I have a screen with a ListBox of items. The item template contains an expander control with some of the data in the header and some of the data in the content part of the expander.\nThe data template for the ListBox ItemTemplate is similar to this:\n<DataTemplate x:Key=\"MyTyp... |
I'll try to keep this short and simple.
I haven't begun writing the code for this project yet, but I'm trying to work out the pre-coding logistics as of right now.
What I am looking to do, is create a method of sending data from one/any site, to another remote server, which would generate a response for the user reques... | Your project is interesting and definitely feasible! Here’s a structured approach to help you work through the logistics of building the system you described, along with resources and methods you might want to explore.
### 1. **Code Snippet for Web Designers:**
To allow web designers to integrate your service easily,... | 47,601 | [
{
"from": "human",
"value": "I'll try to keep this short and simple.\nI haven't begun writing the code for this project yet, but I'm trying to work out the pre-coding logistics as of right now.\nWhat I am looking to do, is create a method of sending data from one/any site, to another remote server, which wo... |
I'm trying to tracking valid user Ids in my Java servlet, can I implement HttpSessionListener this way ?
public class my_Servlet extends HttpServlet implements HttpSessionListener
{
String User_Id;
static Vector<String> Valid_User_Id_Vector=new Vector<String>();
private static int activeSessions=0;
public void... | To clarify, your current implementation of a servlet that also acts as a listener (implementing `HttpSessionListener`) is not the best approach and goes against the design principles of servlets and listeners in Java EE (Jakarta EE). Here's a breakdown of how to properly manage session events and what to consider regar... | 46,539 | [
{
"from": "human",
"value": "I'm trying to tracking valid user Ids in my Java servlet, can I implement HttpSessionListener this way ?\npublic class my_Servlet extends HttpServlet implements HttpSessionListener\n{\n String User_Id;\n static Vector<String> Valid_User_Id_Vector=new Vector<String>();\n priva... |
I have to solve the following problem in an optimal way.
Input data is:
N points in a plane given as a (x, y) pair of integer coordinates
M points in the same plane given as a (x, y) pair of integer coordinates representing the center of a circle. All this circles have (0, 0) on their edge.
I need to find a way of is... | The problem you are tackling involves determining an envelope of a family of linear functions that are defined by the equations \(E(X_c) = A(x, y) + X_c \cdot B(x, y)\) for a given set of points \((x, y)\). To compute this envelope efficiently, we can use techniques from computational geometry, specifically related to ... | 44,971 | [
{
"from": "human",
"value": "I have to solve the following problem in an optimal way.\nInput data is:\n\nN points in a plane given as a (x, y) pair of integer coordinates\nM points in the same plane given as a (x, y) pair of integer coordinates representing the center of a circle. All this circles have (0, ... |
I've got a button that I'm adding as a subview of a table view's tableHeaderView. The button appears fine, and tap-and-holding on it works intermittently - for the most part, though, it's unresponsive. I've tried adding it as a subview of the table itself; the effect is about the same. I thought the problem might be wi... | It sounds like you're facing issues with button responsiveness in the `tableHeaderView` of a `UITableView`. Here are a few considerations and potential solutions that might help you troubleshoot and resolve this issue:
### 1. Button Frame and Autolayout Constraints
Ensure that the button's frame is set correctly and t... | 41,568 | [
{
"from": "human",
"value": "I've got a button that I'm adding as a subview of a table view's tableHeaderView. The button appears fine, and tap-and-holding on it works intermittently - for the most part, though, it's unresponsive. I've tried adding it as a subview of the table itself; the effect is about th... |
I am frustrated trying to program macros for Visual Studio (using VS 2008, Version 9.0.30729.1 SP, with all updates).
In the Macro Explorer, I can go to Microsoft's samples/VSEditor and add a Subroutine that behaves as I desire. But I can't seem to make it work anywhere else. In particular, in the MyMacros area in Ma... | It sounds like you're running into a common issue when working with macros in Visual Studio, especially with different modules. Here are some steps and tips to help troubleshoot the problem and provide you feedback:
1. **Check Macro Permissions**: Ensure that macros are enabled in your Visual Studio settings. Sometime... | 49,693 | [
{
"from": "human",
"value": "I am frustrated trying to program macros for Visual Studio (using VS 2008, Version 9.0.30729.1 SP, with all updates).\nIn the Macro Explorer, I can go to Microsoft's samples/VSEditor and add a Subroutine that behaves as I desire. But I can't seem to make it work anywhere else. ... |
When I visually scale an image, Firefox 3 blurs it. Firefox 2 and other browsers don't, which is the behavior I expect. This is especially lame for creating a web based game using png or gif sprites.
For example, when showing a 100x100 image in Firefox 3 like this:
<img src="sprite.gif" width="200" />
or
<img src="spr... | The blurring of images when scaled up in Firefox (especially in version 3) is a known issue that many developers have faced. This happens because Firefox applies smoothing (interpolation) to images when they are resized, leading to a loss of sharpness.
Here are a few approaches you can take to avoid the blurring effec... | 49,257 | [
{
"from": "human",
"value": "When I visually scale an image, Firefox 3 blurs it. Firefox 2 and other browsers don't, which is the behavior I expect. This is especially lame for creating a web based game using png or gif sprites.\nFor example, when showing a 100x100 image in Firefox 3 like this:\n<img src=\"... |
So I have a client who's current host does not allow me to use tar via exec()/passthru()/ect and I need to backup the site periodicly and programmaticly so is there a solution?
This is a linux server.
| If you are unable to use `tar` via `exec()`, `passthru()`, or similar functions due to restrictions set by the hosting provider, you still have a few options to create backups of the website programmatically.
### 1. PHP ZipArchive Class
You can use PHP's built-in `ZipArchive` class to create a ZIP file of your files. ... | 48,679 | [
{
"from": "human",
"value": "So I have a client who's current host does not allow me to use tar via exec()/passthru()/ect and I need to backup the site periodicly and programmaticly so is there a solution?\nThis is a linux server.\n"
},
{
"from": "gpt",
"value": "If you are unable to use `tar` v... |
When the command prompt opens and then just closes really fast (because there isn't a pause line) is there a way to see what it just showed you?
| Yes, if a command prompt window opens and closes quickly, preventing you from reading the output, you can use a few methods to capture the output:
### Method 1: Run from an Existing Command Prompt
1. **Open an Existing Command Prompt**: Instead of double-clicking a batch file or running a command directly, open a com... | 45,358 | [
{
"from": "human",
"value": "When the command prompt opens and then just closes really fast (because there isn't a pause line) is there a way to see what it just showed you? \n"
},
{
"from": "gpt",
"value": "Yes, if a command prompt window opens and closes quickly, preventing you from reading t... |
I want to serialize a Dictionary that has a custom IEqualityComparer.
I've tried using DataContractSerializer but I can't get the Comparer to be serialized.
I can't use BinaryFormatter because of this.
I can always do something like:
var myDictionary = new MyDictionary(deserializedDictionary, myComparer);
But that mea... | Serializing a `Dictionary` that uses a custom `IEqualityComparer` can be a bit tricky because serializers typically focus on the data rather than the behavior (like comparers). The `DataContractSerializer` does not serialize the comparer directly, and since `BinaryFormatter` is not recommended due to security concerns,... | 48,332 | [
{
"from": "human",
"value": "I want to serialize a Dictionary that has a custom IEqualityComparer.\nI've tried using DataContractSerializer but I can't get the Comparer to be serialized.\nI can't use BinaryFormatter because of this.\nI can always do something like:\nvar myDictionary = new MyDictionary(deser... |
My requirement is to develop a page with 4 sections, which cannot have a postback.
Section 1. Content which can be changed on user click
Section 2. List of users viewing the page online (Auto update when user leaves or visits the page )
Section 3. Chat for the users online
Section 4. Rating the content and other funct... | Developing a single-page application (SPA) that contains multiple interactive sections without causing postbacks is a great way to provide a smooth user experience. Here’s how you can approach building this page with the desired functionalities using .NET technologies:
### Suggested Technologies
1. **ASP.NET Core or A... | 45,970 | [
{
"from": "human",
"value": "My requirement is to develop a page with 4 sections, which cannot have a postback. \nSection 1. Content which can be changed on user click\nSection 2. List of users viewing the page online (Auto update when user leaves or visits the page )\nSection 3. Chat for the users online\n... |
VB6 IDE can get into a state when the Make XXXX menu option under the File Menu is disabled.
| In Visual Basic 6 (VB6), there are a few reasons why the "Make XXXX" option under the File menu might be disabled. Here are some common causes and potential solutions:
1. **No Project Loaded**: The "Make" option is only available when there is a project loaded in the IDE. Ensure that you have opened a VB6 project (.vb... | 45,320 | [
{
"from": "human",
"value": "VB6 IDE can get into a state when the Make XXXX menu option under the File Menu is disabled.\n"
},
{
"from": "gpt",
"value": "In Visual Basic 6 (VB6), there are a few reasons why the \"Make XXXX\" option under the File menu might be disabled. Here are some common cau... |
I am developing an OpenGL application and I am seeing some strange things happen. The machine I am testing with is equipped with an NVidia Quadro FX 4600 and it is running RHEL WS 4.3 x86_64 (kernel 2.6.9-34.ELsmp).
I've stepped through the application with a debugger and I've noticed that it is hanging on OpenGL calls... | It sounds like you're experiencing a challenging issue with OpenGL performance on specific versions of RHEL and the corresponding kernel. The hanging on OpenGL calls like `glGetError` and `glIsEnabled` can often indicate a problem with the interaction between your application, the OpenGL driver, and the operating syste... | 46,634 | [
{
"from": "human",
"value": "I am developing an OpenGL application and I am seeing some strange things happen. The machine I am testing with is equipped with an NVidia Quadro FX 4600 and it is running RHEL WS 4.3 x86_64 (kernel 2.6.9-34.ELsmp).\nI've stepped through the application with a debugger and I've ... |
I want to know the basic principle used for WYSIWYG pages on the web. I started coding it and made it using a text area, but very soon I realized that I cannot add or show images or any HTML in the text area. So I made it using DIV, but I did not understand how I could make it editable.
So, in gist, I want to know how(... | Creating a WYSIWYG (What You See Is What You Get) editor on the web typically involves using contenteditable elements, which allows you to edit HTML content directly in the browser. Below are the basic principles and steps for creating an editable DIV section, along with pointers for further enhancement:
### Key Conce... | 45,056 | [
{
"from": "human",
"value": "I want to know the basic principle used for WYSIWYG pages on the web. I started coding it and made it using a text area, but very soon I realized that I cannot add or show images or any HTML in the text area. So I made it using DIV, but I did not understand how I could make it e... |
How do I access the data passed back from a workflow association form?
Scenario: When an admin associates a workflow with a sharepoint list I want to display a infopath form that allows variables to be set that apply to all instances on that list. The association form comes up as I would expect and it submits the data ... | When you are using a workflow association form in SharePoint (especially when working with InfoPath forms), it's important to understand how the data from the form gets passed into the workflow. As you mentioned, the data can be accessed via the `SPWorkflowActivationProperties.ActivationData` property, but it is indeed... | 47,235 | [
{
"from": "human",
"value": "How do I access the data passed back from a workflow association form?\nScenario: When an admin associates a workflow with a sharepoint list I want to display a infopath form that allows variables to be set that apply to all instances on that list. The association form comes up ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.