instruction
stringlengths
14
27.6k
completion
stringlengths
3
38.3k
__original_row_idx
int64
0
50k
conversations
listlengths
2
2
In C++ when can a virtual function use static binding? If it is being accessed through a pointer, accessed directly, or never?
In C++, virtual functions are primarily associated with dynamic binding (also known as late binding) through the use of pointers or references to base class types. However, there are specific scenarios where a virtual function can use static binding (or early binding). 1. **Direct Access**: If a virtual function is ca...
29,679
[ { "from": "human", "value": "In C++ when can a virtual function use static binding? If it is being accessed through a pointer, accessed directly, or never?\n" }, { "from": "gpt", "value": "In C++, virtual functions are primarily associated with dynamic binding (also known as late binding) throug...
I'm constructing a simple form in ERB but the HTML produced by the text_field tag makes the for attribute in the label tag invalid. <div> <p><%= label_tag "email[name]", "Name" %></p> <%= text_field :email, :name, :class => "text_field" %> </div> Produces the HTML <div> <p><label for="email[name]">Name</label></...
You're correct that using the nested parameter name in the `for` attribute of the label tag creates an invalid HTML structure because the `for` attribute cannot include square brackets (`[` or `]`). To fix this issue, you can do the following: 1. Use the `text_field` method to generate the input field with a valid `...
29,058
[ { "from": "human", "value": "I'm constructing a simple form in ERB but the HTML produced by the text_field tag makes the for attribute in the label tag invalid.\n<div>\n <p><%= label_tag \"email[name]\", \"Name\" %></p>\n <%= text_field :email, :name, :class => \"text_field\" %>\n</div>\n\nProduces the HT...
If I make a JFrame like this public static void main(String[] args) { new JFrame().setVisible(true); } then after closing the window the appication doesn't stop (I need to kill it). What is the proper way of showing application's main windows ? I'd also like to know a reason of a proposed solution. Thanks in adv...
When you create a `JFrame` in Java Swing, it doesn't automatically terminate the Java application when the window is closed. To make the application exit when the window is closed, you need to set the default close operation for the `JFrame`. Here's an example of how to properly create a `JFrame` that exits the appli...
28,717
[ { "from": "human", "value": "If I make a JFrame like this\npublic static void main(String[] args) {\n\n new JFrame().setVisible(true);\n}\n\nthen after closing the window the appication doesn't stop (I need to kill it).\nWhat is the proper way of showing application's main windows ?\nI'd also like to kn...
I have a Django model with a large number of fields and 20000+ table rows. To facilitate human readable URLs and the ability to break down the large list into arbitrary sublists, I would like to have a URL that looks like this: /browse/<name1>/<value1>/<name2>/<value2>/ .... etc .... where 'name' maps to a model attr...
You're correct that the default behavior of Django's URL dispatcher and Python's regex engine would not allow you to capture multiple named groups in a straightforward way. Specifically, using `(?:...)` creates a non-capturing group, which means that the matched values won't be included in the result. To achieve what ...
26,276
[ { "from": "human", "value": "I have a Django model with a large number of fields and 20000+ table rows. To facilitate human readable URLs and the ability to break down the large list into arbitrary sublists, I would like to have a URL that looks like this:\n/browse/<name1>/<value1>/<name2>/<value2>/ .... e...
I was using god to start and monitor my starling and workling daemons. Works awesome on development machine but "workling_starling_client" refuses to start on my production machine.
If you're having trouble starting the `workling_starling_client` on your production machine, here are some steps to troubleshoot the issue: 1. **Check Dependencies**: Ensure that all necessary dependencies for Workling and Starling are installed on your production environment. Make sure you have the correct versions o...
30,390
[ { "from": "human", "value": "I was using god to start and monitor my starling and workling daemons. \nWorks awesome on development machine but \"workling_starling_client\" refuses to start on my production machine.\n" }, { "from": "gpt", "value": "If you're having trouble starting the `workling_...
I have use IlMerge to merge all the dlls of my projects in one exe. I use a targets file which is referenced in the "import" of the main csproj. The ExecCommand in the targets is: <Exec Command="&quot;$(ProgramFiles)\Microsoft\Ilmerge\Ilmerge.exe&quot; /out:@(MainAssembly) &quot;@(IntermediateAssembly)&quot; @(Ilmerg...
To merge your DLLs using ILMerge in a Setup Project, you have a few options. Unfortunately, Setup Projects in Visual Studio do not support custom MSBuild targets directly, which means the import you have in your `.csproj` file won't automatically apply. Here are several approaches you can take to address this issue: ...
27,664
[ { "from": "human", "value": "I have use IlMerge to merge all the dlls of my projects in one exe. I use a targets file which is referenced in the \"import\" of the main csproj.\nThe ExecCommand in the targets is:\n <Exec Command=\"&quot;$(ProgramFiles)\\Microsoft\\Ilmerge\\Ilmerge.exe&quot; /out:@(MainAssem...
I have XML that looks like <answers> <answer> <question-number>1</question-number> <value>3</value> <mean xsi:nil="1" /> </answer> <answer> <question-number>2</question-number> <value>2</value> <mean>2.3</mean> </answer> <answer> <question-number>3</question-nu...
To check if any of the `<answer>` elements have a non-null `<mean>` value after processing the list of answers in an XSLT transformation, you can utilize the `xsl:if` instruction combined with XPath expressions. Here’s a simple approach to achieve this: 1. After your `xsl:for-each` loop that processes each answer, us...
26,514
[ { "from": "human", "value": "I have XML that looks like\n<answers>\n <answer>\n <question-number>1</question-number>\n <value>3</value>\n <mean xsi:nil=\"1\" />\n </answer>\n <answer>\n <question-number>2</question-number>\n <value>2</value>\n <mean>2.3</mean>\n </ans...
We are currently evolving our development processes in an effort to become CMMI compliant (we will start with level 2, and move up from there). We are trying to locate a tool that is inexpensive (or free) that will allow us to develop requirements in the spirit of CMMI. In other words, we need to be able to enter our...
Finding a suitable tool that aligns with CMMI requirements and is inexpensive or free can be challenging, but there are several options you might consider that can help with requirements management, traceability, and change tracking. Here are a few tools that might meet your needs: 1. **Trello**: Although primarily a ...
29,864
[ { "from": "human", "value": "We are currently evolving our development processes in an effort to become CMMI compliant (we will start with level 2, and move up from there). We are trying to locate a tool that is inexpensive (or free) that will allow us to develop requirements in the spirit of CMMI. In oth...
How can I determine the name of the Bash script file inside the script itself? Like if my script is in file runme.sh, then how would I make it to display "You are running runme.sh" message without hardcoding that?
You can determine the name of the Bash script file inside the script itself using the special variable `$0`, which holds the name of the script as it's called. Here’s a simple way to display a message that includes the script's filename: ```bash #!/bin/bash # Get the script name from $0 script_name=$(basename "$0") ...
23,788
[ { "from": "human", "value": "How can I determine the name of the Bash script file inside the script itself?\nLike if my script is in file runme.sh, then how would I make it to display \"You are running runme.sh\" message without hardcoding that?\n" }, { "from": "gpt", "value": "You can determine...
Please don't answer the obvious, but what are the limit signs that tell us a problem should not be solved using regular expressions? For example: Why is a complete email validation too complex for a regular expression?
Regular expressions are powerful tools for pattern matching and string manipulation, but they have limitations that make them unsuitable for certain problems. Here are some signs that indicate a problem may not be a good candidate for regular expression solutions: 1. **Context Sensitivity**: If the problem requires un...
24,319
[ { "from": "human", "value": "Please don't answer the obvious, but what are the limit signs that tell us a problem should not be solved using regular expressions?\nFor example: Why is a complete email validation too complex for a regular expression?\n" }, { "from": "gpt", "value": "Regular expres...
I am trying to log a method's parameters by using reflection. I read the earlier question posted about this issue on StackOverflow as well which pointed me to CLR API's. Is it possible, someone can point me to the right direction, as to how will I get the values of parameters passed using API?
Certainly! If you're looking to log the parameters of a method at runtime in .NET using reflection, you can achieve this through a combination of method information retrieval and parameter value access. Below, I will guide you on how to use reflection to log method parameters. ### Using Reflection to Get Method Parame...
28,838
[ { "from": "human", "value": "I am trying to log a method's parameters by using reflection. I read the earlier question posted about this issue on StackOverflow as well which pointed me to CLR API's. \nIs it possible, someone can point me to the right direction, as to how will I get the values of parameters ...
I'm using Mongrel::DirHandler to control response headers for static files - this works great on my dev machine. My production machine uses Passenger so my headers aren't getting set. How do I control headers for static files when using Passenger? snippet from my environment.rb: if defined? Mongrel::DirHandler module...
When using Passenger, the way to set headers for static files differs from using the Mongrel web server, as Passenger serves static files differently (usually by offloading to the web server, like Apache or Nginx). Since you're looking to control headers for static files in a Passenger environment, you'll need to confi...
24,322
[ { "from": "human", "value": "I'm using Mongrel::DirHandler to control response headers for static files - this works great on my dev machine. My production machine uses Passenger so my headers aren't getting set. How do I control headers for static files when using Passenger?\nsnippet from my environment.rb...
That's it. It's a dumb dumb (embarrassing!) question, but I've never used C# before, only C++ and I can't seem to figure out how to access a Label on my main form from a secondary form and change the text. If anybody can let me know real quick what to do I'd be so grateful! BTW, I should really clarify. Sorry: I've got...
In C#, when you want to access controls like a `Label` from a different form, you have to make sure that the control is publicly accessible. By default, controls added using the Windows Forms designer are marked as private, which is why you cannot access them directly from another form. Here's a step-by-step guide on...
28,485
[ { "from": "human", "value": "That's it. It's a dumb dumb (embarrassing!) question, but I've never used C# before, only C++ and I can't seem to figure out how to access a Label on my main form from a secondary form and change the text. If anybody can let me know real quick what to do I'd be so grateful!\nBTW...
I'm currently running Lucene.net in a web application and am wondering about the best method, performance-wise. I currently have it set up so that all index writes get processed together in a scheduled process, along with optimizing the index. However for searching - I'm currently opening and closing the searcher per s...
Optimizing Lucene.NET for both indexing and searching in a web application can greatly enhance performance and user experience. Here are some suggestions for managing your index and searcher effectively: ### 1. Use a Long-Lived IndexSearcher Instead of opening and closing the `IndexSearcher` for every search, maintai...
27,834
[ { "from": "human", "value": "I'm currently running Lucene.net in a web application and am wondering about the best method, performance-wise.\nI currently have it set up so that all index writes get processed together in a scheduled process, along with optimizing the index.\nHowever for searching - I'm curre...
I have this huge legacy database that I'm trying to get under source control. I looked around here on stackoverflow and decided to use the Visual Studio 2008 database project, then committing stuff on svn. I successfully imported the schema into the project, but I can't find any way to use the user-friendly table desig...
Using Visual Studio 2008 Database Projects with legacy databases can be tricky, especially if you want to utilize the user-friendly table designers. Here are some suggestions and workarounds that might help you achieve this: 1. **Switch to a Database Project**: Visual Studio 2008's Database Projects are designed fo...
29,724
[ { "from": "human", "value": "I have this huge legacy database that I'm trying to get under source control. I looked around here on stackoverflow and decided to use the Visual Studio 2008 database project, then committing stuff on svn. I successfully imported the schema into the project, but I can't find any...
People in java/.net world has framework which provides methods for sorting a list. In CS, we all might have gone through Bubble/Insertion/Merge/Shell sorting algorithms. Do you write any of it these days? With frameworks in place, do you write code for sorting? Do you think it makes sense to ask people to write code to...
In today's software development environment, particularly in languages like Java and .NET, built-in libraries and frameworks provide efficient, optimized methods for sorting data structures like lists and arrays. This convenience allows developers to avoid reinventing the wheel for common tasks like sorting, which is g...
30,166
[ { "from": "human", "value": "People in java/.net world has framework which provides methods for sorting a list.\nIn CS, we all might have gone through Bubble/Insertion/Merge/Shell sorting algorithms.\nDo you write any of it these days?\nWith frameworks in place, do you write code for sorting?\nDo you think ...
In my work experience, most fresh out of school programmers are set right to creating reports for 6-12 months or so. While I see the benefit of doing something non-crucial, it seems to really discourage them. So my question is, should organizations allow newbies to work with someone experienced right off the bat, obvi...
You've raised an important point regarding the onboarding experiences of new programmers. Allowing newcomers to work alongside experienced developers, even on non-critical tasks, can have several benefits that can greatly enhance their early career experiences and overall job satisfaction. Here are some considerations:...
27,666
[ { "from": "human", "value": "In my work experience, most fresh out of school programmers are set right to creating reports for 6-12 months or so. While I see the benefit of doing something non-crucial, it seems to really discourage them. \nSo my question is, should organizations allow newbies to work with s...
I've inherited a piece of code with a snippet which empties the database as follows: dbmopen (%db,"file.db",0666); foreach $key (keys %db) { delete $db{$key}; } dbmclose (%db); This is usually okay but sometimes the database grows very large before this cleanup code is called and it's usually when a user wants to do...
The code snippet you provided is using Perl's DBM (database manager) interface to open a database file, iterate through all its keys, and delete each entry, which can be inefficient especially if the database grows large. This can indeed lead to performance issues if a user is waiting for an important action to complet...
28,342
[ { "from": "human", "value": "I've inherited a piece of code with a snippet which empties the database as follows:\ndbmopen (%db,\"file.db\",0666);\nforeach $key (keys %db) {\n delete $db{$key};\n}\ndbmclose (%db);\n\nThis is usually okay but sometimes the database grows very large before this cleanup code ...
I'm just starting out in PHP and would like some advice as to how to get a webservice result to display in an array. For example I would like to print the currency codes into an array from the following WSDL $wsdl="http://www.webservicex.com/CurrencyConvertor.asmx?WSDL This is what I have so far but nothing really ha...
It looks like you're trying to use the SOAP client in PHP to call a web service that provides currency conversion rates. However, there are a couple of issues with your code that need to be addressed to retrieve and print the currency codes properly. ### Step 1: Create the SOAP Client First, you need to create the SOA...
29,063
[ { "from": "human", "value": "I'm just starting out in PHP and would like some advice as to how to get a webservice result to display in an array. \nFor example I would like to print the currency codes into an array from the following WSDL\n$wsdl=\"http://www.webservicex.com/CurrencyConvertor.asmx?WSDL\n\nTh...
How do I create, execute and control a winform from within a console application?
Creating, executing, and controlling a WinForms application from within a console application involves a few key steps. You will need to create a WinForms Form in a way that it can be instantiated and manipulated by the console application. Below, I'll walk you through creating a simple WinForms application and control...
29,565
[ { "from": "human", "value": "How do I create, execute and control a winform from within a console application?\n" }, { "from": "gpt", "value": "Creating, executing, and controlling a WinForms application from within a console application involves a few key steps. You will need to create a WinFor...
We have a website, where transactions are entered in and put through a workflow. We are going to follow the standard BLL(Business Logic Layer), DTO(Data Transfer Object), DAL(Data Access Layer) etc. for a tiered application. We have the need to separate everything out because some transactions will cross multiple appli...
The scenario you described involves a complex integration of multiple components, which include a website, a backend processor, various business logic implementations, and interactions with third-party systems. Given the requirements you outlined, there are several considerations to make when deciding whether to treat ...
27,481
[ { "from": "human", "value": "We have a website, where transactions are entered in and put through a workflow. We are going to follow the standard BLL(Business Logic Layer), DTO(Data Transfer Object), DAL(Data Access Layer) etc. for a tiered application. We have the need to separate everything out because so...
I know of many utilities that can tell me the bitrate of an MP3 file, but I've never seen one that can tell me whether or not the MP3 file is VBR (variable bit rate - the bit rate fluctuates within the file) or a CBR (constant bit rate - the bit rate stays the same within the file). My guess is that most programs aren'...
To determine whether an MP3 file is VBR (Variable Bit Rate) or CBR (Constant Bit Rate), you can analyze the MP3 file's frames. The MP3 format consists of a series of frames, each of which contains a header with bitrate information. To automate the process of checking the bitrate type for a large number of files, you ca...
25,073
[ { "from": "human", "value": "I know of many utilities that can tell me the bitrate of an MP3 file, but I've never seen one that can tell me whether or not the MP3 file is VBR (variable bit rate - the bit rate fluctuates within the file) or a CBR (constant bit rate - the bit rate stays the same within the fi...
I've been attempting to learn C in my spare time, and other languages (C#, Java, etc.) have the same concept (and often the same operators)... At a core level, what does bit-shifting (<<, >>, >>>) do, what problems can it help solve, and what gotchas lurk around the bend? In other words, an absolute beginner's guide to...
Bit shifting is a fundamental operation in programming that manipulates the binary representation of numbers at a bit level. Understanding bit-shifting can give you a deeper insight into how computers process data and how you can optimize certain algorithms. Here’s a beginner-friendly guide to bit shifting in C and oth...
19,485
[ { "from": "human", "value": "I've been attempting to learn C in my spare time, and other languages (C#, Java, etc.) have the same concept (and often the same operators)...\nAt a core level, what does bit-shifting (<<, >>, >>>) do, what problems can it help solve, and what gotchas lurk around the bend? In ot...
I know that the JBoss Application Server has the JMX-Console as a GUI for administration. My question is, is there a similar admin tool using the command line? Does this tool come with the application server, and can it report on the status of various services under the control of the server?
Yes, JBoss Application Server (now known as WildFly) provides a command-line tool called the **Management CLI** (Command Line Interface). This tool is included with the application server and serves as a powerful alternative to the JMX Console for administration and management tasks. ### Features of the Management CLI...
26,585
[ { "from": "human", "value": "I know that the JBoss Application Server has the JMX-Console as a GUI for administration. My question is, is there a similar admin tool using the command line? Does this tool come with the application server, and can it report on the status of various services under the control ...
Markdown is a great tool for formatting plain text into pretty html, but it doesn't turn plain-text links into URLs automatically. Like this one: http://www.google.com/ How do I get markdown to add tags to URLs when I format a block of text?
Markdown doesn't automatically convert plain text URLs into clickable links (HTML anchor tags). However, you can manually format links in Markdown to make them clickable. Here are a few options you can use: 1. **Inline Links**: You can use the following syntax to create a clickable link: ``` [Link Text](http://w...
27,509
[ { "from": "human", "value": "Markdown is a great tool for formatting plain text into pretty html, but it doesn't turn plain-text links into URLs automatically. Like this one:\nhttp://www.google.com/\nHow do I get markdown to add tags to URLs when I format a block of text?\n" }, { "from": "gpt", ...
On IBM DB2 v.9 windows, when someone connect to database by Server\Administrator user DB2 database will automatically accept and grant all the permissions to this user? But, in some case environment Administrator of server does not need to see every data in the database. So how to prevent Administrator use connect to d...
In IBM DB2, the `SERVER\Administrator` user (or any Windows user that is part of the database administrator group) typically has broad access to the database, including the ability to connect to it and perform various operations. This includes being able to see and manipulate data in the database. If you want to preve...
30,293
[ { "from": "human", "value": "On IBM DB2 v.9 windows, when someone connect to database by Server\\Administrator user\nDB2 database will automatically accept and grant all the permissions to this user?\nBut, in some case environment Administrator of server does not need to see every data in the database. So h...
Related Article On a similar topic to the above article, but of a more specific note. How exactly do you handle items that are in the viewstate (so they are included on submit), but can also be changed via AJAX. For instance, say we had a dropdown list that was populated through an AJAX web service call (not an update ...
Handling items in the ViewState that are also manipulated via AJAX can be a bit tricky, especially when you need to ensure that the server-side state reflects the user's current interactions. Here’s a structured approach to manage a dropdown list that is populated through AJAX, along with server-side validation: ### S...
28,539
[ { "from": "human", "value": "Related Article\nOn a similar topic to the above article, but of a more specific note. How exactly do you handle items that are in the viewstate (so they are included on submit), but can also be changed via AJAX. For instance, say we had a dropdown list that was populated throug...
Is it acceptable to submit from an http form through https? It seems like it should be secure, but it allows for a man in the middle attack (here is a good discussion). There are sites like mint.com that allow you to sign-in from an http page but does an https post. In my site, the request is to have an http landing...
Submitting data from an HTTP form through HTTPS introduces security risks that are generally considered unacceptable for protecting sensitive information, such as login credentials. Here’s why: 1. **Insecure Landing Page**: If the initial landing page is served over HTTP, an attacker can intercept or manipulate this p...
30,583
[ { "from": "human", "value": "Is it acceptable to submit from an http form through https? It seems like it should be secure, but it allows for a man in the middle attack (here is a good discussion). There are sites like mint.com that allow you to sign-in from an http page but does an https post. In my sit...
i need to redirect all of the stdout of a program except the first line into a file. Is there a common unix program that removes lines from stdin and spits the rest out to stdout?
Yes, you can achieve this using a combination of standard Unix tools. One common approach is to use `sed` or `awk`. Here's how you can do it with both. ### Using `sed` You can use the `sed` command to skip the first line and print the rest to stdout. To redirect that output to a file, you can do the following: ```ba...
31,225
[ { "from": "human", "value": "i need to redirect all of the stdout of a program except the first line into a file. \nIs there a common unix program that removes lines from stdin and spits the rest out to stdout?\n" }, { "from": "gpt", "value": "Yes, you can achieve this using a combination of st...
We have TFS 2008 our build set up to checkout all AssemblyInfo.cs files in the project, update them with AssemblyInfoTask, and then either undo the checkout or checkin depending on whether the build passed or not. Unfortunately, when two builds are queued close together this results in a Partially completed build as t...
Your situation with TFS 2008 and the challenges of managing AssemblyInfo.cs files during close builds is indeed tricky, particularly with the potential for partially completed builds due to concurrent changes. Here are several suggestions to help ensure that the latest version of the AssemblyInfo.cs files is correctly ...
18,926
[ { "from": "human", "value": "We have TFS 2008 our build set up to checkout all AssemblyInfo.cs files in the project, update them with AssemblyInfoTask, and then either undo the checkout or checkin depending on whether the build passed or not. Unfortunately, when two builds are queued close together this re...
I've inherited a web project (Servlets) which is currently build inside eclipse. I want to add maven around it. But the project's source directory is not following the maven convention. Instead of being inside src/main/java, it's src/package/name/... I don't want to change anything right now because they are working at...
Yes, you can configure Maven to accept a custom source directory for your Java files. By default, Maven expects Java source files to be located in `src/main/java`, but you can override this in your `pom.xml` file. Here's how you can do that: 1. **Create or Update your `pom.xml`:** If you don’t already have a `pom.xml...
28,854
[ { "from": "human", "value": "I've inherited a web project (Servlets) which is currently build inside eclipse.\nI want to add maven around it. But the project's source directory is not following the maven convention. Instead of being inside src/main/java, it's src/package/name/...\nI don't want to change any...
Do you have any sugestions of tools to ease the task of understanding C/C++ code? We just inherited a large piece of software written by others and we need to quickly get up to speed on it. Any advice on tools that might simplify this task?
Certainly! Understanding a large codebase in C/C++ can be challenging, but there are several tools and techniques that can help you navigate and comprehend the code more efficiently. Here are some suggestions: ### Code Browsing and Navigation Tools 1. **IDE Features**: - **Visual Studio**: Offers excellent code nav...
27,254
[ { "from": "human", "value": "Do you have any sugestions of tools to ease the task of understanding C/C++ code? We just inherited a large piece of software written by others and we need to quickly get up to speed on it. Any advice on tools that might simplify this task?\n" }, { "from": "gpt", "va...
I have the following code which works just fine when the method is "POST", but changing to "GET" doesn't work: HttpWebRequest request = null; request = HttpWebRequest.Create(uri) as HttpWebRequest; request.ContentType = "application/x-www-form-urlencoded; charset=UTF-8"; request.Method = "POST"; // Doesn't work with "G...
It looks like you managed to solve the issue with the `ProtocolViolationException` when switching from the `POST` method to `GET`. Let's summarize and clarify the key points that might help others facing a similar situation: ### Key Points: 1. **HTTP Methods**: The `GET` method is primarily used to retrieve data from ...
27,525
[ { "from": "human", "value": "I have the following code which works just fine when the method is \"POST\", but changing to \"GET\" doesn't work:\nHttpWebRequest request = null;\nrequest = HttpWebRequest.Create(uri) as HttpWebRequest;\nrequest.ContentType = \"application/x-www-form-urlencoded; charset=UTF-8\"...
Which technology stack is best for the creation of a two dimensional MMORPG and why? This question is loaded, so which are the major factors would you consider for development in such a domain?
Creating a two-dimensional MMORPG (Massively Multiplayer Online Role-Playing Game) is a complex endeavor, and the choice of technology stack will depend on various factors. Here are some major considerations, followed by a recommended technology stack: ### Major Factors to Consider 1. **Game Design and Features**: ...
27,216
[ { "from": "human", "value": "Which technology stack is best for the creation of a two dimensional MMORPG and why?\nThis question is loaded, so which are the major factors would you consider for development in such a domain?\n" }, { "from": "gpt", "value": "Creating a two-dimensional MMORPG (Mass...
I am trying to learn Emacs and trying to find best keyboard layout for me. One thing is really annoying me. I have added following lines to .emacs (global-set-key "\C-y" 'scroll-up) (global-set-key "\M-y" 'scroll-down) When I hold Control and press y a few times, it will page down on every press of y. However, when I ...
It sounds like you're encountering a specific issue with the way the Meta key (Windows key in your case) is being interpreted in your Emacs setup, especially with the EmacsW32 version. This is a known limitation with certain Emacs builds and the way they handle key modifiers. In standard GNU Emacs, when you bind keys...
26,658
[ { "from": "human", "value": "I am trying to learn Emacs and trying to find best keyboard layout for me. One thing is really annoying me. I have added following lines to .emacs\n(global-set-key \"\\C-y\" 'scroll-up)\n(global-set-key \"\\M-y\" 'scroll-down)\n\nWhen I hold Control and press y a few times, it w...
I would like to modify a Spotlight metadata attribute of a file within my application (i.e. not in a Spotlight importer) but I can't find any API for doing so. Is it possible? Pointers to the relevant docs would be ideal. In case it's helpful, here's my use case: I want to store a reference to a file system path in ...
To modify Spotlight metadata attributes for a file in macOS, you would typically use the `MDItem` API, but there are limitations on modifying existing metadata directly. Instead, the recommended approach is to utilize the `MDItem` API to create and manage custom metadata. Here’s how you can approach your use case: 1....
27,875
[ { "from": "human", "value": "I would like to modify a Spotlight metadata attribute of a file within my application (i.e. not in a Spotlight importer) but I can't find any API for doing so. Is it possible? Pointers to the relevant docs would be ideal.\nIn case it's helpful, here's my use case:\n\nI want to s...
I've automated my Ubuntu installation - I've got Python code that runs automatically (after a clean install, but before the first user login - it's in a temporary /etc/init.d/ script) that sets up everything from Apache & its configuration to my personal Gnome preferences. It's the latter that's giving me trouble. This...
The issue you're encountering is indeed related to the changes in the Gnome environment in Intrepid. Specifically, Gconf requires a Gnome session to be active in order to work properly, which is not available during your early initialization script execution. Here are a few approaches you could consider to set your Gno...
28,127
[ { "from": "human", "value": "I've automated my Ubuntu installation - I've got Python code that runs automatically (after a clean install, but before the first user login - it's in a temporary /etc/init.d/ script) that sets up everything from Apache & its configuration to my personal Gnome preferences. It's ...
I need to do a modulus operation on very large integers. The biggest integer supported by my platform (edit: .NET 2.0) is a 64 bit integer, which aren't big enough for the numbers I'm working with. How can I do a modulus on really big integers, like 12654875632126424875387321657498462167853687516876876? I have a solut...
Your approach to performing a modulus operation on a very large integer by treating it as a string is indeed one of the common methods, especially when working in environments that do not support larger integers natively. However, there is a slightly cleaner and more efficient way to implement your modulus function wit...
30,740
[ { "from": "human", "value": "I need to do a modulus operation on very large integers. The biggest integer supported by my platform (edit: .NET 2.0) is a 64 bit integer, which aren't big enough for the numbers I'm working with.\nHow can I do a modulus on really big integers, like 126548756321264248753873216...
Which industry-class database has the most unique features? (with "unique" meaning that no other RDBMS has them) I think my choice here is Oracle 11g: Flashback query (you can estract data as it was a moment in the past) ASM - automatic storage management Native code compilation of stored procedures Audit features (tr...
Oracle Database, particularly in its 11g version, is indeed known for a variety of unique features that differentiate it from other relational database management systems (RDBMS). Here are some of the features you mentioned, along with additional unique aspects of Oracle that may not be present in other RDBMS: 1. **Fl...
22,690
[ { "from": "human", "value": "Which industry-class database has the most unique features? (with \"unique\" meaning that no other RDBMS has them)\nI think my choice here is Oracle 11g:\n\nFlashback query (you can estract data as it was a moment in the past)\nASM - automatic storage management\nNative code com...
I found a clear squared bug on IE7/8, which appears via automation (still looking for a workaround, btw). So, I tried with no luck to find a way to log this bug. Tried the forum way, but it seems this site is somehow not so active these days. I even tried to mail Chris Wilson, but honestly, I don't put so much hope in...
Hi Vincent, Logging bugs for Internet Explorer (especially versions like IE7 and IE8, which are quite outdated now) can be a bit challenging since Microsoft has largely shifted its focus to newer browsers like Edge. However, here are a few steps you can take to report your findings: 1. **Microsoft Feedback Hub**: For...
30,815
[ { "from": "human", "value": "I found a clear squared bug on IE7/8, which appears via automation (still looking for a workaround, btw). \nSo, I tried with no luck to find a way to log this bug. Tried the forum way, but it seems this site is somehow not so active these days.\nI even tried to mail Chris Wilson...
I have a jQuery datepicker that I want to restrict non work days - weekends, public holidays etc. I have seen examples on how to do this from the client side (javascript), but is there a way to restrict the dates from server side ASP.NET code? I figure you could do using Page.RegisterClientScriptBlock, but was wonderin...
Yes, you can restrict non-working days like weekends and public holidays in a jQuery datepicker by generating the list of restricted dates on the server-side using ASP.NET. There are multiple approaches to achieve this, and while `Page.RegisterClientScriptBlock` is one method, there are often more elegant ways to pass ...
25,159
[ { "from": "human", "value": "I have a jQuery datepicker that I want to restrict non work days - weekends, public holidays etc. I have seen examples on how to do this from the client side (javascript), but is there a way to restrict the dates from server side ASP.NET code?\nI figure you could do using Page.R...
What happens when the Office 2003 PIA prerequisite and launch condition in a Windows installer are run against an Office 2007 system?
When working with Windows Installer projects that include a prerequisite for the Office 2003 Primary Interop Assemblies (PIAs), it is important to understand how the launch conditions are evaluated, especially when the target system has a different version of Office, such as Office 2007. 1. **Prerequisites Check**: Th...
31,505
[ { "from": "human", "value": "What happens when the Office 2003 PIA prerequisite and launch condition in a Windows installer are run against an Office 2007 system?\n" }, { "from": "gpt", "value": "When working with Windows Installer projects that include a prerequisite for the Office 2003 Primary...
Right now, I have a tool tip that pops up when I hover over an edit box. The problem is that this tool tip contains multiple error messages and they are all in one long line. I need to have each error message be on its own line. The error messages are contained in a CString with a new line seperating them. My existi...
To display each error message on its own line in the tooltip, you need to ensure that you use the newline characters appropriately when setting the tooltip text. In the context of Windows tooltips, the standard newline character `\n` should be used to separate messages. Here's a modified version of your `OnToolTipText...
27,276
[ { "from": "human", "value": "Right now, I have a tool tip that pops up when I hover over an edit box. The problem is that this tool tip contains multiple error messages and they are all in one long line. I need to have each error message be on its own line. The error messages are contained in a CString w...
I'm currently writing an edit-in-place script for MooTools and I'm a little stumped as to how I can make it degrade gracefully without JavaScript while still having some functionality. I would like to use progressive enhancement in some way. I'm not looking for code, but more a concept as to how one would approach the ...
When it comes to implementing an edit-in-place feature using MooTools (or any JavaScript framework) while ensuring that it degrades gracefully without JavaScript, here are some concepts and approaches to consider that align with progressive enhancement: ### 1. Semantic HTML Structure Start by using a clear and semanti...
27,240
[ { "from": "human", "value": "I'm currently writing an edit-in-place script for MooTools and I'm a little stumped as to how I can make it degrade gracefully without JavaScript while still having some functionality. I would like to use progressive enhancement in some way. I'm not looking for code, but more a ...
Is there some library for using some sort of cursor over a file? I have to read big files, but can't afford to read them all at once into memory. I'm aware of java.nio, but I want to use a higher level API. A little backgrond: I have a tool written in GWT that analyzes submitted xml documents and then pretty prints the...
If you're looking for a higher-level API to work with large files in Java without loading everything into memory, there are a few libraries and approaches that could help you. ### 1. Java NIO (with a higher-level abstraction) While you mentioned you are aware of Java NIO, you can still use its capabilities without dea...
26,511
[ { "from": "human", "value": "Is there some library for using some sort of cursor over a file? I have to read big files, but can't afford to read them all at once into memory. I'm aware of java.nio, but I want to use a higher level API.\nA little backgrond: I have a tool written in GWT that analyzes submitte...
I am interested in mastering prefetch-related functions such as _mm_prefetch(...) so when I perform operations that loop over arrays, the memory bandwidth is fully utilized. What are the best resources for learning about this? I am doing this work in C using GCC 4 series on an intel linux platform.
Mastering prefetching techniques, such as using `_mm_prefetch(...)`, is a great way to optimize performance, especially when working with large datasets in loops. Here are some resources and strategies to help you learn about prefetching and memory bandwidth optimization in C on an Intel Linux platform: ### 1. **Intel...
27,016
[ { "from": "human", "value": "I am interested in mastering prefetch-related functions such as\n_mm_prefetch(...)\nso when I perform operations that loop over arrays, the memory bandwidth is fully utilized. What are the best resources for learning about this?\nI am doing this work in C using GCC 4 series on ...
Not sure if the title is quite right for the question but I can't think of any other way to put it.. Suppose you wanted to create multiple different web apps, but you wanted a user who was logged into one app to be able to go straight to your other app without re-logging in (assuming they have perms to look at the othe...
To achieve seamless single sign-on (SSO) functionality across multiple web apps, you can follow a few approaches. Here’s a comprehensive outline of the steps and technologies involved: ### 1. Centralized Authentication #### a. Use OAuth 2.0 - **Description:** Implement OAuth 2.0 as the authentication framework. It al...
24,512
[ { "from": "human", "value": "Not sure if the title is quite right for the question but I can't think of any other way to put it..\nSuppose you wanted to create multiple different web apps, but you wanted a user who was logged into one app to be able to go straight to your other app without re-logging in (as...
I've written a Java applet. A user reports that he tried to run it in Firefox 3.0.3 on OS X 10.5.5 but no go. It wants him to download a plug-in, but when he tells it to install missing plug-ins it can't find the appropriate installer... What is going wrong here?
The issue you're encountering with your Java applet in Firefox 3.0.3 on OS X 10.5.5 is likely due to a combination of outdated software and the changes in how browsers handle Java applets. Here are some key points to consider: 1. **Browser Support**: Firefox 3.0.3 is quite an old version, and it may not support the J...
30,124
[ { "from": "human", "value": "I've written a Java applet. A user reports that he tried to run it in Firefox 3.0.3 on OS X 10.5.5 but no go. It wants him to download a plug-in, but when he tells it to install missing plug-ins it can't find the appropriate installer...\nWhat is going wrong here?\n" }, { ...
I've been wondering this for a while but since it hasn't come up much I've left it in the 'mysterious wizardy' column. It seems to me that there is some sort of relationship between a connection identifier like ABC and ABC.DEFG and I don't quite get what it is. For example, a machine I was setting up just now I was hav...
The behavior you're observing with the connection identifiers in Oracle databases has to do with how Oracle handles naming and resolving database service names within the context of its networking infrastructure, specifically the Transparent Network Substrate (TNS). ### Connection Identifiers and Naming Conventions I...
28,978
[ { "from": "human", "value": "I've been wondering this for a while but since it hasn't come up much I've left it in the 'mysterious wizardy' column.\nIt seems to me that there is some sort of relationship between a connection identifier like ABC and ABC.DEFG and I don't quite get what it is.\nFor example, a ...
My professor wrote this shell script to time my program, and display the results. For some reason it just outputs 0s with my program. He provided the following files: timeit.csh sequence ecoli2500.txt ecoli3000.txt ecoli5000.txt ecoli7000.txt ecoli8000.txt ecoli9000.txt ecoli10000.txt Here are...
The issue you're facing arises from how the `timeit.csh` script is set up to run your Java program with input redirection. Let's analyze the key parts of the `timeit.csh` script and your `EditDistance.java` program to understand why you're seeing all zeros when executing `./timeit.csh sequence`. ### Understanding the ...
29,609
[ { "from": "human", "value": "My professor wrote this shell script to time my program, and display the results. For some reason it just outputs 0s with my program. He provided the following files:\ntimeit.csh\nsequence\necoli2500.txt \necoli3000.txt \necoli5000.txt \necoli7000.txt \necoli8000.tx...
I wonder if is possible to use FTS with LINQ using .NET Framework 3.5. I'm searching around the documentation that I didn't find anything useful yet. Does anyone have any experience on this?
Using Full-Text Search (FTS) with LINQ in .NET Framework 3.5 can be a bit challenging, as LINQ to SQL and Entity Framework (EF) didn't have built-in support for FTS at that time. However, you can still achieve this by writing custom queries. Here's how you can approach it: ### Steps to Use Full-Text Search in .NET Fra...
29,488
[ { "from": "human", "value": "I wonder if is possible to use FTS with LINQ using .NET Framework 3.5. I'm searching around the documentation that I didn't find anything useful yet.\nDoes anyone have any experience on this?\n" }, { "from": "gpt", "value": "Using Full-Text Search (FTS) with LINQ in ...
I'm using Thinking Sphinx for full-text search, following this video. I'd like to do the following: @articles = Article.search(params[:search], :conditions => "published_at IS NOT NULL", :order => :created_at) The problem is that this doesn't work. It seems that the search method only accepts conditions that are a has...
In Thinking Sphinx, you can use the `conditions` option to filter results, but it requires the conditions to be represented as a hash. For the condition `"published_at IS NOT NULL"`, you can achieve this using the `:where` option instead of `:conditions`. Here's how you can rewrite your search: ```ruby @articles = Ar...
31,902
[ { "from": "human", "value": "I'm using Thinking Sphinx for full-text search, following this video.\nI'd like to do the following:\n@articles = Article.search(params[:search], :conditions => \"published_at IS NOT NULL\", :order => :created_at)\n\nThe problem is that this doesn't work. It seems that the searc...
I am interested in making a Google Talk client using Python and would like to use the Twisted libraries Words module. I have looked at the examples, but they don't work with the current implementation of Google Talk. Has anybody had any luck with this? Would you mind documenting a brief tutorial? As a simple task, I'...
Creating a Google Talk client using Python and the Twisted framework is an interesting project! Google Talk uses the XMPP (Extensible Messaging and Presence Protocol) for communication, and Twisted has good support for XMPP through its `twisted.words` module. However, Google Talk has been deprecated, so I’ll provide a ...
23,489
[ { "from": "human", "value": "I am interested in making a Google Talk client using Python and would like to use the Twisted libraries Words module. I have looked at the examples, but they don't work with the current implementation of Google Talk.\nHas anybody had any luck with this? Would you mind document...
In Delphi 2009 whereabouts do you turn on the option to treat warnings as errors?
In Delphi 2009, you can configure the option to treat warnings as errors through the following steps: 1. **Open your project**: Start Delphi 2009 and load the project for which you want to change the setting. 2. **Project Options**: Go to the menu and select `Project` -> `Options`. 3. **Compiler Options**: In the Pr...
32,878
[ { "from": "human", "value": "In Delphi 2009 whereabouts do you turn on the option to treat warnings as errors?\n" }, { "from": "gpt", "value": "In Delphi 2009, you can configure the option to treat warnings as errors through the following steps:\n\n1. **Open your project**: Start Delphi 2009 and...
We have an application that does single sign-on using a centralized authentication server (CAS). We'd like to do single sign-out, such that if the user logs out of one application (say a front-end portal), the user is automatically signed out of all applications using the same single sign-on ticket. The expectation wo...
Abandoning an InProc session from a different context is not straightforward. In ASP.NET, the InProc session state is tied to the application's process and is not shared across different requests or different applications. When you use InProc session state, each user's session data is stored in the memory of the web se...
29,165
[ { "from": "human", "value": "We have an application that does single sign-on using a centralized authentication server (CAS). We'd like to do single sign-out, such that if the user logs out of one application (say a front-end portal), the user is automatically signed out of all applications using the same ...
I'm working on a large, aging code base for an MFC app. The code has been worked on by many developers over time, and as a result, we have three different ways throughout the code of dealing with the possibility of an allocation failure with new. The first way is to test for NULL on the result of new. We don't use no...
In your scenario, you're dealing with a few different conventions for handling memory allocation failures due to the interaction between standard C++ and MFC's memory management. Here’s a breakdown of how it works: ### Memory Allocation in C++ 1. **Standard C++ Allocation**: In standard C++, when you allocate memory ...
28,326
[ { "from": "human", "value": "I'm working on a large, aging code base for an MFC app. The code has been worked on by many developers over time, and as a result, we have three different ways throughout the code of dealing with the possibility of an allocation failure with new.\nThe first way is to test for N...
Something that would really reload the page or resource, ignoring whatever might be in cache.
To force a page or resource to reload in a web browser while ignoring the cache, you can use the following methods: ### Browser-Specific Methods: 1. **Hard Refresh:** - **Google Chrome / Firefox / Edge:** - Windows: Press `Ctrl + F5` or `Shift + F5`. - macOS: Press `Cmd + Shift + R`. - This will clear...
24,851
[ { "from": "human", "value": "Something that would really reload the page or resource, ignoring whatever might be in cache.\n" }, { "from": "gpt", "value": "To force a page or resource to reload in a web browser while ignoring the cache, you can use the following methods:\n\n### Browser-Specific ...
I want to force Apache to use HTTPS for a particular URL in the following form: https://www.example.com/signup/* so if someone goes to any of the following example URLs directly, Apache will forward the URL over to the HTTPS equivalent site. e.g. http://www.example.com/signup --> https://www.example.com/signup http:...
To force Apache to redirect all HTTP requests for the `/signup/*` URL pattern to their HTTPS equivalents, you can use the following configuration in your Apache server's virtual host file or in an `.htaccess` file if you have that enabled for your server. ### Using a Virtual Host Configuration If you're using a virtu...
29,381
[ { "from": "human", "value": "I want to force Apache to use HTTPS for a particular URL in the following form:\nhttps://www.example.com/signup/*\n\nso\nif someone goes to any of the following example URLs directly, Apache will forward the URL over to the HTTPS equivalent site.\ne.g.\nhttp://www.example.com/si...
I have a database with DateTime fields that are currently stored in local time. An upcoming project will require all these dates to be converted to universal time. Rather than writing a c# app to convert these times to universal time, I'd rather use available sqlserver/sql features to accurately convert these dates t...
To convert `DateTime` fields stored in local time to Universal Time (UTC) in SQL Server, you can use the `AT TIME ZONE` clause, which was introduced in SQL Server 2016. This feature allows you to convert `DateTime` values between different time zones while accounting for Daylight Saving Time (DST) and other time zone r...
27,409
[ { "from": "human", "value": "I have a database with DateTime fields that are currently stored in local time. An upcoming project will require all these dates to be converted to universal time. Rather than writing a c# app to convert these times to universal time, I'd rather use available sqlserver/sql fea...
Maybe this is an overarching question as I've seen similar bugs in Firefox and I'd like to know how to avoid coding them. For no apparent reason, the function keys, arrow keys (de-numlocked numpad as well), the 6 keys over the arrows, and backspace stop working. Every other key seems to work leading me to think it's s...
Keyboard input issues, like the ones you are experiencing, can be frustrating and often stem from several underlying causes related to software, the operating system, or even the hardware. Here are some strategies to help avoid coding input bugs in your applications, along with potential explanations for the specific i...
17,855
[ { "from": "human", "value": "Maybe this is an overarching question as I've seen similar bugs in Firefox and I'd like to know how to avoid coding them.\nFor no apparent reason, the function keys, arrow keys (de-numlocked numpad as well), the 6 keys over the arrows, and backspace stop working. Every other ke...
I have written a windows service using the Apache.NMS and Apcahe.NMS.ActiveMQ (version 1.0) libraries. The service consumes messages from ActiveMQ from a vendor server. The service spins up a connection and listens for messages (I handle the OnMessage event) The connection is a transacted connection so I call commit a...
Using `Spring.Messaging.Nms` can provide several advantages over directly using `Apache.NMS` and `Apache.NMS.ActiveMQ` libraries, particularly in terms of resource management and handling of connection issues. Here are a few points to consider when deciding whether to switch to Spring: ### Benefits of Using Spring.Mes...
29,189
[ { "from": "human", "value": "I have written a windows service using the Apache.NMS and Apcahe.NMS.ActiveMQ (version 1.0) libraries. The service consumes messages from ActiveMQ from a vendor server.\nThe service spins up a connection and listens for messages (I handle the OnMessage event)\nThe connection is...
If I declare a temporary auto deleted character buffer using std::auto_ptr<char> buffer(new char[n]); then the buffer is automatically deleted when the buffer goes out of scope. I would assume that the buffer is deleted using delete. However the buffer was created using new[], and so strictly speaking the buffer shoul...
You're correct in your observation regarding the use of `std::auto_ptr`, `new`, and `delete`. When you allocate memory using `new[]`, the corresponding deallocation should be done with `delete[]`. However, if you use `std::auto_ptr`, it will only call `delete` on the pointer when it goes out of scope. This means if y...
28,063
[ { "from": "human", "value": "If I declare a temporary auto deleted character buffer using\nstd::auto_ptr<char> buffer(new char[n]);\n\nthen the buffer is automatically deleted when the buffer goes out of scope. I would assume that the buffer is deleted using delete.\nHowever the buffer was created using new...
Usually, I need to retrieve data from a table in some range; for example, a separate page for each search result. In MySQL I use LIMIT keyword but in DB2 I don't know. Now I use this query for retrieve range of data. SELECT * FROM( SELECT SMALLINT(RANK() OVER(ORDER BY NAME DESC)) AS RUNNING_NO , DATA_...
In DB2, to retrieve a specific range of rows efficiently, you can make use of the `ROW_NUMBER()` window function combined with common table expressions (CTEs). The query you provided can be optimized for better performance and readability. Here’s an improved version of your query that retrieves a specified range of ro...
28,486
[ { "from": "human", "value": "Usually, I need to retrieve data from a table in some range; for example, a separate page for each search result. In MySQL I use LIMIT keyword but in DB2 I don't know. Now I use this query for retrieve range of data.\nSELECT * \nFROM(\n SELECT \n SMALLINT(RANK() OVER(ORD...
does anyone know of a good place to find plugins for Resharper? Preferably somewhere more structured than Google... Thanks!
There are several good places to find plugins for ReSharper that offer a more structured approach than a simple Google search: 1. **JetBrains Plugin Repository**: This is the official repository for plugins across all JetBrains products, including ReSharper. You can browse and search for plugins that suit your needs. ...
30,906
[ { "from": "human", "value": "does anyone know of a good place to find plugins for Resharper? Preferably somewhere more structured than Google... Thanks!\n" }, { "from": "gpt", "value": "There are several good places to find plugins for ReSharper that offer a more structured approach than a sim...
recently I've been reading through Scott Meyers's excellent Effective C++ book. In one of the last tips he covered some of the features from TR1 - I knew many of them via Boost. However, there was one that I definitely did NOT recognize: tr1::reference_wrapper. How and when would I use tr1::reference_wrapper?
`tr1::reference_wrapper` (and its equivalent in the C++11 standard library, `std::reference_wrapper`) is a utility that allows you to store references in a way that can be copied, assigned, and used in standard containers. In C++, references themselves cannot be reseated (i.e., you can't change what a reference refers ...
29,573
[ { "from": "human", "value": "recently I've been reading through Scott Meyers's excellent Effective C++ book. In one of the last tips he covered some of the features from TR1 - I knew many of them via Boost. \nHowever, there was one that I definitely did NOT recognize: tr1::reference_wrapper. \nHow and when ...
I have a VB.NET windows application that pulls information from an MS Access database. The primary role of the application is to extract information from Excel files in various formats, standarize the file layout and write that out to csv files. The application uses MS Access as the source for the keys and cross refer...
Migrating your application from an MS Access database to SQL Server 2005 and improving performance involves several steps. Below is a structured approach to facilitate this migration while optimizing for speed: ### 1. Assess the Current Application and Database - **Review the Access Database Structure**: Understand t...
26,738
[ { "from": "human", "value": "I have a VB.NET windows application that pulls information from an MS Access database. The primary role of the application is to extract information from Excel files in various formats, standarize the file layout and write that out to csv files. The application uses MS Access a...
XIFF is an implemenation of the XMPP protocol in actionscript. So far, all the examples and documentation I have seen are sparse. Does anyone know a good explanation of the most recent version of XIFF and/or good examples of working Flex/AIR applications?
XIFF (XMPP Flash Framework) is indeed an implementation of the XMPP protocol designed for use with ActionScript and can be used to build real-time communication applications in Flex or AIR. While documentation for XIFF can sometimes be limited, there are resources and examples that can help you get started. Here are so...
27,973
[ { "from": "human", "value": "XIFF is an implemenation of the XMPP protocol in actionscript.\nSo far, all the examples and documentation I have seen are sparse. Does anyone know a good explanation of the most recent version of XIFF and/or good examples of working Flex/AIR applications? \n" }, { "from...
I am building an msi using WISE. The Dialogs appear fine when run on a 1280x800 resolution screen. But when I run the same msi on a 800x480 resolution screen, the installer dialog appears really huge and you cannot see the whole dialog on the screen.However, the dialog now comes up with a vertical and horizontal scroll...
When creating MSI installations using WISE or any other installer authoring tool, it’s important to ensure that your dialogs are designed to be resolution-independent, allowing them to be displayed properly on various screen sizes and resolutions. To make your installer dialogs adaptable to different screen resolution...
30,449
[ { "from": "human", "value": "I am building an msi using WISE. The Dialogs appear fine when run on a 1280x800 resolution screen.\nBut when I run the same msi on a 800x480 resolution screen, the installer dialog appears really huge and you cannot see the whole dialog on the screen.However, the dialog now come...
I want to trim trailing whitespace at the end of all XHTML paragraphs. I am using Ruby with the REXML library. Say I have the following in a valid XHTML file: <p>hello <span>world</span> a </p> <p>Hi there </p> <p>The End </p> I want to end up with this: <p>hello <span>world</span> a</p> <p>Hi there</p> <p>The End</p>...
To achieve your goal of trimming trailing whitespace from the text nodes at the end of each paragraph in your XHTML using Ruby and the REXML library, you can utilize XPath combined with some Ruby code to process the text nodes. As you correctly identified, using XPath to get the last text node directly for each paragr...
29,383
[ { "from": "human", "value": "I want to trim trailing whitespace at the end of all XHTML paragraphs. I am using Ruby with the REXML library.\nSay I have the following in a valid XHTML file:\n<p>hello <span>world</span> a </p>\n<p>Hi there </p>\n<p>The End </p>\n\nI want to end up with this:\n<p>hello <span>w...
Can two domain objects show on the same page, when the list method is called, for example? http://APP_NAME/foo/list def list = { if(!params.max) params.max = 10 [ fooList: Foo.list( params ) ] [ barList: Bar.list( params ) ] // Only the last one is returned. } On the view page, both tables would be dis...
In the Groovy-based framework (such as Grails), the structure of the `list` method you've provided indeed shows an issue. The method returns only the last map defined in the controller method, which means only `barList` would be accessible in the view. To make both `fooList` and `barList` available to the view, you n...
31,422
[ { "from": "human", "value": "Can two domain objects show on the same page, when the list method is called, for example?\nhttp://APP_NAME/foo/list\n\ndef list = {\n if(!params.max) params.max = 10\n [ fooList: Foo.list( params ) ]\n [ barList: Bar.list( params ) ] // Only the last one is returned.\...
The AppKit release notes for Leopard say: In many applications it is not appropriate to present page setup panels to the user, or even include a Page Setup... item in the File menu, but there has been no other easy way to let the user specify page setup parameters to be used when printing. (New UI advice...
To handle printing in your application without a "Page Setup..." command while allowing for changes in paper size and orientation, you can adopt a more streamlined approach. Since you're dealing with an offscreen text view for printing, you can manage the necessary changes directly in your print operation without requi...
27,521
[ { "from": "human", "value": "The AppKit release notes for Leopard say:\n\nIn many applications it is not\n appropriate to present page setup\n panels to the user, or even include a\n Page Setup... item in the File menu,\n but there has been no other easy way\n to let the user specify page setup\n para...
I have databound a listbox to a simple custom object collection. Next, I added a button to remove the selected item from the object collection. The problem is that when certain items are removed and the listbox is showing the vertical scroll bar, the scrollbar appears to reset to a new position, although what I reall...
The issue you're experiencing with the ListBox's scroll position changing when you remove an item from a databound collection is a common one. This happens because the ListBox, when bound to a `BindingList`, can trigger a repaint and reset its scroll position when the items are modified. To maintain the scrollbar posi...
26,107
[ { "from": "human", "value": "I have databound a listbox to a simple custom object collection. Next, I added a button to remove the selected item from the object collection. The problem is that when certain items are removed and the listbox is showing the vertical scroll bar, the scrollbar appears to reset...
Is there a difference between the two examples below for beginning a Perl script? If so, when would I use one over the other? example 1: #!/usr/bin/perl use warnings; example 2: #!/usr/bin/perl -w
Yes, there is a difference between the two examples for beginning a Perl script, primarily in how they enable warnings. ### Example 1: ```perl #!/usr/bin/perl use warnings; ``` In this example, the script starts with the standard shebang (`#!/usr/bin/perl`) to indicate the Perl interpreter. The `use warnings;` pragma...
30,879
[ { "from": "human", "value": "Is there a difference between the two examples below for beginning a Perl script? If so, when would I use one over the other?\nexample 1:\n#!/usr/bin/perl\n\nuse warnings;\n\nexample 2:\n#!/usr/bin/perl -w\n\n" }, { "from": "gpt", "value": "Yes, there is a differenc...
For an enterprise type WCF service, where potentially 10K's of thousands of clients will be authenticating and sending data to central servers, what is 'best' practice when it comes to sessions or authentication? does WCF support a session, if yes, should I use it? or should I simply pass username/password on a per ca...
When designing a WCF (Windows Communication Foundation) service for an enterprise application with potentially thousands of clients, authentication and session management are critical considerations. Below are some best practices and recommendations for handling sessions and authentication in this scenario: ### 1. Aut...
27,686
[ { "from": "human", "value": "For an enterprise type WCF service, where potentially 10K's of thousands of clients will be authenticating and sending data to central servers, what is 'best' practice when it comes to sessions or authentication?\n\ndoes WCF support a session, if yes, should I use it?\nor should...
I am using Team Foundation Server (TFS) for Visual Studio 2005. Whenever i wish to compare two file's versions TFS displays a window with the differences. The problem is that it is always split vertically. In fact, almost every time, i would prefer to have it split horizontally. I've already looked at TFS options and g...
In Visual Studio 2005 using Team Foundation Server (TFS), there is no built-in option to change the default comparison view from vertical to horizontal in the diff tool. The comparison tool in TFS relies on a third-party diff viewer, and unfortunately, the configuration options for that tool are quite limited. However...
30,797
[ { "from": "human", "value": "I am using Team Foundation Server (TFS) for Visual Studio 2005.\nWhenever i wish to compare two file's versions TFS displays a window with the differences.\nThe problem is that it is always split vertically.\nIn fact, almost every time, i would prefer to have it split horizontal...
What is the best way to check if a given url points to a valid file (i.e. not return a 404/301/etc.)? I've got a script that will load certain .js files on a page, but I need a way to verify each URL it receives points to a valid file. I'm still poking around the PHP manual to see which file functions (if any) will act...
To check if a given URL points to a valid file and does not return a 404, 301, or other HTTP error codes, you can use PHP's `get_headers()` function. This function retrieves all the headers sent by the server in response to an HTTP request. Here’s how you can use it to check the status of a URL: ```php function isVal...
25,844
[ { "from": "human", "value": "What is the best way to check if a given url points to a valid file (i.e. not return a 404/301/etc.)? I've got a script that will load certain .js files on a page, but I need a way to verify each URL it receives points to a valid file.\nI'm still poking around the PHP manual to ...
I've programmed C and C++ for a long time and so far I've never used exceptions and try / catch. What are the benefits of using that instead of just having functions return error codes?
Using exceptions and `try/catch` mechanisms in C++ offers several advantages over traditional error handling with return codes. Here are some key benefits: ### 1. **Separation of Error Handling from Business Logic** - **Clarity**: By using exceptions, you can separate error handling code from the main logic of your...
25,883
[ { "from": "human", "value": "I've programmed C and C++ for a long time and so far I've never used exceptions and try / catch. What are the benefits of using that instead of just having functions return error codes? \n" }, { "from": "gpt", "value": "Using exceptions and `try/catch` mechanisms in ...
For a long time, I thought that to start a new project we only need 3 basic tools. 1) A Build System (e.g. Maven & CruiseControl) 2) A Version Control System (e.g. CVS & SVN & GIT) 3) A Bug Tracking System (e.g. Bugzilla) Yesterday, a senior guy told me that we need at least one thing more. That is KPI(Key Per...
You're right to recognize that while technical tools like build systems, version control systems, and bug tracking systems are critical for the successful execution of a project, there are indeed "soft tools" and processes that are equally essential. Here are some additional categories and tools you might consider for ...
26,893
[ { "from": "human", "value": "For a long time, I thought that to start a new project we only need 3 basic tools.\n 1) A Build System (e.g. Maven & CruiseControl)\n 2) A Version Control System (e.g. CVS & SVN & GIT)\n 3) A Bug Tracking System (e.g. Bugzilla)\nYesterday, a senior guy told me that we need...
I have a QDirModel whose current directory is set. Then I have a QListView which is supposed to show the files in that directory. This works fine. Now I want to limit the files shown, so it only shows png files (the filename ends with .png). The problem is that using a QSortFilterProxyModel and setting the filter regex...
To filter only the files in a directory with a `QSortFilterProxyModel` without affecting the parent directories, you can subclass `QSortFilterProxyModel` and override the `filterAcceptsRow` method. This allows you to customize the filtering logic and specifically limit it to files with a `.png` extension, while still s...
29,079
[ { "from": "human", "value": "I have a QDirModel whose current directory is set. Then I have a QListView which is supposed to show the files in that directory. This works fine.\nNow I want to limit the files shown, so it only shows png files (the filename ends with .png). The problem is that using a QSortFil...
in C# .net 2.0, is there a quick and easy way to retrieve a message (including its possible attachments) from exchange 2003 and save it to disk in .MSG (outlook) format. Thanks,
Retrieving an email message from Exchange 2003 and saving it in .MSG format can be a bit involved, especially in .NET 2.0, as there isn't a direct library provided by Microsoft specifically for this purpose. However, you can achieve this using a combination of the Exchange Web Services (EWS) or using Outlook Interop. ...
23,887
[ { "from": "human", "value": "in C# .net 2.0, is there a quick and easy way to retrieve a message (including its possible attachments) from exchange 2003 and save it to disk in .MSG (outlook) format.\nThanks,\n" }, { "from": "gpt", "value": "Retrieving an email message from Exchange 2003 and savi...
I'm currently optimizing the performance on my company's site; when it was taking 6-10 seconds to download 2MB+ of our homepage and assets (the site is mostly Flash with a lot of media, so it's not 2MB of HTML and viewstate). There are a lot of things that will need to be done to get this download size down; but one th...
In IIS 6, enabling compression for an individual site typically requires editing the Metabase directly, which, as you've noted, can necessitate restarting the entire IIS service—this would indeed affect all sites hosted on that server. Unfortunately, IIS 6 does not offer built-in functionality to apply compression sett...
29,812
[ { "from": "human", "value": "I'm currently optimizing the performance on my company's site; when it was taking 6-10 seconds to download 2MB+ of our homepage and assets (the site is mostly Flash with a lot of media, so it's not 2MB of HTML and viewstate). There are a lot of things that will need to be done t...
We're a distributed team of 5 developers working on rather large integrations project. We currently use SourceSafe (yes I know it sucks but it has just worked until recently and we've used it forever). Our biggest problem has recently become performance. Checking in and out project just takes forever and we're finding ...
Migrating from SourceSafe to Subversion (SVN) is a solid choice, especially given your performance concerns with SourceSafe. Subversion offers better performance over the web, and its architecture is more efficient for handling large projects and distributed teams. ### Performance Comparison 1. **Speed**: SVN typicall...
26,153
[ { "from": "human", "value": "We're a distributed team of 5 developers working on rather large integrations project. We currently use SourceSafe (yes I know it sucks but it has just worked until recently and we've used it forever). Our biggest problem has recently become performance. Checking in and out proj...
I understand that inline by itself is a suggestion to the compiler, and at its discretion it may or may not inline the function, and it will also produce linkable object code. I think that static inline does the same (may or may not inline) but will not produce linkable object code when inlined (since no other module c...
Understanding the nuances of `inline`, `static inline`, and `extern inline` in C and C++ can be quite important for performance and linkage concerns. Let’s clarify these concepts and their behavior in different contexts. ### `inline` When you declare a function as `inline`, you are suggesting to the compiler that it ...
21,624
[ { "from": "human", "value": "I understand that inline by itself is a suggestion to the compiler, and at its discretion it may or may not inline the function, and it will also produce linkable object code.\nI think that static inline does the same (may or may not inline) but will not produce linkable object ...
Does anyone know of a script to colorize C++ code the same as the default MSVC IDE does?
If you're looking to colorize C++ code in a way that resembles the default Microsoft Visual Studio (MSVC) IDE, you might want to consider using a few different approaches depending on your needs. Here are some options to help you achieve that: ### 1. **Using Syntax Highlighting Libraries** There are several syntax hig...
27,981
[ { "from": "human", "value": "Does anyone know of a script to colorize C++ code the same as the default MSVC IDE does?\n" }, { "from": "gpt", "value": "If you're looking to colorize C++ code in a way that resembles the default Microsoft Visual Studio (MSVC) IDE, you might want to consider using a...
I came across an interesting article which shows how we can transparently encrypt jdbc connections using java thin client. http://javasight.wordpress.com/2008/08/29/network-data-encryption-and-integrity-for-thin-jdbc-clients/ However I want to know how this can be achieved for application servers (like oc4j) datasourc...
To transparently encrypt JDBC connections in application servers, such as Oracle OC4J, you can follow similar principles as described for the Java Thin client in the article you referenced. However, the configuration process can be different based on how datasource connections are defined in OC4J. Here’s a general guid...
28,709
[ { "from": "human", "value": "I came across an interesting article which shows how we can transparently encrypt jdbc connections using java thin client. \nhttp://javasight.wordpress.com/2008/08/29/network-data-encryption-and-integrity-for-thin-jdbc-clients/\nHowever I want to know how this can be achieved fo...
Is there any libraries that would allow me to use the same known notation as we use in BeanUtils for extracting POJO parameters, but for easily replacing placeholders in a string? I know it would be possible to roll my own, using BeanUtils itself or other libraries with similar features, but I didn't want to reinvent t...
There are several libraries that can help you achieve the functionality you're looking for. Here are a few options that can replace placeholders in a string with values from a POJO (Plain Old Java Object) in a style similar to what you've described with `BeanUtils`: ### 1. **Apache Commons Text - StringSubstitutor** A...
22,222
[ { "from": "human", "value": "Is there any libraries that would allow me to use the same known notation as we use in BeanUtils for extracting POJO parameters, but for easily replacing placeholders in a string?\nI know it would be possible to roll my own, using BeanUtils itself or other libraries with similar...
How do you create a simple, custom rule using the jQuery Validate plugin (using addMethod) that doesn't use a regex? For example, what function would create a rule that validates only if at least one of a group of checkboxes is checked?
To create a custom validation rule using the jQuery Validate plugin that checks if at least one checkbox from a group is checked, you can use the `$.validator.addMethod` function. This function allows you to define your custom validation logic. Here’s an example of how to implement this: ### Step 1: Include jQuery an...
27,540
[ { "from": "human", "value": "How do you create a simple, custom rule using the jQuery Validate plugin (using addMethod) that doesn't use a regex?\nFor example, what function would create a rule that validates only if at least one of a group of checkboxes is checked?\n" }, { "from": "gpt", "value...
On Linux, feenableexcept and fedisableexcept can be used to control the generation of SIGFPE interrupts on floating point exceptions. How can I do this on Mac OS X Intel? Inline assembly for enabling floating point interrupts is provided in http://developer.apple.com/documentation/Performance/Conceptual/Mac_OSX_Numeri...
On macOS (including macOS on Intel architecture), you can control floating point exceptions using the `fenv.h` library, which provides a way to manage floating-point environment and exceptions in a portable manner. Here's a basic example demonstrating how to enable and disable specific floating-point exceptions using ...
28,955
[ { "from": "human", "value": "On Linux, feenableexcept and fedisableexcept can be used to control the generation of SIGFPE interrupts on floating point exceptions. How can I do this on Mac OS X Intel?\nInline assembly for enabling floating point interrupts is provided in http://developer.apple.com/documenta...
Is there an easy way to convert between color models in Java (RGB, HSV and Lab). Assuming RGB color model: How do I calculate black body spectrum color palette? I want to use it for a heatmap chart. How about single-wavelength spectrum? Edit: I found that the ColorSpace class can be used for conversions between RGB/...
In Java, you can indeed use the `ColorSpace` class for converting between different color models like RGB, HSV, and Lab. Below are some details on how to perform these conversions and how to generate colors for a black body spectrum and a single-wavelength spectrum. ### Color Model Conversions #### Using `ColorSpace`...
24,518
[ { "from": "human", "value": "Is there an easy way to convert between color models in Java (RGB, HSV and Lab). \nAssuming RGB color model:\n\nHow do I calculate black body spectrum color palette? I want to use it for a heatmap chart.\nHow about single-wavelength spectrum?\n\nEdit: I found that the ColorSpace...
How can we make a web-src for Access Manager customizations and a par-src for portal server customizations?Are there concrete steps to do this? Thanks & Regards, Vivek
Creating a web-src for Access Manager customizations and a par-src for Portal Server customizations involves a series of steps that include setting up your development environment, creating the necessary files, and properly packaging them. Here's a structured approach to achieve this: ### Web-src for Access Manager Cu...
24,809
[ { "from": "human", "value": "How can we make a web-src for Access Manager customizations and a par-src for portal server customizations?Are there concrete steps to do this?\nThanks & Regards,\nVivek\n" }, { "from": "gpt", "value": "Creating a web-src for Access Manager customizations and a par-s...
I have a database with account numbers and card numbers. I match these to a file to update any card numbers to the account number so that I am only working with account numbers. I created a view linking the table to the account/card database to return the Table ID and the related account number, and now I need to updat...
The issue you are facing with your SQL update query is likely due to the way the subquery in your `SET` clause is structured. Specifically, when there is no matching record in the `RetrieveAccountNumber` table for a `LeadID`, the subquery returns NULL, which leads to your `AccountNumber` being set to NULL. To fix this...
32,202
[ { "from": "human", "value": "I have a database with account numbers and card numbers. I match these to a file to update any card numbers to the account number so that I am only working with account numbers.\nI created a view linking the table to the account/card database to return the Table ID and the relat...
Navigation systems like the Garmin and TomTom have always fascinated me. I've wanted to implement small map/navigation applications to try out various pathing algorithms and expand on my knowledge of them. This is a two part question: 1.) How is Map data stored? - When you have a network of roads, how is this data ge...
Great questions! Let's dive into each part of your inquiry regarding how map data is stored and how navigation/pathing can be implemented on that data. ### 1. Map Data Storage Map data is typically stored using a combination of geographic information system (GIS) formats and vector data representations. The data stru...
25,414
[ { "from": "human", "value": "Navigation systems like the Garmin and TomTom have always fascinated me. I've wanted to implement small map/navigation applications to try out various pathing algorithms and expand on my knowledge of them.\nThis is a two part question:\n1.) How is Map data stored? - When you h...
Anyone familiar with error below? When I run my webapp to generate a dynamic excel doc from my local machine it works fine but when the same piece of code is invoked on the server I get the below error. It seems like it's a permissions issues since it works on my machine but not the server but I don't know where to sta...
The error you are encountering, "This command is unavailable because the license to use this application has expired," is indeed related to the licensing of Microsoft Office on your server environment. Here are some steps and considerations you can use to troubleshoot and potentially resolve the issue: ### 1. **Check ...
29,604
[ { "from": "human", "value": "Anyone familiar with error below? When I run my webapp to generate a dynamic excel doc from my local machine it works fine but when the same piece of code is invoked on the server I get the below error. It seems like it's a permissions issues since it works on my machine but not...
What's the simplest way to convert a Unicode codepoint into a UTF-8 byte sequence in C? The only way that springs to mind is using iconv to map from the UTF-32LE codepage to UTF-8, but that seems like overkill.
Converting a Unicode code point to a UTF-8 byte sequence in C can indeed be done without relying on libraries like `iconv`, which might be seen as overkill for this purpose. You can do it manually by following the UTF-8 encoding rules. Here’s a simple function that converts a Unicode code point to a UTF-8 byte sequenc...
27,541
[ { "from": "human", "value": "What's the simplest way to convert a Unicode codepoint into a UTF-8 byte sequence in C? The only way that springs to mind is using iconv to map from the UTF-32LE codepage to UTF-8, but that seems like overkill.\n" }, { "from": "gpt", "value": "Converting a Unicode co...
What's the deal with Visual Studio? I tried importing the Caching App Block and got this message: The assembly or one of its dependencies you're are trying to import requires a later version of .NET Framework. I went to the properties of my application in Visual Studio, but I can't find the dropdown to switch....what...
It sounds like you're trying to use a library that requires a newer version of the .NET Framework than the one your application is currently targeting. Here’s how you can change the target framework in Visual Studio: ### Steps to Change the Target Framework in Visual Studio: 1. **Open Your Project:** Make sure you...
30,343
[ { "from": "human", "value": "What's the deal with Visual Studio?\nI tried importing the Caching App Block and got this message:\n\nThe assembly or one of its dependencies you're are trying to import requires a later version of .NET Framework.\n\nI went to the properties of my application in Visual Studio, b...
I continually get these errors when I try to update tables based on another table. I end up rewriting the query, change the order of joins, change some groupings and then it eventually works, but I just don't quite get it. What is a 'multi-part identifier'? When is a 'multi-part identifier' not able to be bound? What i...
The error you're encountering, "The multi-part identifier ... could not be bound," occurs in SQL when the database engine is unable to resolve a reference to a specific column or object in your query. This often indicates that SQL Server cannot find a matching table or column based on how you are referencing it. ### U...
26,765
[ { "from": "human", "value": "I continually get these errors when I try to update tables based on another table. I end up rewriting the query, change the order of joins, change some groupings and then it eventually works, but I just don't quite get it.\nWhat is a 'multi-part identifier'?\nWhen is a 'multi-pa...
I am working on creating a daemon in Ruby using the daemons gem. I want to add output from the daemon into a log file. I am wondering what is the easiest way to redirect puts from the console to a log file.
To redirect the output from the console to a log file in a Ruby daemon using the `daemons` gem, you can use Ruby's built-in redirection features. Specifically, you can redirect standard output and standard error to a file. Below are the steps you can follow: 1. **Create a Log File**: Ensure you have a designated log f...
30,199
[ { "from": "human", "value": "I am working on creating a daemon in Ruby using the daemons gem. I want to add output from the daemon into a log file. I am wondering what is the easiest way to redirect puts from the console to a log file.\n" }, { "from": "gpt", "value": "To redirect the output from...
I have an Office 2007 (specifically Outlook 2007) add in created in Visual Studio 2008. When I uncheck the "Sign the ClickOnce manifests" option, and then publish, it rechecks that option automatically. I have a regular Windows Forms project in the same solution that allows me to publish with this unchecked. Why isn't ...
The behavior you're experiencing with the ClickOnce deployment for your Outlook 2007 add-in could be related to how the project type is set up, particularly because it is an Office add-in. Here are a few potential reasons and solutions to your problem: ### Reasons for Automatic Rechecking 1. **Office Add-In Project T...
23,085
[ { "from": "human", "value": "I have an Office 2007 (specifically Outlook 2007) add in created in Visual Studio 2008.\nWhen I uncheck the \"Sign the ClickOnce manifests\" option, and then publish, it rechecks that option automatically.\nI have a regular Windows Forms project in the same solution that allows ...
I am rather new to complex CSS, and have a question- I have a page which positions a floating element along the bottom of the page. It does so by setting the Bottom: 0, and Position: Absolute. When the user resizes their browser to a very-small size, this element covers up other content on the page. Ideally, The eleme...
To achieve the effect you want, you can utilize a combination of CSS for styling the floating element and JavaScript (if necessary) to ensure the minimum dimensions of the browser viewport. Here’s how to do this: ### CSS Only Approach 1. **Set the Minimum Width and Height**: You can use the `min-width` and `min-he...
29,356
[ { "from": "human", "value": "I am rather new to complex CSS, and have a question- I have a page which positions a floating element along the bottom of the page. It does so by setting the Bottom: 0, and Position: Absolute. \nWhen the user resizes their browser to a very-small size, this element covers up oth...
I have created a .NET DLL which makes some methods COM visible. One method is problematic. It looks like this: bool Foo(byte[] a, ref byte[] b, string c, ref string d) VB6 gives a compile error when I attempt to call the method: Function or interface marked as restricted, or the function uses an Automation type n...
In order to make your .NET DLL method compatible with VB6, you need to pay attention to how data types and arrays are marshaled between .NET and COM (which VB6 uses). Here are the steps to adjust the method signature: 1. **Use a Compatible Array Type**: VB6 does not directly support .NET arrays. Instead, you can use...
29,637
[ { "from": "human", "value": "I have created a .NET DLL which makes some methods COM visible.\nOne method is problematic. It looks like this:\nbool Foo(byte[] a, ref byte[] b, string c, ref string d)\n\nVB6 gives a compile error when I attempt to call the method:\n\nFunction or interface marked as\n restric...