instruction stringlengths 14 27.6k | completion stringlengths 3 38.3k | __original_row_idx int64 0 50k | conversations listlengths 2 2 |
|---|---|---|---|
Here is the sample:
Dim TestString As String = "Hello," & Chr(0) & "World"
MsgBox(TestString, , "TestString.Length=" & TestString.Length.ToString)
Result - Messagebox shows "Hello," with title says TestString.Length=12
I guess the chr(0) is treated as the end of zero terminated string, but it's not what i wan... | The issue you are experiencing with `Chr(0)` in VB.NET (and similar behavior in ASP.NET) stems from the way strings are represented and handled in these environments. Specifically, `Chr(0)` represents a null character, which is typically used to indicate the end of a string in C-style strings, but in VB.NET (and .NET i... | 18,158 | [
{
"from": "human",
"value": "Here is the sample:\n Dim TestString As String = \"Hello,\" & Chr(0) & \"World\"\n MsgBox(TestString, , \"TestString.Length=\" & TestString.Length.ToString)\n\nResult - Messagebox shows \"Hello,\" with title says TestString.Length=12 \nI guess the chr(0) is treated as the ... |
I have a C++ application that uses SQL Native Client to connect to a MS SQL Server 2000.
I am trying to retrieve a result from a TEXT column containing more data than the buffer initially allocated to it provides. To clarify my issue, I'll outline what I'm doing (code below):
allocate buffer of 1024 bytes use
bind bu... | It looks like you're trying to retrieve data from a `TEXT` column in a SQL Server 2000 database using the ODBC API, but you're encountering issues due to the way SQLGetData interacts with bound columns. The `SQL_DATA_AT_EXEC` flag allows you to defer the data retrieval until you explicitly call SQLGetData, which is the... | 8,346 | [
{
"from": "human",
"value": "I have a C++ application that uses SQL Native Client to connect to a MS SQL Server 2000.\nI am trying to retrieve a result from a TEXT column containing more data than the buffer initially allocated to it provides. To clarify my issue, I'll outline what I'm doing (code below):\... |
For a single-server LAMP site (which is usually under quite high load), what is best way to use memcache?
Does it make sense to run the memcache daemon on the same server as the application, or is that just going to take valuable memory away from MySQL, giving a net performance loss. Does it even make sense to use me... | Using Memcached effectively in a single-server LAMP (Linux, Apache, MySQL, PHP) environment can indeed be beneficial, but there are important considerations to keep in mind.
### Running Memcached on the Same Server
1. **Memory Resources**:
- When you run Memcached on the same server as your application, you're tak... | 21,308 | [
{
"from": "human",
"value": "For a single-server LAMP site (which is usually under quite high load), what is best way to use memcache? \nDoes it make sense to run the memcache daemon on the same server as the application, or is that just going to take valuable memory away from MySQL, giving a net performan... |
In VS.NET, when you add an item to the watch, why is the base property often (always??) endlessly recursive?
| In Visual Studio .NET, when you add an object's `Base` property to the Watch window, you may notice that it appears to be endlessly recursive, particularly when working with class hierarchies. This behavior is primarily due to the way the `Base` property is defined and the nature of object-oriented programming.
### Re... | 23,260 | [
{
"from": "human",
"value": "In VS.NET, when you add an item to the watch, why is the base property often (always??) endlessly recursive?\n"
},
{
"from": "gpt",
"value": "In Visual Studio .NET, when you add an object's `Base` property to the Watch window, you may notice that it appears to be end... |
We are migrating our test report data (unit, regression, integration, etc..) from an XML format to a database format for better analysis. Right now the majority of our test analysis is done using the CruiseControl.NET dashboard, but this is limited to primarily the most recent test data. Older test data can be accessed... | Migrating your test report data to a database format is a great step towards better data analysis and visualization. Business Intelligence (BI) tools can significantly enhance your ability to track and compare test metrics over time, identify trends, and pinpoint problem areas in your components.
### Evaluating Your O... | 22,650 | [
{
"from": "human",
"value": "We are migrating our test report data (unit, regression, integration, etc..) from an XML format to a database format for better analysis. Right now the majority of our test analysis is done using the CruiseControl.NET dashboard, but this is limited to primarily the most recent t... |
How do I invoke a console application from my .NET application and capture all the output generated in the console?
(Remember, I don't want to save the information first in a file and then relist as I would love to receive it as live.)
| To invoke a console application from a .NET application and capture all the output generated in the console in real-time, you can use the `System.Diagnostics.Process` class. This allows you to start the console application as a new process and redirect its output streams so you can read the output as it is generated. H... | 19,581 | [
{
"from": "human",
"value": "How do I invoke a console application from my .NET application and capture all the output generated in the console? \n(Remember, I don't want to save the information first in a file and then relist as I would love to receive it as live.)\n"
},
{
"from": "gpt",
"value... |
I'd like to write a Ruby snippet that gets run when my Gem is first installed via [sudo ]gem install mygem. Can it be done?
| In RubyGems, there isn't a direct way to run custom code automatically when a gem is installed, due to security and design considerations. However, you can use a workaround by including installation hooks in your gem's code.
One common approach is to define a post-installation message that runs after the gem is instal... | 22,153 | [
{
"from": "human",
"value": "I'd like to write a Ruby snippet that gets run when my Gem is first installed via [sudo ]gem install mygem. Can it be done?\n"
},
{
"from": "gpt",
"value": "In RubyGems, there isn't a direct way to run custom code automatically when a gem is installed, due to securi... |
Can I, using an address found in a map file, use windbg to alter a variable in memory while the app is running?
I'm really interested in turning on/off functionality in run-time maybe with a variable.
How would you do this? Does it require breaking the app through the debugger?
| Yes, you can use WinDbg to alter a variable in memory while an application is running. This can be particularly useful for enabling or disabling functionality at runtime by changing variable values. Here's a general approach to achieve this:
### Steps to Alter a Variable in Memory Using WinDbg
1. **Attach to the Proc... | 14,283 | [
{
"from": "human",
"value": "Can I, using an address found in a map file, use windbg to alter a variable in memory while the app is running?\nI'm really interested in turning on/off functionality in run-time maybe with a variable.\nHow would you do this? Does it require breaking the app through the debugger... |
I have some simple .doc files I made in Word 2007 where I changed the text color and used highlights to compare some similar texts. What I'd like to do is change any instances of green text or gray highlighting to different respective colors for each.
I'm sure there is a simple way to do this with VBA but any other sor... | You can indeed use VBA (Visual Basic for Applications) to change the text color and highlight color in your .doc files while keeping them in the .doc format. Below is a simple example of how you could accomplish this by changing instances of green text to another color (like red) and gray highlighting to a different co... | 23,362 | [
{
"from": "human",
"value": "I have some simple .doc files I made in Word 2007 where I changed the text color and used highlights to compare some similar texts. What I'd like to do is change any instances of green text or gray highlighting to different respective colors for each.\nI'm sure there is a simple... |
Looking for good techniques to justify "great than normal" machine for developers. The company I work for buys the same underpowered $500 dollar systems for everyone, and looking for ways to prove ROI or arguments to use. Sorry, I didn't say this in the initial question, the stack is VS 2008, SQL 2005/2008. As dutie... | Justifying the investment in "greater than normal" machines for developers can indeed be challenging, especially if the company's current practice is to provide underpowered systems. Below are several techniques and arguments you can use to demonstrate the potential ROI and overall benefits of providing higher-performa... | 20,336 | [
{
"from": "human",
"value": "Looking for good techniques to justify \"great than normal\" machine for developers. The company I work for buys the same underpowered $500 dollar systems for everyone, and looking for ways to prove ROI or arguments to use. Sorry, I didn't say this in the initial question, the... |
How to translate MS-SQL Server 2005 stored procedures into Oracle stored procedures?
A chart contrasting corresponding features from each environment with each other - would be helpful.
| Translating stored procedures from MS-SQL Server 2005 to Oracle involves understanding the differences in syntax, features, and behavior between the two databases. Below is a chart that outlines the main differences and provides guidance on translating common features.
| **Feature** | **MS-SQL Server 20... | 18,581 | [
{
"from": "human",
"value": "How to translate MS-SQL Server 2005 stored procedures into Oracle stored procedures?\nA chart contrasting corresponding features from each environment with each other - would be helpful.\n"
},
{
"from": "gpt",
"value": "Translating stored procedures from MS-SQL Serve... |
I am writing an XML document in C#.
I have something like this...
string output = "REAPP DUE NO OF M CASE NBR APPL NBR DATE GRPS M CASE NBR APPL NBR DATE GRPS _ _ _";
and I do this...
objXmlTextWriter.WriteStartEl... | When writing text to an XML document using the `XmlTextWriter` (or `XmlWriter` in newer versions of .NET), multiple spaces in a string are typically normalized to a single space. This is due to the way XML treats whitespace, especially when dealing with element content.
To preserve the original formatting, including m... | 23,851 | [
{
"from": "human",
"value": "I am writing an XML document in C#.\nI have something like this...\nstring output = \"REAPP DUE NO OF M CASE NBR APPL NBR DATE GRPS M CASE NBR APPL NBR DATE GRPS _ _ _\";\n\nand I d... |
Most importantly, why did it fail?
What I'm looking for here is pathologies that anyone, whether new to the team or just waking up one day,can spot.
| To understand why a project, initiative, or organization might fail, it’s essential to consider various common pathologies that can be observed and identified, even by someone new to the team. Here are several key indicators:
1. **Lack of Clear Vision and Goals**: If the purpose of the project is vague or poorly commu... | 23,411 | [
{
"from": "human",
"value": "Most importantly, why did it fail?\nWhat I'm looking for here is pathologies that anyone, whether new to the team or just waking up one day,can spot.\n"
},
{
"from": "gpt",
"value": "To understand why a project, initiative, or organization might fail, it’s essential ... |
I once had a MySQL database table containing 25 million records, which made even a simple COUNT(*) query takes minute to execute. I ended up making partitions, separating them into a couple tables. What i'm asking is, is there any pattern or design techniques to handle this kind of problem (huge number of records)? Is ... | Handling large volumes of data efficiently is a common challenge in database management. There are several design techniques and best practices you can apply to improve performance, regardless of whether you're using MySQL, MSSQL, Oracle, or another database system. Below are some strategies:
### Database Design Techn... | 20,472 | [
{
"from": "human",
"value": "I once had a MySQL database table containing 25 million records, which made even a simple COUNT(*) query takes minute to execute. I ended up making partitions, separating them into a couple tables. What i'm asking is, is there any pattern or design techniques to handle this kind... |
I have a mobile .NET solution and decided to sign the assemblies.
Compilation completes without errors but gives the warning
'CompactUI.Business.PocketPC.asmmeta, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' is not signed correctly.
The application is working fine but I can't open the designer for forms using... | The issue you're encountering with the designer in a .NET Compact Framework solution appears to be related to the way assemblies are signed and how the designer interacts with them.
### Causes of the Issue:
1. **Signing Assembly Without a Strong Name**: The warning indicates that the assembly `CompactUI.Business.Pock... | 23,239 | [
{
"from": "human",
"value": "I have a mobile .NET solution and decided to sign the assemblies.\nCompilation completes without errors but gives the warning\n'CompactUI.Business.PocketPC.asmmeta, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' is not signed correctly.\nThe application is working fine b... |
I am copying a repository by using svnsync and am receiving this error on the same revision every time.
Transmitting file data ...svnsync: REPORT of 'https://svn1.avlux.net/xxxxxx.net': Could not read response body: Secure connection truncated https://svn1.avlux.net)
It is a large revision and I don't have admin acce... | If you're encountering an error with `svnsync` while trying to synchronize a repository, particularly with a large revision, there are several strategies you can consider to work around this issue, especially if you do not have admin access to the server. Here are some options:
### 1. **Check Out and Dump the Revision... | 24,125 | [
{
"from": "human",
"value": "I am copying a repository by using svnsync and am receiving this error on the same revision every time.\n\nTransmitting file data ...svnsync: REPORT of 'https://svn1.avlux.net/xxxxxx.net': Could not read response body: Secure connection truncated https://svn1.avlux.net)\n\nIt is... |
What to use for a medium to large python WSGI application, Apache + mod_wsgi or Nginx + mod_wsgi?
Which combination will need more memory and CPU time?
Which one is faster?
Which is known for being more stable than the other?
I am also thinking to use CherryPy's WSGI server but I hear it's not very suitable for a very ... | When it comes to deploying a medium to large Python WSGI application, both Apache with `mod_wsgi` and Nginx with `mod_wsgi` are viable options. However, they have different characteristics that can influence your choice based on your specific requirements. Here’s a comparison to help guide your decision:
### 1. **Apac... | 19,687 | [
{
"from": "human",
"value": "What to use for a medium to large python WSGI application, Apache + mod_wsgi or Nginx + mod_wsgi?\nWhich combination will need more memory and CPU time?\nWhich one is faster?\nWhich is known for being more stable than the other?\nI am also thinking to use CherryPy's WSGI server ... |
I wish to search a database table on a nullable column. Sometimes the value I'm search for is itself NULL. Since Null is equal to nothing, even NULL, saying
where MYCOLUMN=SEARCHVALUE
will fail. Right now I have to resort to
where ((MYCOLUMN=SEARCHVALUE) OR (MYCOLUMN is NULL and SEARCHVALUE is NULL))
Is there a s... | Yes, there is a simpler way to handle this situation in Oracle SQL using the `COALESCE` or `NVL` functions. These functions allow you to provide a default value when encountering `NULL`. Here's how you can simplify your condition:
You can use the `COALESCE` function like this:
```sql
WHERE COALESCE(MYCOLUMN, 'some_de... | 22,596 | [
{
"from": "human",
"value": "I wish to search a database table on a nullable column. Sometimes the value I'm search for is itself NULL. Since Null is equal to nothing, even NULL, saying\nwhere MYCOLUMN=SEARCHVALUE \n\nwill fail. Right now I have to resort to\nwhere ((MYCOLUMN=SEARCHVALUE) OR (MYCOLUMN is... |
How to tag images in the image itself in a web page?
I know Taggify, but... is there other options?
Orkut also does it to tag people faces... How is it done?
Anyone knows any public framework that is able to do it?
See a sample bellow from Taggify:
| Tagging images directly on a webpage can be achieved using various libraries and frameworks, along with HTML5 and JavaScript. While Taggify is a popular option, there are several other methods and libraries you can use to implement tagging functionalities. Here's a rundown of some alternatives:
### 1. **jQuery Plugins... | 16,880 | [
{
"from": "human",
"value": "How to tag images in the image itself in a web page? \nI know Taggify, but... is there other options?\nOrkut also does it to tag people faces... How is it done?\nAnyone knows any public framework that is able to do it?\nSee a sample bellow from Taggify:\n\n"
},
{
"from":... |
I am trying to get center of parent form, not center of screen behavior.
Passing in the parent form seems to only control the ownership of the window.
These classes are sealed, so I do not see how I can do any WinProc tricks.
Rewriting the classes is not an appealing option.
Any other ideas?
| To center a child form relative to its parent in a Windows Forms application, you can calculate the center position of the parent form and set the location of the child form accordingly. The `Owner` property is used primarily for modal behavior and does not influence positioning.
Here's a quick way to center a child f... | 23,978 | [
{
"from": "human",
"value": "I am trying to get center of parent form, not center of screen behavior.\nPassing in the parent form seems to only control the ownership of the window.\nThese classes are sealed, so I do not see how I can do any WinProc tricks.\nRewriting the classes is not an appealing option.\... |
I need to convert an arbitrary amount of milliseconds into Days, Hours, Minutes Second.
For example: 10 Days, 5 hours, 13 minutes, 1 second.
| To convert an arbitrary amount of milliseconds into Days, Hours, Minutes, and Seconds, you can follow these steps:
1. **Understand the conversions:**
- 1 second = 1,000 milliseconds
- 1 minute = 60 seconds = 60,000 milliseconds
- 1 hour = 60 minutes = 3,600,000 milliseconds
- 1 day = 24 hours = 86,400,000 ... | 24,633 | [
{
"from": "human",
"value": "I need to convert an arbitrary amount of milliseconds into Days, Hours, Minutes Second.\nFor example: 10 Days, 5 hours, 13 minutes, 1 second.\n"
},
{
"from": "gpt",
"value": "To convert an arbitrary amount of milliseconds into Days, Hours, Minutes, and Seconds, you c... |
Let's assume we've got the following Java code:
public class Maintainer {
private Map<Enum, List<Listener>> map;
public Maintainer() {
this.map = new java.util.ConcurrentHashMap<Enum, List<Listener>>();
}
public void addListener( Listener listener, Enum eventType ) {
List<Listener> listeners;
... | Certainly! To integrate your `Maintainer` class with Spring so that listeners can register themselves via XML configuration, you need to follow these steps:
### 1. Define the `Maintainer` class as a Spring bean
You can do this by declaring it in your Spring XML configuration file (commonly `applicationContext.xml`):
... | 17,813 | [
{
"from": "human",
"value": "Let's assume we've got the following Java code:\npublic class Maintainer {\n private Map<Enum, List<Listener>> map;\n\n public Maintainer() {\n this.map = new java.util.ConcurrentHashMap<Enum, List<Listener>>();\n }\n\n public void addListener( Listener listener, En... |
Does anyone know of a method to determine when a file copy completes in VBScript? I'm using the following to copy:
set sa = CreateObject("Shell.Application")
set zip = sa.NameSpace(saveFile)
set Fol = sa.NameSpace(folderToZip)
zip.copyHere (Fol.items)
| In VBScript, there isn't a built-in method that directly tells you when a file copy operation completes using the Shell.Application object. However, you can implement a simple loop that checks the status of the copied files to determine when the copy operation is complete.
You can do this by checking the number of ite... | 22,626 | [
{
"from": "human",
"value": "Does anyone know of a method to determine when a file copy completes in VBScript? I'm using the following to copy:\nset sa = CreateObject(\"Shell.Application\") \nset zip = sa.NameSpace(saveFile) \nset Fol = sa.NameSpace(folderToZip) \nzip.copyHere (Fol.items)\n\n"
},
{
... |
I'm writing a pretty straightforward e-commerce app in asp.net, do I need to use transactions in my stored procedures?
Read/Write ratio is about 9:1
| When developing an e-commerce application in ASP.NET that utilizes stored procedures, the decision to use transactions depends on several factors related to the integrity and consistency of your data. Here are some key points to consider:
### When to Use Transactions
1. **Multiple Related Operations**: If your stored... | 12,140 | [
{
"from": "human",
"value": "I'm writing a pretty straightforward e-commerce app in asp.net, do I need to use transactions in my stored procedures?\nRead/Write ratio is about 9:1\n"
},
{
"from": "gpt",
"value": "When developing an e-commerce application in ASP.NET that utilizes stored procedures... |
I am a big fan of the Lightbox2 library, and have used it in the past just not on an MVC project. In the past I remember that Lightbox2 was picky about the paths it scripts, css, and images resided in. I remember specifically have to put everything in subdirectories of the page's path, else it wouldn't work.
In a non-M... | Using the Lightbox2 library within an MVC application can be a bit tricky due to the way MVC handles routes and paths. However, with some adjustments, you can successfully integrate Lightbox2.
### General Steps to Use Lightbox2 in an MVC Application
1. **Add Lightbox2 Files to Your Project**:
- Ensure you have inc... | 21,185 | [
{
"from": "human",
"value": "I am a big fan of the Lightbox2 library, and have used it in the past just not on an MVC project. In the past I remember that Lightbox2 was picky about the paths it scripts, css, and images resided in. I remember specifically have to put everything in subdirectories of the page'... |
I want to attach a 'click' event handler to the first child of an element with ID 'foo' using jQuery. I understand that the syntax for doing this is:
$('#foo:first-child').bind('click', function(event) {
// I want to access the first child here
})
Within the handler body I want to access the element which caused t... | In jQuery, when you attach an event handler using `bind` (or the more commonly used `on` method), `this` within the event handler refers to the DOM element that triggered the event. However, there is a mistake in your selector: `$('#foo:first-child')` will not select the first child of the element with ID `foo`. Instea... | 26,093 | [
{
"from": "human",
"value": "I want to attach a 'click' event handler to the first child of an element with ID 'foo' using jQuery. I understand that the syntax for doing this is:\n$('#foo:first-child').bind('click', function(event) {\n // I want to access the first child here\n})\n\nWithin the handler bo... |
What is meant by nvarchar?
What is the difference between char, nchar, varchar, and nvarchar in SQL Server?
| In SQL Server, `nvarchar` is a data type used to store variable-length Unicode character strings. The "n" in `nvarchar` stands for "National," indicating that it is capable of storing characters from various languages, accommodating special characters and symbols.
### Differences Between char, nchar, varchar, and nvar... | 20,112 | [
{
"from": "human",
"value": "What is meant by nvarchar?\nWhat is the difference between char, nchar, varchar, and nvarchar in SQL Server?\n"
},
{
"from": "gpt",
"value": "In SQL Server, `nvarchar` is a data type used to store variable-length Unicode character strings. The \"n\" in `nvarchar` sta... |
I'm an absolute n00b into the java platform
I would like to know whether I need to change anything in my code to get the benefits of 64bit JRE ?
or is it something like when I initiate it with "java -d64" its gonna run in some turbo mode?
Your help is highly appreciated
| Welcome to the world of Java!
When it comes to running Java applications, the choice between a 32-bit and 64-bit Java Runtime Environment (JRE) can have implications for performance and memory usage, but generally, you won't need to change your code to take advantage of the benefits of a 64-bit JRE. Here are a few ke... | 24,713 | [
{
"from": "human",
"value": "I'm an absolute n00b into the java platform\nI would like to know whether I need to change anything in my code to get the benefits of 64bit JRE ? \nor is it something like when I initiate it with \"java -d64\" its gonna run in some turbo mode?\nYour help is highly appreciated\n"... |
I often run into the problem that I have one stream full of data and want to write everything of it into another stream.
All code-examples out there use a buffer in form of a byte-array.
Is there a more elegant way to this?
If not, what's the ideal size of the buffer. Which factors make up this value?
| When transferring data from one stream to another, using a buffer (like a byte array) is a common practice. However, there are indeed more elegant and higher-level ways to accomplish this in various programming languages. Let's explore a few options and discuss buffer sizes.
### Elegant Solutions
1. **Using Built-in ... | 22,008 | [
{
"from": "human",
"value": "I often run into the problem that I have one stream full of data and want to write everything of it into another stream.\nAll code-examples out there use a buffer in form of a byte-array.\nIs there a more elegant way to this?\nIf not, what's the ideal size of the buffer. Which f... |
I would like to add a BuildListener to my headless build process, which is building an Eclipse product. The docs on how to do this are, shall we say, a bit scanty. I think I need to put my custom jar in a plugin and then use the org.eclipse.ant.core.extraClasspathEntries extension point to make that jar visible to Ant.... | When working with Eclipse and Ant, especially with the intent of adding a custom `BuildListener`, it is indeed common to run into classloader issues. Your understanding that the class should be visible to the Ant classloader is correct, and that is often the source of confusion when working with Eclipse plugins.
Here ... | 16,266 | [
{
"from": "human",
"value": "I would like to add a BuildListener to my headless build process, which is building an Eclipse product. The docs on how to do this are, shall we say, a bit scanty. I think I need to put my custom jar in a plugin and then use the org.eclipse.ant.core.extraClasspathEntries extensi... |
When you start a Flex drag action, you pass in a proxy image to be displayed when you drag across the screen. When the drop occurs, I want to be able to grab this proxy but I can't find a way to from the DragEvent object.
Is it possible? What I want is to actually drop the dragged image when the mouse button is release... | To achieve the desired behavior in Flex regarding drag-and-drop with a custom proxy image, you can use a combination of the `DragEvent` object and manipulation of the drag proxy. Here’s how you can address both of your questions:
### 1. Getting the Proxy and Mouse Position
When you start the drag operation, you creat... | 23,517 | [
{
"from": "human",
"value": "When you start a Flex drag action, you pass in a proxy image to be displayed when you drag across the screen. When the drop occurs, I want to be able to grab this proxy but I can't find a way to from the DragEvent object.\nIs it possible? What I want is to actually drop the drag... |
We have a proprietry system that we develop scripting code in.
We currently do not have a developer environment (apart from Notepad++) and cannot debug or compile this code. We have to submit it to the vendor to insert the code into the test or live system.
The language is essentially C like and has the same syntax.
B... | Yes, there are several tools and methods you can use to check the syntax of your C-like code without needing a full development environment. Here are a few options you might consider:
1. **Online Syntax Checkers**:
- There are various online platforms where you can paste your code and check for syntax errors. Websi... | 23,097 | [
{
"from": "human",
"value": "We have a proprietry system that we develop scripting code in.\nWe currently do not have a developer environment (apart from Notepad++) and cannot debug or compile this code. We have to submit it to the vendor to insert the code into the test or live system.\nThe language is es... |
I need to ensure that any number of websites and services haven't bitten the dust. At the moment I rely on a simple 5 minute cronjob which uses curl and a file of urls to check that all the responses are correct (200 or rarely 301).
It all works on a basic level, I'm interested in more sophisticated open-source tools (... | There are several open-source tools available that can provide more sophisticated monitoring capabilities compared to a simple cron job. Here are a few options you might consider:
1. **Prometheus with Grafana**:
- **Prometheus**: A powerful open-source monitoring and alerting toolkit that can scrape metrics from va... | 22,922 | [
{
"from": "human",
"value": "I need to ensure that any number of websites and services haven't bitten the dust. At the moment I rely on a simple 5 minute cronjob which uses curl and a file of urls to check that all the responses are correct (200 or rarely 301).\nIt all works on a basic level, I'm interested... |
I've gone to http://sourceforge.net/project/showfiles.php?group_id=2435, downloaded the Automated MinGW Installer for MinGW 5.1.4 and at the same time the GNU Source-Level Debugger Release Candidate: GDB 6.8-3. I've then installed MinGW base tools into C:\MinGW. No problem so far.
However when I come to install the gdb... | To install GDB without breaking your existing MinGW installation, you can follow these steps to ensure a smooth integration:
1. **Backup Existing Files**: Before making any changes, it's always a good idea to back up your existing MinGW installation. Simply copy the entire `C:\MinGW` directory to another location on y... | 19,443 | [
{
"from": "human",
"value": "I've gone to http://sourceforge.net/project/showfiles.php?group_id=2435, downloaded the Automated MinGW Installer for MinGW 5.1.4 and at the same time the GNU Source-Level Debugger Release Candidate: GDB 6.8-3. I've then installed MinGW base tools into C:\\MinGW. No problem so f... |
I am using the term "Lexical Encoding" for my lack of a better one.
A Word is arguably the fundamental unit of communication as opposed to a Letter. Unicode tries to assign a numeric value to each Letter of all known Alphabets. What is a Letter to one language, is a Glyph to another. Unicode 5.1 assigns more than 10... | The concept of "Lexical Encoding" you describe is intriguing and reflects a deeper understanding of how language and meaning can be encoded beyond the traditional character or letter level. This approach may also facilitate tasks like natural language processing, machine translation, and computational linguistics. Here... | 20,553 | [
{
"from": "human",
"value": "I am using the term \"Lexical Encoding\" for my lack of a better one.\nA Word is arguably the fundamental unit of communication as opposed to a Letter. Unicode tries to assign a numeric value to each Letter of all known Alphabets. What is a Letter to one language, is a Glyph t... |
I'm trying to write a Mono C# daemon for linux.
I'd like to do a starts and stops of it when its done processing instead of just killing the process.
Does anyone have any examples of this?
Edit: I figured out how to use start-stop-daemon --background in debian, so I think I'll just use that for now.
Edit: I'm implement... | Creating a daemon in C# using Mono on Linux that can handle starting and stopping gracefully is a good approach. You mentioned you figured out how to use `start-stop-daemon`, which is a useful utility for managing daemon processes in Debian-based systems.
Here is a basic outline of how you can implement a Mono C# dae... | 20,848 | [
{
"from": "human",
"value": "I'm trying to write a Mono C# daemon for linux.\nI'd like to do a starts and stops of it when its done processing instead of just killing the process.\nDoes anyone have any examples of this?\nEdit: I figured out how to use start-stop-daemon --background in debian, so I think I'l... |
EDIT, 2020/09: If anyone is wondering, 12 years later, yes, we've all moved to JSON and Kubernetes by now. Original text follows.
Obviously, there is no one single solution that would satisfy everyone's needs; an architecture is always a trade-off. I want to create a framework, originally aimed at RAD of web games. Tar... | Your proposed architecture has several interesting and ambitious goals, especially considering the focus on flexibility and developer comfort. However, there are some potential drawbacks and challenges associated with your approach that could impact both development and maintenance:
### 1. Complexity
- **Overhead of ... | 19,984 | [
{
"from": "human",
"value": "EDIT, 2020/09: If anyone is wondering, 12 years later, yes, we've all moved to JSON and Kubernetes by now. Original text follows.\nObviously, there is no one single solution that would satisfy everyone's needs; an architecture is always a trade-off. I want to create a framework,... |
Say you have a web form with some fields that you want to validate to be only some subset of alphanumeric, a minimum or maximum length etc.
You can validate in the client with javascript, you can post the data back to the server and report back to the user, either via ajax or not. You could have the validation rules in... | To create a robust and maintainable validation system for user input in a web application that persists to a database, consider the following best practices, patterns, and general advice:
### 1. **Centralized Validation Logic**
- **Single Source of Truth**: Store validation rules in a single location—preferably in ... | 22,125 | [
{
"from": "human",
"value": "Say you have a web form with some fields that you want to validate to be only some subset of alphanumeric, a minimum or maximum length etc.\nYou can validate in the client with javascript, you can post the data back to the server and report back to the user, either via ajax or n... |
Below is the code that i cannot get to work. I know i have established a connection to the database but this returns nothing. What am i doing wrong?
$result = "SELECT * FROM images WHERE path = ?";
$params = array("blah");
$row = sqlsrv_query($conn, $result, $params);
$finished = sqlsrv_fetch_array($row);
if($finish... | It looks like you have a basic SQL query setup to fetch data from the database, but there are a few things to check to troubleshoot why it might be returning nothing.
1. **Check the Query Execution**: You need to check if the query executed successfully. If there's an issue with the SQL statement or the parameters, `s... | 24,246 | [
{
"from": "human",
"value": "Below is the code that i cannot get to work. I know i have established a connection to the database but this returns nothing. What am i doing wrong?\n$result = \"SELECT * FROM images WHERE path = ?\";\n$params = array(\"blah\");\n$row = sqlsrv_query($conn, $result, $params);\n\n... |
I was wondering what are the benefits of using anything else but Java for Mobile Application Development.
| When considering mobile application development, Java has traditionally been one of the primary languages, especially for Android development. However, there are several alternatives to Java that offer various benefits. Here are some of the main advantages of using other languages or frameworks for mobile app developme... | 22,430 | [
{
"from": "human",
"value": "I was wondering what are the benefits of using anything else but Java for Mobile Application Development.\n"
},
{
"from": "gpt",
"value": "When considering mobile application development, Java has traditionally been one of the primary languages, especially for Androi... |
You know those websites that let you type in your checking account number and the routing number, and then they can transfer money to and from your account?
How does that work? Any good services or APIs for doing that? Any gotchas?
| Transferring money to and from checking accounts using account and routing numbers typically involves the Automated Clearing House (ACH) network in the United States. Here’s a general overview of how it works, along with some services and APIs, as well as potential gotchas.
### How It Works
1. **Account and Routing N... | 20,761 | [
{
"from": "human",
"value": "You know those websites that let you type in your checking account number and the routing number, and then they can transfer money to and from your account?\nHow does that work? Any good services or APIs for doing that? Any gotchas?\n"
},
{
"from": "gpt",
"value": ... |
I made a simple game for the iPhone using OpenGL ES. Everything works fine except for this problem:
I turn the phone completely off, then back on, then launch my app and I get this wierd flickering! Every other frame is correct... the incorrect frames are just the same frame over and over again. If I quit the app, l... | The flickering issue you're experiencing when launching your OpenGL ES app after turning off and on the iPhone may be related to several factors, such as how you're handling OpenGL ES context initialization, frame buffering, or state management upon app launch. Here are a few potential causes and solutions to explore:
... | 22,697 | [
{
"from": "human",
"value": "I made a simple game for the iPhone using OpenGL ES. Everything works fine except for this problem:\nI turn the phone completely off, then back on, then launch my app and I get this wierd flickering! Every other frame is correct... the incorrect frames are just the same frame ... |
I've written a setup.py script for py2exe, generated an executable for my python GUI application and I have a whole bunch of files in the dist directory, including the app, w9xopen.exe and MSVCR71.dll. When I try to run the application, I get an error message that just says "see the logfile for details". The only probl... | It seems like you're encountering issues while trying to package and run your Python GUI application using `py2exe`. From your description, you have already managed to identify some issues and started on debugging the situation. Here are some additional steps you can take to diagnose and resolve the problem further:
1... | 22,535 | [
{
"from": "human",
"value": "I've written a setup.py script for py2exe, generated an executable for my python GUI application and I have a whole bunch of files in the dist directory, including the app, w9xopen.exe and MSVCR71.dll. When I try to run the application, I get an error message that just says \"se... |
So i have this local SVN repo that i am using for my dev work on a particular project, and i also have a SVN repo setup on the customers media temple account for a more secure backup.
I do all of my development on my laptop so i don't always have an internet connection (hence the local SVN), so i was wondering if ther... | Yes, you can easily push changes from your local SVN repository to your remote SVN repository on your customer's Media Temple account. Here's a step-by-step guide to help you do this:
### Steps to Push Changes from Local SVN to Remote SVN:
1. **Commit Changes Locally**:
Before you can push your changes to the remo... | 22,578 | [
{
"from": "human",
"value": "So i have this local SVN repo that i am using for my dev work on a particular project, and i also have a SVN repo setup on the customers media temple account for a more secure backup. \nI do all of my development on my laptop so i don't always have an internet connection (hence ... |
I have an OpenGL/GLUT program running on my linux machine that views a 3D model from various angles and can take screenshots, and everything is controlled from the keyboard. I want to write a script that moves around the model in a particular way, taking screenshots at every step. It seems there should be a simple wa... | You can simulate keystrokes in Linux using various tools. One popular option is `xdotool`, which allows you to automate keyboard input, mouse movement, and other X11 features. Here's how you can use `xdotool` to control your OpenGL/GLUT application from a script.
### Step 1: Install `xdotool`
If you don't already have... | 22,529 | [
{
"from": "human",
"value": "I have an OpenGL/GLUT program running on my linux machine that views a 3D model from various angles and can take screenshots, and everything is controlled from the keyboard. I want to write a script that moves around the model in a particular way, taking screenshots at every st... |
I'm trying to modify my EasyPHP to run in CGI mode.
According to this link: http://www.easyvitools.com/phpserial/php_ser_reference.html
I have to add in this line:
LoadModule php5_module "C:/Program Files/EasyPHP 2.0b1/php5/php5apache2.dll" to httpd.conf
However, everytime I do that, EasyPHP gives me this error:
Error... | The error you're encountering indicates that Apache is unable to load the specified PHP module, which typically suggests that the PHP version you're trying to load is not compatible with the version of Apache you're running. Here are several steps you can take to resolve this issue:
1. **Check Compatibility**: Ensure ... | 23,984 | [
{
"from": "human",
"value": "I'm trying to modify my EasyPHP to run in CGI mode.\nAccording to this link: http://www.easyvitools.com/phpserial/php_ser_reference.html\nI have to add in this line:\nLoadModule php5_module \"C:/Program Files/EasyPHP 2.0b1/php5/php5apache2.dll\" to httpd.conf\nHowever, everytime... |
I have a web application that uses JAXB 2. When deployed on an Oracle 10g Application Server, I get errors as soon as I try to marshal an XML file. It turns out that Oracle includes JAXB 1 in a jar sneakily renamed "xml.jar".
How I can force my webapp to use the version of the jaxb jars that I deployed in WEB-INF/l... | When deploying a web application on an application server like Oracle 10g, classloader behavior can often lead to conflicts between the libraries packaged with your application and those provided by the server. In your case, the conflict arises from the presence of JAXB 1 in `xml.jar` and the need to use JAXB 2, which ... | 22,355 | [
{
"from": "human",
"value": "I have a web application that uses JAXB 2. When deployed on an Oracle 10g Application Server, I get errors as soon as I try to marshal an XML file. It turns out that Oracle includes JAXB 1 in a jar sneakily renamed \"xml.jar\". \nHow I can force my webapp to use the version o... |
Where is a good place to get started learning how to use jQuery? It seems to be all the rage nowadays. I know some basics of JavaScript but I'm by no means an expert.
| Getting started with jQuery can be a great way to enhance your web development skills, especially since you already have some basic understanding of JavaScript. Here are some excellent resources to help you get started with jQuery:
1. **Official jQuery Documentation**: The official [jQuery website](https://jquery.com/... | 24,158 | [
{
"from": "human",
"value": "Where is a good place to get started learning how to use jQuery? It seems to be all the rage nowadays. I know some basics of JavaScript but I'm by no means an expert.\n"
},
{
"from": "gpt",
"value": "Getting started with jQuery can be a great way to enhance your we... |
Is it possible to receive DllMain like notifications about thread attach/detach in stand-alone exe without using any extra dlls?
Edit: This is just a theoretical question that has to do with some testing I'm doing. not a real life situation.
| In a Windows application, the `DllMain` function is specifically designed for dynamic link libraries (DLLs) to receive notifications about loading, unloading, thread creation, and termination. However, standalone executables (EXEs) do not have a built-in mechanism akin to `DllMain` for receiving notifications about thr... | 20,863 | [
{
"from": "human",
"value": "Is it possible to receive DllMain like notifications about thread attach/detach in stand-alone exe without using any extra dlls?\nEdit: This is just a theoretical question that has to do with some testing I'm doing. not a real life situation.\n"
},
{
"from": "gpt",
"... |
For my side job as programmer, I need Windows. It will be installed in VMWare Fusion. I will be writnig mostly C-code for Matlab-Mex-files, some DSP-development, some easy command-line tools in C and C++ for a tutorial and hopefully some easy GUIs using Visual Studio.
I will be using VisualDSP++, Bloodshed Dev-Cpp, the... | For your specific use case as a programmer running Windows in a VMware Fusion virtual machine on a MacBook with limited resources, here are some recommendations:
### Operating System Choice: Windows Vista vs. Windows XP
1. **Performance**: Windows XP generally has a lower resource footprint compared to Vista. Since y... | 23,078 | [
{
"from": "human",
"value": "For my side job as programmer, I need Windows. It will be installed in VMWare Fusion. I will be writnig mostly C-code for Matlab-Mex-files, some DSP-development, some easy command-line tools in C and C++ for a tutorial and hopefully some easy GUIs using Visual Studio.\nI will be... |
How can I find the index in a string that matches a boost regex?
| To find the index in a string that matches a Boost regex, you can use the Boost.Regex library in C++. This library provides functionality to compile and match regular expressions. Below is an example of how to do this:
1. **Include the necessary headers**.
2. **Create and compile your regex pattern**.
3. **Use `boost:... | 23,425 | [
{
"from": "human",
"value": "How can I find the index in a string that matches a boost regex?\n"
},
{
"from": "gpt",
"value": "To find the index in a string that matches a Boost regex, you can use the Boost.Regex library in C++. This library provides functionality to compile and match regular ex... |
When setting up a rollover effect in HTML, are there any benefits (or pitfalls) to doing it in CSS vs. JavaScript? Are there any performance or code maintainability issues I should be aware of with either approach?
| When deciding whether to implement a rollover effect (like changing the appearance of a button or image when a user hovers over it) using CSS or JavaScript, there are several benefits and pitfalls to consider for each approach. Here's a breakdown of both methods:
### CSS for Rollover Effects
**Benefits:**
1. **Simpl... | 22,975 | [
{
"from": "human",
"value": "When setting up a rollover effect in HTML, are there any benefits (or pitfalls) to doing it in CSS vs. JavaScript? Are there any performance or code maintainability issues I should be aware of with either approach?\n"
},
{
"from": "gpt",
"value": "When deciding whet... |
I was looking for a pattern to model something I'm thinking of doing in a personal project and I was wondering if a modified version of the decorator patter would work.
Basicly I'm thinking of creating a game where the characters attributes are modified by what items they have equiped. The way that the decorator stacks... | It sounds like you're trying to create a flexible and extensible way to manage character attributes in your game based on equipped items, and you’re considering the Decorator Pattern as a possible solution. However, the challenge you’re facing—removing intermediate decorators—is a valid concern. Let's discuss a few app... | 20,864 | [
{
"from": "human",
"value": "I was looking for a pattern to model something I'm thinking of doing in a personal project and I was wondering if a modified version of the decorator patter would work.\nBasicly I'm thinking of creating a game where the characters attributes are modified by what items they have ... |
I'm trying to write an automated test of an application that basically translates a custom message format into an XML message and sends it out the other end. I've got a good set of input/output message pairs so all I need to do is send the input messages in and listen for the XML message to come out the other end.
Whe... | To determine if two XML strings are semantically equivalent in Java, while accounting for formatting differences, varying namespaces, and other structural variations, you can utilize XML libraries that facilitate XML parsing and comparison. One popular library for this purpose is **Apache XMLUnit**, which provides tool... | 23,189 | [
{
"from": "human",
"value": "I'm trying to write an automated test of an application that basically translates a custom message format into an XML message and sends it out the other end. I've got a good set of input/output message pairs so all I need to do is send the input messages in and listen for the X... |
Does anyone have any experience hosting the Windows Workflow designer surface? I've seen a couple of rather difficult to follow examples on MSDN, but not much else - certainly nothing that offers an explanation into the process of hosting WF that is clear or easy to read... Are there better resources out there for host... | Hosting the Windows Workflow Foundation (WF) designer can indeed be a bit challenging, especially if you're trying to implement it in a custom application. While there are a few resources available, they can often be quite technical and dense. Here’s a breakdown of the process and some resources that might help you bet... | 19,827 | [
{
"from": "human",
"value": "Does anyone have any experience hosting the Windows Workflow designer surface? I've seen a couple of rather difficult to follow examples on MSDN, but not much else - certainly nothing that offers an explanation into the process of hosting WF that is clear or easy to read... Are ... |
I'm running Oracle 10g and have columns with Type_Name
TIMESTAMP(6) WITH TIME ZONE
When inflated into java classes they come out as
oracle.sql.TIMESTAMPTZ
But DbUnit can't handle converting Oracle specific classes to Strings for writing to XML. I'm wondering if there's any easy way for me to convert (say, in my SELEC... | To convert Oracle's `TIMESTAMP WITH TIME ZONE` to a `java.sql.Timestamp` (or a more universal representation) in your SQL queries, you can use the `CAST` function or `TO_CHAR` function to convert the Oracle-specific data type to a string representation.
### Option 1: Using `CAST`
You can cast the `TIMESTAMP WITH TIME... | 22,124 | [
{
"from": "human",
"value": "I'm running Oracle 10g and have columns with Type_Name \nTIMESTAMP(6) WITH TIME ZONE\nWhen inflated into java classes they come out as\noracle.sql.TIMESTAMPTZ \nBut DbUnit can't handle converting Oracle specific classes to Strings for writing to XML. I'm wondering if there's any... |
Two table:
StoreInfo:
UserId uniqueidentifier
StoreNo nvarchar
UserName nvarchar
Password nvarchar
UserInfo:
UserId uniqueidentifier
UserName nvarchar
Password nvarchar
the UserId on StoreInfo is currently null. How do i update StoreInfo's UserId with UserInfo's UserId based on StoreInfo's UserName and Password is ma... | To correctly update the `UserId` in the `StoreInfo` table based on matching `UserName` and `Password` values with those in the `UserInfo` table, you will want to use a `JOIN` in your `UPDATE` statement.
Here’s how you can write the query:
```sql
UPDATE StoreInfo
SET StoreInfo.UserId = UserInfo.UserId
FROM StoreInfo
... | 25,553 | [
{
"from": "human",
"value": "Two table:\nStoreInfo:\nUserId uniqueidentifier\nStoreNo nvarchar\nUserName nvarchar\nPassword nvarchar\n\nUserInfo:\nUserId uniqueidentifier\nUserName nvarchar\nPassword nvarchar\n\nthe UserId on StoreInfo is currently null. How do i update StoreInfo's UserId with UserInfo's Us... |
What is the one most common mistake you make while writing unit tests? Coupling? Lack of cohesion? Try to test too much functionality at once? Not testing enough functionality?
Post some example code if you have an example of that mistake
| One of the most common mistakes made while writing unit tests is **testing too much functionality at once**. This can lead to tests that are hard to understand, more brittle, and difficult to maintain. Ideally, each unit test should verify a single piece of functionality, which helps ensure clarity and pinpoint where i... | 21,388 | [
{
"from": "human",
"value": "What is the one most common mistake you make while writing unit tests? Coupling? Lack of cohesion? Try to test too much functionality at once? Not testing enough functionality? \nPost some example code if you have an example of that mistake\n"
},
{
"from": "gpt",
"va... |
I'm creating a bunch of migrations, some of which are standard "create table" or "modify table" migrations, and some of which modify data. I'm using my actual ActiveRecord models to modify the data, a la:
Blog.all.each do |blog|
update_some_blog_attributes_to_match_new_schema
end
The problem is that if I load the B... | Yes, in a Rails migration, when you modify a database schema (like creating or modifying tables), the ActiveRecord classes might not automatically reflect the changes you've made to the database. To ensure that your model classes are aware of the latest schema, you can reload the class definition.
In Rails, you can us... | 20,148 | [
{
"from": "human",
"value": "I'm creating a bunch of migrations, some of which are standard \"create table\" or \"modify table\" migrations, and some of which modify data. I'm using my actual ActiveRecord models to modify the data, a la:\nBlog.all.each do |blog|\n update_some_blog_attributes_to_match_new_... |
I run into this quite often where a new page is supposedly "tested" and ready to go. But as soon as I change the page from http to https (secure) mode I get the "This page contains both secure and nonsecure items." error.
Usually I can find the problem and fix it pretty quick. Today is different. I've checked every ima... | The "This page contains both secure and nonsecure items" error, also known as "mixed content" warnings, occurs when a secure HTTPS page tries to load resources (such as images, scripts, or stylesheets) over an insecure HTTP connection. To diagnose and resolve these issues, you can use several developer tools and techni... | 20,721 | [
{
"from": "human",
"value": "I run into this quite often where a new page is supposedly \"tested\" and ready to go. But as soon as I change the page from http to https (secure) mode I get the \"This page contains both secure and nonsecure items.\" error.\nUsually I can find the problem and fix it pretty qui... |
I notice that Windows XP Event Viewer show a list of typical actions under System logs every time I start or shutdown Windows, and I can tell when my day starts and ends.
Is there anyways I can record the time every time I lock my screen and every time I re-login? There maybe a way to fool System Event Logger into sub... | To record the times when you lock your screen and when you log back in on Windows XP, you can use a couple of methods. While Windows XP does not log lock/unlock events by default in the Event Viewer, you can create a script to log this information or utilize a third-party tool. Here are a few approaches you can conside... | 23,519 | [
{
"from": "human",
"value": "I notice that Windows XP Event Viewer show a list of typical actions under System logs every time I start or shutdown Windows, and I can tell when my day starts and ends. \nIs there anyways I can record the time every time I lock my screen and every time I re-login? There maybe ... |
I have a Java array such as:
String[] arr = new String[] {"123","doc","projectReport.doc"};
In my opinion the natural way to access would be:
#set($att_id = $arr[0])
#set($att_type = $arr[1])
#set($att_name = $arr[2])
But that it is not working. I have come with this workaround. But it a bit too much code for su... | In Apache Velocity Template Language (VTL), you can't directly access array elements using the array index notation like `arr[0]`. Instead, you can use the `foreach` loop to iterate over the elements of the array, which is what you're currently doing.
However, you can simplify your code a little bit. If you know the s... | 23,537 | [
{
"from": "human",
"value": "I have a Java array such as: \nString[] arr = new String[] {\"123\",\"doc\",\"projectReport.doc\"};\n\nIn my opinion the natural way to access would be: \n #set($att_id = $arr[0])\n #set($att_type = $arr[1])\n #set($att_name = $arr[2])\n\nBut that it is not working. I have come ... |
Summary
We have a central LDAP server that our deployed Java web app should connect to. Our JUnit tests depend on specific data in the LDAP repository, so they need to connect to an embedded ApacheDS LDAP server, primed with a sample data set. How do we make sure that the ApacheDS server doesn't start up when we depl... | To address your requirements, you can use a combination of profiles and environment-specific configurations in your Maven build process and Spring configuration. This allows you to include or exclude the `ldap-context.xml` based on the environment in which your application is running.
### Step 1: Use Maven Profiles
Y... | 21,899 | [
{
"from": "human",
"value": "Summary\nWe have a central LDAP server that our deployed Java web app should connect to. Our JUnit tests depend on specific data in the LDAP repository, so they need to connect to an embedded ApacheDS LDAP server, primed with a sample data set. How do we make sure that the Apa... |
I have developed a VB.NET WCF service that recives and sends back data. When the first client connects it starts the data output that continues also if the client is closed. If a new client connects then a new object is created and the data output starts at the begninning and continues in parallel with the old instance... | It's great to hear that you've found a solution to your issue by modifying the service behavior to use `InstanceContextMode.Single` along with `ConcurrencyMode.Multiple`. This allows multiple clients to share the same service instance while enabling concurrent access. Here’s a summary of how that works and additional c... | 21,629 | [
{
"from": "human",
"value": "I have developed a VB.NET WCF service that recives and sends back data. When the first client connects it starts the data output that continues also if the client is closed. If a new client connects then a new object is created and the data output starts at the begninning and co... |
Some questions about Function Points:
1) Is it a reasonably precise way to do estimates? (I'm not unreasonable here, but just want to know compared to other estimation methods)
2) And is the effort required worth the benefit you get out of it?
3) Which type of Function Points do you use?
4) Do you use any tools for ... | Function Points (FP) are a popular method for measuring software size and complexity, and they can be a useful tool for estimating development effort and project management. Here are insights based on practical experiences:
1. **Precision in Estimates**:
- Function Points can provide a reasonably precise way to es... | 23,082 | [
{
"from": "human",
"value": "Some questions about Function Points:\n1) Is it a reasonably precise way to do estimates? (I'm not unreasonable here, but just want to know compared to other estimation methods)\n2) And is the effort required worth the benefit you get out of it? \n3) Which type of Function Poi... |
HI, I am new to the scrum methodology and looking for some help to get comfortable with the environment and wondering if there needs to be a bucket to track Developers and QA hours spent on deployments and bug fixes and retests. Seems like it could have major impact on the graph.
| Welcome to the world of Scrum! It's great that you're looking to get a solid understanding of the methodology. In Scrum, teams typically focus on delivering value in short iterations (sprints), and the main goal is to ensure that the team can continuously improve and deliver a potentially shippable product increment at... | 22,840 | [
{
"from": "human",
"value": "HI, I am new to the scrum methodology and looking for some help to get comfortable with the environment and wondering if there needs to be a bucket to track Developers and QA hours spent on deployments and bug fixes and retests. Seems like it could have major impact on the grap... |
My computer has two external audiocards and one in the motherboard with windows vista. In Vista it sees two entities for the same soundcard, a digital- and a analog output.
When i try to play an videofile with digital audio, say an dvd, it chooses 'Default DirectSound' whereas i want it to use 'Digital Output Auzentec... | It sounds like you're dealing with a classic issue of audio device management in Windows Vista, particularly when it comes to configuring audio rendering devices and DirectShow merits.
Here are some potential solutions and tips that might help you get the desired audio output for your video files:
### 1. Configure Pl... | 21,474 | [
{
"from": "human",
"value": "My computer has two external audiocards and one in the motherboard with windows vista. In Vista it sees two entities for the same soundcard, a digital- and a analog output. \nWhen i try to play an videofile with digital audio, say an dvd, it chooses 'Default DirectSound' whereas... |
I have a DataGrid, populated with objects in an ArrayCollection. After updating one of the objects' fields, I want the screen to update. The data source is not bindable, because I'm constructing it at runtime (and I don't understand how to make it bindable on the fly yet -- that's another question).
In this situation... | In Flex (which is likely the framework you're working with given the context), `invalidateList()` and `invalidateDisplayList()` serve different purposes when it comes to rendering updates in a component.
### `invalidateDisplayList()`
- This method is called to signal that the display list (the visual representation) o... | 13,504 | [
{
"from": "human",
"value": "I have a DataGrid, populated with objects in an ArrayCollection. After updating one of the objects' fields, I want the screen to update. The data source is not bindable, because I'm constructing it at runtime (and I don't understand how to make it bindable on the fly yet -- th... |
Two questions:
Can someone point me to unbiased data that compares .NET performance to VB 6 performance? I have searched but it is surprisingly difficult to find.
What is the best way to compare .NET performance to VB 6 performance as an app behaves at a customer's site?
We have a WindowsForms, client-server app (wri... | ### 1. Finding Unbiased Data Comparing .NET and VB6 Performance
While finding unbiased performance data comparing .NET and VB6 can be challenging, there are a few approaches you can take to gather some information:
- **Benchmark Studies**: Look for academic papers or research studies that specifically benchmark .NET ... | 24,201 | [
{
"from": "human",
"value": "Two questions:\n\nCan someone point me to unbiased data that compares .NET performance to VB 6 performance? I have searched but it is surprisingly difficult to find.\nWhat is the best way to compare .NET performance to VB 6 performance as an app behaves at a customer's site?\n\n... |
I came across this topic today while investigating something very strange. Doing certain things in our Flex app can cause the number of frames rendered to rocket, from 12fps to ~30fps: loaded animations start playing at high speed and the GUI starts to lock up.
Since everything I've read on Flex/Flash hammers home the ... | From your description, it seems like you are encountering an issue where your Flex application is rendering frames at an unexpectedly high rate, and this is likely due to some recursive behavior in your `ENTER_FRAME` handler that is triggering additional rendering updates.
Here are some areas to investigate and potent... | 17,977 | [
{
"from": "human",
"value": "I came across this topic today while investigating something very strange. Doing certain things in our Flex app can cause the number of frames rendered to rocket, from 12fps to ~30fps: loaded animations start playing at high speed and the GUI starts to lock up.\nSince everything... |
I have a managed Windows application that loads a managed C++ component that uses AfxLoadLibrary to load a third party component if present on the client machine. Once detected, I'm unloading the component using AfxFreeLibrary in an attempt to lower the working set of the managed parent application.
The call to AfxF... | In a managed application, particularly one using the .NET framework, the behavior of memory management differs significantly from that of unmanaged applications. Here's a breakdown of the situation regarding your use of `AfxLoadLibrary` and `AfxFreeLibrary` in a managed C++ application:
### Understanding Memory Manage... | 21,434 | [
{
"from": "human",
"value": "I have a managed Windows application that loads a managed C++ component that uses AfxLoadLibrary to load a third party component if present on the client machine. Once detected, I'm unloading the component using AfxFreeLibrary in an attempt to lower the working set of the manag... |
Note: I know very little about the GCC toolchain, so this question may not make much sense.
Since GCC includes an Ada front end, and it can emit ARM, and devKitPro is based on GCC, is it possible to use Ada instead of C/C++ for writing code on the DS?
Edit: It seems that the target that devKitARM uses is arm-eabi.
| Yes, it is technically possible to use Ada to write code for the Nintendo DS using the GCC toolchain, but it involves several considerations and potential challenges.
1. **GCC Ada Frontend**: GCC includes support for Ada through the GNAT compiler. You would need to ensure that you have a version of the GCC toolchain t... | 23,303 | [
{
"from": "human",
"value": "Note: I know very little about the GCC toolchain, so this question may not make much sense.\nSince GCC includes an Ada front end, and it can emit ARM, and devKitPro is based on GCC, is it possible to use Ada instead of C/C++ for writing code on the DS?\nEdit: It seems that the t... |
I used the method
$("#dvTheatres a").hover(function (){
$(this).css("text-decoration", "underline");
},function(){
$(this).css("text-decoration", "none");
}
);
Is there a more elegant method?(single line)
| Yes, you can achieve the same hover effect in a more concise manner using the `toggleClass` method or by using the `css` method with `mouseenter` and `mouseleave`. Here’s an example using `toggleClass`:
First, you'll need to add a CSS class to handle the underline effect:
```css
.underline {
text-decoration: unde... | 26,898 | [
{
"from": "human",
"value": "I used the method\n$(\"#dvTheatres a\").hover(function (){\n $(this).css(\"text-decoration\", \"underline\");\n },function(){\n $(this).css(\"text-decoration\", \"none\");\n }\n);\n\nIs there a more elegant method?(single line)\n"
},
{
"from": "gpt",
... |
Why is it that scanf() needs the l in "%lf" when reading a double, when printf() can use "%f" regardless of whether its argument is a double or a float?
Example code:
double d;
scanf("%lf", &d);
printf("%f", d);
| The difference in how `scanf()` and `printf()` handle types, particularly for `float` and `double`, relates to the way function arguments are passed and the types expected by the format specifiers.
### Explanation:
1. **Function Argument Passing**:
- In C, `float` values are automatically promoted to `double` when... | 23,017 | [
{
"from": "human",
"value": "Why is it that scanf() needs the l in \"%lf\" when reading a double, when printf() can use \"%f\" regardless of whether its argument is a double or a float?\nExample code:\ndouble d;\nscanf(\"%lf\", &d);\nprintf(\"%f\", d);\n\n"
},
{
"from": "gpt",
"value": "The diff... |
I have an MDI application. When I show a message box using MessageBox.Show(), the entire application disappears behind all of my open windows when I dismiss the message box.
The code is not doing anything special. In fact, here is the line that invokes the message box from within an MDI Child form:
MessageBox.Show(Stri... | The behavior you are observing, where the MDI application disappears behind other open windows after dismissing a message box, is usually related to the way Windows manages the Z-order (the stacking order of windows) and the focus of windows.
In your case, since the message box is modal, it should keep the focus on th... | 22,643 | [
{
"from": "human",
"value": "I have an MDI application. When I show a message box using MessageBox.Show(), the entire application disappears behind all of my open windows when I dismiss the message box.\nThe code is not doing anything special. In fact, here is the line that invokes the message box from with... |
What libraries can i use for motion and blending in game programming in c++? I need libraries regarding sound, image, expansion algorithm like 2xsai and super eagle. I need libraries like fblend and also for motion . How to compile functions of fblend in devcpp? 2d gaming... and the library should be compatible with de... | When working on 2D game programming in C++, especially with a focus on motion, image blending, and sound, several libraries could be useful. Here are some suggestions that you can consider:
### 1. Graphics Libraries
- **SDL (Simple DirectMedia Layer)**: A popular library for handling graphics, sound, and input. SDL is... | 18,025 | [
{
"from": "human",
"value": "What libraries can i use for motion and blending in game programming in c++? I need libraries regarding sound, image, expansion algorithm like 2xsai and super eagle. I need libraries like fblend and also for motion . How to compile functions of fblend in devcpp? 2d gaming... and... |
I've been trying to solve this, and have been getting stuck, so I thought I'd ask.
Imagine two ActionBeans, A and B.
A.jsp has this section in it:
...
<jsp:include page="/B.action">
<jsp:param name="ponies" value="on"/>
</jsp:include>
<jsp:include page="/B.action">
<jsp:param name="ponies" value="off"/>
</jsp:inclu... | It looks like you are trying to include the B ActionBean and pass different parameters to it using `<jsp:include>`. However, it appears you are encountering an issue where the parameters you are setting for the included JSP are not being correctly passed to the B ActionBean.
When you use `<jsp:include>`, it includes t... | 16,406 | [
{
"from": "human",
"value": "I've been trying to solve this, and have been getting stuck, so I thought I'd ask.\nImagine two ActionBeans, A and B.\nA.jsp has this section in it:\n...\n<jsp:include page=\"/B.action\">\n <jsp:param name=\"ponies\" value=\"on\"/>\n</jsp:include>\n<jsp:include page=\"/B.action... |
Does anyone know (like in tried and succeeded) if I can have D2009 both in English and in French?
It's not so much to generate French or English applications but to have the IDE available in either language to take screen shots and make demos in French or in English.
What would be involved: complementary install plus... | Yes, it is possible to run Delphi 2009 (D2009) in both English and French. Here’s a general approach to achieve this:
### Installation
1. **Install Delphi 2009**: Start by installing the English version of Delphi 2009 if you haven’t done so already.
2. **French Language Pack**: You may need to find a French langua... | 25,402 | [
{
"from": "human",
"value": "Does anyone know (like in tried and succeeded) if I can have D2009 both in English and in French?\nIt's not so much to generate French or English applications but to have the IDE available in either language to take screen shots and make demos in French or in English. \nWhat wo... |
I am starting my first independent for profit venture. I am having a hard time deciding what language to use. I want to write my app in Perl, but I don't think it will be simple enough to compile. If I don't write it in Perl I will write it in C++.
The application will have many features, including wxwidgets interface,... | Choosing the right programming language for your application is crucial, especially considering your project's specifications and goals. Let's break down your questions and considerations based on the details you've provided.
### Can PAR, Perl2exe, or equivalent compile more than basic test cases?
**PAR (Perl Archive... | 18,780 | [
{
"from": "human",
"value": "I am starting my first independent for profit venture. I am having a hard time deciding what language to use. I want to write my app in Perl, but I don't think it will be simple enough to compile. If I don't write it in Perl I will write it in C++.\nThe application will have man... |
I am developing a specialty application where the end-user needs to operate multiple controls simultaneously. The application is used to "tune" the control parameters of an electronic device to calibrate the unit to its best performance.
Currently, there is a UI with multiple graphical sliders which the operator click... | Your application scenario indeed requires a UI that allows the operator to adjust multiple independent parameters simultaneously while minimizing distraction from the task at hand. Here are several suggestions and alternatives to your current setup with sliders and mouse interaction:
### 1. **Dedicated Jog Dials**
Usi... | 21,272 | [
{
"from": "human",
"value": "I am developing a specialty application where the end-user needs to operate multiple controls simultaneously. The application is used to \"tune\" the control parameters of an electronic device to calibrate the unit to its best performance.\nCurrently, there is a UI with multipl... |
We have a server with 10 running mongrel_cluster instances with apache
in front of them, and every now and then one or some of them hang.
No activity is seen in the database (we're using activerecord sessions).
Mysql with innodb tables. show innodb status shows no locks. show
processlist shows nothing.
The server is li... | It sounds like you're experiencing a frustrating issue with your mongrel_cluster setup where some instances hang intermittently. From your description, there are several angles to investigate further in order to diagnose and resolve the problem. Here are some suggestions:
### 1. **Analyze the Image Processing Code:**
... | 17,749 | [
{
"from": "human",
"value": "We have a server with 10 running mongrel_cluster instances with apache\nin front of them, and every now and then one or some of them hang.\nNo activity is seen in the database (we're using activerecord sessions).\nMysql with innodb tables. show innodb status shows no locks. show... |
I have a very basic question about MVC web applications in Java.
Since the olden days of raw JSP up until current technologies like Seam, a very basic pattern has always been the internal dispatch from the controller that initially accepted the request to the view layer that creates the output to be sent to the client.... | You're correct that direct access to view templates or resources in a web application can pose security risks, especially in an MVC architecture where views should ideally be accessed only through controlled entry points (the controllers). To prevent direct access to certain resources, including view templates in a Jav... | 22,657 | [
{
"from": "human",
"value": "I have a very basic question about MVC web applications in Java.\nSince the olden days of raw JSP up until current technologies like Seam, a very basic pattern has always been the internal dispatch from the controller that initially accepted the request to the view layer that cr... |
I'm using EntLib v4 for Logging and currently I'm saving the events to the default text file listener.
I would like to use MS SQL database as my event sink and I saw that the database listener is already provided, but I don't know how to create logging database and stored procedures?
After googling around I saw that in... | In Enterprise Library 4 (EntLib v4), the scripts for creating the logging database and stored procedures are not included in the installation package. However, you can still create the necessary database structure for logging by using a database script that is commonly provided in the community or generating it based o... | 19,975 | [
{
"from": "human",
"value": "I'm using EntLib v4 for Logging and currently I'm saving the events to the default text file listener.\nI would like to use MS SQL database as my event sink and I saw that the database listener is already provided, but I don't know how to create logging database and stored proce... |
Is there a case insensitive version of the :contains jQuery selector or should I do the work manually by looping over all elements and comparing their .text() to my string?
| The jQuery `:contains` selector is case-sensitive, which means it will only match text that exactly matches the casing of the string you provide. If you need to perform a case-insensitive search, you'll need to do it manually by iterating over the elements and comparing their text in a case-insensitive manner.
Here's ... | 24,781 | [
{
"from": "human",
"value": "Is there a case insensitive version of the :contains jQuery selector or should I do the work manually by looping over all elements and comparing their .text() to my string?\n"
},
{
"from": "gpt",
"value": "The jQuery `:contains` selector is case-sensitive, which mean... |
The way the iPhone uses the touchscreen to enable zooming in and out and scrolling and so forth is very cool, and I was wondering if there is anything available for Windows Mobile that provides a similar user experience.
| Yes, Windows Mobile devices have incorporated touchscreen capabilities that provide a user experience similar to what you've described for the iPhone. While the implementation may vary based on the version of Windows Mobile you're using, here are a few features and applications that offer similar functionality:
1. **P... | 25,448 | [
{
"from": "human",
"value": "The way the iPhone uses the touchscreen to enable zooming in and out and scrolling and so forth is very cool, and I was wondering if there is anything available for Windows Mobile that provides a similar user experience.\n"
},
{
"from": "gpt",
"value": "Yes, Windows ... |
As a counterpart to C++ Coding Guideline 102, which of the 101 guidelines of Sutter & Alexandrescu do you violate or ignore most often, and why?
| As an AI, I don't write code myself, but I can provide insight based on the common practices and challenges that developers face when adhering to coding guidelines like those presented in "C++ Coding Guidelines" by Sutter and Alexandrescu.
One guideline from Sutter and Alexandrescu that developers might often overlook... | 25,058 | [
{
"from": "human",
"value": "As a counterpart to C++ Coding Guideline 102, which of the 101 guidelines of Sutter & Alexandrescu do you violate or ignore most often, and why?\n"
},
{
"from": "gpt",
"value": "As an AI, I don't write code myself, but I can provide insight based on the common practi... |
Does anybody know how to determine the location of a file that's in one of the folders specified by the PATH environmental variable other than doing a dir filename.exe /s from the root folder?
I know this is stretching the bounds of a programming question but this is useful for deployment-related issues, also I need to... | If you're looking to locate a file specified in the PATH environment variable without using a command like `dir filename.exe /s`, you can use a combination of command-line tools or scripting to achieve this more efficiently. Here are a few methods you can use:
### Method 1: Using Windows Command Line
You can use the ... | 19,954 | [
{
"from": "human",
"value": "Does anybody know how to determine the location of a file that's in one of the folders specified by the PATH environmental variable other than doing a dir filename.exe /s from the root folder?\nI know this is stretching the bounds of a programming question but this is useful for... |
I have read the post here about using setTimeout() during intensive DOM processing (using JavaScript), but how can I integrate this function with the below code? The below code works fine for a small number of options, but when the number of options gets too big my "please wait" animated GIF freezes while the local Jav... | When performing intensive DOM manipulation in JavaScript, particularly when dealing with a large number of elements, it's beneficial to break up the work into smaller chunks. This allows the browser to remain responsive and update the UI (in your case, the animated GIF) while processing. One way to achieve this is by u... | 23,232 | [
{
"from": "human",
"value": "I have read the post here about using setTimeout() during intensive DOM processing (using JavaScript), but how can I integrate this function with the below code? The below code works fine for a small number of options, but when the number of options gets too big my \"please wait... |
I was wondering if anyone knows of any libraries for programatically creating flash swf files.
Or for creating swf from svg.
| Creating SWF files programmatically can be a bit challenging, as Adobe has largely phased out support for Flash technology. However, there are still some libraries and tools available that can help you create SWF files or convert SVG to SWF.
### Libraries for Creating SWF Files Programmatically:
1. **SWFmill**:
- ... | 24,105 | [
{
"from": "human",
"value": "I was wondering if anyone knows of any libraries for programatically creating flash swf files. \nOr for creating swf from svg.\n"
},
{
"from": "gpt",
"value": "Creating SWF files programmatically can be a bit challenging, as Adobe has largely phased out support for ... |
What is the best way to handle user account management in a system, without having your employees who have access to a database, to have access to the accounts.
Examples:
Storing username/password in the database. This is a bad idea because anyone that has access to a database can see the username and password. And ... | User account management is a critical aspect of system security, and you're correct to be concerned about minimizing the exposure of sensitive account information, such as usernames and passwords. Here are several strategies and best practices for securely handling user account management while minimizing access to acc... | 14,729 | [
{
"from": "human",
"value": "What is the best way to handle user account management in a system, without having your employees who have access to a database, to have access to the accounts.\nExamples:\n\nStoring username/password in the database. This is a bad idea because anyone that has access to a datab... |
Is it possible to prevent the Windows Installer from running every time Access 2003 and Access 2007 are started, when they are both installed on the same machine at the same time..?
Like many developers I need to run more than 1 version of MS Access. I have just installed Access 2007. If I open Access 2003 and then o... | Yes, the issue you are experiencing with Microsoft Access 2003 and Access 2007 is a common one when multiple versions of Microsoft Office are installed on the same machine. The repeated configuration prompts occur because the Office installation is trying to optimize or set up components specific to the version being o... | 23,581 | [
{
"from": "human",
"value": "Is it possible to prevent the Windows Installer from running every time Access 2003 and Access 2007 are started, when they are both installed on the same machine at the same time..?\nLike many developers I need to run more than 1 version of MS Access. I have just installed Acce... |
I have a method that needs to accept an array of country names, and return a list of records that match one of those country names. I'm trying this
Public Shared Function GetConcessions(ByVal Countries As String()) As IEnumerable
Dim CountryList As String = Utility.JoinArray(Countries) ' turns string array into co... | The error you're encountering is due to the fact that LINQ to SQL does not support certain operations involving strings like `Like` or `Contains` in the way you're trying to use them, specifically when trying to evaluate them against a collection of values.
To achieve the desired outcome, you can use the `Contains` m... | 23,739 | [
{
"from": "human",
"value": "I have a method that needs to accept an array of country names, and return a list of records that match one of those country names. I'm trying this\nPublic Shared Function GetConcessions(ByVal Countries As String()) As IEnumerable\n Dim CountryList As String = Utility.JoinAr... |
We have PHP 5.2.6 deployed to c:\php and in that folder there is the php.ini file. On Windows, can a website override these settings similar to the way that apache has .htaccess? e.g.
DirectoryIndex index.php index.html
<IfModule mod_php5.c>
php_flag magic_quotes_gpc off
php_flag register_globals off
</IfModule>
<IfM... | In PHP, there isn't a direct equivalent of Apache's `.htaccess` for configuring PHP settings declaratively on a per-directory basis when running in a Windows environment. The PHP configuration settings that you normally specify in `php.ini` cannot be overridden in the same way as `.htaccess` directives.
However, you c... | 23,714 | [
{
"from": "human",
"value": "We have PHP 5.2.6 deployed to c:\\php and in that folder there is the php.ini file. On Windows, can a website override these settings similar to the way that apache has .htaccess? e.g.\nDirectoryIndex index.php index.html\n<IfModule mod_php5.c>\nphp_flag magic_quotes_gpc off\n ... |
I'm confused by the discussion and advancement both of a new version of HTML and a new version of XHTML. Are they competitors? If so, what is likeliest to be the adopted future of the web? If not, what is the differing non-competing purpose for each?
Are we due to have a BluRay/HDVD battle here? Is there ultimately any... | Your confusion is understandable, as the evolution of HTML and XHTML has led to some overlapping discussions but ultimately serves different purposes. Let’s break it down:
### HTML vs. XHTML
1. **HTML (HyperText Markup Language):**
- HTML is the standard markup language for creating web pages. Its current version ... | 21,572 | [
{
"from": "human",
"value": "I'm confused by the discussion and advancement both of a new version of HTML and a new version of XHTML. Are they competitors? If so, what is likeliest to be the adopted future of the web? If not, what is the differing non-competing purpose for each?\nAre we due to have a BluRay... |
I've seen this format used for comma-delimited lists in some C++ code (although this could apply to any language):
void function( int a
, int b
, int c
)
I was wondering why would someone use that over a more common format such as:
void function (int a,
int b,
... | The formatting style you’ve described—where each parameter is placed on a new line after the comma—has its own set of advantages and is often adopted in certain coding environments or teams for specific reasons. Here are some of the primary reasons someone might prefer this formatting over the more common style:
1. **... | 24,901 | [
{
"from": "human",
"value": "I've seen this format used for comma-delimited lists in some C++ code (although this could apply to any language):\nvoid function( int a\n , int b\n , int c\n )\n\nI was wondering why would someone use that over a more common format such as... |
I've used bash, csh, and tcsh. But I asked this question, and Jonathan informed me that csh isn't to be trusted. So what Linux shell is good for development. and why?
| When it comes to choosing a shell for development, many developers prefer using either **Bash** or **Zsh**. Here's a breakdown of these options and why they might be considered good choices:
### 1. Bash (Bourne Again SHell)
- **Compatibility**: Bash is the default shell on many Linux distributions, making it widely us... | 20,608 | [
{
"from": "human",
"value": "I've used bash, csh, and tcsh. But I asked this question, and Jonathan informed me that csh isn't to be trusted. So what Linux shell is good for development. and why?\n"
},
{
"from": "gpt",
"value": "When it comes to choosing a shell for development, many developer... |
I'm working on a project in C#. The previous programmer didn't know object oriented programming, so most of the code is in huge files (we're talking around 4-5000 lines) spread over tens and sometimes hundreds of methods, but only one class. Refactoring such a project is a huge undertaking, and so I've semi-learned to ... | Refactoring a large codebase into a more object-oriented structure can indeed be a challenging task, especially when the current design relies heavily on a single, monolithic class. To address your questions regarding performance penalties and the potential benefits of using static methods versus instance methods, let'... | 19,218 | [
{
"from": "human",
"value": "I'm working on a project in C#. The previous programmer didn't know object oriented programming, so most of the code is in huge files (we're talking around 4-5000 lines) spread over tens and sometimes hundreds of methods, but only one class. Refactoring such a project is a huge ... |
I got this error when I tried to compile an application that includes the tiffio.h header.
For the record, the tiffio.h is located at:
C:\Program Files\GnuWin32\include
I have set that directory to be included in the 'Projects' and 'Solution' Visual C++ directories, as shown in the image located here.
What am I missin... | When you encounter errors while trying to compile an application that includes the `tiffio.h` header, there could be several reasons for the issue, especially if you've already set the include directory correctly. Here are some steps to troubleshoot and resolve the problem:
1. **Check for Missing Library Files**: The ... | 21,661 | [
{
"from": "human",
"value": "I got this error when I tried to compile an application that includes the tiffio.h header.\nFor the record, the tiffio.h is located at: \nC:\\Program Files\\GnuWin32\\include\nI have set that directory to be included in the 'Projects' and 'Solution' Visual C++ directories, as sh... |
I have derived a TabControl with the express purpose of enabling double buffering, except nothing is working as expected. Here is the TabControl code:
class DoubleBufferedTabControl : TabControl
{
public DoubleBufferedTabControl() : base()
{
this.DoubleBuffered = true;
this.SetStyle
... | It seems like you're trying to create a custom `TabControl` that supports double buffering to reduce flickering during resizing and repainting. However, there are a few things you need to correct in your implementation to achieve this.
### Issues and Fixes
1. **Setting the ControlStyles**: In your constructor, you ar... | 23,167 | [
{
"from": "human",
"value": "I have derived a TabControl with the express purpose of enabling double buffering, except nothing is working as expected. Here is the TabControl code:\nclass DoubleBufferedTabControl : TabControl\n{\n public DoubleBufferedTabControl() : base()\n {\n this.DoubleBuffe... |
I have seen Where to find Java 6 JSSE/JCE Source Code?
and asked the question myself
How to get JRE/JDK with matching source? but I don't either of these was specific enough to get the answer I was really after, so I'm going to try a way more specific version of the question.
Basically the problem that I am trying to... | To achieve your goal of debugging SSL issues in Java by stepping through the JSSE (Java Secure Socket Extension) source code using the Eclipse debugger, you can follow these steps:
1. **Download a Compatible JDK/JRE with Source Code**:
- You can download the OpenJDK 6 or a similar version that provides both the ex... | 23,165 | [
{
"from": "human",
"value": "I have seen Where to find Java 6 JSSE/JCE Source Code? \nand asked the question myself \nHow to get JRE/JDK with matching source? but I don't either of these was specific enough to get the answer I was really after, so I'm going to try a way more specific version of the question... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.