instruction
stringlengths
14
27.6k
completion
stringlengths
3
38.3k
__original_row_idx
int64
0
50k
conversations
listlengths
2
2
I am writing PHP code where I want to pass the session id myself using POST. I don't want a cookie to store the session, as it should get lost when the user gets out of the POST cycle. PHP automatically sets the cookie where available. I learned it is possible to change this behaviour by setting session.use_cookies to ...
Yes, you can control session behavior in your PHP script without modifying the `php.ini` configuration file. Specifically, you can disable session cookies for the duration of your script by using the `session_set_cookie_params()` function before you start the session with `session_start()`. Here’s how to do it: 1. Se...
30,731
[ { "from": "human", "value": "I am writing PHP code where I want to pass the session id myself using POST. I don't want a cookie to store the session, as it should get lost when the user gets out of the POST cycle.\nPHP automatically sets the cookie where available. I learned it is possible to change this be...
I am looking get to grips with functional programming concepts. I've used Javascript for many years for client side scripting in web applications and apart from using prototypes it was all simple DOM manipulation, input validation etc. Of late, I have often read that Javascript is one of the languages that supports f...
Yes, JavaScript is indeed a good choice for learning functional programming concepts, and your existing familiarity with the language will serve you well. JavaScript is a multi-paradigm language that supports various programming styles, including procedural, object-oriented, and functional programming. Here are some k...
22,223
[ { "from": "human", "value": "I am looking get to grips with functional programming concepts.\nI've used Javascript for many years for client side scripting in web applications and apart from using prototypes it was all simple DOM manipulation, input validation etc. \nOf late, I have often read that Javascr...
I'd like to have a blank line after my bash prompt and before the output on my Mac. It should look like this would: echo; ls Can I add a newline to my bash prompt and then go back up one line to wait for user input? Is there something obvious I'm missing?
To achieve the effect of having a blank line after your Bash prompt on macOS, you can modify your `PS1` (the primary prompt string) to include a newline character. However, you can't have a newline in the middle of the prompt itself since it will affect the command input experience. Instead, a practical way to add a ...
30,432
[ { "from": "human", "value": "I'd like to have a blank line after my bash prompt and before the output on my Mac. It should look like this would:\necho; ls\n\nCan I add a newline to my bash prompt and then go back up one line to wait for user input? Is there something obvious I'm missing?\n" }, { "fr...
I have a few links that should all open in the same window or tab. To accomplish this I've given the window a name like in this example code: <a href="#" onClick='window.open("http://somesite.com", "mywindow", "");'>link 1</a> <a href="#" onClick='window.open("http://someothersite.com", "mywindow", "");'>link 2</a> Th...
The behavior you're experiencing is due to how different browsers handle window names and tab opening. In modern browsers, including Firefox, if the browser is set to open links in a new tab by default, it will often ignore the window name and open a new tab even if you've specified a named window. ### Solutions 1. *...
28,552
[ { "from": "human", "value": "I have a few links that should all open in the same window or tab.\nTo accomplish this I've given the window a name like in this example code:\n<a href=\"#\" onClick='window.open(\"http://somesite.com\", \"mywindow\", \"\");'>link 1</a>\n<a href=\"#\" onClick='window.open(\"http...
What is the difference between using a new thread and using a thread from the thread pool? What performance benefits are there and why should I consider using a thread from the pool rather than one I've explicitly created? I'm thinking specifically of .NET here, but general examples are fine.
Using a new thread versus using a thread from a thread pool involves considerations around performance, resource management, and the overall design of concurrent applications. Here’s a breakdown of the differences and the reasons you might prefer thread pool usage: ### Creating a New Thread 1. **Overhead**: When you ...
23,823
[ { "from": "human", "value": "What is the difference between using a new thread and using a thread from the thread pool? What performance benefits are there and why should I consider using a thread from the pool rather than one I've explicitly created? I'm thinking specifically of .NET here, but general exam...
I have a c# site which makes use of a lot of images with embedded english text. How can I use a standard resource file to swap out images depending on the language? I have a resx file in my App_GlobalResources directory, but I can't seem to get it plugged into an asp:image control for the imageurl correctly. Ideas? U...
It looks like you're trying to use a resource file to set the image URL for an `<asp:Image>` control in your ASP.NET Web Forms application. The issue you're encountering with the `ImageUrl` property is due to the way resource files work with image data. Resource files that contain images store the images in binary form...
25,592
[ { "from": "human", "value": "I have a c# site which makes use of a lot of images with embedded english text. \nHow can I use a standard resource file to swap out images depending on the language?\nI have a resx file in my App_GlobalResources directory, but I can't seem to get it plugged into an asp:image c...
On a .Net production server, I am unable to look at the Application trace. The web server returns a 404 error. When copying the files on my local computer, the trace works, making further testing impractical. The trace seems to be correctly set: <trace enabled="true" requestLimit="20" pageOutput="true" traceMode="Sort...
It sounds like you're facing an issue with accessing the trace logs on a .NET production server, specifically receiving a 404 error when attempting to view the trace output. Here are some steps you can take to troubleshoot and potentially resolve the issue: 1. **Check Trace Viewer URL**: Ensure that you are accessing ...
28,907
[ { "from": "human", "value": "On a .Net production server, I am unable to look at the Application trace. The web server returns a 404 error. When copying the files on my local computer, the trace works, making further testing impractical.\nThe trace seems to be correctly set:\n<trace enabled=\"true\" request...
I have an if condition which checks for value and the it throws new NumberFormatException Is there any other way to code this if (foo) { throw new NumberFormatException } // .. catch (NumberFormatException exc) { // some msg... }
If you're throwing a `NumberFormatException` in your code based on a certain condition, and you'd like to refactor this to improve clarity or maintainability, you can consider a few different approaches. Here are some alternatives: ### Option 1: Use a Custom Exception Instead of using `NumberFormatException`, you coul...
23,718
[ { "from": "human", "value": "I have an if condition which checks for value and the it throws new NumberFormatException\nIs there any other way to code this\nif (foo)\n{\n throw new NumberFormatException\n}\n\n// ..\n\ncatch (NumberFormatException exc)\n{\n // some msg...\n}\n\n" }, { "from": "...
Is there a way to control the addins Visual Studio 2008 loads via the command line? I am looking for a way to load my DevExpress plug in when I am working with VB or C# and alternatively load Visual Assist X when I am working on a c++ project.
Yes, you can control which Visual Studio add-ins are loaded using the command line. Visual Studio 2008 allows you to specify certain options when launching the IDE, including the ability to use different registry keys to manage add-in configurations. Here's how you can achieve what you're looking for: ### Using Comman...
28,119
[ { "from": "human", "value": "Is there a way to control the addins Visual Studio 2008 loads via the command line?\nI am looking for a way to load my DevExpress plug in when I am working with VB or C# and alternatively load Visual Assist X when I am working on a c++ project.\n" }, { "from": "gpt", ...
I get this error:- You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' at line 1 whenever I tried something like this:- mysql> source /home/user1/sql/ddl.sql mysql> source /home/user1/sql/insert.sql mysql> source /home/user1/sql/clea...
The error you’re encountering suggests that there may be a problem with the encoding of your SQL scripts. The characters `` that appear in the error message are indicative of the presence of a Byte Order Mark (BOM), which is sometimes added by text editors when saving files in UTF-8 format. Here are some steps you ...
28,789
[ { "from": "human", "value": "I get this error:-\nYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' at line 1\nwhenever I tried something like this:-\nmysql> source /home/user1/sql/ddl.sql\nmysql> source /home/user1/sql/...
I just watched the Windows Azure intro video and it left me feeling like it was a front end shell for hosted IIS instances. Can anyone who know more (possibily that was part of the beta) shed on why you would use this vs. EC2. it seemed easy enough but really didnt give specifics on how it works, why it works or why yo...
Windows Azure (now known as Microsoft Azure) and Amazon EC2 are both cloud computing platforms that provide Infrastructure as a Service (IaaS) and Platform as a Service (PaaS) offerings. While at first glance Azure might appear similar to EC2, there are some key differences and advantages that Azure offers: ### Key Di...
28,168
[ { "from": "human", "value": "I just watched the Windows Azure intro video and it left me feeling like it was a front end shell for hosted IIS instances. Can anyone who know more (possibily that was part of the beta) shed on why you would use this vs. EC2.\nit seemed easy enough but really didnt give specifi...
Greetings, The VBA code below will create an Excel QueryTable object and display it starting on Range("D2"). The specific address of this target range is immaterial. My question is -- is it possible to manually feed in values to an in-memory Recordset, and then have the table read from it? In other words, I want to s...
In VBA, `QueryTable` is primarily used to pull data from external data sources, such as databases and files. Unfortunately, you cannot directly feed in values to an in-memory `Recordset` or have a `QueryTable` read from it. However, you can create a `ListObject` (table) or directly write data to a range in Excel, which...
23,275
[ { "from": "human", "value": "Greetings,\nThe VBA code below will create an Excel QueryTable object and display it starting on Range(\"D2\"). The specific address of this target range is immaterial.\nMy question is -- is it possible to manually feed in values to an in-memory Recordset, and then have the tab...
Not a competition, it is instead me trying to find why a certain regex works in one but not the other. (25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?) That's my Regex and I'm trying to run it on 127.255.0.0 ...
It seems that you've already identified the main issue as related to how results are handled in Python versus PHP, specifically with the grouping of matches. However, let me elaborate a bit further on regex behavior in Python and PHP to provide more context. ### Regex Overview Your regex pattern: ``` (25[0-5]|2[0-4][...
24,305
[ { "from": "human", "value": "Not a competition, it is instead me trying to find why a certain regex works in one but not the other.\n(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\n\nThat's my ...
Why did Windows 64 choose to require xmm6 and xmm7 to be saved/restored? In Windows 32, you could write assembly routines which clobbered xmm0...xmm7. But if you take that same assembly code and run it in Windows 64, it will usually cause an application fault because VS2007 stores double-precision values in xmm6 and xm...
In the Windows x64 calling convention, the requirement to save and restore the XMM6 and XMM7 registers stems from a design choice made by Microsoft to optimize the usage of registers in function calls, particularly for the needs of high-level languages like C and C++. Here are the main reasons for this decision: 1. **...
29,483
[ { "from": "human", "value": "Why did Windows 64 choose to require xmm6 and xmm7 to be saved/restored?\nIn Windows 32, you could write assembly routines which clobbered xmm0...xmm7. But if you take that same assembly code and run it in Windows 64, it will usually cause an application fault because VS2007 sto...
I'd like to bold the text for a tab page under certain conditions (not, necessarily, GotFocus). Is it true the only 'er easiest way to do this is by overriding the DrawItem event for the tab control? http://www.vbforums.com/showthread.php?t=355093 It seems like there should be an easier way. Like ... tabControl.Tab...
To achieve bold text for a tab page in a `TabControl`, you are correct that simply setting the font of the `TabPage` does not work as intended. The `TabControl` does not automatically redraw the tab pages when their font properties are changed. The usual way to customize the drawing of tab items, including bold text, i...
28,000
[ { "from": "human", "value": "I'd like to bold the text for a tab page under certain conditions (not, necessarily, GotFocus). Is it true the only 'er easiest way to do this is by overriding the DrawItem event for the tab control?\nhttp://www.vbforums.com/showthread.php?t=355093\nIt seems like there should b...
I'm trying to populate a DataTable, to build a LocalReport, using the following: MySqlCommand cmd = new MySqlCommand(); cmd.Connection = new MySqlConnection(Properties.Settings.Default.dbConnectionString); cmd.CommandType = CommandType.Text; cmd.CommandText = "SELECT ... LEFT JOIN ... WHERE ..."; /* query snipped */ /...
It sounds like you're encountering an issue with how the data is being loaded into your `DataTable` from the `DataReader`. The behavior you're observing—where only the last row is being loaded into the `DataTable` unless an `ORDER BY` clause is present—suggests that there may be a problem with the data itself or how it...
23,115
[ { "from": "human", "value": "I'm trying to populate a DataTable, to build a LocalReport, using the following:\nMySqlCommand cmd = new MySqlCommand();\ncmd.Connection = new MySqlConnection(Properties.Settings.Default.dbConnectionString);\ncmd.CommandType = CommandType.Text;\ncmd.CommandText = \"SELECT ... LE...
I have a .NET class library containing a class with a method that performs some lengthy operation. When a client calls this method it should perform the lengthy operation on a new thread in order to avoid blocking the caller. But once the method finishes it should execute some code on the main thread. In a WinForms app...
In a non-WinForms application, you can achieve similar functionality by using the `SynchronizationContext` class, which provides a way to manage thread synchronization for UI applications or other contexts. The `SynchronizationContext` allows you to post work back to the original context (such as the main thread of a U...
29,288
[ { "from": "human", "value": "I have a .NET class library containing a class with a method that performs some lengthy operation. When a client calls this method it should perform the lengthy operation on a new thread in order to avoid blocking the caller. But once the method finishes it should execute some c...
I once wrote a Crawler in .NET. In order to improve its scalability, I tried to take advantage of asynchronous API of .NET. The System.Net.HttpWebRequest has asynchronous API BeginGetResponse/EndGetResponse. However, this pair of API is just to get a HTTP response headers and a Stream instance from which we can extract...
Asynchronous I/O operations using sockets and network streams in .NET can offer significant advantages in terms of scalability and responsiveness, especially for applications like web crawlers that often need to handle many concurrent connections. However, there are important considerations to ensure that your implemen...
27,417
[ { "from": "human", "value": "I once wrote a Crawler in .NET. In order to improve its scalability, I tried to take advantage of asynchronous API of .NET.\nThe System.Net.HttpWebRequest has asynchronous API BeginGetResponse/EndGetResponse. However, this pair of API is just to get a HTTP response headers and a...
When using Aspect Oriented Programming with Policy injection, how do you deal with policy errors gracefully in your design? In Aspect Oriented Programming the objects should be unconcerned with how a particular policy is configured, but a particular policy may throw particular errors. What's the most graceful design t...
In Aspect Oriented Programming (AOP) with policy injection, handling policy errors gracefully while keeping business logic decoupled from the underlying policy implementation is essential. Here are several strategies to consider: ### 1. **Exception Handling Strategy** - **Centralized Exception Handling**: Implement...
26,910
[ { "from": "human", "value": "When using Aspect Oriented Programming with Policy injection, how do you deal with policy errors gracefully in your design?\nIn Aspect Oriented Programming the objects should be unconcerned with how a particular policy is configured, but a particular policy may throw particular ...
FindBugs has found a potential bug in my code. But it is not a bug. Is it possible to mark this occurrence as 'not a bug' AND have it removed from the bug list? I have documented quite clearly why for each case it is not a bug. For example. A class implements the comparable interface. it has the compareTo method. I hav...
FindBugs, now known as SpotBugs, provides a way to suppress warnings for specific occurrences in your code. If you have determined that a particular warning is not applicable or is a false positive, you can use annotations to suppress that warning. To suppress a specific warning, you can use the `@SuppressFBWarnings` ...
29,805
[ { "from": "human", "value": "FindBugs has found a potential bug in my code. But it is not a bug.\nIs it possible to mark this occurrence as 'not a bug' AND have it removed from the bug list?\nI have documented quite clearly why for each case it is not a bug.\nFor example. A class implements the comparable i...
I need to execute a callback when an IFRAME has finished loading. I have no control over the content in the IFRAME, so I can't fire the callback from there. This IFRAME is programmaticly created, and I need to pass its data as a variable in the callback, as well as destroy the iframe. Any ideas? EDIT: Here is what I ha...
When working with an `iframe` that loads content from a different origin (cross-origin), you will not be able to directly access its content due to the Same-Origin Policy. However, you can still detect when the `iframe` has finished loading by using the `load` event, but there are a couple of adjustments you need to ma...
27,651
[ { "from": "human", "value": "I need to execute a callback when an IFRAME has finished loading. I have no control over the content in the IFRAME, so I can't fire the callback from there.\nThis IFRAME is programmaticly created, and I need to pass its data as a variable in the callback, as well as destroy the ...
What is the best way to copy a list? I know the following ways, which one is better? Or is there another way? lst = ['one', 2, 3] lst1 = list(lst) lst2 = lst[:] import copy lst3 = copy.copy(lst)
The methods you've mentioned for copying a list in Python are all valid and will create a shallow copy of the list. Here's a brief overview of each method: 1. **Using the `list()` constructor**: ```python lst1 = list(lst) ``` This method creates a new list by passing the original list to the `list()` const...
25,911
[ { "from": "human", "value": "What is the best way to copy a list? I know the following ways, which one is better? Or is there another way?\nlst = ['one', 2, 3]\n\nlst1 = list(lst)\n\nlst2 = lst[:]\n\nimport copy\nlst3 = copy.copy(lst)\n\n" }, { "from": "gpt", "value": "The methods you've mention...
I'm rebuilding a site with a lot of incoming links, and the URL structure is completely changing. I'm using the stock mod_rewrite solution to redirect all old links to new pages. However, as I'm sure a few links will slip through the net, I've built a small script that runs on my custom 404 page, to log the incoming vi...
Yes, you can definitely log the URL that the user attempted to access when they encounter a 404 error, alongside the referrer URL. In fact, when a user lands on your 404 page, the server provides the requested URL in the server variables, which can be accessed in your custom 404 error script. If you're using PHP, you...
26,754
[ { "from": "human", "value": "I'm rebuilding a site with a lot of incoming links, and the URL structure is completely changing. I'm using the stock mod_rewrite solution to redirect all old links to new pages.\nHowever, as I'm sure a few links will slip through the net, I've built a small script that runs on ...
How do you get Pro*c to work within MSVC 6? In otherwords compile a .pc file into a .cpp file.
To use Pro*C with Microsoft Visual C++ (MSVC) 6 to compile a `.pc` file into a `.cpp` file, you'll need to follow these general steps. Pro*C is a precompiler that allows you to embed SQL statements in your C/C++ code, and it typically converts Pro*C code (`.pc` files) into C/C++ code. Here's how you can get Pro*C to w...
24,346
[ { "from": "human", "value": "How do you get Pro*c to work within MSVC 6?\nIn otherwords compile a .pc file into a .cpp file.\n" }, { "from": "gpt", "value": "To use Pro*C with Microsoft Visual C++ (MSVC) 6 to compile a `.pc` file into a `.cpp` file, you'll need to follow these general steps. Pro...
I have a simple HTML. I am using the JQuery for AJAX purpose. Now, I want to put my javascript function in a separate javascript file. What is the syntax for this? For example, currently my script section in the HTML is something like this: <script> <script type="text/javascript" src="scripts/scripts.js"></script> <sc...
You're on the right track with organizing your JavaScript code into a separate file and using a named function for the click event. Let's go through the steps and troubleshoot your code to ensure everything works as expected. ### Step 1: Separate JavaScript File 1. **In your `scripts.js` file**, define the function t...
25,863
[ { "from": "human", "value": "I have a simple HTML. I am using the JQuery for AJAX purpose. Now, I want to put my javascript function in a separate javascript file. What is the syntax for this? For example, currently my script section in the HTML is something like this:\n<script>\n<script type=\"text/javasc...
I have this problem, I'm using Castle ActiveRecord and when I update I verify changes in the object in the OnFlushDirty event. However, when I access to the previouState["MyProperty"], it turns to be null and I can't get the old value. Do you know why? this is the code; protected override bool OnFlushDirty(object i...
In Castle ActiveRecord, when you are working with the `OnFlushDirty` method and notice that `previousState["MyProperty"]` is null, it's important to ensure that you are using the correct index or key to access the previous state. Here are some possible reasons why you're encountering this issue: 1. **Key Mismatch**:...
22,646
[ { "from": "human", "value": "I have this problem, I'm using Castle ActiveRecord and when I update I verify changes in the object in the OnFlushDirty event.\nHowever, when I access to the previouState[\"MyProperty\"], it turns to be null and I can't get the old value.\nDo you know why?\nthis is the code;\n ...
I'm trying to write a Selenium test for a web page that uses an onbeforeunload event to prompt the user before leaving. Selenium doesn't seem to recognize the confirmation dialog that comes up, or to provide a way to hit OK or Cancel. Is there any way to do this? I'm using the Java Selenium driver, if that's relevant.
When using Selenium to test web applications with an `onbeforeunload` event that prompts the user with a confirmation dialog, it can be challenging because traditional alert handling functions in Selenium (like `driver.switchTo().alert()`) do not work with `onbeforeunload` dialogs. However, there are a few workarounds...
27,850
[ { "from": "human", "value": "I'm trying to write a Selenium test for a web page that uses an onbeforeunload event to prompt the user before leaving. Selenium doesn't seem to recognize the confirmation dialog that comes up, or to provide a way to hit OK or Cancel. Is there any way to do this? I'm using the J...
I would like to create a report designer that has the same functionality and ease of use as the Visual Studio IDE. The ability to drag controls onto a form, select various subsets of those controls, align left, evenly space, etc. The only tools I have ever encountered are really bad. Crystal Reports, the MS Access r...
Creating a report designer that mimics the user-friendly drag-and-drop interface of Visual Studio IDE is indeed a challenging task, especially if you're looking for robust features and ease of use. Fortunately, there are several third-party tools that offer good report design capabilities. Here are some options to cons...
26,805
[ { "from": "human", "value": "I would like to create a report designer that has the same functionality and ease of use as the Visual Studio IDE. The ability to drag controls onto a form, select various subsets of those controls, align left, evenly space, etc. \nThe only tools I have ever encountered are rea...
What is their use if when you call the method, it might not exist? Does that mean that you would be able to dynamically create a method on a dynamic object? What are the practical use of this?
The concept you're referring to seems to relate to dynamic programming and languages that support dynamic typing or dynamic method invocation. In these languages, it's possible to call methods that may or may not exist on an object, often leading to dynamic behavior. Let's break down your questions: ### 1. **Dynamic M...
27,487
[ { "from": "human", "value": "What is their use if when you call the method, it might not exist?\nDoes that mean that you would be able to dynamically create a method on a dynamic object?\nWhat are the practical use of this?\n" }, { "from": "gpt", "value": "The concept you're referring to seems t...
I have been trying to make a case for using Python at my work. We use C# and ASP.NET for basically all of our development. 80% or more of our projects are web applications. It seems natural that we would look at some of the nice dynamic web languages (Ruby, Python, etc), and with things like IronRuby and IronPython, I ...
It's great to hear that you're enthusiastic about Python and are looking for ways to make a case for its adoption in your workplace. While C# and ASP.NET are robust and capable technologies, there are certain scenarios and advantages where Python, especially in the context of web applications, can shine. Here are some ...
26,248
[ { "from": "human", "value": "I have been trying to make a case for using Python at my work. We use C# and ASP.NET for basically all of our development. 80% or more of our projects are web applications. It seems natural that we would look at some of the nice dynamic web languages (Ruby, Python, etc), and wit...
This should be easy, but I'm having a hard time finding the easiest solution. I need an NSString that is equal to another string concatenated with itself a given number of times. For a better explanation, consider the following python example: >> original = "abc" "abc" >> times = 2 2 >> result = original * times "abcab...
In Objective-C, you can easily achieve the string concatenation that you're looking for using a simple loop or by utilizing `NSString`'s built-in methods. Below, I’ll provide a straightforward solution that creates an `NSString` by concatenating the original string a specified number of times. Here’s an example implem...
27,860
[ { "from": "human", "value": "This should be easy, but I'm having a hard time finding the easiest solution.\nI need an NSString that is equal to another string concatenated with itself a given number of times.\nFor a better explanation, consider the following python example:\n>> original = \"abc\"\n\"abc\"\n...
Our company has a point of sale system with many extras, such as ordering and receiving functionality, sales and order history etc. Our main issue is that the system was not designed properly from the ground up, so it takes too long to make fixes and handle requests from our customers. Also, the current technology we a...
It sounds like your company is at a critical juncture with the transition from an outdated point-of-sale system to a modern, scalable solution. Given your requirements and the updates you've provided, here are some considerations and recommendations to guide your technology and architecture decisions: ### Database Opt...
23,677
[ { "from": "human", "value": "Our company has a point of sale system with many extras, such as ordering and receiving functionality, sales and order history etc. Our main issue is that the system was not designed properly from the ground up, so it takes too long to make fixes and handle requests from our cus...
Has anyone researched how to access the gps chipset on a blackberry over usb so that it is unnecessary to transmit this data over the cell carrier's data network? Is it possible to access the GPS chipset, store information in a buffer, and open an interface connection (over the usb charging port), for access? Not sur...
Accessing the GPS chipset on a BlackBerry device over USB is a complex topic that involves understanding both the hardware interfaces available on the device and the software environment in which it operates. ### Research and Accessing GPS Data 1. **BlackBerry SDKs**: Historically, BlackBerry devices ran on a proprie...
28,490
[ { "from": "human", "value": "Has anyone researched how to access the gps chipset on a blackberry over usb so that it is unnecessary to transmit this data over the cell carrier's data network?\nIs it possible to access the GPS chipset, store information in a buffer, and open an interface connection (over th...
Possible Duplicate: History of changes to a particular line of code in Subversion? Using SVN and/or Tortoise SVN (or any other SVN tool, really), is it possible to view the history for a specific line of a file? Recently I've had several occurrences of coming across a line in a file and wanting to find the log entry...
To track the history of a specific line in a file using SVN, you can use the `svn blame` command. This command annotates each line of the file with the revision number and author of the last modification to that line. Here’s how you can do it: 1. **Open your terminal (command line)** and navigate to your working copy ...
30,592
[ { "from": "human", "value": "\nPossible Duplicate:\nHistory of changes to a particular line of code in Subversion? \n\nUsing SVN and/or Tortoise SVN (or any other SVN tool, really), is it possible to view the history for a specific line of a file?\nRecently I've had several occurrences of coming across a li...
I get errors when viewing forms and there are not any. I can close VS and reopen and it is fine. What cases this? Can it be fixed without closing?
Errors when viewing forms in Visual Studio can be caused by several factors. Here are some common causes and possible solutions that may help you resolve the issue without needing to close Visual Studio: 1. **Designer Cache Issues**: The Visual Studio designer sometimes gets into a bad state. You can try clearing the ...
24,908
[ { "from": "human", "value": "I get errors when viewing forms and there are not any. I can close VS and reopen and it is fine. What cases this? Can it be fixed without closing?\n" }, { "from": "gpt", "value": "Errors when viewing forms in Visual Studio can be caused by several factors. Here ar...
After two years of C#, I'm now back to VB.net because of my current job. In C#, I can do a short hand testing for null or false value on a string variable like this: if(!String.IsNullOrEmpty(blah)) { ...code goes here } however I'm a little confused about how to do this in VB.net. if Not String.IsNullOrEmpty(blah) ...
Yes, your understanding is correct! In VB.NET, the `Not` keyword indeed operates similarly to the `!` operator in C#. So, your VB.NET code: ```vb If Not String.IsNullOrEmpty(blah) Then ' ...code goes here End If ``` is correctly checking if the `blah` string is **not** null and **not** empty. Essentially, if `bl...
32,762
[ { "from": "human", "value": "After two years of C#, I'm now back to VB.net because of my current job. In C#, I can do a short hand testing for null or false value on a string variable like this:\nif(!String.IsNullOrEmpty(blah))\n{\n ...code goes here\n}\n\nhowever I'm a little confused about how to do thi...
How can I create the "Infinite" symbol in an excel sheet programmatically? Preferably from Java...but other tips are also welcome. Thx.
To create the "infinity" symbol (∞) programmatically in an Excel sheet using Java, you can use libraries such as Apache POI, which allows for reading and writing Microsoft Office files. Here’s how you can do it: ### Using Apache POI 1. **Add Apache POI Dependencies:** Ensure you have the Apache POI library added t...
28,027
[ { "from": "human", "value": "How can I create the \"Infinite\" symbol in an excel sheet programmatically?\nPreferably from Java...but other tips are also welcome.\nThx.\n" }, { "from": "gpt", "value": "To create the \"infinity\" symbol (∞) programmatically in an Excel sheet using Java, you can u...
I'm moving an old VBScript web site over to ASP.NET, so I'm starting to use master pages instead of #includeing lots of other files with server side VBScript in them. How can I stop the pages (as in the ones that are based on master pages) from being generated once and then stored? If I make a change to the master pag...
When you're working with ASP.NET and Master Pages, you may encounter issues with caching that result in changes not being immediately reflected in the browser. This can happen due to different levels of caching, including output caching, browser caching, and application-level caching. Here are a few ways to ensure tha...
17,884
[ { "from": "human", "value": "I'm moving an old VBScript web site over to ASP.NET, so I'm starting to use master pages instead of #includeing lots of other files with server side VBScript in them. \nHow can I stop the pages (as in the ones that are based on master pages) from being generated once and then st...
I have an asp.net page with a button. This button generates and inserts a user control into the page, so many controls could exist on one page. I need to validate that a certain dynamically generated control inside the generated control exists. So..Page has 0 to N Control1’s. Each Control 1 can have 0 to N Control2...
It sounds like you're dealing with a common scenario in ASP.NET where dynamically generated controls can complicate validation. Both options you've mentioned have their pros and cons, but there's indeed a more structured way to handle validation that can help you avoid some of the pitfalls associated with those approac...
26,724
[ { "from": "human", "value": "I have an asp.net page with a button. This button generates and inserts a user control into the page, so many controls could exist on one page. I need to validate that a certain dynamically generated control inside the generated control exists. \nSo..Page has 0 to N Control1’s...
I'm trying add a tab to my web page that looks like this: Using this example as a basis, I've gotten it partially working. My case differs because I want the text section to be a fixed with, but the tail section to dynamically resize to take up the rest of the tab's container. It looks good in IE 6, but doesn't reall...
To achieve the desired layout where the tab section takes up the full width of the container, you can use flexbox, which is supported in most modern browsers, including IE11 and Firefox. Since you mentioned that your main goal is to support IE6, it's important to note that flexbox is not supported in IE6. However, give...
25,095
[ { "from": "human", "value": "I'm trying add a tab to my web page that looks like this: \nUsing this example as a basis, I've gotten it partially working. My case differs because I want the text section to be a fixed with, but the tail section to dynamically resize to take up the rest of the tab's container...
How to include any assembly code lines into my C program ? In turbo c is there a possibility to add an assembly code file (.asm) to a project of few .c files?
Yes, you can include assembly code in your C program using Turbo C. Turbo C allows you to directly embed assembly code within your C source files using the `asm` keyword or link to an external assembly file. Here are the steps for both methods: ### Method 1: Inline Assembly Code You can use inline assembly directly w...
28,820
[ { "from": "human", "value": "How to include any assembly code lines into my C program ?\nIn turbo c is there a possibility to add an assembly code file (.asm) to a project of few .c files?\n" }, { "from": "gpt", "value": "Yes, you can include assembly code in your C program using Turbo C. Turbo ...
The problem: We use a program written by our biggest customer to receive orders, book tranports and do other order-related stuff. We have no other chance but to use the program and the customer is very unsupportive when it comes to problems with their program. We just have to live with the program. Now this program is ...
It sounds like you're dealing with a frustrating situation, especially considering the dependency on your customer's software and the performance issues you're experiencing. Here are some suggestions to help you diagnose and potentially address the performance problems with the VB6 application and the Access MDB databa...
27,238
[ { "from": "human", "value": "The problem:\nWe use a program written by our biggest customer to receive orders, book tranports and do other order-related stuff. We have no other chance but to use the program and the customer is very unsupportive when it comes to problems with their program. We just have to l...
I have a CSV data file with rows that may have lots of columns 500+ and some with a lot less. I need to transpose it so that each row becomes a column in the output file. The problem is that the rows in the original file may not all have the same number of columns so when I try the transpose method of array I get: `...
When transposing data in a CSV file where rows can have different numbers of columns, traditional methods may fail due to the mismatch in sizes. However, you can use a more flexible approach to handle this. ### Solution Using Python You can use the `pandas` library to read the CSV and perform the transposition while ...
27,848
[ { "from": "human", "value": "I have a CSV data file with rows that may have lots of columns 500+ and some with a lot less. I need to transpose it so that each row becomes a column in the output file. The problem is that the rows in the original file may not all have the same number of columns so when I tr...
We have a Java listener that reads text messages off of a queue in JBossMQ. If we have to reboot JBoss, the listener will not reconnect and start reading messages again. We just get messages in the listener's log file every 2 minutes saying it can't connect. Is there something we're not setting in our code or in JBossM...
It sounds like your JMS (Java Message Service) listener is having trouble reconnecting to the JBossMQ message broker after a restart. This is a common issue when dealing with message-driven beans or JMS listeners in general. Here are a few suggestions to help resolve this issue: ### 1. **Connection Management** Make s...
14,727
[ { "from": "human", "value": "We have a Java listener that reads text messages off of a queue in JBossMQ. If we have to reboot JBoss, the listener will not reconnect and start reading messages again. We just get messages in the listener's log file every 2 minutes saying it can't connect. Is there something w...
It's usual for objects which have some state related to a non-memory resource to provide a method for explicitly 'finishing' with that resource. Is there a preferred common practice for dealing with the case where an object deallocation is attempted while still in the "using my resource" state? I have seen a couple of ...
When it comes to resource management in programming, especially in languages that don't have automatic resource management (like garbage collection), it's crucial to adopt a clear strategy for managing the lifecycle of objects that hold onto non-memory resources (like file handles, network connections, or locks). Ther...
28,100
[ { "from": "human", "value": "It's usual for objects which have some state related to a non-memory resource to provide a method for explicitly 'finishing' with that resource. Is there a preferred common practice for dealing with the case where an object deallocation is attempted while still in the \"using my...
I have a collection of unmanaged dlls with a C# wrapper around them that I'm calling from a C# project. I've added a build event line that looks like: mkdir ..\Release mkdir ..\Debug copy ..\..\Includes\*.dll ..\Release\*.dll copy ..\..\Includes\*.dll ..\Debug\*.dll Problem is, when I go to publish the application, t...
To include unmanaged DLLs in your published C# application, you need to ensure they are copied to the output directory during the build process and included in your project configuration. Here’s how to properly configure your project to include unmanaged DLLs when you publish: ### 1. Add Unmanaged DLLs to Your Project...
28,901
[ { "from": "human", "value": "I have a collection of unmanaged dlls with a C# wrapper around them that I'm calling from a C# project. I've added a build event line that looks like:\nmkdir ..\\Release\nmkdir ..\\Debug\ncopy ..\\..\\Includes\\*.dll ..\\Release\\*.dll\ncopy ..\\..\\Includes\\*.dll ..\\Debug\\*...
In our product we have a big utilities file that we require (with do) at the beginning of a lot of our files. Is there a reason not to turn this into a module? For example, instead of doing this: do '../dbi_utilities.pl'; our ($db,$user,$pw,$attr); my $Data = DBI->connect($db,$user,$pw,$attr) or die "Could not connec...
Yes, turning your utilities file into a module can be a good idea for several reasons. Let's break down the advantages of doing this and also consider a few potential issues. ### Advantages of Creating a Module 1. **Encapsulation**: By creating a module (e.g., `AppUtil`), you encapsulate related functionality. This c...
26,163
[ { "from": "human", "value": "In our product we have a big utilities file that we require (with do) at the beginning of a lot of our files. Is there a reason not to turn this into a module? For example, instead of doing this:\ndo '../dbi_utilities.pl';\nour ($db,$user,$pw,$attr);\nmy $Data = DBI->connect($...
Using the PHP pack() function, I have converted a string into a binary hex representation: $string = md5(time); // 32 character length $packed = pack('H*', $string); The H* formatting means "Hex string, high nibble first". To unpack this in PHP, I would simply use the unpack() function with the H* format flag. How wou...
In Python, you can achieve the equivalent unpacking of a binary hex representation using the `bytes.fromhex()` method along with encoding and decoding. Here's how you can unpack the data that was packed using `pack('H*', $string)` in PHP: 1. First, you'll need to ensure that you have the hex string in the correct fo...
29,036
[ { "from": "human", "value": "Using the PHP pack() function, I have converted a string into a binary hex representation:\n$string = md5(time); // 32 character length\n$packed = pack('H*', $string);\n\nThe H* formatting means \"Hex string, high nibble first\".\nTo unpack this in PHP, I would simply use the un...
I'm using JQuery's jquery.corner.js to create rounded corners on some td tags, and they look fine in IE EXCEPT if you open a new tab and then come back to the page if you go to another tab, click a link, then come back to the page if you hover over a javascript-executing div / menu (I think). The rounded corners are...
The issue you're encountering with `jquery.corner.js` in Internet Explorer can be attributed to how the library manipulates the elements' rendering and certain quirks in how IE handles the rendering of elements, especially on tab switches and other events. ### Potential Fixes and Workarounds 1. **Reapply Corner Round...
29,704
[ { "from": "human", "value": "I'm using JQuery's jquery.corner.js to create rounded corners on some td tags, and they look fine in IE EXCEPT \n\nif you open a new tab and then come back to the page\nif you go to another tab, click a link, then come back to the page\nif you hover over a javascript-executing d...
How to get the values of the radiobuttonlist which will be selected in nested datalist to use it in multi insert later. I want to get all the values of the controls of the radiobuttonlist to use them in multi insert statement in my code.
To get the selected values of a RadioButtonList that is nested within a DataList (or similar control) for later use in a multi-insert statement, you need to loop through each item in the DataList, find the RadioButtonList, and then collect the selected values. Here's a step-by-step approach to achieve this in ASP.NET ...
27,413
[ { "from": "human", "value": "How to get the values of the radiobuttonlist which will be selected in nested datalist to use it in multi insert later.\nI want to get all the values of the controls of the radiobuttonlist to use them in multi insert statement in my code.\n" }, { "from": "gpt", "valu...
For reasons that we won't discuss, I have determined that MAMP is a pile of crap that haunts my system, and unless I remove it fully, I will live in shame. I've done the obvious thing and removed the MAMP directory from my Applications folder, however, I don't like wandering files, and I have an itching feeling that MA...
When you uninstall MAMP by simply removing the application directory, it may leave behind some configuration files and other resources that can reside in different locations on your macOS system. Here’s a list of places you might want to check for leftover files associated with MAMP: ### Typical Locations and Files to...
28,319
[ { "from": "human", "value": "For reasons that we won't discuss, I have determined that MAMP is a pile of crap that haunts my system, and unless I remove it fully, I will live in shame.\nI've done the obvious thing and removed the MAMP directory from my Applications folder, however, I don't like wandering fi...
I want to place a combobox inside one column of a Xtragrid. I can bind the combobox to array values but how do you bind the combobox to the column?
To bind a ComboBox to a column in an XtraGrid (from DevExpress), you need to utilize the `RepositoryItemComboBox` class which allows you to define a combo box as a column editor for a specific column in the grid. Below is an example of how to achieve this in C#: ### Step-by-Step Process 1. **Define your data source**...
28,208
[ { "from": "human", "value": "I want to place a combobox inside one column of a Xtragrid. I can bind the combobox to array values but how do you bind the combobox to the column? \n" }, { "from": "gpt", "value": "To bind a ComboBox to a column in an XtraGrid (from DevExpress), you need to utilize...
I'm just starting to pick up ASP.Net MVC and find myself writing a lot of <%= %> in the views. Intellisense does supply the closing %>, but I find that typing the introductory <%= to be burdensome (they are tough for me to type :-)). I've dabbled around a bit with Rails and the NetBeans IDE where I was able to type: r...
In Visual Studio 2008, there isn't a built-in feature that directly allows you to create custom snippets like you described for Rails or NetBeans. However, you can achieve a similar functionality by creating your own code snippets or using the built-in snippet feature. Here's how to create custom code snippets in Visu...
28,696
[ { "from": "human", "value": "I'm just starting to pick up ASP.Net MVC and find myself writing a lot of <%= %> in the views. Intellisense does supply the closing %>, but I find that typing the introductory <%= to be burdensome (they are tough for me to type :-)).\nI've dabbled around a bit with Rails and th...
I have been reading about the differences between Table Variables and Temp Tables and stumbled upon the following issue with the Table Variable. I did not see this issue mentioned in the articles I pursued. I pass in a series of PKs via a XML data type and successfully create the records in both temp table structures...
The issue you're encountering with your Table Variable relates to the way you're referencing it in your UPDATE statement. In SQL Server, you cannot directly reference a table variable in a correlated subquery like you can with a temporary table. When you attempt to run the UPDATE statement for your Table Variable, yo...
29,205
[ { "from": "human", "value": "I have been reading about the differences between Table Variables and Temp Tables and stumbled upon the following issue with the Table Variable. I did not see this issue mentioned in the articles I pursued. \nI pass in a series of PKs via a XML data type and successfully create...
How do I totally disable caching in nHibernate?
Disabling caching in NHibernate can be accomplished in different ways, depending on whether you want to disable the first-level cache, the second-level cache, or both. Here’s how to do it: ### 1. Disabling the First-Level Cache The first-level cache in NHibernate is associated with the `ISession` object. Since the fi...
23,720
[ { "from": "human", "value": "How do I totally disable caching in nHibernate?\n" }, { "from": "gpt", "value": "Disabling caching in NHibernate can be accomplished in different ways, depending on whether you want to disable the first-level cache, the second-level cache, or both. Here’s how to do i...
I'm a long-time ActionScript 2 user, now getting started with ActionScript 3. The one thing I'm missing is an easy way to duplicate the functionality of AS2's MovieClip.onReleaseOutside. It is almost always necessary to implement this event, otherwise you get funny bugs like flash thinks your mouse is down when really ...
In ActionScript 3, handling the `onReleaseOutside` functionality requires a slightly different approach than in ActionScript 2, as AS3 does not have the `onReleaseOutside` event directly tied to `MovieClip`. Instead, you can implement this behavior using mouse events and a combination of event listeners. To achieve th...
26,673
[ { "from": "human", "value": "I'm a long-time ActionScript 2 user, now getting started with ActionScript 3. The one thing I'm missing is an easy way to duplicate the functionality of AS2's MovieClip.onReleaseOutside. It is almost always necessary to implement this event, otherwise you get funny bugs like fla...
I know that I need to tell my UITextField to resign first responder when I want to dismis the keyboard, but I'm not sure how to know when the user has pressed the "Done" key on the keyboard. Is there a notification I can watch for?
In iOS, when you want to dismiss the keyboard when the user presses the "Done" key on the keyboard for a `UITextField`, you should implement the `UITextFieldDelegate` protocol. Specifically, you can use the `textFieldShouldReturn(_:)` method of the `UITextFieldDelegate`. This method is called when the user taps the "Re...
30,972
[ { "from": "human", "value": "I know that I need to tell my UITextField to resign first responder when I want to dismis the keyboard, but I'm not sure how to know when the user has pressed the \"Done\" key on the keyboard. Is there a notification I can watch for?\n" }, { "from": "gpt", "value": "...
I was listening to a podcast recently that was discussing at length the short comings of Entity Framework (EF). But, their opinions may need to be taken with a grain of salt (by me), as from what I could gather: These were folks that were ORM experts. They either made their living off of ORM tools, or their hobby They...
Entity Framework (EF) is a powerful Object-Relational Mapping (ORM) tool, but whether it's suited for a specific project often depends on the scale, complexity, and specific requirements of that project. Here's a breakdown in response to your overall question and the sub-questions you've posed. ### Overall Suitability...
24,252
[ { "from": "human", "value": "I was listening to a podcast recently that was discussing at length the short comings of Entity Framework (EF).\nBut, their opinions may need to be taken with a grain of salt (by me), as from what I could gather:\n\nThese were folks that were ORM experts.\nThey either made their...
When an Event is triggered by a user in IE, it is set to the window.event object. The only way to see what triggered the event is by accessing the window.event object (as far as I know) This causes a problem in ASP.NET validators if an event is triggered programmatically, like when triggering an event through jQuery. I...
This issue with the ASP.NET validators and the way Internet Explorer handles events can indeed be problematic, especially when using third-party libraries like jQuery. Given that you're triggering an event programmatically from a list item (the time picker), it can cause the ASP.NET validators to behave unexpectedly, a...
22,848
[ { "from": "human", "value": "When an Event is triggered by a user in IE, it is set to the window.event object. The only way to see what triggered the event is by accessing the window.event object (as far as I know)\nThis causes a problem in ASP.NET validators if an event is triggered programmatically, like ...
The following doesn't work, but something like this is what I'm looking for. select * from Products where Description like (@SearchedDescription + %) SSRS uses the @ operator in-front of a parameter to simulate an 'in', and I'm not finding a way to match up a string to a list of strings.
In SQL Server Reporting Services (SSRS), parameters are usually prefixed with `@`, but when you're constructing SQL queries, you need to ensure that your syntax aligns with SQL standards. If you're trying to search for a substring within a list of potential matches, you can use the `LIKE` operator in combination with a...
28,990
[ { "from": "human", "value": "The following doesn't work, but something like this is what I'm looking for.\nselect *\nfrom Products\nwhere Description like (@SearchedDescription + %)\n\nSSRS uses the @ operator in-front of a parameter to simulate an 'in', and I'm not finding a way to match up a string to a l...
I have a managed dll that calls into a native library. This native library generally returns IntPtrs. These can be passed in to other methods in the native library to do things, or to tell the library to free the instance associated with the IntPtr. But only some of the instances need to freed in this way, others ar...
Dealing with unmanaged memory and `IntPtr` in a managed context can be quite tricky, especially when you don't have clear documentation regarding ownership and lifecycle management of these pointers. Here are some strategies you can use to help mitigate potential memory leaks and determine if you're managing these poin...
25,370
[ { "from": "human", "value": "I have a managed dll that calls into a native library. This native library generally returns IntPtrs. These can be passed in to other methods in the native library to do things, or to tell the library to free the instance associated with the IntPtr. But only some of the insta...
I've worked in shops where I've implemented Exception Handling into the event log, and into a table in the database. Each have their merits, of which I can highlight a few based on my experience: Event Log Industry standard location for exceptions (+) Ease of logging (+) Can log database connection problems here (+) C...
You've provided a well-rounded comparison of logging exceptions in an event log versus a database table. Here are some additional considerations that may help round out your analysis: ### Event Log **Pros:** - **Simplicity of Access:** Easier access for system administrators or support teams who may not be comfortabl...
24,506
[ { "from": "human", "value": "I've worked in shops where I've implemented Exception Handling into the event log, and into a table in the database.\nEach have their merits, of which I can highlight a few based on my experience:\nEvent Log\n\nIndustry standard location for exceptions (+)\nEase of logging (+)\n...
Hello and thanks for your time. I've spent quite a bit of time searching for an answer to the old question of preventing duplicate posts when the user navigates back, forward, or refreshes the page. I've seen quite a few solutions proposed, none of which are working. Proposed solution #1) Many people offer ways to inst...
Dealing with duplicate form submissions when users navigate using the back button, refresh the page, or use the forward button is a common challenge in web development. Here are a few reliable strategies to help prevent this issue: ### 1. Post/Redirect/Get (PRG) Pattern This is one of the most common and effective me...
23,262
[ { "from": "human", "value": "Hello and thanks for your time.\nI've spent quite a bit of time searching for an answer to the old question of preventing duplicate posts when the user navigates back, forward, or refreshes the page. I've seen quite a few solutions proposed, none of which are working.\nProposed ...
I am looking out for some good practices on naming assemblies and versioning them. How often do you increment the major or minor versions? In some cases, I have seen releases going straight from version 1.0 to 3.0. In other cases, it seems to be stuck at version 1.0.2.xxxx. This will be for a shared assembly used in mu...
Naming assemblies and managing versioning can significantly impact the maintainability, usability, and compatibility of software components, especially for shared assemblies used across multiple projects. Here are some good practices to consider: ### Naming Assemblies 1. **Descriptive Names**: Choose names that clear...
22,025
[ { "from": "human", "value": "I am looking out for some good practices on naming assemblies and versioning them. How often do you increment the major or minor versions?\nIn some cases, I have seen releases going straight from version 1.0 to 3.0. In other cases, it seems to be stuck at version 1.0.2.xxxx.\nTh...
I use Visual Studio to do a lot of my coding. I find the open containing folder feature quite helpful. But I don't want the folder to be "opened" by the windows explorer, instead I want to "explore" the folder -- you know, get the nice little frame showing me all the other folders on the left hand side. Does anyone kno...
In Visual Studio, the "Open Containing Folder" feature typically opens the folder in Windows File Explorer. Unfortunately, there isn't a built-in feature in Visual Studio that directly allows you to open a folder in an "explorer" view (like the classic Windows Explorer with a navigation pane) from within the IDE. Howe...
29,959
[ { "from": "human", "value": "I use Visual Studio to do a lot of my coding. I find the open containing folder feature quite helpful. But I don't want the folder to be \"opened\" by the windows explorer, instead I want to \"explore\" the folder -- you know, get the nice little frame showing me all the other f...
I've got two ListBox'es that are databound to the same BindingList. The issue is that when changing the selected item from the GUI it's changing the position in the BindingList and then the BindingList signals the other ListBox to change its selected item. So I've got the two ListBoxes Selected Item also synchronized w...
To achieve the desired behavior where the `ListBox` selections are not synchronized while still maintaining a single `BindingList`, you'll want to temporarily disconnect the event handler for `SelectedIndexChanged` during the operation that updates the `BindingList`. This prevents the selection change in one `ListBox` ...
28,969
[ { "from": "human", "value": "I've got two ListBox'es that are databound to the same BindingList.\nThe issue is that when changing the selected item from the GUI it's changing the position in the BindingList and then the BindingList signals the other ListBox to change its selected item.\nSo I've got the two ...
What I would like to achive is: I go to admin site, apply some filters to the list of objects I click and object edit, edit, edit, hit 'Save' Site takes me to the list of objects... unfiltered. I'd like to have the filter from step 1 remembered and applied. Is there an easy way to do it?
Yes, there are a few approaches you can take to remember and reapply filters after editing an object in an admin site. The exact method may depend on the specific framework or technology you're using, but here are some general strategies you can consider: ### 1. URL Parameters One of the simplest ways to retain filte...
25,862
[ { "from": "human", "value": "What I would like to achive is: \n\nI go to admin site, apply some filters to the list of objects\nI click and object edit, edit, edit, hit 'Save'\nSite takes me to the list of objects... unfiltered. I'd like to have the filter from step 1 remembered and applied.\n\nIs there an ...
I know how to program Console application with parameters, example : myProgram.exe param1 param2. My question is, how can I make my program works with |, example : echo "word" | myProgram.exe?
To make your console application work with piped input (like using `|`), you need to read from the standard input (stdin) instead of command line parameters. Here's how you can modify your application to achieve that. ### Example in C# If you're writing a console application in C#, you can read from the standard inpu...
29,273
[ { "from": "human", "value": "I know how to program Console application with parameters, example : myProgram.exe param1 param2.\nMy question is, how can I make my program works with |, example : echo \"word\" | myProgram.exe?\n" }, { "from": "gpt", "value": "To make your console application work ...
I'm trying to bring myself up to speed on C#, having never developed for it before. In a previous question I asked about good book review sites, and through that I found a very positive (beginner-oriented) review for "Essential C#" but it was for a previous edition. While I'm sure that it will still be a good book even...
Your question touches on an important consideration when learning a new programming language: whether to focus on the latest features or to understand the foundational concepts that have stood the test of time. Here are some points to consider for each approach: ### Learning the Latest Version **Advantages:** 1. **Up...
27,943
[ { "from": "human", "value": "I'm trying to bring myself up to speed on C#, having never developed for it before. In a previous question I asked about good book review sites, and through that I found a very positive (beginner-oriented) review for \"Essential C#\" but it was for a previous edition.\nWhile I'm...
I have a 10 second sound effect wave file. What I would like to do is take that file and repeat it n number of times and then save the longer WAV file to disk. This way I can create a much longer background effect rather than auto-repeat on the media player which is a bit stuttered between repeats. I am trying to do th...
Certainly! You can achieve this in C# using the `NAudio` library, which makes it easy to work with audio files. Here's a step-by-step guide on how to create a longer WAV file by repeating your 10-second sound effect `n` times: ### Step 1: Install NAudio You need to install the NAudio library. You can do this via NuGe...
22,543
[ { "from": "human", "value": "I have a 10 second sound effect wave file. What I would like to do is take that file and repeat it n number of times and then save the longer WAV file to disk. This way I can create a much longer background effect rather than auto-repeat on the media player which is a bit stutte...
There are a couple of open source apps I am trying to recompile to work under amigaOS. Can someone point me to a good step-by-step guide explaining what changes (from a rule-of-thumb standpoint) I need to make to the source before it'll compile?
Recompiling open source applications for AmigaOS can be a rewarding challenge, but it does require a solid understanding of both the original source code and the specifics of the AmigaOS environment. Here’s a step-by-step guide to help you adapt the source code for compilation on AmigaOS: ### Step 1: Set Up Your Devel...
24,655
[ { "from": "human", "value": "There are a couple of open source apps I am trying to recompile to work under amigaOS. Can someone point me to a good step-by-step guide explaining what changes (from a rule-of-thumb standpoint) I need to make to the source before it'll compile?\n" }, { "from": "gpt", ...
I'm trying to use the SpecialCells method in a VSTO project using c# against the 3.5 framework and Excel2007. Here's my code: Excel.Worksheet myWs = (Excel.Worksheet)ModelWb.Worksheets[1]; Range myRange = myWs.get_Range("A7", "A800"); //Range rAccounts = myRange.SpecialCells(XlCellType.xlCellTypeConstants, XlSpecialC...
The `SpecialCells` method can throw exceptions for several reasons when working with Excel Interop in C#. In your case, the exception you're encountering might be due to a few reasons such as trying to reference cells that do not exist, or using the method incorrectly. ### Here’s a few things to check and try: 1. **C...
13,847
[ { "from": "human", "value": "I'm trying to use the SpecialCells method in a VSTO project using c# against the 3.5 framework and Excel2007.\nHere's my code:\nExcel.Worksheet myWs = (Excel.Worksheet)ModelWb.Worksheets[1];\n\nRange myRange = myWs.get_Range(\"A7\", \"A800\");\n\n//Range rAccounts = myRange.Spec...
Classes that use other classes (as members, or as arguments to methods) need instances that behave properly for unit test. If you have these classes available and they introduce no additional dependencies, isn't it better to use the real thing instead of a mock?
The decision to use real instances of classes versus mocks in unit tests often depends on several factors, including the complexity of the dependencies, the testing context, and the goals of the tests. Here are some considerations to help you decide when to use real instances instead of mocks: ### When to Use Real Ins...
26,613
[ { "from": "human", "value": "Classes that use other classes (as members, or as arguments to methods) need instances that behave properly for unit test. If you have these classes available and they introduce no additional dependencies, isn't it better to use the real thing instead of a mock? \n" }, { ...
For example, when I'm dividing two ints and want a float returned, I superstitiously write something like this: int a = 2, b = 3; float c = (float)a / (float)b; If I do not cast a and b to floats, it'll do integer division and return an int. Similarly, if I want to multiply a signed 8-bit number with an unsigned 8-bit...
In C and C++, the behavior of the compiler regarding arithmetic operations and type conversions is defined by the rules of type promotion and conversion. Here's a breakdown of the scenarios you presented: ### 1. Integer Division When you divide two integers, like in the example `a / b`, the division will be performed...
27,618
[ { "from": "human", "value": "For example, when I'm dividing two ints and want a float returned, I superstitiously write something like this:\nint a = 2, b = 3;\nfloat c = (float)a / (float)b;\n\nIf I do not cast a and b to floats, it'll do integer division and return an int.\nSimilarly, if I want to multipl...
How to add new item in existing string array in C#.net? I need to preserve the existing data.
In C#, arrays have a fixed size, which means you cannot directly add an item to an existing array. Instead, you can create a new array that is larger than the original, copy the existing elements into the new array, and then add the new item. Here's how you can add a new item to an existing string array while preservi...
29,208
[ { "from": "human", "value": "How to add new item in existing string array in C#.net?\nI need to preserve the existing data.\n" }, { "from": "gpt", "value": "In C#, arrays have a fixed size, which means you cannot directly add an item to an existing array. Instead, you can create a new array that...
I know that I can add the SourceSafeTypeLib to a project and can explore it in object browser and find obvious things (GetLatest, etc), but I am looking for some more thorough documentation or specific tutorials on things like "undo another user's checkout" or"determine who has a file checked out. If anyone knows wher...
Visual SourceSafe (VSS) can be quite challenging to work with, especially when it comes to automation and performing advanced tasks programmatically. Here are some resources and insights into using the SourceSafe Type Library (SourceSafeTypeLib) for such tasks as undoing another user's checkout and determining who has ...
22,472
[ { "from": "human", "value": "I know that I can add the SourceSafeTypeLib to a project and can explore it in object browser and find obvious things (GetLatest, etc), but I am looking for some more thorough documentation or specific tutorials on things like \"undo another user's checkout\" or\"determine who h...
Today is officially my first day with C++ :P I've downloaded Visual C++ 2005 Express Edition and Microsoft Platform SDK for Windows Server 2003 SP1, because I want to get my hands on the open source Enso Project. So, after installing scons I went to the console and tried to compile it using scons, but I got this error...
It looks like you're having trouble with your environment configuration when using SCons to build a C++ project that depends on the Windows SDK. Here are some steps to help you resolve the issue: 1. **Check the Platform SDK Installation**: Ensure that you've installed the Microsoft Platform SDK correctly. It should be...
29,648
[ { "from": "human", "value": "Today is officially my first day with C++ :P\nI've downloaded Visual C++ 2005 Express Edition and Microsoft Platform SDK for Windows Server 2003 SP1, because I want to get my hands on the open source Enso Project. \nSo, after installing scons I went to the console and tried to c...
On Windows Mobile metod InternetSetOption http://msdn.microsoft.com/en-us/library/ms918381.aspx does not support option INTERNET_OPTION_HTTP_DECODING is there some simple method to turn on compresion under WM 6.0 or any external library that will decompress content received by WinInet.
On Windows Mobile 6.0, the support for HTTP compression (like gzip or deflate) through the WinInet API is limited. The `InternetSetOption` function with the `INTERNET_OPTION_HTTP_DECODING` option is indeed not available on Windows Mobile. However, you can manually handle compression by following these steps: 1. **Req...
23,404
[ { "from": "human", "value": "On Windows Mobile metod InternetSetOption http://msdn.microsoft.com/en-us/library/ms918381.aspx does not support option INTERNET_OPTION_HTTP_DECODING is there some simple method to turn on compresion under WM 6.0 or any external library that will decompress content received by W...
Where can I find a good reference that explains how to write and install a SxS policy redirecting from one native assembly version to another? I've already succeeded in building and installing two versions of my native assembly using a wix installer. But I'm not sure how to proceed from here. Most of the information I'...
Hi Dan, It sounds like you're working on Side-by-Side (SxS) assemblies for native code and looking to set up a policy file to redirect from one version of your native assembly to another. While there is indeed a wealth of information available for managed assemblies, the process for native assemblies is somewhat simil...
27,578
[ { "from": "human", "value": "Where can I find a good reference that explains how to write and install a SxS policy redirecting from one native assembly version to another?\nI've already succeeded in building and installing two versions of my native assembly using a wix installer. But I'm not sure how to pro...
I suppose this is a strange question to the huge majority of programmers that work daily with Java. I don't. I know Java-the-language, because I worked on Java projects, but not Java-the-world. I never made a web app from scratch in Java. If I have to do it with Python, Ruby, I know where to go (Django or Rails), but i...
Building a web application in Clojure can be a rewarding experience, and there are several libraries and frameworks you can use to get started. Here’s a guide to some of the most popular options: ### 1. **Ring** - **What it is**: Ring is a foundational library for building web applications in Clojure. It provides a si...
26,141
[ { "from": "human", "value": "I suppose this is a strange question to the huge majority of programmers that work daily with Java. I don't. I know Java-the-language, because I worked on Java projects, but not Java-the-world. I never made a web app from scratch in Java. If I have to do it with Python, Ruby, I ...
I've installed TFS 2008, but I can't seem to access the server. When I try to connect to it in Visual Studio, I can't. If I try by browser on a remote PC, I get a generic page cannot be displayed. On the server, I get a 403. Nothing was touched in IIS and the service is running as a Network Service. Any ideas?
It sounds like you're running into some issues with TFS 2008 (Team Foundation Server) connectivity, which may be related to configuration or permission issues. Here are several steps you can take to troubleshoot and potentially resolve this problem: ### 1. Check TFS Service Status Make sure that the TFS services are r...
23,128
[ { "from": "human", "value": "I've installed TFS 2008, but I can't seem to access the server. When I try to connect to it in Visual Studio, I can't. If I try by browser on a remote PC, I get a generic page cannot be displayed. On the server, I get a 403. Nothing was touched in IIS and the service is running ...
I'm building a project that uses the JVCL plugin system, which relies on runtime Delphi packages, and ever since I added it to my project, debugging has become a nightmare because I'm no longer able to step-trace into the source of any VCL or RTL units. They're all marked as gray dots in the debugger, (when the releva...
When using runtime packages in Delphi, you can encounter issues with debugging because the Debug DCUs for the VCL and RTL units may not be properly loaded or linked with your application. Here are several steps to help you regain debugging capabilities in your project: 1. **Check Compiler Options**: - Make sure you...
28,449
[ { "from": "human", "value": "I'm building a project that uses the JVCL plugin system, which relies on runtime Delphi packages, and ever since I added it to my project, debugging has become a nightmare because I'm no longer able to step-trace into the source of any VCL or RTL units. They're all marked as gr...
I am writing an application where I will be accessing the database from django and from a stand alone application. Both need to do session verification and the session should be the same for both of them. Django has a built in authentication/session verification, which is what I am using, now I need to figure out how t...
To reuse the same session in both your Django application and your standalone application, you need to understand how Django sessions work and how to access them properly. The session in Django is tied to the `django_session` table, which contains the session data including the session key. However, there isn't a direc...
24,528
[ { "from": "human", "value": "I am writing an application where I will be accessing the database from django and from a stand alone application. Both need to do session verification and the session should be the same for both of them. Django has a built in authentication/session verification, which is what I...
I have tried the following two statements: SELECT col FROM db.tbl WHERE col (LIKE 'str1' OR LIKE 'str2') AND col2 = num results in a syntax error SELECT col FROM db.tbl WHERE page LIKE ('str1' OR 'str2') AND col2 = num results in "Truncated incorrect DOUBLE value: str1" and "Truncated incorrect DOUBLE value: str2" for...
It looks like you are encountering syntax issues in your SQL queries. Let's correct the statements you've tried and explain how you can achieve what you want. ### Issue with the first query The problem with your first statement is that the syntax for using the `LIKE` operator in combination with the `OR` operator is i...
27,903
[ { "from": "human", "value": "I have tried the following two statements:\n\nSELECT col FROM db.tbl WHERE col (LIKE 'str1' OR LIKE 'str2') AND col2 = num results in a syntax error\nSELECT col FROM db.tbl WHERE page LIKE ('str1' OR 'str2') AND col2 = num results in \"Truncated incorrect DOUBLE value: str1\" an...
Consider this: public class TestClass { private String a; private String b; public TestClass() { a = "initialized"; } public void doSomething() { String c; a.notify(); // This is fine b.notify(); // This is fine - but will end in an exception c.notify(); // "Local...
In Java, the behavior you're observing is due to the distinction between instance variables (also known as member variables) and local variables. 1. **Member Variables**: These are variables that are declared within a class but outside any method. They belong to an instance of the class. In your `TestClass`, both `a` ...
28,398
[ { "from": "human", "value": "Consider this:\npublic class TestClass {\n\n private String a;\n private String b;\n\n public TestClass()\n {\n a = \"initialized\";\n }\n\n public void doSomething()\n {\n String c;\n\n a.notify(); // This is fine\n b.notify(); // This is fi...
When i open some website, can i as a end-user make the Text printed in the IE title bar at top disappear(make it blank or change it to my own text). e.g. While typing this question my IE title bar says Ask a Question - Stack Overflow - Windows Internet Explorer I want to make that blank without at my browser end by wa...
As an end-user, there are no built-in settings or options in Internet Explorer (IE) or Windows that allow you to customize or hide the title bar text or the tab title of a webpage. The title displayed in the title bar and the tab is determined by the web page itself and is set by the `<title>` element in the HTML of th...
31,124
[ { "from": "human", "value": "When i open some website, can i as a end-user make the Text printed in the IE title bar at top disappear(make it blank or change it to my own text).\ne.g. While typing this question my IE title bar says \nAsk a Question - Stack Overflow - Windows Internet Explorer\nI want to mak...
Has anyone written, or know of a library, that generates fairly accurate looking Western European style names? i.e. John, Susan, Smith, Julien, April, etc., etc...
Yes, there are several libraries and tools that can help generate Western European-style names, with varying degrees of accuracy and customization. Here are some popular ones: 1. **Faker**: - **Language**: Python, Ruby, PHP, and other languages. - **Description**: Faker is a widely-used library that generates fa...
29,449
[ { "from": "human", "value": "Has anyone written, or know of a library, that generates fairly accurate looking Western European style names? i.e. John, Susan, Smith, Julien, April, etc., etc... \n" }, { "from": "gpt", "value": "Yes, there are several libraries and tools that can help generate We...
I have been a developer for 10+ years and so far my IIS knowledge is just enough for deploying stuff on it and get it running. Recently I have been playing with IIS 6 and realize the huge difference on the worker process model. I think I would need some good guide to update my knowledge in this area. Any good article/b...
Absolutely! The transition from IIS 6 to newer versions like IIS 7, 8, 10, and even the more recent IIS updates involves significant changes, especially in the application pool and worker process model. Here are some resources that can help you deepen your understanding of IIS: ### Books: 1. **"IIS 8: Up and Running" ...
29,586
[ { "from": "human", "value": "I have been a developer for 10+ years and so far my IIS knowledge is just enough for deploying stuff on it and get it running. Recently I have been playing with IIS 6 and realize the huge difference on the worker process model. I think I would need some good guide to update my k...
Since Hex (base 16) uses 0-9A-F, and (I'm assuming here) Base 17 uses 0-9A-G and so on. What symbols are used once 0-9A-Z are all used up.
In numeral systems beyond base 36 (which uses 0-9 and A-Z), additional symbols are typically introduced to represent values higher than 35. Here's how it generally works: - **Base 10 to Base 36**: Uses the digits 0-9 and the letters A-Z, where A represents 10, B represents 11, ..., and Z represents 35. For bases hi...
30,662
[ { "from": "human", "value": "Since Hex (base 16) uses 0-9A-F, and (I'm assuming here) Base 17 uses 0-9A-G and so on. What symbols are used once 0-9A-Z are all used up.\n" }, { "from": "gpt", "value": "In numeral systems beyond base 36 (which uses 0-9 and A-Z), additional symbols are typically in...
When using C++ namespaces, do you prefer to explicitly name them, like this: std::cout << "Hello, world!\n"; Or do you prefer using namespace: using namespace std; cout << "Hello, world!\n"; And if if you prefer the latter, do you declare your usings at file or function scope? Personally I prefer to explicitly name t...
Your preference for explicitly naming namespaces, like `std::cout`, is a common one among many C++ developers. This approach has several advantages: 1. **Clarity and Readability**: Explicitly using the namespace helps avoid ambiguity, especially in cases where multiple namespaces contain functions or classes with the ...
24,457
[ { "from": "human", "value": "When using C++ namespaces, do you prefer to explicitly name them, like this:\nstd::cout << \"Hello, world!\\n\";\n\nOr do you prefer using namespace:\nusing namespace std;\ncout << \"Hello, world!\\n\";\n\nAnd if if you prefer the latter, do you declare your usings at file or fu...
What is the best way to convert an XML document to a .NET 2.0 DataSet. The XML document contains complex structures with parent-child relationships and should be transformed into multiple tables in the DataSet. The DataSet tables should also maintain the relationship among tables. right now, I've to write custom XSLT t...
To convert an XML document to a .NET 2.0 `DataSet`, especially when dealing with complex structures and parent-child relationships, you can leverage the built-in capabilities of the `DataSet` class rather than manually writing custom XSLT for the transformation. The `DataSet` class in .NET can directly read XML and aut...
26,087
[ { "from": "human", "value": "What is the best way to convert an XML document to a .NET 2.0 DataSet. The XML document contains complex structures with parent-child relationships and should be transformed into multiple tables in the DataSet. The DataSet tables should also maintain the relationship among table...
I've got some LINQ to SQL that sometimes throws a "Cannot insert duplicate key row in object 'dbo.Table' with unique index 'IX_Indexname'.The statement has been terminated." Is there some way I can turn on logging or at least debug into the datacontext to see what sql is being executed at the time that error is ra...
To troubleshoot the `Cannot insert duplicate key row` error in your LINQ to SQL application, you can enable logging to capture the SQL commands that are being executed by the `DataContext`. Here are a few ways to achieve this: ### 1. Logging SQL Commands with DataContext You can use the `Log` property of the `DataCon...
27,306
[ { "from": "human", "value": "I've got some LINQ to SQL that sometimes throws a \n\n\"Cannot insert duplicate key row in object 'dbo.Table' with unique index\n 'IX_Indexname'.The statement has been terminated.\"\n\nIs there some way I can turn on logging or at least debug into the datacontext to see what sq...
I have a class that contains two methods like these: public String getFoo(Int32 a) { return getBar(a, "b", null); } public String getBar(Int32 a, String b, Int32 c) { //do something return ""; } However when I compile my class I get two errors: The best overloaded method match for getBar(int,string,int) has so...
You are encountering these compilation errors due to the fact that the `getBar` method expects its third argument to be an `int`, but you are passing `null`. In C#, `null` cannot be directly assigned to a non-nullable value type like `int`, which is why you see the error: "Argument '3': cannot convert from '<null>' to ...
29,873
[ { "from": "human", "value": "I have a class that contains two methods like these:\npublic String getFoo(Int32 a)\n{\n return getBar(a, \"b\", null);\n}\n\npublic String getBar(Int32 a, String b, Int32 c)\n{\n //do something\n return \"\";\n}\n\nHowever when I compile my class I get two errors:\n\nThe bes...
Should log classes open/close a log file stream on each write to the log file or should it keep the log file stream open throughout the application's lifetime until all logging is complete? I'm asking in context of a desktop application. I have seen people do it both ways and was wondering which approach yields the ...
When designing a logging system for a desktop application, the decision of whether to open and close the log file stream on each write or keep the stream open for the application's lifetime involves trade-offs in terms of performance, resource management, and error handling. Here’s a breakdown of both approaches: ### ...
27,470
[ { "from": "human", "value": "Should log classes open/close a log file stream on each write to the log file or should it keep the log file stream open throughout the application's lifetime until all logging is complete? \nI'm asking in context of a desktop application. I have seen people do it both ways an...
I would like to develop Adobe Flex applications using Linux and a free environment. I'd prefer a free as in freedom alternative, but as in beer would work as well. ;-) Are any of you developing Adobe Flex rich internet applications using such an environment? Or should I face the "facts" that Flex Builder is an essentia...
Developing Adobe Flex applications on Linux using free tools is definitely possible, though you may face some challenges, especially if you're looking for an experience that matches the capabilities of Flex Builder (the official IDE from Adobe). Here are some options you can consider: ### 1. **Apache Flex SDK** - A...
25,066
[ { "from": "human", "value": "I would like to develop Adobe Flex applications using Linux and a free environment. I'd prefer a free as in freedom alternative, but as in beer would work as well. ;-)\nAre any of you developing Adobe Flex rich internet applications using such an environment? Or should I face th...
Is there a limit to the length of a GET request?
Yes, there is generally a limit to the length of a GET request, but the exact limit can vary depending on several factors: 1. **Web Server Configuration**: Different web servers have different default limits for the maximum URL length. For example, Apache and Nginx can be configured to accept longer URLs, but they als...
31,047
[ { "from": "human", "value": "Is there a limit to the length of a GET request?\n" }, { "from": "gpt", "value": "Yes, there is generally a limit to the length of a GET request, but the exact limit can vary depending on several factors:\n\n1. **Web Server Configuration**: Different web servers have...
Have you used the Perl 5.10 backtracking control verbs in your regexes yet? And what problems did they help you accomplish? Just as background: I have done some fiddling, but I can't get any really useful results. As a comparison, when I started getting what the (?> grouping did, it started showing up more in my rege...
Perl 5.10 introduced several backtracking control verbs in regexes that can greatly help with performance and correctness in matching patterns, especially in complex scenarios. The three main backtracking control verbs in Perl regex are: 1. **(?>...)** - This is a "branch that doesn't backtrack" or "atomic grouping." ...
27,864
[ { "from": "human", "value": "Have you used the Perl 5.10 backtracking control verbs in your regexes yet? And what problems did they help you accomplish? \n\nJust as background: I have done some fiddling, but I can't get any really useful results.\nAs a comparison, when I started getting what the (?> groupin...
In a table I have the following schema table1: playerID int primary key, nationalities nvarchar table2: playerID int, pubVisited nvarchar Now, I want to set all the players' playedVisited to null, for player whose nationality is "England", any idea on how to do this?
To update the `pubVisited` field to `NULL` for players whose nationality is "England", you can use an SQL `UPDATE` statement with a `JOIN` between the two tables. Here's a SQL query that accomplishes this: ```sql UPDATE table2 SET pubVisited = NULL WHERE playerID IN ( SELECT playerID FROM table1 WHERE nati...
33,374
[ { "from": "human", "value": "In a table I have the following schema\ntable1:\nplayerID int primary key,\nnationalities nvarchar\n\ntable2:\nplayerID int,\npubVisited nvarchar\n\nNow, I want to set all the players' playedVisited to null, for player whose nationality is \"England\", any idea on how to do this...
In a MVC application, what are some of the components that make up the application. What tools and functionality is missing that you would like to have. Regardless of the server-side language, what would you want? I see a lot in my code where I code some much functionality that it seems should already be there. I lo...
In a Model-View-Controller (MVC) application, especially in a J2EE (Java EE) context, there are indeed numerous components that play crucial roles in the application's architecture. Beyond what you’ve listed, here are additional components, tools, and functionalities that could enhance the development experience: ### ...
24,579
[ { "from": "human", "value": "In a MVC application, what are some of the components that make up the application. What tools and functionality is missing that you would like to have. Regardless of the server-side language, what would you want?\nI see a lot in my code where I code some much functionality th...
In VS2005 and up, is it possible to specify which configuration should be selected by default? I have several configurations in my solution but one of them should be used in most cases. Hence I'd like to make sure that devs who pull it out of Source Control use the right configuration(unless of course they specifically...
In Visual Studio 2005 and later, you can set a default configuration for your solution, which is stored in the solution file (`.sln`). However, Visual Studio does not provide a built-in feature to explicitly define a default startup configuration that will apply automatically when the solution is opened. Instead, the l...
28,705
[ { "from": "human", "value": "In VS2005 and up, is it possible to specify which configuration should be selected by default?\nI have several configurations in my solution but one of them should be used in most cases. Hence I'd like to make sure that devs who pull it out of Source Control use the right config...