instruction
stringlengths
14
27.6k
completion
stringlengths
3
38.3k
__original_row_idx
int64
0
50k
conversations
listlengths
2
2
I am using the rounded corners plugin for jquery and have it working rounding elements in my page. The only issue I have is that the elements appear on the page un-rounded and then round. What do I need to do so that the elements only appear rounded? I originally put my script tags in the head element but should they g...
To prevent the elements from appearing un-rounded before the jQuery Rounded Corners plugin applies the rounding effect, you can take a few approaches: ### 1. CSS Approach One effective way to handle this is to apply CSS styles to the elements you want rounded. This will ensure that they appear rounded by default, even...
36,159
[ { "from": "human", "value": "I am using the rounded corners plugin for jquery and have it working rounding elements in my page. The only issue I have is that the elements appear on the page un-rounded and then round. What do I need to do so that the elements only appear rounded?\nI originally put my script ...
I have to write a process (in Java) which periodically hits a URL, reads the returned XML document, and persists that data into the DB. This data is further used by my application, so I have modeled them as Hibernate-mapped POJOs. I can parse the XML and then create appropriate POJOs, but I was looking for a simpler de...
If you're looking for a declarative approach to map XML data directly to POJOs in Java, there are a couple of libraries that can help you with this task. Here are some popular options: ### 1. JAXB (Java Architecture for XML Binding) JAXB is a standard Java library that allows you to convert XML to Java objects and vic...
36,118
[ { "from": "human", "value": "I have to write a process (in Java) which periodically hits a URL, reads the returned XML document, and persists that data into the DB. This data is further used by my application, so I have modeled them as Hibernate-mapped POJOs.\nI can parse the XML and then create appropriate...
Let's say I have an integer that I need to convert to a string (I might be displaying the value to the user by means of a TextBox, for example. Should I prefer .ToString() or Convert.ToString(). They both do the same thing (don't they?). int someValue = 4; // You can do this txtSomeValue.Text = someValue.ToString(); ...
You’re correct that both `someValue.ToString()` and `Convert.ToString(someValue)` can be used to convert an integer to a string in C#. While they effectively produce the same result in this context, there are some subtle differences and considerations that might help you decide which to use. ### Differences 1. **Meth...
39,118
[ { "from": "human", "value": "Let's say I have an integer that I need to convert to a string (I might be displaying the value to the user by means of a TextBox, for example.\nShould I prefer .ToString() or Convert.ToString(). They both do the same thing (don't they?).\nint someValue = 4;\n\n// You can do thi...
We are using Subversion. We would like to 1. search across all commit messages ? 2. monitor the commits on certain important files ? 3. identify files that are never/rarely used ? 4. identify files that are most frequently changed ? 5. identify files that most developers have accessed ? 6. identify files tha...
To address your needs for analyzing and managing your Subversion (SVN) repository, you can use a combination of command-line tools, scripts, and specialized software. Here are some recommendations based on your specific requirements: ### 1. Search Across All Commit Messages You can use `svn log` combined with `grep` o...
37,022
[ { "from": "human", "value": "We are using Subversion. We would like to \n1. search across all commit messages ?\n2. monitor the commits on certain important files ?\n3. identify files that are never/rarely used ?\n4. identify files that are most frequently changed ? \n5. identify files that most de...
Does anybody know if Microsoft has already decided which version of the .NET framework will be shipped in Windows 7 next year (2009)? Will it .NET 3.5 (SP 1) or maybe 4.0?
As of my last update, Windows 7 was released in October 2009, and it included .NET Framework 3.5 SP1 as part of the operating system. .NET Framework 4.0 was not included with Windows 7 by default; it was released later, in April 2010. So to answer your question, Windows 7 shipped with .NET Framework 3.5 SP1, not .NET...
41,512
[ { "from": "human", "value": "Does anybody know if Microsoft has already decided which version of the .NET framework will be shipped in Windows 7 next year (2009)? Will it .NET 3.5 (SP 1) or maybe 4.0?\n" }, { "from": "gpt", "value": "As of my last update, Windows 7 was released in October 2009, ...
I have a string that I would like to tokenize. But the C strtok() function requires my string to be a char*. How can I do this simply? I tried: token = strtok(str.c_str(), " "); which fails because it turns it into a const char*, not a char*
You're correct that `str.c_str()` returns a `const char*`, which is not modifiable, and since `strtok` needs a non-const `char*`, you will need to create a mutable copy of your string. Here's a simple way to tokenize a `std::string` using `strtok`: 1. Make a copy of the string in a `char` array or dynamically alloca...
39,293
[ { "from": "human", "value": "I have a string that I would like to tokenize.\nBut the C strtok() function requires my string to be a char*.\nHow can I do this simply?\nI tried:\ntoken = strtok(str.c_str(), \" \"); \n\nwhich fails because it turns it into a const char*, not a char*\n" }, { "from": "gp...
The Alt+Space command doesn't work on Putty (at least for me). So, if I've to minimize or maximize my PuTTY windows, I'll have to use the mouse which is very uncomfortable. Did anyone get around this problem? Thanks for your time!
If the Alt+Space command doesn't work in PuTTY, there are a few alternative methods you can use to minimize or maximize your PuTTY windows without relying on the mouse: 1. **Using Keyboard Shortcuts:** - **Alt + Enter:** This will toggle full-screen mode for your PuTTY window, effectively maximizing it. - **Wind...
37,876
[ { "from": "human", "value": "The Alt+Space command doesn't work on Putty (at least for me). So, if I've to minimize or maximize my PuTTY windows, I'll have to use the mouse which is very uncomfortable. Did anyone get around this problem?\nThanks for your time!\n" }, { "from": "gpt", "value": "If...
I came in this morning, fired up my app in the same way as usual, and started getting this error. Since then, I have been down every road I can conceive - to the point of removing and reinstalling every piece of ruby/rails software on my machine, including mysql. I have stripped my application down to just the follow...
The error message you're encountering indicates that there's an issue with the parameters being passed to the `establish_connection` method for ActiveRecord. Specifically, the error `can't convert String into Integer (TypeError)` suggests that somewhere in your connection configuration, an integer is expected but a str...
36,443
[ { "from": "human", "value": "I came in this morning, fired up my app in the same way as usual, and started getting this error. Since then, I have been down every road I can conceive - to the point of removing and reinstalling every piece of ruby/rails software on my machine, including mysql. I have stripp...
How to filter my datagridview by the value of my label.text on click event? That value is from my linq query: dataSet.Tables[0].AsEnumerable().Where(c => c.Field<int>("ageColumn") > 3 && c.Field<int>("ageColumn") < 5).Count(); Let's just say the above query gives me 12 (label.text = 12), now when I click "12", I ...
To filter a `DataGridView` based on the value of a `Label` when you click it, you'll want to follow these steps. Here's an example in C# that shows how you can achieve this. This example assumes you have a `DataGridView` named `dataGridView1`, a `Label` named `label1`, and that you want to filter the `DataGridView` bas...
37,587
[ { "from": "human", "value": "How to filter my datagridview by the value of my label.text on click event? That value is from my linq query:\ndataSet.Tables[0].AsEnumerable().Where(c => c.Field<int>(\"ageColumn\") > 3 &&\n c.Field<int>(\"ageColumn\") < 5).Count();\n\nLet's just say the above query gives m...
Let's say I have a Base class and several Derived classes. Is there any way to cast an object to one of the derived classes without the need to write something like this : string typename = typeid(*object).name(); if(typename == "Derived1") { Derived1 *d1 = static_cast< Derived1*>(object); } else if(typename == "De...
Yes, you can use `dynamic_cast` in C++ to safely cast an object to one of its derived classes without manually checking the type using `typeid` or comparing type names. The `dynamic_cast` operator checks the actual type of the object at runtime and is safe to use with polymorphic classes (classes that have at least one...
39,367
[ { "from": "human", "value": "Let's say I have a Base class and several Derived classes. Is there any way to cast an object to one of the derived classes without the need to write something like this :\n\nstring typename = typeid(*object).name();\nif(typename == \"Derived1\") {\n Derived1 *d1 = static_cast...
Are hints really necessary for every sql statement? We have a dba who is anal about it and asks us to put hints on every select and update statements in our stored procs. Is this really necessary?
Using hints in SQL statements can be a topic of debate among database developers and administrators. Here are some points to consider regarding whether hints are necessary for every SQL statement: 1. **Understanding of Hints**: Hints are directives that can be given to the SQL query optimizer to influence how it execu...
39,215
[ { "from": "human", "value": "Are hints really necessary for every sql statement? We have a dba who is anal about it and asks us to put hints on every select and update statements in our stored procs. Is this really necessary?\n" }, { "from": "gpt", "value": "Using hints in SQL statements can be ...
When I launch an ant script from Eclipse 3.4.x it prints the output to console until certain stage. After that it often hangs (wait forever). Last lines that I see at the screen (console) - partial output from my obfuscator. Under Eclipse 3.3.2 everything works fine (the same project, workspace, settings, JVM etc.). Do...
The issue you are experiencing with Eclipse 3.4.x hanging while running your Ant script could be caused by several factors. Here are some potential solutions and troubleshooting steps to consider: 1. **Console Buffer Limit**: Eclipse has a console output buffer that can be limited in size. If your obfuscator generates...
37,155
[ { "from": "human", "value": "When I launch an ant script from Eclipse 3.4.x it prints the output to console until certain stage. After that it often hangs (wait forever). Last lines that I see at the screen (console) - partial output from my obfuscator.\nUnder Eclipse 3.3.2 everything works fine (the same p...
OK... I'm a VB.NET WinForms guy trying to understand WPF and all of its awesomeness. I'm writing a basic app as a learning experience, and have been reading lots of information and watching tutorial videos, but I just can't get off the ground with simple DataBinding, and I know I'm missing some basic concept. As much a...
It's great that you're diving into WPF and data binding! In WPF, for a property to be bindable in the XAML context, it needs to implement a few concepts related to the data binding mechanism. Here’s how you can enhance your example so that the `SomeText` property is available for data binding in Blend and other WPF con...
32,246
[ { "from": "human", "value": "OK... I'm a VB.NET WinForms guy trying to understand WPF and all of its awesomeness. I'm writing a basic app as a learning experience, and have been reading lots of information and watching tutorial videos, but I just can't get off the ground with simple DataBinding, and I know ...
I am working on a project using rails 2.1.1. With the new release of 2.2.2 I want to migrate to the new version. Is there anything I need to change to migrate my 2.1.1 controllers, views, and models?
Migrating from Ruby on Rails 2.1.1 to 2.2.2 involves several changes and potential issues to consider. While Rails 2.2 brought improvements and some new features, there are also changes that could affect your existing controllers, views, and models. Here are some key points to consider during the migration process: ##...
36,011
[ { "from": "human", "value": "I am working on a project using rails 2.1.1. With the new release of 2.2.2 I want to migrate to the new version. Is there anything I need to change to migrate my 2.1.1 controllers, views, and models?\n" }, { "from": "gpt", "value": "Migrating from Ruby on Rails 2.1...
I have a DataTable that has a boolean column called [Invalid]. I need to divide this data up by this Invalid column - valid rows can be edited, invalid rows cannot. My original plan was to use two BindingSources and set the Filter property ([Invalid] = 'false', for instance), which plays right into my hands because I h...
You can achieve the desired separation of valid and invalid rows without needing to fetch the data from the database twice. Instead, you can use `DataView` objects to filter the data from your original `DataTable`. This way, both `BindingSource` objects can point to separate `DataView` instances that reflect the filter...
38,325
[ { "from": "human", "value": "I have a DataTable that has a boolean column called [Invalid]. I need to divide this data up by this Invalid column - valid rows can be edited, invalid rows cannot. My original plan was to use two BindingSources and set the Filter property ([Invalid] = 'false', for instance), wh...
Since there is no finally in C++ you have to use the RAII design pattern instead, if you want your code to be exception safe. One way to do this is by using the destructor of a local class like this: void foo() { struct Finally { ~Finally() { /* cleanup code */ } } finalizer(); // ...code that might...
Yes, you can achieve both the advantages of RAII (Resource Acquisition Is Initialization) for exception safety while also being able to access local variables in your cleanup code, without introducing too much code bloat. One effective way to accomplish this is to use a lambda function combined with `std::unique_ptr` o...
36,290
[ { "from": "human", "value": "Since there is no finally in C++ you have to use the RAII design pattern instead, if you want your code to be exception safe. One way to do this is by using the destructor of a local class like this:\nvoid foo() {\n struct Finally {\n ~Finally() { /* cleanup code */ }\...
I'm using Forms Authentication (and the built in Login controls) and letting users click the "remember me" checkbox when logging in. When they return to the site, they are automatically logged in as expected. Is there an event I can catch when this happens? I've been studying the FormsAuthenticationModule.Authenticate ...
When using Forms Authentication in ASP.NET, you can indeed detect when a user has been automatically logged in due to the "Remember Me" checkbox being checked during their last login. However, there's no direct event that you can hook into that gets triggered specifically when a user is automatically authenticated upon...
39,373
[ { "from": "human", "value": "I'm using Forms Authentication (and the built in Login controls) and letting users click the \"remember me\" checkbox when logging in. When they return to the site, they are automatically logged in as expected. Is there an event I can catch when this happens? I've been studying ...
I've been reading up on this subject for a while. Suddenly the day has come where this solution is a necessity, not just a dream. Through my reading, I've seen the popular differences being (file based, memcached, shared memory (mm), sql table, and custom). The original idea we thought of was using a ZFS or AFS mounted...
It sounds like you're diving into session management solutions for your LAMP (Linux, Apache, MySQL, PHP) environment, and exploring options like ZFS or AFS for shared session storage. Here are some insights and success stories related to various session management approaches that might help you make an informed decisio...
34,109
[ { "from": "human", "value": "I've been reading up on this subject for a while. Suddenly the day has come where this solution is a necessity, not just a dream.\nThrough my reading, I've seen the popular differences being (file based, memcached, shared memory (mm), sql table, and custom).\nThe original idea w...
I'm looking for an algorithm that places tick marks on an axis, given a range to display, a width to display it in, and a function to measure a string width for a tick mark. For example, given that I need to display between 1e-6 and 5e-6 and a width to display in pixels, the algorithm would determine that I should put ...
To create an algorithm for placing tick marks on an axis given a range, display width, and a function to measure string width, you can follow these steps: ### Algorithm Overview 1. **Determine the Range and Step Sizes:** - Calculate the range of your axis using the given minimum and maximum values. - Decide on ...
35,481
[ { "from": "human", "value": "I'm looking for an algorithm that places tick marks on an axis, given a range to display, a width to display it in, and a function to measure a string width for a tick mark.\nFor example, given that I need to display between 1e-6 and 5e-6 and a width to display in pixels, the al...
I'm working on a menu-generating HtmlHelper extension method. This method will need to know which Action is being executed. So if Home/Index is executing, the extension method would show all links to other actions that're "coordinated." In a sense, all I need to know during the execution of the Home controller's Index ...
Yes, it's definitely possible to access the current executing controller and action within an HTML Helper extension method in ASP.NET MVC. The `HtmlHelper` class has access to the current `ControllerContext`, which contains the information about the current action being executed. You can create an extension method for...
39,097
[ { "from": "human", "value": "I'm working on a menu-generating HtmlHelper extension method. This method will need to know which Action is being executed. So if Home/Index is executing, the extension method would show all links to other actions that're \"coordinated.\" In a sense, all I need to know during th...
Is there a way that I can do a select as such select * from attributes where product_id = 500 would return id name description 1 wheel round and black 2 horn makes loud noise 3 window solid object you can see through and the query select * from attributes where product_id = 234 would return the ...
Yes, you can achieve the desired behavior using a combination of a database view and a `UNION ALL` in SQL. You can create a view that will return the desired rows when a specific condition is met, while still being able to handle other queries without having to modify your existing code. ### Step 1: Create a View You...
40,165
[ { "from": "human", "value": "Is there a way that I can do a select as such\nselect * from attributes where product_id = 500\n\nwould return \nid name description\n 1 wheel round and black\n 2 horn makes loud noise\n 3 window solid object you can see through\n\nand the query\nselect * from a...
I'm currently refactoring code to replace Convert.To's to TryParse. I've come across the following bit of code which is creating and assigning a property to an object. List<Person> list = new List<Person>(); foreach (DataRow row in dt.Rows) { var p = new Person{ RecordID = Convert.ToInt32(row["ContactID"]) }; ...
Your attempt to replace `Convert.ToInt32` with `Int32.TryParse` is a good step towards improving the safety and robustness of your code. However, there are a few issues in your proposed code snippet. Let's clarify and improve upon it. 1. **Use of Variable**: In your replacement code, `RecordID` seems to be used before...
35,186
[ { "from": "human", "value": "I'm currently refactoring code to replace Convert.To's to TryParse.\nI've come across the following bit of code which is creating and assigning a property to an object.\nList<Person> list = new List<Person>();\n\nforeach (DataRow row in dt.Rows)\n{\n var p = new Person{ Reco...
We have a large MS Access project that requires GUI functionality that is difficult / impossible to do in the VBA / access forms environment. Over time, we wish to re-write / migrate to a managed C# environment with WPF as the presentation layer. The only practical way for us to do this is over a longer period of time...
Migrating an MS Access project to a managed C# environment with WPF is a significant task, especially when you want to do it gradually. Below is a structured approach that can help you successfully navigate this process: ### 1. **Assess the Current System** - **Documentation**: Create comprehensive documentation of...
36,013
[ { "from": "human", "value": "We have a large MS Access project that requires GUI functionality that is difficult / impossible to do in the VBA / access forms environment. \nOver time, we wish to re-write / migrate to a managed C# environment with WPF as the presentation layer.\nThe only practical way for us...
In a WinForms UserControl, I would pass data to the main GUI thread by calling this.BeginInvoke() from any of the control's methods. What's the equivalent in a Silverlight UserControl? In other words, how can I take data provided by an arbitrary worker thread and ensure that it gets processed on the main displatch thr...
In Silverlight, you can use the `Dispatcher` to marshal calls from a worker thread back to the main UI thread. The `Dispatcher` class provides a way to execute code on the UI thread, similar to `this.BeginInvoke()` in WinForms. Here's how you can use the `Dispatcher` in a Silverlight `UserControl`: 1. Get the `Dispa...
36,839
[ { "from": "human", "value": "In a WinForms UserControl, I would pass data to the main GUI thread by calling this.BeginInvoke() from any of the control's methods. What's the equivalent in a Silverlight UserControl?\nIn other words, how can I take data provided by an arbitrary worker thread and ensure that i...
Is it possible to have a file belong to multiple subpackages? For example: /** * Name * * Desc * * @package Core * @subpackage Sub1 * @subpackage Sub2 */ Thanks!
In PHP, a file cannot belong to multiple subpackages in a straightforward manner using the `@package` and `@subpackage` annotations in docblocks. The standard convention is that a single file typically represents one package and one subpackage, defined like this: ```php /** * Name * * Desc * * @package Core *...
39,949
[ { "from": "human", "value": "Is it possible to have a file belong to multiple subpackages? For example:\n/**\n * Name\n *\n * Desc\n *\n * @package Core\n * @subpackage Sub1\n * @subpackage Sub2\n */\n\nThanks!\n" }, { "from": "gpt", "value": "In PHP, a file cannot belong to multiple subpac...
I'm using PayPal Website Payments Standard. Whenever the user lands on PayPal with the variables I sent, it shows a PayPal Login form and at the bottom it shows "Don't have a PayPal account? Use your credit card or bank account (where available)." I want it to default to always ask for credit card and maybe say "Have ...
Unfortunately, with PayPal Website Payments Standard, you have limited control over the payment flow and the default display options on the PayPal checkout page. PayPal manages the interface and the user experience, and as such, the specific behavior you're looking for — defaulting to credit card payments while present...
36,026
[ { "from": "human", "value": "I'm using PayPal Website Payments Standard. Whenever the user lands on PayPal with the variables I sent, it shows a PayPal Login form and at the bottom it shows \"Don't have a PayPal account? Use your credit card or bank account (where available).\"\nI want it to default to alw...
SpousesTable SpouseID SpousePreviousAddressesTable PreviousAddressID, SpouseID, FromDate, AddressTypeID What I have now is updating the most recent for the whole table and assigning the most recent regardless of SpouseID the AddressTypeID = 1 I want to assign the most recent SpousePreviousAddress.AddressTypeID = 1 for ...
Your updated solution using a Common Table Expression (CTE) with `ROW_NUMBER()` is indeed a good approach for updating the most recent address for each unique `SpouseID`. Below is a clean version of your working solution, which accomplishes the task effectively: ```sql WITH result AS ( SELECT ROW_NUMBER()...
38,388
[ { "from": "human", "value": "SpousesTable\nSpouseID\nSpousePreviousAddressesTable\nPreviousAddressID, SpouseID, FromDate, AddressTypeID\nWhat I have now is updating the most recent for the whole table and assigning the most recent regardless of SpouseID the AddressTypeID = 1\nI want to assign the most recen...
I need a type which can contain a position of an object in a 3D environment - my house. I need to know the floor it is on, and the x and Y coordinates on that floor. The System.Windows.Point(int, int) only represent a two-dimensional space, but does .NET have a type for three-dimensional space? I realize that I could d...
The .NET Framework does not have a built-in type specifically for representing points in 3D space that directly maps to your description of a `3DPoint<int, int, int>`. However, it does have some structures that can help you achieve this, and you can also create a simple custom structure. ### Option 1: Use a Custom Str...
37,623
[ { "from": "human", "value": "I need a type which can contain a position of an object in a 3D environment - my house.\nI need to know the floor it is on, and the x and Y coordinates on that floor.\nThe System.Windows.Point(int, int) only represent a two-dimensional space, but does .NET have a type for three-...
I have built a WCF load balancer/router to conditionally route any one way service to multiple endpoints all using MSMQ bindings. I have also created a host that uses all the endpoints from the router to accept the service calls. All the endpoint specifies the same contract. I need each queue (endpoint) to be proce...
To achieve concurrent processing of multiple endpoints while ensuring that each service call for a specific endpoint is processed sequentially in a WCF service using MSMQ bindings, you need to follow these principles: 1. **Separate Instance Context per Endpoint**: You want a separate instance of the service for each e...
37,284
[ { "from": "human", "value": "I have built a WCF load balancer/router to conditionally route any one way service to multiple endpoints all using MSMQ bindings. I have also created a host that uses all the endpoints from the router to accept the service calls. All the endpoint specifies the same contract. ...
How do I do the above? There is mktime function but that treats the input as expressed in local time but how do i perform the conversion if my input tm variable happens to be in UTC.
To convert a `struct tm` variable representing time in UTC to a `time_t` value in C, you can use the `timegm` function instead of `mktime`. The `mktime` function treats the `tm` structure as representing local time, which is not what you want if your input is in UTC. Here's how you can use `timegm` for this purpose: ...
34,600
[ { "from": "human", "value": "How do I do the above? There is mktime function but that treats the input as expressed in local time but how do i perform the conversion if my input tm variable happens to be in UTC.\n" }, { "from": "gpt", "value": "To convert a `struct tm` variable representing time...
Some of my MS SQL stored procedures produce messages using the 'print' command. In my Delphi 2007 application, which connects to MS SQL using TADOConnection, how can I view the output of those 'print' commands? Key requirements: 1) I can't run the query more than once; it might be updating things. 2) I need to see the...
In Delphi 2007, when you're using `TADOConnection` to connect to MS SQL Server, capturing the output from the `PRINT` statements in stored procedures can be somewhat tricky since ADO doesn't directly expose this output as part of the dataset. However, you can achieve this by utilizing an `OnInfoMessage` event handler ...
30,658
[ { "from": "human", "value": "Some of my MS SQL stored procedures produce messages using the 'print' command. In my Delphi 2007 application, which connects to MS SQL using TADOConnection, how can I view the output of those 'print' commands?\nKey requirements:\n1) I can't run the query more than once; it mig...
We have a page that lets users upload a file using the asp:FileUpload control. When the user tries to submit the form the get a client side javascript error "htmlFile: access denied". This only happens in IE 7 (not sure about 6) and FF is OK. Apparently this is due to a security setting that was introduced to IE with ...
The "htmlFile: access denied" error in Internet Explorer (especially older versions like IE 7) is indeed related to security settings introduced with Windows XP SP2. These changes aimed to enhance security but also led to various issues with file uploads. Here are several strategies you can consider to work around thi...
34,522
[ { "from": "human", "value": "We have a page that lets users upload a file using the asp:FileUpload control. When the user tries to submit the form the get a client side javascript error \"htmlFile: access denied\".\nThis only happens in IE 7 (not sure about 6) and FF is OK.\nApparently this is due to a sec...
Any suggestions on figuring out this crash? The below code intermittently crashes between logging <part>14 and logging <part>15. Plaintext is a path string (in this case it is "C:\Documents and Settings\Brian\Desktop\Joy\", despite a clear lack of such joy. I have a sinking feeling this is a symptom of some sort of e...
Intermittent crashes like the one you're experiencing can indeed be frustrating and challenging to diagnose, especially when it appears to be a Heisenbug (where the act of debugging changes the behavior of the program). Here are several approaches you can take to troubleshoot and potentially resolve the issue: 1. **Er...
39,074
[ { "from": "human", "value": "Any suggestions on figuring out this crash?\nThe below code intermittently crashes between logging <part>14 and logging <part>15. Plaintext is a path string (in this case it is \"C:\\Documents and Settings\\Brian\\Desktop\\Joy\\\", despite a clear lack of such joy. I have a si...
Is there a way to use Profiler to determine whether a table is being accessed by queries? I saw an event named Object:Opened (Indicates when an object has been accessed, such as for SELECT, INSERT, or DELETE statements) and Object:Closed, but these do not seem to work. In particular, I created a simple trace with both ...
Using SQL Server Profiler to track access to a specific table can be challenging, especially if the expected events do not show up as intended. Here’s a step-by-step approach to help you determine whether a table is being accessed by queries: ### 1. **Event Selection:** Make sure you are using the right events in your...
37,468
[ { "from": "human", "value": "Is there a way to use Profiler to determine whether a table is being accessed by queries?\nI saw an event named Object:Opened (Indicates when an object has been accessed, such as for SELECT, INSERT, or DELETE statements) and Object:Closed, but these do not seem to work.\nIn part...
I need to query a database which is designed so what a NVARCHAR column keeps age of clients. I want group clients using GROUP BY age / 10 but when engine encounters some string like '20.10.1984' (someone entered his bithday instead of age), my query fails. The percent of "bad" ages is very small, so I want just to sk...
Yes, you can handle this situation by using a `CASE` statement to filter out the records that cannot be converted to an integer. Specifically, you can use the `TRY_CAST` or `TRY_CONVERT` function (depending on your database system) to attempt to convert the NVARCHAR values to integers. If the conversion fails, these fu...
39,833
[ { "from": "human", "value": "I need to query a database which is designed so what a NVARCHAR column keeps age of clients. I want group clients using\nGROUP BY age / 10 \n\nbut when engine encounters some string like '20.10.1984' (someone entered his bithday instead of age), my query fails.\nThe percent of \...
Ok I have a web application in 2005,. net 2.0 , I converted it to 2008 .net 3.5. when i attempt to run it in VS 2008 either debug or release I get the above mentioned error: Unable to start program http:\localhost\MyWebApp no other message just this. I can access my program directly thru iis and it runs. It runs o...
It sounds like you’re experiencing issues with running a web application in Visual Studio 2008 while it works correctly when accessed directly through IIS. Here are some steps and troubleshooting tips that you can try to resolve the problem: ### 1. Check Project Settings: - Ensure your web application project is set t...
36,454
[ { "from": "human", "value": "Ok I have a web application in 2005,. net 2.0 , I converted it to 2008 .net 3.5.\nwhen i attempt to run it in VS 2008 either debug or release I get the above mentioned error:\n\nUnable to start program\n http:\\localhost\\MyWebApp\n\nno other message just this. I can access my...
I have a desktop (winforms) application that uses a Firebird database as a data store (in embedded mode) and I use NHibernate for ORM. One of the functions we need to support is to be able to import / export groups of data to/from an external file. Currently, this external file is also a database with the same schema...
Handling the import/export of entities between two databases while preserving their identifiers can be a bit challenging, especially when using an ORM like NHibernate. You can implement this by managing the ID assignments more flexibly. ### Key Strategies: 1. **Flexible ID Generation**: - Use a combination of a ...
30,032
[ { "from": "human", "value": "I have a desktop (winforms) application that uses a Firebird database as a data store (in embedded mode) and I use NHibernate for ORM. One of the functions we need to support is to be able to import / export groups of data to/from an external file. Currently, this external fil...
I have two forms, form A and form B. These forms must differ in appearance, but they share a lot of logic. The problem is that this logic is tied to the appearance (validation on button click, events being fired, etc.). For example, I have a name field, and when the save button is pressed, I need to fire an event wh...
Certainly! It sounds like you're dealing with a situation where you have two different user interfaces (UI) that require shared logic but have different layouts and events. Here are several approaches you can consider to reduce code duplication and keep your code maintainable: ### 1. **Use a Shared Logic Class** Creat...
37,430
[ { "from": "human", "value": "I have two forms, form A and form B. These forms must differ in appearance, but they share a lot of logic. The problem is that this logic is tied to the appearance (validation on button click, events being fired, etc.). For example, I have a name field, and when the save butt...
I am opening a XML file using .NET XmlReader and saving the file in another filename and it seems that the DOCTYPE declaration changes between the two files. While the newly saved file is still valid XML, I was wondering why it insisted on changing original tags. Dim oXmlSettings As Xml.XmlReaderSettings = New Xml.XmlR...
The behavior you're observing—where the `DOCTYPE` declaration changes after loading and saving the XML using `XmlDocument`—is a common quirk of how the .NET XML handling mechanisms work, particularly with `XmlDocument`. ### Explanation: 1. **Internal Representation**: When you load an XML document into an `XmlDocumen...
35,397
[ { "from": "human", "value": "I am opening a XML file using .NET XmlReader and saving the file in another filename and it seems that the DOCTYPE declaration changes between the two files. While the newly saved file is still valid XML, I was wondering why it insisted on changing original tags.\nDim oXmlSettin...
I have a custom content type with custom fields. I'm trying to create a custom document information panel using infopath. Whenever I try to do that infopath gives me this error propertySchema0.xsd#/schema/element[1][@name = 'properties']/complexType[1]/sequence[1]/element[1][@name = 'documentManagement']/complexType[1]...
The error message you are encountering while creating a custom document information panel (DIP) in InfoPath indicates that there is a problem with an undeclared namespace in the XSD schema used to define the properties of your custom content type. Specifically, the error states "Reference to undeclared namespace prefix...
38,180
[ { "from": "human", "value": "I have a custom content type with custom fields. I'm trying to create a custom document information panel using infopath. Whenever I try to do that infopath gives me this error\npropertySchema0.xsd#/schema/element[1][@name = 'properties']/complexType[1]/sequence[1]/element[1][@n...
I'm using the ssOption control (Sheridan 3d Option control) in VB6. In Windows 98 the text area background color is the same color as the background color around the Option Circle, and that color is the default form color. So the Option button appears to be transparent. There is no Background color property and on Wi...
The behavior you are experiencing with the Sheridan 3D Option control (ssOption) appearing differently on Windows 98 compared to Windows XP is primarily due to differences in how these operating systems handle visual styles and the rendering of controls. ### Reasons for the Difference: 1. **Visual Styles**: Windows XP...
38,113
[ { "from": "human", "value": "I'm using the ssOption control (Sheridan 3d Option control) in VB6.\nIn Windows 98 the text area background color is the same color as the background color around the Option Circle, and that color is the default form color. So the Option button appears to be transparent. \nTher...
What's the query syntax to determine the exact version number of the MySQL server software?
To determine the exact version number of the MySQL server software, you can use the following SQL query: ```sql SELECT VERSION(); ``` Alternatively, you can also use: ```sql SHOW VARIABLES LIKE 'version'; ``` Both queries will return the version of the MySQL server that you are currently connected to. You can execu...
41,839
[ { "from": "human", "value": "What's the query syntax to determine the exact version number of the MySQL server software?\n" }, { "from": "gpt", "value": "To determine the exact version number of the MySQL server software, you can use the following SQL query:\n\n```sql\nSELECT VERSION();\n```\n\n...
I am working on setting up a Drupal based website and wanted to replace the site title in the header with an image file. I came across this article: "Revised Image Replacement" summarizing several techniques for doing just that. I was wondering what the current best practice is, in terms of SEO and browser compatibili...
Replacing the site title in a Drupal-based website with an image can be done in a way that maintains both SEO and browser compatibility. Here are some best practices to consider: ### 1. Use an `<img>` Tag with Alt Text When you replace the site title with an image, use an `<img>` tag to ensure it is correctly displaye...
37,842
[ { "from": "human", "value": "I am working on setting up a Drupal based website and wanted to replace the site title in the header with an image file. I came across this article: \"Revised Image Replacement\" summarizing several techniques for doing just that.\nI was wondering what the current best practice...
What is the best free way to get your maintenance plan-generated backups compressed? I know there are non-free tools that will compress the backups, but I'm not interested in them. Options: Have a T-SQL task after the backups that will run a script through xp_cmdshell that compresses every non compressed backup. ??? ...
If you are looking for a free way to compress your SQL Server backups generated by a maintenance plan without using third-party tools, using T-SQL with `xp_cmdshell` is indeed a viable option. Here’s a basic outline of how to achieve that: 1. **Enable `xp_cmdshell`:** First, ensure that `xp_cmdshell` is enabled on you...
38,027
[ { "from": "human", "value": "What is the best free way to get your maintenance plan-generated backups compressed?\nI know there are non-free tools that will compress the backups, but I'm not interested in them.\nOptions:\n\nHave a T-SQL task after the backups that will run a script through xp_cmdshell that ...
For my application there are several entity classes, User, Customer, Post, and so on I'm about to design the database and I want to store the date when the entities were created and updated. This is where it gets tricky. Sure one option is to add created_timestamp and update_timestamp columns for each of the entity tab...
The decision on how to handle created and updated timestamps in your database design involves trade-offs between redundancy, complexity, and functionality. Let's analyze both of your proposed options: ### Option 1: Adding Timestamps to Each Entity Table **Pros:** 1. **Simplicity:** Adding `created_timestamp` and `upd...
35,488
[ { "from": "human", "value": "For my application there are several entity classes, User, Customer, Post, and so on\nI'm about to design the database and I want to store the date when the entities were created and updated. This is where it gets tricky. Sure one option is to add created_timestamp and update_ti...
There are a million and one CMS' that do a good job but the interface and usability of it let the entire system down (like a lot of websites out there). Whenever I need to develop a bespoke system for content management I always try and draw on my past experiences and those of my clients to work out what works well and...
It's great to hear that you’re focusing on creating a user-friendly interface for your bespoke content management systems! A well-designed CMS can significantly enhance productivity and user satisfaction. Based on user feedback and best practices, here are some CMS interface features and elements that have been found t...
35,947
[ { "from": "human", "value": "There are a million and one CMS' that do a good job but the interface and usability of it let the entire system down (like a lot of websites out there).\nWhenever I need to develop a bespoke system for content management I always try and draw on my past experiences and those of ...
It's been awhile since my algorithms class in school, so forgive me if my terminology is not exact. I have a series of actions that, when run, produces some desired state (it's basically a set of steps to reproduce a bug, but that doesn't matter for the sake of this question). My goal is to find the shortest series o...
Your problem is reminiscent of concepts in program minimization and test case reduction, where the goal is to find a smaller subset of operations or actions that still achieves a certain outcome. Since you're specifically looking for approximate solutions and also want to maintain the order of operations, here are some...
36,184
[ { "from": "human", "value": "It's been awhile since my algorithms class in school, so forgive me if my terminology is not exact. \nI have a series of actions that, when run, produces some desired state (it's basically a set of steps to reproduce a bug, but that doesn't matter for the sake of this question)....
I've got a very small standalone vb.net app that gets run automatically. Every now and then it hits an error condition that I want to log and then keep processing. But, this is far too minor a thing to store in the system's main log - I really just want to append a line to a text file. What's the least stress way to ...
Appending a line of text to a file in VB.NET is straightforward. You can use the `System.IO` namespace to handle file operations. Here's a simple way to do it, which will automatically create the file if it doesn't exist. You can use the `StreamWriter` class to append text to the file. Here's a basic example of how to...
38,868
[ { "from": "human", "value": "I've got a very small standalone vb.net app that gets run automatically. Every now and then it hits an error condition that I want to log and then keep processing. But, this is far too minor a thing to store in the system's main log - I really just want to append a line to a t...
I'm trying to get a handle on if there's a good time to use standard linq keywords or linq extension methods with lambda expressions. They seems to do the same thing, just are written differently. Is it purely a matter of style? var query = from p in Products where p.Name.Contains("foo") orderby c.Name se...
You've touched on an interesting aspect of LINQ in C#. Both the query syntax (standard LINQ keywords) and method syntax (LINQ extension methods with lambda expressions) achieve the same result, but they have different use cases and readability implications. Here are some considerations to help you decide when to use on...
36,835
[ { "from": "human", "value": "I'm trying to get a handle on if there's a good time to use standard linq keywords or linq extension methods with lambda expressions. They seems to do the same thing, just are written differently. Is it purely a matter of style?\nvar query = from p in Products\n where p.Nam...
Is there any way to do it? I only have client access and no access to the server. Is there a command I've missed or some software that I can install locally that can connect and find a file by filename?
If you only have client access and no server access, your options for locating a file by filename will depend on the specific context and the type of client you are using. Here are a few general strategies you can consider: 1. **Use Client-Side Commands**: If you're using a command line interface (CLI) on your local m...
39,304
[ { "from": "human", "value": "Is there any way to do it? I only have client access and no access to the server. Is there a command I've missed or some software that I can install locally that can connect and find a file by filename?\n" }, { "from": "gpt", "value": "If you only have client access ...
I am currently using SQL Server Management Studio (Ver 9.00.3042.00) and click the "New Query" and wrote the following code: Select colA, colB, colC colD From table1 When I click the parse (checkbox) button to validate the SQL statement, it says "Command(s) completed successfully". Isn't the pars...
The behavior you're experiencing in SQL Server Management Studio (SSMS) is unusual, especially since you have a syntax error in your SQL statement. In your `SELECT` statement, you are missing a comma between `colC` and `colD`: ```sql Select colA, colB, colC -- Missing comma here colD From table1 `...
39,609
[ { "from": "human", "value": "I am currently using SQL Server Management Studio (Ver 9.00.3042.00) and click the \"New Query\" and wrote the following code:\nSelect \n colA,\n colB,\n colC\n colD\nFrom\n table1\n\nWhen I click the parse (checkbox) button to validate the SQL statement, it says ...
I need to provide a window on an ASP.NET MVC web page where registered users of the site can group chat live. Can anyone recommend a component or control that can provide real-time group chat that I can embed on an ASP.NET MVC page? I am willing to use free or commercial components, as well as a web service. I looked i...
To implement a real-time group chat feature in your ASP.NET MVC web application, there are several options you can explore. Below are some recommendations for libraries and frameworks that can help you achieve this: ### 1. **SignalR** SignalR is a powerful library for ASP.NET that makes it easy to add real-time web fu...
36,381
[ { "from": "human", "value": "I need to provide a window on an ASP.NET MVC web page where registered users of the site can group chat live.\nCan anyone recommend a component or control that can provide real-time group chat that I can embed on an ASP.NET MVC page?\nI am willing to use free or commercial compo...
Is there a regular expression which checks if a string contains only upper and lowercase letters, numbers, and underscores?
Yes, you can use the following regular expression to check if a string contains only upper and lowercase letters, numbers, and underscores: ```regex ^[A-Za-z0-9_]+$ ``` ### Explanation: - `^` asserts the position at the start of the string. - `[A-Za-z0-9_]` defines a character class that matches: - `A-Z`: Uppercase...
40,620
[ { "from": "human", "value": "Is there a regular expression which checks if a string contains only upper and lowercase letters, numbers, and underscores?\n" }, { "from": "gpt", "value": "Yes, you can use the following regular expression to check if a string contains only upper and lowercase lette...
We are starting with Sharepoint development with a team of three and are currently setting up our development environments. We would like to avoid installing a Server 2008 for each developer, thus a single terminal server has been setup, using Remote Windows to start a VS2008 instance on each developer's machine. Now w...
You are correct that the Global Assembly Cache (GAC) on a server is shared across all applications and cannot be isolated per user or per developer. However, there are a few approaches you can consider for creating separate testing environments for your SharePoint development without needing multiple installations of S...
38,368
[ { "from": "human", "value": "We are starting with Sharepoint development with a team of three and are currently setting up our development environments. We would like to avoid installing a Server 2008 for each developer, thus a single terminal server has been setup, using Remote Windows to start a VS2008 in...
I am trying to establish a basic .NET Remoting communication between 2x 64bit windows machines. If Machine1 is acting as client and Machine2 as server, then everything works fine. The other way around the following exception occurs: System.Net.Sockets.SocketException: No connection could be made because the target mach...
The error message you're encountering—`No connection could be made because the target machine actively refused it`—typically indicates that either the server is not running or that there is a firewall or network issue preventing the client from connecting to the server. Here are some potential issues and troubleshooti...
35,062
[ { "from": "human", "value": "I am trying to establish a basic .NET Remoting communication between 2x 64bit windows machines. If Machine1 is acting as client and Machine2 as server, then everything works fine. The other way around the following exception occurs:\nSystem.Net.Sockets.SocketException: No connec...
Is there a 4 byte unsigned int data type in MS SQL Server? Am I forced to use a bigint?
In Microsoft SQL Server, there is no specific 4-byte unsigned integer data type. SQL Server provides the following integer data types: - **TINYINT**: 1 byte, ranging from 0 to 255 (unsigned) - **SMALLINT**: 2 bytes, ranging from -32,768 to 32,767 (signed) - **INT**: 4 bytes, ranging from -2,147,483,648 to 2,147,483,64...
38,233
[ { "from": "human", "value": "Is there a 4 byte unsigned int data type in MS SQL Server?\nAm I forced to use a bigint?\n" }, { "from": "gpt", "value": "In Microsoft SQL Server, there is no specific 4-byte unsigned integer data type. SQL Server provides the following integer data types:\n\n- **TIN...
I'm pretty sure that I'm not understanding something about JPA (I'm using OpenJPA) and it's causing this problem. I want to make a copy of a Job entity. @Entity @Table(name="Job") public class Job implements Serializable { @Id @GeneratedValue(strategy=GenerationType.IDENTITY) private int id; @ManyToOn...
Based on the information provided, it looks like you're trying to copy a `Job` entity, including its relationships, using OpenJPA. You are running into issues when you attempt to create a second copy of the `Job` entity, specifically an `UnsupportedOperationException` which is indicating problems with handling the pers...
37,659
[ { "from": "human", "value": "I'm pretty sure that I'm not understanding something about JPA (I'm using OpenJPA) and it's causing this problem. I want to make a copy of a Job entity.\n@Entity\n@Table(name=\"Job\")\npublic class Job implements Serializable {\n @Id\n @GeneratedValue(strategy=GenerationT...
I want to write (or find) a guide to effective bug reporting in a style similar to ESR's How To Ask Questions The Smart Way What are your top tips for effective bug reports?
Creating effective bug reports is essential for efficient communication between users and developers, ultimately leading to faster bug resolution and improved software quality. Here’s a structured guide inspired by ESR’s principles, along with some top tips for effective bug reporting: ### Top Tips for Effective Bug R...
27,589
[ { "from": "human", "value": "I want to write (or find) a guide to effective bug reporting in a style similar to ESR's How To Ask Questions The Smart Way\nWhat are your top tips for effective bug reports?\n" }, { "from": "gpt", "value": "Creating effective bug reports is essential for efficient c...
I have some unit tests that started failing today after a switch in daylight savings time. We're using the iCalendar python module to load and save ics files. The following script is a simplified version of our test. The script works fine in 'summer' and fails in 'winter', as of this morning. The failure can be repro...
It seems that your issue stems from how time zone handling is implemented within the iCalendar module, particularly with regards to Daylight Saving Time (DST). Let's break down your questions. ### 1. Why would the current time (and which part of DST I'm in) affect the loading/saving/parsing of timestamps? The iCalend...
36,555
[ { "from": "human", "value": "I have some unit tests that started failing today after a switch in daylight savings time.\nWe're using the iCalendar python module to load and save ics files.\nThe following script is a simplified version of our test. The script works fine in 'summer' and fails in 'winter', as...
I have been using git to keep two copies of my project in sync, one is my local box, the other the test server. This is an issue which occurs when I log onto our remote development server using ssh; git clone me@me.mydevbox.com:/home/chris/myproject Initialized empty Git repository in /tmp/myproject/.git/ Password: bas...
The issue you're encountering is related to how the `git` commands are invoked and the `$PATH` variable being set for SSH sessions. When you SSH into your remote server and run the `git clone` command, the environment variables (including `$PATH`) may not be set up the same way as they are in your regular shell session...
36,119
[ { "from": "human", "value": "I have been using git to keep two copies of my project in sync, one is my local box, the other the test server.\nThis is an issue which occurs when I log onto our remote development server using ssh;\ngit clone me@me.mydevbox.com:/home/chris/myproject\nInitialized empty Git repo...
If I put a DateTime value into an Excel cell using Range.set_value through .Net COM Interop, and then retrieve the value of that same cell using Range.get_value, the Millisecond part of the value is not returned, though everything else is correct. Is this a bug? What is the workaround? I'm guessing that using the Value...
The behavior you're encountering is not a bug but rather a known limitation in how Excel handles DateTime values when using the .NET COM Interop. Specifically, Excel's `Range.Value` property is designed to work with variant data types, and it does not always preserve milliseconds when retrieving DateTime values. ### W...
39,814
[ { "from": "human", "value": "If I put a DateTime value into an Excel cell using Range.set_value through .Net COM Interop, and then retrieve the value of that same cell using Range.get_value, the Millisecond part of the value is not returned, though everything else is correct.\nIs this a bug?\nWhat is the wo...
My shared host did not provide git, so I built and installed it into ~/bin. When I ran it, I got the following error on most commands, although they were successful. stdin: is not a tty I can solve that problem by adding: default_run_options[:pty] = true to my deploy.rb, but then I get this error, which blocks ...
The issue you're encountering seems to be related to the environment variables and the way that Capistrano is executed on your remote server. When you run commands via SSH (especially in a non-interactive shell), it may not source the usual configuration files like `.bashrc` or `.bash_profile`, which is why your `PATH`...
36,849
[ { "from": "human", "value": "My shared host did not provide git, so I built and installed it into ~/bin.\nWhen I ran it, I got the following error on most commands, although they were successful. \n\nstdin: is not a tty\n\nI can solve that problem by adding: \n\ndefault_run_options[:pty] = true\n\nto my d...
I'm looking for a way to implement a referral system for my web site. Initially I went with http://mysite.com/?affid=0001 and used the affid in the query string affid value to record referrals. The problem with this is that from some common Google search phrases the link with the affid appears before the standard link ...
Implementing a referral system that effectively tracks affiliates without harming your SEO rankings requires some careful planning. Here are several strategies you can consider to address the issues you've encountered: ### 1. Use URL Shorteners Instead of using query parameters like `?affid=0001`, you can create short...
36,085
[ { "from": "human", "value": "I'm looking for a way to implement a referral system for my web site.\nInitially I went with http://mysite.com/?affid=0001 and used the affid in the query string affid value to record referrals. The problem with this is that from some common Google search phrases the link with t...
I added a text file to a testapp's solution and I want to read said file. I don't remember how to do this, I know it has to do with reflections but I need a push in the right direction.
To read a text file that you've added to a test application's solution in .NET, you typically do not need to use reflection. Reflection is generally used for inspecting types and their members at runtime, while reading files can be done directly using classes provided by the .NET framework. Here's a step-by-step guide...
38,951
[ { "from": "human", "value": "I added a text file to a testapp's solution and I want to read said file. I don't remember how to do this, I know it has to do with reflections but I need a push in the right direction.\n" }, { "from": "gpt", "value": "To read a text file that you've added to a test...
I'm calling a web service that returns an array of objects in JSON. I want to take those objects and populate a div with HTML. Let's say each object contains a url and a name. If I wanted to generate the following HTML for each object: <div><img src="the url" />the name</div> Is there a best practice for this? I can...
When populating a div with HTML based on JSON data returned from a web service, there are several approaches you can take. Each of these methods has its pros and cons, but generally, the preferred approaches are: ### 1. **Create Elements (Using JavaScript)** This is often considered a best practice because it leverag...
36,655
[ { "from": "human", "value": "I'm calling a web service that returns an array of objects in JSON. I want to take those objects and populate a div with HTML. Let's say each object contains a url and a name.\nIf I wanted to generate the following HTML for each object:\n<div><img src=\"the url\" />the name</d...
How would I go about creating a Google map that allows the user to zoom beyond the default zoom levels for the map? Would I have to create a new map type that has a greater maximum zoom? Are there any tutorials out there that show how to do this?
To create a Google Map that allows users to zoom beyond the default zoom levels, you would typically have to use the Google Maps JavaScript API. However, it is important to note that Google Maps has predefined zoom levels that you cannot override. The maximum zoom level for standard Google Maps varies by the specific a...
33,623
[ { "from": "human", "value": "How would I go about creating a Google map that allows the user to zoom beyond the default zoom levels for the map? Would I have to create a new map type that has a greater maximum zoom? Are there any tutorials out there that show how to do this?\n" }, { "from": "gpt",...
Without going into why I need OLE.. I need to embed a managed C++ custom control into MS Word 2007 (2003 also would be nice). So the question is How do I make this managed (.net 3.5) control OLE compliant ? It seems that I need to do something akin to implementing an interface. But an up-to-date tutorial is something t...
To embed a managed C++ custom control as an OLE (Object Linking and Embedding) control in MS Word 2007 (and also in 2003), you need to ensure your control implements the necessary OLE interfaces. Below, I've outlined the general steps you should follow: ### 1. Create a Managed C++ Control 1. **Create a C++/CLI Projec...
31,891
[ { "from": "human", "value": "Without going into why I need OLE.. I need to embed a managed C++ custom control into MS Word 2007 (2003 also would be nice).\nSo the question is How do I make this managed (.net 3.5) control OLE compliant ?\nIt seems that I need to do something akin to implementing an interface...
I have a report that renders data returned from a stored procedure. Using profiler I can catch the call to the stored procedure from the reporting services. The report fails stating the report timed out yet I can execute the stored procedure from SSMS and it returns the data back in five to six seconds. Note, in the e...
The issues you're experiencing with SQL Server Reporting Services (SSRS) timing out when executing a stored procedure can be attributed to several potential factors. Here’s a breakdown of the possibilities and some recommendations to troubleshoot and resolve the issues: ### 1. **Execution Plan Changes** When you creat...
33,463
[ { "from": "human", "value": "I have a report that renders data returned from a stored procedure. Using profiler I can catch the call to the stored procedure from the reporting services.\nThe report fails stating the report timed out yet I can execute the stored procedure from SSMS and it returns the data b...
I'm trying to build a console application without using the CRT, or any other imports than kernel32.lib in any case. I get my code to compile, but can't wrap the linker around a few problems: unresolved external symbol @__security_check_cookie@4 unresolved external symbol "int __cdecl FreeLibrary(void *)" (?FreeLibrary...
When building a Windows console application without using the C Runtime Library (CRT), you need to manage the program's entry point manually and ensure you're not inadvertently linking to CRT functions that your application does not need. Here's how you can resolve the issues you've encountered: ### 1. Set the Entry ...
36,416
[ { "from": "human", "value": "I'm trying to build a console application without using the CRT, or any other imports than kernel32.lib in any case. I get my code to compile, but can't wrap the linker around a few problems:\nunresolved external symbol @__security_check_cookie@4\nunresolved external symbol \"in...
I'm getting something pretty strange going on when trying to read some data using the MySql .net connector. Here's the code: IDataReader reader = null; using (MySqlConnection connection = new MySqlConnection(this.ConnectionString)) { String getSearch = "select * from organization"; MySqlCommand cmd = new MySql...
The issue you're encountering is likely due to how the `IDataReader` works in ADO.NET. The `IDataReader` is a forward-only stream, meaning that once you read through the results, the data cannot be revisited unless you reopen the reader or execute the command again. ### Explanation: 1. When you first expand the `reade...
37,814
[ { "from": "human", "value": "I'm getting something pretty strange going on when trying to read some data using the MySql .net connector. Here's the code:\nIDataReader reader = null;\n\nusing (MySqlConnection connection = new MySqlConnection(this.ConnectionString))\n{\n String getSearch = \"select * from ...
Just could not get this one and googling did not help much either.. First something that I know: Given a string and a regex, how to replace all the occurrences of strings that matches this regular expression by a replacement string ? Use the replaceAll() method in the String class. Now something that I am unable to do...
The issue you're encountering arises from the fact that when you replace unwanted characters with `+`, multiple consecutive unwanted characters will lead to multiple `+` characters being appended to your string. This is why you get `Worksheet++++blah` instead of `Worksheet+blah`. To achieve your desired output, you ca...
37,765
[ { "from": "human", "value": "Just could not get this one and googling did not help much either.. \nFirst something that I know: Given a string and a regex, how to replace all the occurrences of strings that matches this regular expression by a replacement string ? Use the replaceAll() method in the String c...
This is going to sound like a silly question, but I'm still learning C, so please bear with me. :) I'm working on chapter 6 of K&R (structs), and thus far through the book have seen great success. I decided to work with structs pretty heavily, and therefore did a lot of work early in the chapter with the point and rect...
No problem at all! These are great questions, and they highlight some important concepts in C regarding pointers and function parameters. Let's break down your questions and provide the answers. ### Question 1: Why does `r = &temp;` not work? The line `r = &temp;` simply changes the local copy of the pointer `r` with...
33,450
[ { "from": "human", "value": "This is going to sound like a silly question, but I'm still learning C, so please bear with me. :)\nI'm working on chapter 6 of K&R (structs), and thus far through the book have seen great success. I decided to work with structs pretty heavily, and therefore did a lot of work ea...
I need a JComponent thad enables editing xml documents so I can embed it in my application. It doesnt need to bee fancy. Plain text editing and highlighting would bee enough. Thank in advance
To create a simple `JComponent` for editing XML documents in Java, you can use a `JTextArea` for plain text editing, combined with a `StyledDocument` to provide basic syntax highlighting. Below is a basic example of how you could implement this. ### Example Code Here’s a simple implementation of a `JComponent` that a...
36,206
[ { "from": "human", "value": "I need a JComponent thad enables editing xml documents so I can embed it in my application.\nIt doesnt need to bee fancy.\nPlain text editing and highlighting would bee enough.\nThank in advance\n" }, { "from": "gpt", "value": "To create a simple `JComponent` for edi...
This is to all the C# gurus. I have been banging my head on this for some time already, tried all kinds of advice on the net with no avail. The action is happening in Windows Mobile 5.0. I have a DLL named MyDll.dll. In the MyDll.h I have: extern "C" __declspec(dllexport) int MyDllFunction(int one, int two); The defin...
It sounds like you're facing issues with PInvoke in a C# application running on Windows Mobile 5.0. Here are some troubleshooting steps and considerations that might help you resolve the "Can't find PInvoke DLL" issue: 1. **DLL Location**: Ensure that `MyDll.dll` is indeed in the same directory as your executable. In ...
38,120
[ { "from": "human", "value": "This is to all the C# gurus. I have been banging my head on this for some time already, tried all kinds of advice on the net with no avail. The action is happening in Windows Mobile 5.0.\nI have a DLL named MyDll.dll. In the MyDll.h I have:\nextern \"C\" __declspec(dllexport) in...
I have a Flash application that is hosted from within a Drupal page. Some parts of the Flash application should be available to all users, but some should only be available to a logged-in user. (The specific role doesn't matter, just that they are any authorized user of the site). From within Flash, I can detect whet...
To properly handle user authentication and access control for your Flash application hosted within a Drupal 6 page, you can follow a more robust method than screen-scraping. Here are some steps and recommendations: ### 1. Use AJAX for Authentication Checks Instead of screen-scraping, you can create a custom endpoint i...
35,465
[ { "from": "human", "value": "I have a Flash application that is hosted from within a Drupal page. Some parts of the Flash application should be available to all users, but some should only be available to a logged-in user. (The specific role doesn't matter, just that they are any authorized user of the si...
Our CD autostarts, but occasionally customers have that disabled (by a CD burner, etc.). As a backup, we include instructions on the back of our CD (below). I'm trying to find better instructions, for Windows XP and above. (Ideally for Windows 98 and above) CURRENT If it does not auto-start: Repeat instructions (above...
Certainly! Here’s a revised set of instructions that should be clearer and more user-friendly for various versions of Windows, from Windows 98 and onward. This version aims to provide alternative methods to locate the CD drive, helping users who might not be familiar with the interface or who might have disabled auto-s...
33,462
[ { "from": "human", "value": "Our CD autostarts, but occasionally customers have that disabled (by a CD burner, etc.).\nAs a backup, we include instructions on the back of our CD (below). I'm trying to find better instructions, for Windows XP and above. (Ideally for Windows 98 and above)\nCURRENT\nIf it doe...
If Outlook is installed on a PC, I need to read mail account settings using .NET but without using the Outlook object model.
If you want to read mail account settings from Outlook installed on a PC without using the Outlook Object Model, you can do this by directly accessing the Windows Registry or by examining the files used by Outlook. Outlook typically stores account settings in the Windows Registry under the following paths: 1. **For ...
35,507
[ { "from": "human", "value": "If Outlook is installed on a PC, I need to read mail account settings using .NET but without using the Outlook object model. \n" }, { "from": "gpt", "value": "If you want to read mail account settings from Outlook installed on a PC without using the Outlook Object Mo...
I have been struggling with versioning software for a while now. I'm not talking about a naming convention, I'm talking about how to actually apply a version in a build system all the way through to a release. I generally use major.minor.maintenance-[release type] i.e. 1.0.2-rc1 The problem is managing the version numb...
Versioning and release management can indeed be a challenging aspect of software development. Here are some strategies and best practices that could help streamline the process: ### Version Management Approaches 1. **Centralized Configuration**: - **Single Source of Truth**: Store the version number in a single, e...
36,293
[ { "from": "human", "value": "I have been struggling with versioning software for a while now.\nI'm not talking about a naming convention, I'm talking about how to actually apply a version in a build system all the way through to a release.\nI generally use major.minor.maintenance-[release type]\ni.e. 1.0.2-...
Although I'm doubtful, I'm curious as to whether it's possible to extract primitive-type template parameters from an existing type, perhaps using RTTI. For example: typedef std::bitset<16> WordSet; Would it be possible to extract the number 16 in the above code without hard-coding it elsewhere? Compiler specific imple...
In C++, extracting the template parameters of a type at compile time can be accomplished using template specialization and type traits rather than relying on Run-Time Type Information (RTTI). RTTI is primarily used for runtime type identification of polymorphic types and doesn't provide a mechanism to introspect templa...
38,547
[ { "from": "human", "value": "Although I'm doubtful, I'm curious as to whether it's possible to extract primitive-type template parameters from an existing type, perhaps using RTTI.\nFor example:\ntypedef std::bitset<16> WordSet;\n\nWould it be possible to extract the number 16 in the above code without hard...
Is there a way in .net to refer to a control generically (so that if the control name changes, etc.) you don't have a problem. I.e., the object level version of the "me" keyword. So, I'd like to use something generic instead of RadioButton1 in the example below. Private Sub RadioButton1_CheckedChanged(ByVal sender As S...
In .NET, particularly in Windows Forms, you can refer to controls generically by utilizing the `sender` parameter in your event handler. The `sender` parameter represents the control that raised the event, and you can cast it to the appropriate control type. This way, you don't have to rely on the specific control name...
38,921
[ { "from": "human", "value": "Is there a way in .net to refer to a control generically (so that if the control name changes, etc.) you don't have a problem.\nI.e., the object level version of the \"me\" keyword.\nSo, I'd like to use something generic instead of RadioButton1 in the example below.\nPrivate Sub...
I am porting some queries from Access to T-SQL and those who wrote the queries used the Avg aggregate function on datetime columns. This is not supported in T-SQL and I can understand why - it doesn't make sense. What is getting averaged? So I was about to start reverse engineering what Access does when it aggregates...
You're correct that in T-SQL, the `AVG()` function is not applicable to `DATETIME` columns in the same way it is to numerical data types. However, in Microsoft Access, using `AVG()` on a `DATETIME` field returns the average of the date/time values, which can be somewhat confusing. When you call `AVG()` on a `DATETIME`...
38,187
[ { "from": "human", "value": "I am porting some queries from Access to T-SQL and those who wrote the queries used the Avg aggregate function on datetime columns. This is not supported in T-SQL and I can understand why - it doesn't make sense. What is getting averaged?\nSo I was about to start reverse engin...
I have a third party JavaScript plug-in but including the file breaks IntelliSense for jQuery amongst other things. The only way I can get IntelliSense back working with jQuery is by commenting out the plug-in. Is there a way I can hide the plug-in file from the IntelliSense parser?
If including a third-party JavaScript plugin is breaking IntelliSense for jQuery in your development environment, there are a few strategies you can employ to mitigate the issue without having to comment out the plugin code. Here are some approaches: ### 1. Use `/* global */` Comments You can indicate to the IntelliSe...
37,215
[ { "from": "human", "value": "I have a third party JavaScript plug-in but including the file breaks IntelliSense for jQuery amongst other things. The only way I can get IntelliSense back working with jQuery is by commenting out the plug-in. Is there a way I can hide the plug-in file from the IntelliSense par...
Is there an Iterator implementation that merges multiple iterators? class MergedIterator<T> implements Iterator<T> { MergedIterator(Iterator<T>... iters) .... } And the next method should move on to iters[1] when !iters[0].hasNext() etc
Certainly! You can create a `MergedIterator` that takes multiple `Iterator<T>` instances and merges them in a way that when one iterator is exhausted, it moves to the next one. Below is an implementation of the `MergedIterator<T>` class in Java: ```java import java.util.Iterator; public class MergedIterator<T> implem...
37,105
[ { "from": "human", "value": "Is there an Iterator implementation that merges multiple iterators? \nclass MergedIterator<T> implements Iterator<T>\n{\n MergedIterator(Iterator<T>... iters)\n ....\n}\n\nAnd the next method should move on to iters[1] when !iters[0].hasNext() etc\n" }, { "from":...
I am calling SPWeb.GetSiteData(anSpCrossListQuery). It fails to bring back any results or any errors when I call it with an accidental space at the end of the CAML query <Where></Where> clause. Anyone have an idea why?
When using `SPWeb.GetSiteData` with a CAML query in SharePoint, even an accidental space at the end of your CAML query can potentially lead to unexpected behavior, including returning no results and no errors. Here are a few reasons why this might happen: 1. **CAML Syntax Sensitivity**: CAML queries can be sensitive t...
35,422
[ { "from": "human", "value": "I am calling SPWeb.GetSiteData(anSpCrossListQuery).\nIt fails to bring back any results or any errors when I call it with an accidental space at the end of the CAML query <Where></Where> clause.\nAnyone have an idea why?\n" }, { "from": "gpt", "value": "When using `S...
Anyone have experience with algorithmic trading (like stocks)? Any good services to use to get quotes and to make trades?
Yes, many traders and investors use algorithmic trading to automate their trading strategies in the stock market. Here are some popular services and platforms that you might consider for getting quotes and executing trades: 1. **Interactive Brokers (IBKR)**: - Offers a powerful API for algorithmic trading. - Low...
37,628
[ { "from": "human", "value": "Anyone have experience with algorithmic trading (like stocks)? Any good services to use to get quotes and to make trades?\n" }, { "from": "gpt", "value": "Yes, many traders and investors use algorithmic trading to automate their trading strategies in the stock marke...
The request I sent is accept gzip but the response is not compressed, instead, I received some header Via:1.1 nc1 (NetCache NetApp/6.0.5P1) I guess this is to do with my ISP since it works perfectly on my home computer. Any idea how to get the response compressed? Request header GET /test.aspx HTTP/1.1 Host this.i...
If you are expecting a response that is compressed with gzip but are receiving an uncompressed response, and you believe that the issue may be related to your ISP or intermediate network infrastructure, there are a few things you can check or try: 1. **Confirm ISP Caching or Alteration**: - Some ISPs implement cach...
39,135
[ { "from": "human", "value": "The request I sent is accept gzip but the response is not compressed, instead, I received some header \nVia:1.1 nc1 (NetCache NetApp/6.0.5P1)\n\nI guess this is to do with my ISP since it works perfectly on my home computer.\nAny idea how to get the response compressed?\nRequest...
How do I get my .net system tray application to popup when a USB device is plugged in?
To create a .NET system tray application that pops up when a USB device is plugged in, you need to handle USB device insertion events. Below, I’ll guide you through the process of setting this up using a Windows Forms application and leveraging the Windows Management Instrumentation (WMI) to listen for USB device event...
36,362
[ { "from": "human", "value": "How do I get my .net system tray application to popup when a USB device is plugged in?\n" }, { "from": "gpt", "value": "To create a .NET system tray application that pops up when a USB device is plugged in, you need to handle USB device insertion events. Below, I’ll ...
Say I have a stored procedure that returns data from a SELECT query. I would like to get a slightly different cut on those results depending on what parameters I pass through. I'm wondering whether it is better design to have multiple stored procedures that take one or no parameters to do this (for example, GetXByDate ...
When deciding between multiple stored procedures and a single stored procedure with multiple parameters, several factors need to be considered, including maintainability, readability, performance, and scalability. Both approaches have their pros and cons, so let's break them down: ### Option 1: Multiple Stored Procedu...
36,796
[ { "from": "human", "value": "Say I have a stored procedure that returns data from a SELECT query. I would like to get a slightly different cut on those results depending on what parameters I pass through. I'm wondering whether it is better design to have multiple stored procedures that take one or no parame...
Lets say I have a web app which has a page that may contain 4 script blocks - the script I write may be found in one of those blocks, but I do not know which one, that is handled by the controller. I bind some onclick events to a button, but I find that they sometimes execute in an order I did not expect. Is there a ...
When dealing with multiple script blocks and ensuring that certain scripts execute in a specific order, there are several strategies you can employ: ### 1. **Use Promises or Async/Await** If your scripts are doing asynchronous operations, it's important to use Promises or the `async/await` syntax to control the flow o...
34,591
[ { "from": "human", "value": "Lets say I have a web app which has a page that may contain 4 script blocks - the script I write may be found in one of those blocks, but I do not know which one, that is handled by the controller. \nI bind some onclick events to a button, but I find that they sometimes execute ...
I want to do this C# code in F# string[] a = new string[5]; string b = string.Empty; a[0] = "Line 1"; a[2] = "Line 2"; foreach (string c in a) { b = c + Environment.NewLine; }
You can achieve the same functionality in F# using a similar approach. Below is the translated code from C# to F#. This code initializes an array of strings, assigns values to specific indices, and constructs a concatenated string with new line separators. ```fsharp open System let a = Array.create 5 String.Empty //...
39,486
[ { "from": "human", "value": "I want to do this C# code in F#\n string[] a = new string[5];\n string b = string.Empty;\n a[0] = \"Line 1\";\n a[2] = \"Line 2\";\n\n foreach (string c in a)\n {\n b = c + Environment.NewLine;\n }\n\n" }, { "from": "gpt", "value": "You can ...
I have 50+ kiosk style computers that I want to be able to get a status update, from a single computer, on demand as opposed to an interval. These computers are on a LAN in respect to the computer requesting the status. I researched WCF however it looks like I'll need IIS installed and I would rather not install IIS on...
Given your requirements and the environment you're working in (Windows XP, .NET 3.5 SP1), there are a few options you can consider for implementing a solution that allows for on-demand status updates from your kiosks. ### 1. **Using WCF with a Self-Hosted Service** Even though you initially thought WCF would require I...
36,970
[ { "from": "human", "value": "I have 50+ kiosk style computers that I want to be able to get a status update, from a single computer, on demand as opposed to an interval. These computers are on a LAN in respect to the computer requesting the status.\nI researched WCF however it looks like I'll need IIS insta...
Is there a fool-proof way to pull out all the risks involved in a project? And does it differ depending on the type of projects your working on (ie: website, client/server...)?
Identifying and managing risks in a project is crucial for its success, but there is no fool-proof method that can guarantee all risks will be uncovered, as every project is unique and risks can vary widely depending on context, industry, and various other factors. However, there are systematic approaches and best prac...
34,759
[ { "from": "human", "value": "Is there a fool-proof way to pull out all the risks involved in a project? And does it differ depending on the type of projects your working on (ie: website, client/server...)?\n" }, { "from": "gpt", "value": "Identifying and managing risks in a project is crucial fo...
I'm using the CsvReader library in my Windows Forms application, which is coded in horribly messy VB (I've recently taken over the project.) I'm currently capable of reading semi-colon separated files without quoting, but I'm having a problem: most of the input has quoted fields, but includes unescaped quote character...
To handle semi-colon separated files with quoted fields and unescaped quotes in VB using the CsvReader library, you will need to implement a custom solution to preprocess the input data. Since you're dealing with unescaped quote characters in your fields, you can either remove those quotes or replace them with a placeh...
37,265
[ { "from": "human", "value": "I'm using the CsvReader library in my Windows Forms application, which is coded in horribly messy VB (I've recently taken over the project.)\nI'm currently capable of reading semi-colon separated files without quoting, but I'm having a problem: most of the input has quoted fiel...
Given the following domain classes: class Post { SortedSet tags static hasMany = [tags: Tag] } class Tag { static belongsTo = Post static hasMany = [posts: Post] } From my understanding so far, using a hasMany will result in hibernate Set mapping. However, in order to maintain uniqueness/order, Hibernate ...
Your understanding of Hibernate's mapping behavior is correct; using a `SortedSet` or any collection type that enforces uniqueness and order can lead to performance issues when working with large sets. When adding or removing items, Hibernate may have to load the entire collection from the database, compare hashes, and...
38,336
[ { "from": "human", "value": "Given the following domain classes:\nclass Post {\n SortedSet tags\n static hasMany = [tags: Tag]\n}\n\nclass Tag {\n static belongsTo = Post\n static hasMany = [posts: Post]\n}\n\nFrom my understanding so far, using a hasMany will result in hibernate Set mapping.\nHowev...
I'm having trouble with branching in Visual Studio TFS. This may be due to the method in which I am developing, but if this is the case, please let me know what the best practice is with branching and I will change our procedure. About a month ago, I branched a project so that I could begin developing a new version of...
Hello C, It sounds like you're encountering a common scenario when using branching in TFS (Team Foundation Server). Your approach of creating a branch for development while keeping the main trunk stable is a standard practice, but merging changes between branches can sometimes be a bit tricky if you're not familiar wi...
33,765
[ { "from": "human", "value": "I'm having trouble with branching in Visual Studio TFS. This may be due to the method in which I am developing, but if this is the case, please let me know what the best practice is with branching and I will change our procedure.\nAbout a month ago, I branched a project so that...
I was reading about App Engine on wikipedia and came across some GQL restrictions: JOIN is not supported can SELECT from at most one table at a time can put at most 1 column in the WHERE clause What are the advantages of these restrictions? Are these restrictions common in other places where scalability is a priority...
The restrictions you've mentioned regarding Google Query Language (GQL) in Google App Engine (GAE) are indeed designed with scalability and performance in mind. Here are some advantages of these restrictions: ### Advantages of GQL Restrictions 1. **Simplicity and Predictability**: - By limiting queries to a single...
39,298
[ { "from": "human", "value": "I was reading about App Engine on wikipedia and came across some GQL restrictions:\n\nJOIN is not supported\ncan SELECT from at most one table at a time\ncan put at most 1 column in the WHERE clause\n\nWhat are the advantages of these restrictions?\nAre these restrictions common...
If I have hundreds/thousands of client computers WCP'ing to my server, should I respond with a '200 OK' type message stating that I received the data and stored it in the db successfully? Is this already built-into WCF?
When working with Windows Communication Foundation (WCF) to handle communications from multiple client computers, it's essential to acknowledge that you have successfully received and processed the data they send. Responding with a status code such as '200 OK' is a standard practice in web services and indicates that t...
39,851
[ { "from": "human", "value": "If I have hundreds/thousands of client computers WCP'ing to my server, should I respond with a '200 OK' type message stating that I received the data and stored it in the db successfully?\nIs this already built-into WCF?\n" }, { "from": "gpt", "value": "When working ...
Everything I can find in linq for aggregation has a "group by" clause. How would I write this query in LINQ? I have a list of date-value pairs, and I want to take the average of the values: SELECT AVG(MySuff.Value) AS AvgValue FROM MyStuff
If you have a list of date-value pairs and want to calculate the average of the values using LINQ without using a "group by" clause, you can do this directly by using the `Average` method on the collection. Here’s how you could write that in C# using LINQ: Assuming you have a class `MyStuff` defined as follows: ```cs...
38,782
[ { "from": "human", "value": "Everything I can find in linq for aggregation has a \"group by\" clause. How would I write this query in LINQ? I have a list of date-value pairs, and I want to take the average of the values:\nSELECT AVG(MySuff.Value) AS AvgValue FROM MyStuff\n\n" }, { "from": "gpt", ...
For example, let's take the format of a forum, where we have multiple users and multiple threads. Say this forum wants to track which users have read which threads and, say, use that information to mark which threads are unread when viewing the thread list. The only solution I can imagine is something that drops a reco...
You're correct in noting that tracking which users have read which threads can lead to a lot of records in the database if you store a read record each time a user visits a thread. However, there are several strategies you can consider to optimize this process and manage the data more effectively: ### 1. **Use a Read ...
38,615
[ { "from": "human", "value": "For example, let's take the format of a forum, where we have multiple users and multiple threads. Say this forum wants to track which users have read which threads and, say, use that information to mark which threads are unread when viewing the thread list.\nThe only solution I ...
When in release it crashes with an unhandled exception: std::length error. The call stack looks like this: msvcr90.dll!__set_flsgetvalue() Line 256 + 0xc bytes C msvcr90.dll!__set_flsgetvalue() Line 256 + 0xc bytes C msvcr90.dll!_getptd_noexit() Line 616 + 0x7 bytes C msvcr90.dll!_getptd() Line 641 + 0x5 bytes...
The error you're encountering, specifically the `std::length_error`, indicates that there is an attempt to create or manipulate a data structure (like a string, vector, etc.) with an invalid size or that exceeds a certain limit. Here are some steps you can take to diagnose and potentially fix the issue: ### 1. Check ...
39,946
[ { "from": "human", "value": "When in release it crashes with an unhandled exception: std::length error.\nThe call stack looks like this:\nmsvcr90.dll!__set_flsgetvalue() Line 256 + 0xc bytes C\nmsvcr90.dll!__set_flsgetvalue() Line 256 + 0xc bytes C\nmsvcr90.dll!_getptd_noexit() Line 616 + 0x7 bytes ...