instruction
stringlengths
14
27.6k
completion
stringlengths
3
38.3k
__original_row_idx
int64
0
50k
conversations
listlengths
2
2
How do you measure the memory usage of an application or process in Linux? From the blog article of Understanding memory usage on Linux, ps is not an accurate tool to use for this intent. Why ps is "wrong" Depending on how you look at it, ps is not reporting the real memory usage of processes. What it is really doing ...
Measuring memory usage in a Linux environment can be complex due to the way memory is allocated and shared among processes. The `ps` command, while useful, doesn't always provide a complete picture, as you've noted. Instead, there are several other methods and tools you can use to more accurately assess memory usage fo...
14,942
[ { "from": "human", "value": "How do you measure the memory usage of an application or process in Linux?\nFrom the blog article of Understanding memory usage on Linux, ps is not an accurate tool to use for this intent.\n\nWhy ps is \"wrong\"\nDepending on how you look at it, ps is not reporting the real memo...
What is the cheap and good way to make a serial (RS232) programmer for AVR atMega and atTiny? There are several circuits in the Internet, but which one is better? I'd like to be able to program my controller from Linux and Windows using some standard tools.
Creating a low-cost serial (RS232) programmer for AVR microcontrollers like ATmega and ATtiny can be accomplished with simple circuits that utilize commonly available components. Below are a few recommended approaches to achieve this: ### 1. **Using a MAX232 or similar level shifter:** The MAX232 chip is a popular cho...
18,220
[ { "from": "human", "value": "What is the cheap and good way to make a serial (RS232) programmer for AVR atMega and atTiny? There are several circuits in the Internet, but which one is better?\nI'd like to be able to program my controller from Linux and Windows using some standard tools.\n" }, { "fro...
I'm having trouble ordering by more than one field in my Linq to NHibernate query. Does anyone either know what might be wrong or if there is a work around? Code: IQueryable<AgendaItem> items = _agendaRepository.GetAgendaItems(location) .Where(item => item.Minutes.Contains(query) || item.Description.Contains(query))...
The error you're encountering suggests that there is an issue with the way the query is being translated into SQL by NHibernate. The specific error message about the invalid column name points to a potential problem with how multiple `OrderBy` and `ThenBy` clauses are being processed. Here are some strategies to troub...
15,307
[ { "from": "human", "value": "I'm having trouble ordering by more than one field in my Linq to NHibernate query. Does anyone either know what might be wrong or if there is a work around?\nCode:\nIQueryable<AgendaItem> items = _agendaRepository.GetAgendaItems(location)\n .Where(item => item.Minutes.Contains...
I'm thinking the answer is no, but I'd love it it anybody had any insight into how to crawl a tree structure to any depth in SQL (MySQL), but with a single query More specifically, given a tree structured table (id, data, data, parent_id), and one row in the table, is it possible to get all descendants (child/grandchil...
In MySQL, you can't directly perform recursive queries in the same way you can in some other databases (like PostgreSQL with Common Table Expressions (CTEs)). However, starting from MySQL 8.0, recursive CTEs are supported, which means you can achieve what you're looking for with a single query. ### 1. Retrieving Desce...
18,023
[ { "from": "human", "value": "I'm thinking the answer is no, but I'd love it it anybody had any insight into how to crawl a tree structure to any depth in SQL (MySQL), but with a single query\nMore specifically, given a tree structured table (id, data, data, parent_id), and one row in the table, is it possib...
I want to use modal pop-up windows in our web app in Ruby on Rails. Note that I don't want to create a new browser window, but a sub-window inside the existing webpage. We've tried things like TinyBox, but there are issues with returning error information from inside the controller. Any good method or tool that work...
Using modal pop-up windows in a Ruby on Rails application can be effectively accomplished with a combination of JavaScript and a front-end library. Here's a common approach utilizing Bootstrap modals or similar libraries, which integrate well with Rails. ### Option 1: Bootstrap Modals Bootstrap is a popular front-end...
14,158
[ { "from": "human", "value": "I want to use modal pop-up windows in our web app in Ruby on Rails. Note that I don't want to create a new browser window, but a sub-window inside the existing webpage. We've tried things like TinyBox, but there are issues with returning error information from inside the contr...
I'd like to get all the permutations of swapped characters pairs of a string. For example: Base string: abcd Combinations: bacd acbd abdc etc. Edit I want to swap only letters that are next to each other. Like first with second, second with third, but not third with sixth. What's the best way to do this? Edit Just fo...
To generate all permutations of a string where only adjacent characters can be swapped, you can use a recursive approach. Below is a Python implementation that captures the desired behavior of generating such combinations. ### Python Code to Generate Swaps of Adjacent Characters ```python def adjacent_swaps(s): r...
18,681
[ { "from": "human", "value": "I'd like to get all the permutations of swapped characters pairs of a string. For example:\nBase string: abcd\nCombinations:\n\nbacd\nacbd\nabdc\n\netc.\nEdit\nI want to swap only letters that are next to each other. Like first with second, second with third, but not third with ...
We have a live MySQL database that is 99% INSERTs, around 100 per second. We want to archive the data each day so that we can run queries on it without affecting the main, live database. In addition, once the archive is completed, we want to clear the live database. What is the best way to do this without (if possible)...
Archiving data from a live MySQL database that is primarily doing INSERT operations requires a careful approach to minimize locking and ensure minimal disruption to the ongoing transactions. Here's a step-by-step strategy to accomplish this: ### Strategy Overview 1. **Create an Archive Table**: Start by creating an a...
12,205
[ { "from": "human", "value": "We have a live MySQL database that is 99% INSERTs, around 100 per second. We want to archive the data each day so that we can run queries on it without affecting the main, live database. In addition, once the archive is completed, we want to clear the live database.\nWhat is the...
I have a an HTML form which contains the YAHOO rich text editor on it. When I display the form I want the YAHOO editor to have focus so that the cursor is ready to accept input without the user having to click on it or tab into it
To set focus on the YAHOO Rich Text Editor when displaying the form, you can use JavaScript to call the `focus()` method on the editor's iframe or designated editor area after the editor is initialized. Here's a step-by-step approach to achieve this: 1. **Include the necessary YAHOO Rich Text Editor libraries** in yo...
16,036
[ { "from": "human", "value": "I have a an HTML form which contains the YAHOO rich text editor on it.\nWhen I display the form I want the YAHOO editor to have focus so that the cursor is ready to accept input without the user having to click on it or tab into it\n" }, { "from": "gpt", "value": "To...
I switched from Perl to Python about a year ago and haven't looked back. There is only one idiom that I've ever found I can do more easily in Perl than in Python: if ($var =~ /foo(.+)/) { # do something with $1 } elsif ($var =~ /bar(.+)/) { # do something with $1 } elsif ($var =~ /baz(.+)/) { # do something with...
You can achieve a more elegant solution in Python by using a loop to iterate through a list of tuples containing your patterns and the corresponding actions. This avoids deep nesting and keeps your code clean. Here's one way to do it: ```python import re var = "your_input_string_here" # Replace with your input strin...
16,744
[ { "from": "human", "value": "I switched from Perl to Python about a year ago and haven't looked back. There is only one idiom that I've ever found I can do more easily in Perl than in Python:\nif ($var =~ /foo(.+)/) {\n # do something with $1\n} elsif ($var =~ /bar(.+)/) {\n # do something with $1\n} els...
I'm not sure why the TSpeedButton has this property but when a TSpeedButton is the only button of a given groupindex, it doesn't stay pressed, whether or not "AllowAllUp" is pressed. Maybe a Jedi control would suffice, but hopefully there's some fix. Any help or anecdotes are appreciated. BTW, I'm (still) using Delph...
In Delphi 7, the `TSpeedButton` component is designed to operate as a toggle button and can be part of a button group using the `GroupIndex` property. However, when you have a single `TSpeedButton` that is assigned a `GroupIndex`, its behavior might not be what you expect, particularly concerning the `AllowAllUp` prope...
19,288
[ { "from": "human", "value": "I'm not sure why the TSpeedButton has this property but when a TSpeedButton is the only button of a given groupindex, it doesn't stay pressed, whether or not \"AllowAllUp\" is pressed. Maybe a Jedi control would suffice, but hopefully there's some fix. Any help or anecdotes ar...
I want to create a new row in my database on a table that has a couple of foreign key relationships and I haven't been able to get a handle on what order and what calls need to be made. This is what I have so far: db.Models.Order order = DB.Models.Order.CreateOrder( apple ); order.CustomerReference.Attach( ( from c in ...
The error you are encountering suggests that the object you are trying to attach (i.e., the `Customer`) is not in a valid state to be associated with the `Order` entity. When dealing with foreign key relationships, it's essential to make sure that you're correctly associating the `Customer` with the `Order` and that th...
20,573
[ { "from": "human", "value": "I want to create a new row in my database on a table that has a couple of foreign key relationships and I haven't been able to get a handle on what order and what calls need to be made. This is what I have so far:\ndb.Models.Order order = DB.Models.Order.CreateOrder( apple );\no...
We have developed a number of custom dll's which are called by third-party Windows applications. These dlls are loaded / unloaded as required. Most of the dlls call web services and these need to have urls, timeouts, etc configured. Because the dll is not permanently in memory, it has to read the configuration every ti...
Your scenario presents a common challenge when working with dynamic libraries (DLLs) in a .NET application, particularly in contexts where they are loaded and unloaded frequently. Constantly reading configuration data from XML files can indeed lead to performance issues, especially if the configuration data is static o...
17,493
[ { "from": "human", "value": "We have developed a number of custom dll's which are called by third-party Windows applications. These dlls are loaded / unloaded as required.\nMost of the dlls call web services and these need to have urls, timeouts, etc configured.\nBecause the dll is not permanently in memory...
I want to import data from MS SQL Server, run it through some sort of regexp to filter out stuff, and import it into MySQL. I then, for each query, wish to display a relevant image from a third database. What would be the easiest way to do this, importing and linking wise? Thank you. Clarification: It is a php applicat...
To accomplish your task of importing data from MS SQL Server, processing it, and then storing it in MySQL while displaying relevant images from a third database in a PHP application, you can follow these steps: ### 1. **Set Up Your Development Environment** - Ensure you have a local or remote server environment whe...
16,030
[ { "from": "human", "value": "I want to import data from MS SQL Server, run it through some sort of regexp to filter out stuff, and import it into MySQL. I then, for each query, wish to display a relevant image from a third database. What would be the easiest way to do this, importing and linking wise?\nThan...
Can i override fetchall method in a model? I need to check sth everytime fetchAll is called. The model extends Zend_db_table_abstract
Yes, you can override the `fetchAll` method in a model that extends `Zend_Db_Table_Abstract`. This is a common approach when you need to add custom logic or checks every time data is retrieved from the database. Here's how you can do it: 1. **Create Your Model Class**: Ensure your model class extends `Zend_Db_Table_A...
18,873
[ { "from": "human", "value": "Can i override fetchall method in a model? I need to check sth everytime fetchAll is called. The model extends Zend_db_table_abstract\n" }, { "from": "gpt", "value": "Yes, you can override the `fetchAll` method in a model that extends `Zend_Db_Table_Abstract`. This i...
I have a BulletedList in asp.net that is set to DisplayMode="LinkButton". I would like to trigger the first "bullet" from a javascript, can this be done? And if so, how?
Yes, you can trigger the first "bullet" from a `BulletedList` in ASP.NET with JavaScript, especially when the `DisplayMode` is set to `LinkButton`. When you set the `DisplayMode` of a `BulletedList` to `LinkButton`, each item in the list is rendered as a link. You can reference the first item using JavaScript and the...
15,938
[ { "from": "human", "value": "I have a BulletedList in asp.net that is set to DisplayMode=\"LinkButton\". I would like to trigger the first \"bullet\" from a javascript, can this be done? And if so, how?\n" }, { "from": "gpt", "value": "Yes, you can trigger the first \"bullet\" from a `BulletedLi...
I was always attracted to the world of kernel hacking and embedded systems. Has anyone got good tutorials (+easily available hardware) on starting to mess with such stuff? Something like kits for writing drivers etc, which come with good documentation and are affordable? Thanks!
Absolutely! If you're interested in kernel hacking and embedded systems, there are several resources and hardware kits that can help you get started. Here are some recommendations: ### Hardware Kits 1. **Raspberry Pi** - **Description:** The Raspberry Pi is an affordable and versatile platform that can be used for...
14,783
[ { "from": "human", "value": "I was always attracted to the world of kernel hacking and embedded systems.\nHas anyone got good tutorials (+easily available hardware) on starting to mess with such stuff?\nSomething like kits for writing drivers etc, which come with good documentation and are affordable?\nThan...
There's a feature that I'd like to see in issue tracking software that just doesn't seem to be all that common, and that is the ability to divide a ticket (bug, feature request, etc) into sub-tasks and view them in a hierarchical fashion, perhaps with some kind of progress bar style report of progress on a particular t...
There are several issue tracking tools that support the ability to create sub-tasks and view them in a hierarchical fashion, which can be beneficial for both developers and project managers. Here are a few that you might find useful: 1. **Jira**: Jira is widely used for issue tracking and project management. It allows...
18,279
[ { "from": "human", "value": "There's a feature that I'd like to see in issue tracking software that just doesn't seem to be all that common, and that is the ability to divide a ticket (bug, feature request, etc) into sub-tasks and view them in a hierarchical fashion, perhaps with some kind of progress bar s...
In your opinion, is it ever valid to use the @ operator to suppress an error/warning in PHP whereas you may be handling the error? If so, in what circumstances would you use this? Code examples are welcome. Edit: Note to repliers. I'm not looking to turn error reporting off, but, for example, common practice is to use ...
Using the `@` operator in PHP to suppress errors and warnings is generally discouraged because it can make debugging more difficult and can lead to unexpected behavior. However, there are certain scenarios where it might be deemed acceptable or even necessary, particularly in situations where you are dealing with a lar...
17,477
[ { "from": "human", "value": "In your opinion, is it ever valid to use the @ operator to suppress an error/warning in PHP whereas you may be handling the error?\nIf so, in what circumstances would you use this?\nCode examples are welcome.\nEdit: Note to repliers. I'm not looking to turn error reporting off, ...
A person uses their cell phone multiple times per day, and the length of their calls vary. I am tracking the length of the calls in a table: Calls [callID, memberID, startTime, duration] I need to a query to return the average call length for users per day. Per day means, if a user used the phone 3 times, first time f...
To calculate the average call length for users per day while ensuring that each user is counted only once based on their latest day of calls, you can use a SQL query that follows these steps: 1. Calculate the daily average call duration per user for each day they made calls. 2. Identify the most recent day for each us...
20,254
[ { "from": "human", "value": "A person uses their cell phone multiple times per day, and the length of their calls vary. I am tracking the length of the calls in a table:\nCalls [callID, memberID, startTime, duration]\n\nI need to a query to return the average call length for users per day. Per day means, if...
I'm looking for a tool ($, free, open source; I don't care) that will allow me to view not just the memory statistics for a .NET program, but also the object hierarchy. I'd really like to be able to drill down each thourgh each object and view it's foot print, as well as all the object's it references. I've looked at t...
For detailed memory analysis and the ability to drill down through object hierarchies in .NET applications, consider the following tools: 1. **dotMemory by JetBrains**: - This is a powerful memory profiling tool that allows you to analyze memory usage in .NET applications. - It enables you to view object instanc...
18,774
[ { "from": "human", "value": "I'm looking for a tool ($, free, open source; I don't care) that will allow me to view not just the memory statistics for a .NET program, but also the object hierarchy. I'd really like to be able to drill down each thourgh each object and view it's foot print, as well as all the...
It is possible to display XHTML fully in Crystal Reports? I have a field which I set to display with HTML tags, but it ignores many of the tags I need, such as . It would be nice if the font was set by the XHTML as well. If not, is there a reporting tool with the features of Crystal Reports but is better at rendering ...
Crystal Reports has limited support for rendering HTML and XHTML content. While it does allow you to display some HTML tags using a field set to "HTML Text," it does not support all tags, especially more complex ones like `<style>` for font styling or other structural tags that modify the rendering of content. If you ...
19,522
[ { "from": "human", "value": "It is possible to display XHTML fully in Crystal Reports?\nI have a field which I set to display with HTML tags, but it ignores many of the tags I need, such as . It would be nice if the font was set by the XHTML as well.\nIf not, is there a reporting tool with the features of ...
Unfortunately, sometimes the only way to debug a program is by going through its long log files. I searched for a decent log viewer for a while now, and haven't found a real solution. The only program that seemed to be most appropriate was Chainsaw with its Socket connector but after a few short uses the program prove...
There are several free log viewers that can work well with log4j and provide features such as color-coding log levels and filtering capabilities. Here are some options you might consider: 1. **LogExpert**: - A free Windows-based log file viewer that supports real-time monitoring of log files. - It provides high...
20,373
[ { "from": "human", "value": "Unfortunately, sometimes the only way to debug a program is by going through its long log files. \nI searched for a decent log viewer for a while now, and haven't found a real solution. The only program that seemed to be most appropriate was Chainsaw with its Socket connector bu...
Macs are renowned (or bemoaned) for having an extensive number of shortcuts. However, OS X itself pales in comparison to the shortcut lists in TextMate and its bundles. What are some useful keyboard shortcuts you use?
TextMate is a powerful text editor for macOS, and it indeed has a wide range of keyboard shortcuts that can significantly enhance productivity. Here are some useful keyboard shortcuts in TextMate, along with some general macOS shortcuts that you might find helpful: ### TextMate Shortcuts 1. **Editing** - **Cmd + T...
16,244
[ { "from": "human", "value": "Macs are renowned (or bemoaned) for having an extensive number of shortcuts. However, OS X itself pales in comparison to the shortcut lists in TextMate and its bundles.\nWhat are some useful keyboard shortcuts you use?\n" }, { "from": "gpt", "value": "TextMate is a p...
I'm developing an application that is targeting the .NET 3.5 Framework. The application's setup installs the .NET 2.0 runtime on the target machine. So far I haven't had any issues with doing this, but I'm wondering what problems I'm going to have down the line. Do I need to be installing the 3.5 runtime? I must packag...
When you're developing an application that targets the .NET Framework 3.5 but only installing the .NET Framework 2.0 runtime, there are a few important considerations to keep in mind. ### Compatibility 1. **In-Place Updates**: .NET 3.5 is an in-place update of .NET 2.0 and 3.0, which means that if you install .NET 3....
18,280
[ { "from": "human", "value": "I'm developing an application that is targeting the .NET 3.5 Framework. The application's setup installs the .NET 2.0 runtime on the target machine. So far I haven't had any issues with doing this, but I'm wondering what problems I'm going to have down the line. Do I need to be ...
We have created a web application, using ASP.NET, that allows users to upload documents and attach them to business entities, like customers, contacts and so on. The application runs on the intranet and all files are uploaded through the web application into a shared folder on the server. I would like, right from the ...
To facilitate direct editing of documents (like Word and Excel) from your web application, while managing file uploads to a shared folder on your server, there are several strategies you could adopt. Below are some approaches to consider: ### 1. **Using File URL for Editing**: - When displaying the list of attachments...
17,297
[ { "from": "human", "value": "We have created a web application, using ASP.NET, that allows users to upload documents and attach them to business entities, like customers, contacts and so on. \nThe application runs on the intranet and all files are uploaded through the web application into a shared folder on...
<html> <head> <style type="text/css"> div { border:1px solid #000; min-width: 50%; } </style> </head> <body> <div>This is some text. </div> </body> </html> I believe the div should be 50 percent of the page, unless, for som...
The behavior you're observing is likely due to the default styling applied to the `<div>` element, combined with the `min-width` property. The `min-width: 50%` means that the `<div>` will take up at least 50% of the parent's width, but it can stretch larger if the content inside it requires more space. If the text insi...
19,575
[ { "from": "human", "value": "<html>\n <head>\n <style type=\"text/css\">\n div {\n border:1px solid #000;\n min-width: 50%;\n }\n </style>\n </head>\n <body>\n <div>This is some text. </div>\n </body>\n</html>\n\nI believe ...
Can I get user's mobile number (CLI number) in Objective-C on the iPhone from its sim card?
In iOS, you cannot directly access the mobile number (CLI number) from the SIM card due to privacy and security restrictions imposed by Apple. The iOS SDK does not provide a public API that allows developers to retrieve the user's phone number from the SIM card. Here are a few important points to consider: 1. **Priva...
18,684
[ { "from": "human", "value": "Can I get user's mobile number (CLI number) in Objective-C on the iPhone from its sim card?\n" }, { "from": "gpt", "value": "In iOS, you cannot directly access the mobile number (CLI number) from the SIM card due to privacy and security restrictions imposed by Apple....
I'm looking for a way to match only fully composed characters in a Unicode string. Is [:print:] dependent upon locale in any regular expression implementation that incorporates this character class? For example, will it match Japanese character 'あ', since it is not a control character, or is [:print:] always going to b...
The behavior of the `[:print:]` character class in regular expressions does indeed depend on the locale settings of the environment in which it is being executed. In many implementations, including POSIX-compliant environments, `[:print:]` will match any printable character that is defined by the current locale, which ...
20,048
[ { "from": "human", "value": "I'm looking for a way to match only fully composed characters in a Unicode string.\nIs [:print:] dependent upon locale in any regular expression implementation that incorporates this character class? For example, will it match Japanese character 'あ', since it is not a control ch...
I have a database issue that i currently cannot wrap my head around with an easy solution. In my db I have a table that stores event values.. 0's and 1's with a timestamp. Issue being that it is possible for there to be the same event to occur twice as a business rule. Like below '2008-09-22 16:28:14.133', 0 '2008-09-...
To handle this problem of filtering out consecutive duplicate entries in your event table, you can achieve this without using a cursor or trigger by leveraging SQL's window functions. This approach will help you efficiently filter out the duplicate consecutive values (in your case, `1, 1`) while keeping the necessary r...
18,727
[ { "from": "human", "value": "I have a database issue that i currently cannot wrap my head around with an easy solution. In my db I have a table that stores event values.. 0's and 1's with a timestamp. Issue being that it is possible for there to be the same event to occur twice as a business rule. Like belo...
I'm trying to port an old library (that doesn't use namespaces as far as I can tell) to modern compilers. One of my targets can't tell the difference between System::TObject and ::TObject (without a namespace). System::TObject is native to the compiler. I've tried a using directive, i.e. using ::TObject; But that doesn...
Porting an old library to modern compilers can indeed introduce challenges, especially when dealing with name collisions. If `System::TObject` is native to your compiler and conflicts with `::TObject`, you have several options to resolve this issue without necessarily wrapping everything in a new namespace: ### 1. **U...
17,072
[ { "from": "human", "value": "I'm trying to port an old library (that doesn't use namespaces as far as I can tell) to modern compilers. One of my targets can't tell the difference between System::TObject and ::TObject (without a namespace). System::TObject is native to the compiler.\nI've tried a using direc...
I am using gSOAP as a Web Service toolkit and have generated the stub and proxy classes through soapcpp2 from multiple WSDLs all at once. Thus all the namespace bindings are in a single .nsmap file. Now the problem is that all the namespace bindings are being sent with all the method calls I make. The HTTP POST pack...
Yes, in gSOAP you can programmatically override namespace bindings for your SOAP requests. By default, gSOAP will use the namespace mappings defined in your `.nsmap` file for all SOAP calls. However, you can modify or override these mappings in your code before making the calls. To do this, you will typically interact...
19,833
[ { "from": "human", "value": "I am using gSOAP as a Web Service toolkit and have generated the stub and proxy classes through soapcpp2 from multiple WSDLs all at once. Thus all the namespace bindings are in a single .nsmap file. \nNow the problem is that all the namespace bindings are being sent with all t...
The last cross platform desktop development I did was Java/Swing. What about flex?
Adobe Flex is a framework for building rich Internet applications that can run on various platforms, including desktop and mobile environments. It primarily uses ActionScript and MXML, and applications are typically deployed in a browser via Adobe Flash Player or as standalone desktop applications via Adobe AIR. Here ...
17,558
[ { "from": "human", "value": "The last cross platform desktop development I did was Java/Swing. What about flex?\n" }, { "from": "gpt", "value": "Adobe Flex is a framework for building rich Internet applications that can run on various platforms, including desktop and mobile environments. It pri...
Can anyone point me to a good, simple, example of a Google API (AJAX Search API I suppose?) that can be implemented in VB.net (2008)? I have tried to sign up for a Google API key but it wants a URL from which the search will be executed from. I dont have a URL for this example. I tried http://localhost but then was...
To integrate Google APIs in VB.NET, you might consider using the Google Custom Search JSON API instead of the old AJAX Search API. Note that Google has updated its services, and you will generally be working with APIs that return JSON. Here is a simple example of how you can make a request to the Google Custom Search ...
15,968
[ { "from": "human", "value": "Can anyone point me to a good, simple, example of a Google API (AJAX Search API I suppose?) that can be implemented in VB.net (2008)? I have tried to sign up for a Google API key but it wants a URL from which the search will be executed from. I dont have a URL for this exampl...
I'm currently developing a RCP Eclipse Application. For logging purposes I use SFL4J over log4j. For my own code this works well since I can specify the correct logger ( LoggerFactory.getLogger ... logger.debug...). But how can I redirect all the plugin logs to the same location, so that I can see all exceptions from o...
To achieve unified logging in an Eclipse RCP application with SLF4J and Log4j, you'll need to handle logging from the Eclipse framework (which uses the `ILog` interface) and redirect those logs to your SLF4J/Log4j setup. Here are the steps to accomplish this: ### Step 1: Create an ILog Listener You can create a custo...
13,051
[ { "from": "human", "value": "I'm currently developing a RCP Eclipse Application. For logging purposes I use SFL4J over log4j. For my own code this works well since I can specify the correct logger ( LoggerFactory.getLogger ... logger.debug...). But how can I redirect all the plugin logs to the same location...
Not sure what exactly is going on here, but seems like in .NET 1.1 an uninitialized event delegate can run without issues, but in .NET 2.0+ it causes a NullReferenceException. Any ideas why. The code below will run fine without issues in 1.1, in 2.0 it gives a NullReferenceException. I'm curious why does it behave d...
The behavior you've observed is due to changes in how event handling works in .NET 2.0 and later versions compared to .NET 1.1. In your provided code, you're attempting to invoke the `ChartJoinedRowAdded` event without checking if it has any subscribers. This leads to a `NullReferenceException` in .NET 2.0 and later ve...
20,339
[ { "from": "human", "value": "Not sure what exactly is going on here, but seems like in .NET 1.1 an uninitialized event delegate can run without issues, but in .NET 2.0+ it causes a NullReferenceException. Any ideas why. The code below will run fine without issues in 1.1, in 2.0 it gives a NullReferenceExc...
The question is a fairly open one. I've been using Stored Procs with MS SQLServer for some time with classic ASP and ASP.net and love them, lots. I have a small hobby project I'm working on and for various reasons have gone the LAMP route. Any hints/tricks/traps or good starting points to get into using stored procedur...
Transitioning from MS SQL Server stored procedures to MySQL stored procedures can be a smooth process, but there are some differences between the two that you'll need to keep in mind. Here are some hints, tricks, and best practices to help you get started with using stored procedures in MySQL with PHP: ### 1. Understa...
11,638
[ { "from": "human", "value": "The question is a fairly open one. I've been using Stored Procs with MS SQLServer for some time with classic ASP and ASP.net and love them, lots.\nI have a small hobby project I'm working on and for various reasons have gone the LAMP route. Any hints/tricks/traps or good startin...
Some context upfront: Imagine a 200+ developers company finally setting up a more or less independent architecture team/department. The software portfolio consisting of 20+ "projects"/applications of varying sizes in production was taken care of by team-leads/technical-leads, who were responsible for and in charge of t...
Setting up an independent architecture team within a large organization can be a challenging yet rewarding endeavor. Here are some key DOs and DON'Ts, team composition suggestions, responsibilities, scopes, transition strategies, and ways to manage potential resistance: ### DOs 1. **Engage Stakeholders Early**: Invol...
12,667
[ { "from": "human", "value": "Some context upfront:\nImagine a 200+ developers company finally setting up a more or less independent architecture team/department.\nThe software portfolio consisting of 20+ \"projects\"/applications of varying sizes in production was taken care of by team-leads/technical-leads...
I have a repeater that outputs divs like the following for every item returned from some method. <div class="editor-area"> <div class="title">the title</div> <div>the description</div> <div class="bottom-bar"> <a href="link">Modify</a> <a href="link2">Delete</a> </div> </div> I need to ...
To implement a real-time filtering mechanism in your ASP.NET WebForms application, you can use jQuery to capture the input in a textbox and filter the divs based on the title field as the user types. Since you're working with ASP.NET 2.0 and jQuery, I'll provide a simple step-by-step approach along with sample code. #...
18,354
[ { "from": "human", "value": "I have a repeater that outputs divs like the following for every item returned from some method.\n<div class=\"editor-area\">\n <div class=\"title\">the title</div>\n <div>the description</div>\n <div class=\"bottom-bar\">\n <a href=\"link\">Modify</a>\n <...
Assuming we always use a Sun JVM (say, 1.5+), is it always safe to cast a Graphics reference to Graphics2D? I haven't seen it cause any problems yet and, to my understanding, the Graphics class is legacy code but the Java designers didn't want to change the interfaces for Swing and AWT classes in order to preserver b...
In Java's AWT and Swing, it is common to cast a `Graphics` reference to `Graphics2D` to access the more advanced graphics capabilities provided by the `Graphics2D` class. However, it's essential to understand when this casting is safe and when it might lead to issues. ### Safe Casting - **When using a `Graphics` insta...
20,016
[ { "from": "human", "value": "Assuming we always use a Sun JVM (say, 1.5+), is it always safe to cast a Graphics reference to Graphics2D? \nI haven't seen it cause any problems yet and, to my understanding, the Graphics class is legacy code but the Java designers didn't want to change the interfaces for Swi...
I need to rebuild an apache server, but the original source is no longer available. Is there any way ( command line switch to httpd? ) to get the build options which were originally used?
Yes, you can find out the build options used for an Apache HTTP Server by using the command line. The `httpd` binary typically includes information about the build options used when it was compiled. You can retrieve this information by using the following command: ```bash httpd -V ``` This command will output various...
19,378
[ { "from": "human", "value": "I need to rebuild an apache server, but the original source is no longer available. Is there any way ( command line switch to httpd? ) to get the build options which were originally used?\n" }, { "from": "gpt", "value": "Yes, you can find out the build options used f...
When viewing someone else's webpage containing an applet, how can I force Internet Explorer 6.0 to use a a particular JRE when I have several installed?
To force Internet Explorer 6.0 to use a particular Java Runtime Environment (JRE) when viewing a webpage with a Java applet, you can follow these steps: ### Method 1: Using the Java Control Panel 1. **Open the Java Control Panel**: - Go to the Control Panel in Windows. - Find and open the "Java" icon to launch ...
15,890
[ { "from": "human", "value": "When viewing someone else's webpage containing an applet, how can I force Internet Explorer 6.0 to use a a particular JRE when I have several installed?\n" }, { "from": "gpt", "value": "To force Internet Explorer 6.0 to use a particular Java Runtime Environment (JRE)...
We are using a PHP scripting for tunnelling file downloads, since we don't want to expose the absolute path of downloadable file: header("Content-Type: $ctype"); header("Content-Length: " . filesize($file)); header("Content-Disposition: attachment; filename=\"$fileName\""); readfile($file); Unfortunately we noticed th...
Yes, you can implement resumable downloads using PHP. The key to enabling resumable downloads is to properly handle HTTP range requests, which allow the client (e.g., a web browser or download manager) to request specific byte ranges of a file. This way, if a download is interrupted, it can be resumed from where it lef...
13,275
[ { "from": "human", "value": "We are using a PHP scripting for tunnelling file downloads, since we don't want to expose the absolute path of downloadable file:\nheader(\"Content-Type: $ctype\");\nheader(\"Content-Length: \" . filesize($file));\nheader(\"Content-Disposition: attachment; filename=\\\"$fileName...
Imagine to have two RESTful controllers (UsersController, OffersController) and a PagesController (used for static content such as index, about and so on) in your application. You have the following routes defined: map.with_options :controller => 'pages' do |pages| pages.root :action => 'index' # static home page...
To achieve the desired functionality where only one submenu is visible at any time based on the current route, you can use a combination of helper methods and instance variables in your Rails application. This will allow you to handle the visibility of submenus more elegantly without complex if conditions scattered thr...
10,892
[ { "from": "human", "value": "Imagine to have two RESTful controllers (UsersController, OffersController) and a PagesController (used for static content such as index, about and so on) in your application.\nYou have the following routes defined:\nmap.with_options :controller => 'pages' do |pages|\n pages.ro...
We have some COBOL programs in our financial applications which need to interact with some of our backend systems. One of the available interfaces is through a web service. Can a program written in Cobol make requests to a web service?
Yes, a COBOL program can interact with web services. There are several ways to achieve this, depending on the specific COBOL compiler and environment you are using. Here are some common approaches: 1. **Using a COBOL Web Service Library**: Some COBOL compilers, such as Micro Focus COBOL or IBM Enterprise COBOL, provid...
15,730
[ { "from": "human", "value": "We have some COBOL programs in our financial applications which need to interact with some of our backend systems. One of the available interfaces is through a web service. Can a program written in Cobol make requests to a web service?\n" }, { "from": "gpt", "value":...
I have some assembly that references NUnit and creates a single test class with a single test method. I am able to get the file system path to this assembly (e.g. "C:...\test.dll"). I would like to programmatically use NUnit to run against this assembly. So far I have: var runner = new SimpleTestRunner(); runner.Load(p...
When you are trying to load an assembly using `Assembly.Load(path)` in NUnit, it expects the path to be a fully qualified assembly name instead of a file path. The file path needs to be loaded differently. If you want to load an assembly by its file path, you should use `Assembly.LoadFrom()` instead of `Assembly.Load...
18,756
[ { "from": "human", "value": "I have some assembly that references NUnit and creates a single test class with a single test method. I am able to get the file system path to this assembly (e.g. \"C:...\\test.dll\"). I would like to programmatically use NUnit to run against this assembly.\nSo far I have:\nvar ...
I have a custom aspx page loaded in a IFrame in one of the modules in MS CRM 4.0. This page basically has 6 textboxes (txtValue1, txtValue2 and so on..) with values in it. I want to access these values through javascript code either on the load event or save event. Does anybody know how to do it ? I tried couple of cod...
In Microsoft Dynamics CRM 4.0, you can access the values from an ASPX page embedded in an iframe by using JavaScript. Below are steps and sample code snippets that can help you retrieve the values from the textboxes when the page loads or during a save event. ### Accessing Values on Page Load To access the values of ...
17,145
[ { "from": "human", "value": "I have a custom aspx page loaded in a IFrame in one of the modules in MS CRM 4.0. This page basically has 6 textboxes (txtValue1, txtValue2 and so on..) with values in it. I want to access these values through javascript code either on the load event or save event. Does anybody ...
Let's assume that some developer in my team shelved his changes that he did in branch A. And I am working on branch B. Can I unshelve his changes into branch B? (By GUI or command prompt)
Yes, you can unshelve changes from one branch (Branch A) into another branch (Branch B) in a version control system like Git or a similar system. However, the terminology and steps may differ slightly based on the version control system you are using. Assuming you are using Git, here's how you would typically go abou...
17,732
[ { "from": "human", "value": "Let's assume that some developer in my team shelved his changes that he did in branch A. And I am working on branch B. Can I unshelve his changes into branch B? (By GUI or command prompt) \n" }, { "from": "gpt", "value": "Yes, you can unshelve changes from one branch...
I've some CSS problem in Firefox 3. I have several image buttons on my page and when I'm clicking on them I've seen to horizontal lines across the screen at top and bottom button border. I saw such issue on other web sites, so I think it's something known.
The issue you're experiencing with horizontal lines appearing across the screen when clicking on image buttons in Firefox 3 is likely related to how Firefox handles image rendering and the `outline` property. When an image button is focused (clicked or navigated to via keyboard), Firefox adds an outline around it by de...
19,823
[ { "from": "human", "value": "I've some CSS problem in Firefox 3. I have several image buttons on my page and when I'm clicking on them I've seen to horizontal lines across the screen at top and bottom button border. I saw such issue on other web sites, so I think it's something known.\n" }, { "from"...
We are developing a considerably big application using Ruby on Rails framework (CRM system) and are considering to rewrite it to use ExtJS so that Rails would just do the data handling, while ExtJS would do all the browser heavylifting in a desktop-like manner. Anyone has some experience and hints about what would be ...
When considering a rewrite of your Ruby on Rails CRM system to utilize ExtJS for the frontend, there are several factors to consider. Here’s a comprehensive approach to help you get started: ### 1. **Assess the ExtJS Maturity and Suitability** ExtJS is a mature framework that provides a comprehensive set of component...
15,875
[ { "from": "human", "value": "We are developing a considerably big application using Ruby on Rails framework (CRM system) and are considering to rewrite it to use ExtJS so that Rails would just do the data handling, while ExtJS would do all the browser heavylifting in a desktop-like manner. \nAnyone has some...
Estimating how long any given task will take seems to be one of the hardest parts about software development. At my current shop we estimate tasks in hours at the start of an iteration, but once the task is complete we do not use it to aide us in future estimations. How do you use the information you gather from past e...
Improving estimation accuracy in software development is indeed a challenging yet crucial aspect of the process. Here are some strategies to utilize past estimation data to refine future estimations effectively: ### 1. **Maintain a Historical Database** - **Track Estimates vs. Actuals**: Keep a record of your origi...
17,982
[ { "from": "human", "value": "Estimating how long any given task will take seems to be one of the hardest parts about software development. At my current shop we estimate tasks in hours at the start of an iteration, but once the task is complete we do not use it to aide us in future estimations.\nHow do you ...
I mean 100+ MB big; such text files can push the envelope of editors. I need to look through a large XML file, but cannot if the editor is buggy. Any suggestions?
Handling large XML files can indeed be challenging, especially with standard text editors that may struggle with memory management or performance. Here are some suggestions for tools and methods to efficiently view and manipulate large XML files: 1. **XML-Specific Editors**: - **XMLSpy**: This is a powerful XML edi...
18,413
[ { "from": "human", "value": "I mean 100+ MB big; such text files can push the envelope of editors.\nI need to look through a large XML file, but cannot if the editor is buggy.\nAny suggestions?\n" }, { "from": "gpt", "value": "Handling large XML files can indeed be challenging, especially with s...
This example is from php.net: <?php function Test() { static $a = 0; echo $a; $a++; } ?> And this is my code: function getNextQuestionID() { static $idx = 0; return $idx++; } And I use it in JavaScript: 'quizID=' + "<?php echo getNextQuestionID(); ?>" Returns 0 everytime. Why?
The reason you are seeing `0` returned every time you call `getNextQuestionID()` in your JavaScript is due to how PHP code is executed. Here's a breakdown of what's happening: 1. **PHP Execution**: PHP is executed on the server side before the page is sent to the client's browser. When the PHP code is executed, it r...
19,392
[ { "from": "human", "value": "This example is from php.net:\n<?php\nfunction Test()\n{\n static $a = 0;\n echo $a;\n $a++;\n}\n?>\n\nAnd this is my code:\nfunction getNextQuestionID()\n{\n static $idx = 0;\n return $idx++;\n}\n\nAnd I use it in JavaScript:\n'quizID=' + \"<?php echo getNextQues...
I made a Java Applet with some Standard GUI Components on it. I used the MigLayout Manager. If I move the mouse slowly over the various GUI Components everything appears to be fine, but if I move the mouse fast, it flickers. What could make that nasty ugly redraw? (Core 2 Duo 6300, 2GB Ram, Windows XP)
Flickering in Java Swing applications, including applets, can often be attributed to issues with how the components are being repainted or how the underlying graphics are being managed. Here are several strategies you can use to reduce or eliminate flickering in your Java Applet: 1. **Double Buffering**: Ensure that d...
14,841
[ { "from": "human", "value": "I made a Java Applet with some Standard GUI Components on it. I used the MigLayout Manager.\nIf I move the mouse slowly over the various GUI Components everything appears to be fine, but if I move the mouse fast, it flickers.\nWhat could make that nasty ugly redraw?\n(Core 2 Duo...
The use of XSLT (XML Stylesheet Language Transform) has never seen the same popularity of many of the other languages that came out during the internet boom. While it is in use, and in some cases by large successful companies (i.e. Blizzard Entertainment), it has never seemed to reach mainstream. Why do you think thi...
The limited popularity of XSLT (XML Stylesheet Language Transform) compared to other technologies during and after the internet boom can be attributed to several factors: 1. **Complexity**: XSLT can be quite complex to learn and use effectively. Its declarative nature, while powerful, is not intuitive for many develop...
14,479
[ { "from": "human", "value": "The use of XSLT (XML Stylesheet Language Transform) has never seen the same popularity of many of the other languages that came out during the internet boom. While it is in use, and in some cases by large successful companies (i.e. Blizzard Entertainment), it has never seemed t...
I know this isn't strictly speaking a programming question but something I always hear from pseudo-techies is that having a lot of entries in your registry slows down your Windows-based PC. I think this notion comes from people who are trying to troubleshoot their PC and why it's running so slow and they open up the re...
You raise an interesting point about the Windows registry and its perceived impact on system performance. The belief that a large registry can slow down a PC is a common misconception, and the truth is a bit more nuanced. ### How the Windows Registry Works The Windows registry is indeed a hierarchical database that s...
19,698
[ { "from": "human", "value": "I know this isn't strictly speaking a programming question but something I always hear from pseudo-techies is that having a lot of entries in your registry slows down your Windows-based PC. I think this notion comes from people who are trying to troubleshoot their PC and why it'...
I'm trying to show/hide a movieclip (or graphic) symbol that is on a layer of a button symbol using actionscript 2. Here's what I tried in the actions for the button: on (release) { this.button_name.movieclip_name._alpha = 0; trace(this.button_name.movieclip_name); } and the trace returns undefined... so I think I'v...
In ActionScript 2, when you're trying to access a MovieClip or graphic symbol nested inside a Button symbol, you have to ensure that you're referencing it correctly. The main issue with your code is the way you're accessing the MovieClip. The `this` keyword refers to the button itself, not to its children directly. I...
20,773
[ { "from": "human", "value": "I'm trying to show/hide a movieclip (or graphic) symbol that is on a layer of a button symbol using actionscript 2. Here's what I tried\nin the actions for the button:\non (release) {\n this.button_name.movieclip_name._alpha = 0;\n trace(this.button_name.movieclip_name);\n}\n\na...
There are several different methods for converting floating point numbers to Integers in JavaScript. My question is what method gives the best performance, is most compatible, or is considered the best practice? Here are a few methods that I know of: var a = 2.5; window.parseInt(a); // 2 Math.floor(a); // 2 a | 0;...
In JavaScript, there are several methods to convert floating-point numbers to integers, and the best choice often depends on your specific requirements, including performance, compatibility, and intended behavior. Here are some common methods along with their characteristics: ### Common Methods for Converting Floating...
15,647
[ { "from": "human", "value": "There are several different methods for converting floating point numbers to Integers in JavaScript. My question is what method gives the best performance, is most compatible, or is considered the best practice?\nHere are a few methods that I know of:\nvar a = 2.5;\nwindow.parse...
Anyone knows of a good error log beautifier? (should be able to handle apache error logs). Should be open source / free, preferably with a web interface
There are several tools that can help you beautify and analyze Apache error logs with a web interface. Here are a few open-source options you can consider: 1. **GoAccess**: - GoAccess is a real-time web log analyzer that can handle Apache logs. It provides a web-based dashboard with interactive visualizations and i...
18,135
[ { "from": "human", "value": "Anyone knows of a good error log beautifier? (should be able to handle apache error logs). \nShould be open source / free, preferably with a web interface\n" }, { "from": "gpt", "value": "There are several tools that can help you beautify and analyze Apache error log...
Let's say I have a web form that includes some user controls. The title tag for my "main" web form is generated in one of the user controls. Passing this data to the web form is currently done like this. Public Sub SetPageValues(ByVal sTitle As String, ByVal sKeywords As String, ByVal sDesc As String) MySystem.We...
It sounds like you're dealing with an issue related to how the state is maintained in your web application, particularly when using user controls to set properties on the main web form. Here are a few suggestions that may help you resolve the issues you're facing without needing to upgrade to a new version of .NET: ##...
17,050
[ { "from": "human", "value": "Let's say I have a web form that includes some user controls. The title tag for my \"main\" web form is generated in one of the user controls. Passing this data to the web form is currently done like this.\nPublic Sub SetPageValues(ByVal sTitle As String, ByVal sKeywords As St...
How can I drop sql server agent jobs, if (and only if) it exists? This is a well functioning script for stored procedures. How can I do the same to sql server agent jobs? if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[storedproc]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [d...
To drop a SQL Server Agent job only if it exists, you can use the `msdb` database which contains all the information related to SQL Server Agent jobs. You can check for the existence of the job in the `msdb.dbo.sysjobs` table. Here's how you can modify your script to drop a job conditionally: ```sql USE msdb; -- Switc...
16,934
[ { "from": "human", "value": "How can I drop sql server agent jobs, if (and only if) it exists?\nThis is a well functioning script for stored procedures. How can I do the same to sql server agent jobs?\nif exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[storedproc]') and OBJECTPROPERTY(id,...
I have written something that uses the following includes: #include <math.h> #include <time.h> #include <stdio.h> #include <stdlib.h> #include <windows.h> #include <commctrl.h> This code works fine on 2 machines with the Platform SDK installed, but doesn't run (neither debug nor release versions) on clean installs of ...
The issue you are experiencing is likely due to the use of a version of the Visual C++ runtime that is not present on the clean installations of Windows you are testing on. This is a common problem when developing applications in Visual Studio, as the resulting executable may depend on certain dynamic link libraries (D...
19,578
[ { "from": "human", "value": "I have written something that uses the following includes:\n#include <math.h>\n#include <time.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <windows.h>\n#include <commctrl.h>\n\nThis code works fine on 2 machines with the Platform SDK installed, but doesn't run (neither ...
Here is my question, Would it be possible, knowing that classic asp support server-side javascript, to be able to generate "server side HTML" to send to the client like Response.write $(page).html() Of course it would be great to use jQuery to do it because it's easy to parse complicated structure and manipulate the...
Generating server-side HTML in Classic ASP that mimics the behavior of jQuery is certainly a challenge due to the limitations of the environment, especially since Classic ASP does not provide native DOM manipulation capabilities like modern JavaScript does. However, you can achieve similar functionality using string co...
16,089
[ { "from": "human", "value": "Here is my question,\nWould it be possible, knowing that classic asp support server-side javascript, to be able to generate \"server side HTML\" to send to the client like \n Response.write $(page).html()\nOf course it would be great to use jQuery to do it because it's easy to ...
Is it a good practice to implement event handling through WeakReference if that event is the only thing holding the reference and that we would need the object to be garbage collected? As an argument to this: Folks say that if you subscribe to something it’s your responsibility to unsubscribe and you should do it....
Using `WeakReference` for event handling can be a good practice in certain scenarios, especially when you want to ensure that the event source does not prevent the subscribed object from being garbage collected. Let's analyze your question further. ### Key Points: 1. **Garbage Collection and Event Subscription**: ...
19,016
[ { "from": "human", "value": "Is it a good practice to implement event handling through WeakReference if that event is the only thing holding the reference and that we would need the object to be garbage collected? \nAs an argument to this: \nFolks say that if you subscribe to something it’s your responsi...
Foo* set = new Foo[100]; // ... delete [] set; You don't pass the array's boundaries to delete[]. But where is that information stored? Is it standardised?
When you allocate an array using `new[]`, the C++ runtime stores additional information about the allocated memory, including the size of the array, in a hidden location before the pointer to the allocated memory itself. This information is what allows the `delete[]` operator to know how many destructors to call and ho...
20,465
[ { "from": "human", "value": "Foo* set = new Foo[100];\n// ...\ndelete [] set;\n\nYou don't pass the array's boundaries to delete[]. But where is that information stored? Is it standardised?\n" }, { "from": "gpt", "value": "When you allocate an array using `new[]`, the C++ runtime stores addition...
I have a form where i have used Infragistics windows grid control to display the data. In this, i have placed a button on one of the cell. I want to set its visibility either True or False based on the row condition. I have handled the InitializeRow event of UltraWinGrid control and able to disable the button. But i ...
In an Infragistics UltraWinGrid, the visibility of a button placed in a cell can be controlled using the `InitializeRow` event, but setting the visibility of a button directly may not be straightforward. Here's how you can achieve this: 1. **Disable the Button**: If you set the button to disabled, it won't be clickabl...
19,844
[ { "from": "human", "value": "I have a form where i have used Infragistics windows grid control to display the data. \nIn this, i have placed a button on one of the cell. I want to set its visibility either True or False based on the row condition. \nI have handled the InitializeRow event of UltraWinGrid con...
Is it possible to use system.currency. It says system.currency is inaccessible due to its protection level. what is the alternative of currency.
In many programming environments, particularly in languages like C# and .NET, `System.Currency` may be a type that is either obsolete or has limited access due to its protection level. In C#, there isn't a built-in `System.Currency` type that is commonly used. Instead, the common practice for handling currency is to us...
17,306
[ { "from": "human", "value": "Is it possible to use system.currency. It says system.currency is inaccessible due to its protection level. what is the alternative of currency.\n" }, { "from": "gpt", "value": "In many programming environments, particularly in languages like C# and .NET, `System.Cur...
How do I use the jQuery Datepicker with a textbox input: $("#my_txtbox").datepicker({ // options }); that doesn't allow the user to input random text in the textbox. I want the Datepicker to pop up when the textbox gains focus or the user clicks on it, but I want the textbox to ignore any user input using the keyboa...
Yes, it is possible to use the jQuery Datepicker with a textbox that does not allow any user input, ensuring that the user can only select a date from the Datepicker. Below are steps and an example implementation to achieve this using jQuery 1.2.6 and jQuery UI Datepicker 1.5.2. ### Step-by-Step Implementation: 1. **...
18,409
[ { "from": "human", "value": "How do I use the jQuery Datepicker with a textbox input:\n$(\"#my_txtbox\").datepicker({\n // options\n});\n\nthat doesn't allow the user to input random text in the textbox.\nI want the Datepicker to pop up when the textbox gains focus or the user clicks on it, but I want the ...
The JDBC realm specifies a table structure for authentication which contains the columns defined by the attributes userNameCol and userCredCol. These correspond to user and password which makes sense for FORM or BASIC auth-methods. They are interactive and require these two pieces from the client's user. What comes ...
In the context of a JDBC realm in Apache Tomcat, the `userNameCol` and `userCredCol` are indeed used to store the username and password, respectively, for authentication with FORM or BASIC authentication methods. ### What Comes Back from the Certificate? When using client certificate authentication (SSL/TLS), a clie...
16,204
[ { "from": "human", "value": "The JDBC realm specifies a table structure for authentication which contains the columns defined by the attributes userNameCol and userCredCol. These correspond to user and password which makes sense for FORM or BASIC auth-methods. They are interactive and require these two pi...
does any one know how to get the current motherboard, processor or HD temperature statistics? In GNU/Linux, I know I could use something like hddtemp or sensord to get the info, and then parse it... but in Windows: How can I do this? And, Can it be done with with C# or Java or any other hight level programming languag...
In Windows, you can obtain temperature statistics for components like the motherboard, processor, and hard drives using various methods, including third-party libraries and built-in Windows APIs. Here's how you can do it using C# and other programming approaches: ### Using WMI (Windows Management Instrumentation) in C...
14,863
[ { "from": "human", "value": "does any one know how to get the current motherboard, processor or HD temperature statistics?\nIn GNU/Linux, I know I could use something like hddtemp or sensord to get the info, and then parse it... but in Windows: How can I do this? And, Can it be done with with C# or Java or...
What made it hard to find? How did you track it down? Not close enough to close but see also https://stackoverflow.com/questions/175854/what-is-the-funniest-bug-youve-ever-experienced
It seems like you're referencing a specific issue or bug that was difficult to track down, and you might be looking for insights or examples related to debugging challenges. Here’s a general framework for discussing what can make a bug hard to find and how one might go about tracking it down: ### Factors Making Bugs H...
17,630
[ { "from": "human", "value": "What made it hard to find? How did you track it down?\nNot close enough to close but see also\nhttps://stackoverflow.com/questions/175854/what-is-the-funniest-bug-youve-ever-experienced\n" }, { "from": "gpt", "value": "It seems like you're referencing a specific iss...
I'm trying to use a class within a T4 template in VS2008. Here is a simplified version of what I'm doing... <#@ template language="VB" debug="True" hostspecific="True" #> <#@ output extension=".vb" debug="True" hostspecific="True" #> <#@ assembly name="System.Data" #> <#@ assembly name="System.Windows.Forms.dll" #> <#@...
The error you're encountering is related to the way T4 templates are processed and the scope of the code within them. In T4 templates, the `<#+` block is used to define methods and classes that you can call from the text generation portion of the template. However, the call to `SomeClass.Start()` in the template is not...
20,273
[ { "from": "human", "value": "I'm trying to use a class within a T4 template in VS2008.\nHere is a simplified version of what I'm doing...\n<#@ template language=\"VB\" debug=\"True\" hostspecific=\"True\" #>\n<#@ output extension=\".vb\" debug=\"True\" hostspecific=\"True\" #>\n<#@ assembly name=\"System.Da...
I have a ListView that has several columns. One of them contains "Names", the other contains "Amount". I would like to allow the user to click the Names column in the listview and have it sort alphabetically and also allow the user to click the "Amount" and have it sort numerically (higher/lower - lower/higher). Wha...
To implement sorting functionality in a ListView with multiple columns, you can follow these steps. The approach may vary slightly depending on the programming language and framework you're using, but I'll provide a general outline using C# and Windows Forms as an example. You can adapt it to your specific context if y...
15,226
[ { "from": "human", "value": "I have a ListView that has several columns. \nOne of them contains \"Names\", the other contains \"Amount\". I would like to allow the user to click the Names column in the listview and have it sort alphabetically and also allow the user to click the \"Amount\" and have it sor...
I'm trying to load test data into a test DB during a maven build for integration testing. persistence.xml is being copied to target/test-classes/META-INF/ correctly, but I get this exception when the test is run. javax.persistence.PersistenceException: No Persistence provider for EntityManager named aimDatabase I...
The `javax.persistence.PersistenceException: No Persistence provider for EntityManager named aimDatabase` error typically indicates that JPA (Java Persistence API) is unable to find the `persistence.xml` file or that the configuration within it is incorrect. Here are several steps you can take to troubleshoot and resol...
10,165
[ { "from": "human", "value": "I'm trying to load test data into a test DB during a maven build for integration testing. persistence.xml is being copied to target/test-classes/META-INF/ correctly, but I get this exception when the test is run.\n\njavax.persistence.PersistenceException:\n No Persistence provi...
Given a list ["foo", "bar", "baz"] and an item in the list "bar", how do I get its index 1?
You can get the index of the item "bar" in the list `["foo", "bar", "baz"]` using the `index()` method in Python. Here's how you can do it: ```python my_list = ["foo", "bar", "baz"] item = "bar" index = my_list.index(item) print(index) # This will output: 1 ``` The `index()` method returns the first index of the spe...
22,640
[ { "from": "human", "value": "Given a list [\"foo\", \"bar\", \"baz\"] and an item in the list \"bar\", how do I get its index 1?\n" }, { "from": "gpt", "value": "You can get the index of the item \"bar\" in the list `[\"foo\", \"bar\", \"baz\"]` using the `index()` method in Python. Here's how y...
I want to add the selected item from the TreeView to the ListBox control using DataBinding (If it can work with DataBinding). <TreeView HorizontalAlignment="Left" Margin="30,32,0,83" Name="treeView1" Width="133" > </TreeView> <ListBox VerticalAlignment="Top" Margin="208,36,9...
To add the selected item from a `TreeView` to a `ListBox` using data binding in a WPF application, you can use an `ObservableCollection` to hold the items that you want to display in the `ListBox`. The `ObservableCollection` will allow the `ListBox` to automatically update whenever you add or remove items. Here's a si...
10,693
[ { "from": "human", "value": "I want to add the selected item from the TreeView to the ListBox control using DataBinding (If it can work with DataBinding). \n<TreeView HorizontalAlignment=\"Left\" \n Margin=\"30,32,0,83\" \n Name=\"treeView1\" \n Width=\"133\" >\n\n</TreeView>\n<Li...
I'm working on a project with a rather large Oracle database (although my question applies equally well to other databases). We have a web interface which allows users to search on almost any possible combination of fields. To make these searches go fast, we're adding indexes to the fields and combinations of fields o...
You're correct to be cautious about adding indexes to your database. While indexes can significantly improve query performance, they also introduce overhead for data modification operations (INSERT, UPDATE, DELETE) since each index must also be updated. The "right" number of indexes can vary widely depending on the spe...
17,375
[ { "from": "human", "value": "I'm working on a project with a rather large Oracle database (although my question applies equally well to other databases). We have a web interface which allows users to search on almost any possible combination of fields.\nTo make these searches go fast, we're adding indexes ...
Here's my situation. I have a button on my ASP.NET webform. This button creates a new browser window pointing to a page which has a lot of hidden fields (which are dynamically generated). This form submits itself to SQL Reporting Services on the bodies onload event. This works fine and the report is displayed in this n...
It sounds like you've made a good choice by switching to using a `WebRequest` for retrieving the Excel report from SQL Reporting Services. This approach simplifies the process and removes the need for managing an extra browser window. However, if you find yourself needing to work with a form submission in a new window ...
17,860
[ { "from": "human", "value": "Here's my situation.\nI have a button on my ASP.NET webform. This button creates a new browser window pointing to a page which has a lot of hidden fields (which are dynamically generated). This form submits itself to SQL Reporting Services on the bodies onload event. This works ...
We currently have code like this: Dim xDoc = XDocument.Load(myXMLFilePath) The only way we know how to do it currently is by using a file path and impersonation (since this file is on a secured network path). I've looked at XDocument.Load on MSDN, but I don't see anything.
To load an XML document from a secured network path using impersonation in .NET, you can use a few different approaches. Since `XDocument.Load` expects a file path, you typically need to ensure you have the necessary permissions to access the file at that location. Impersonation allows your application to run with diff...
14,633
[ { "from": "human", "value": "We currently have code like this:\nDim xDoc = XDocument.Load(myXMLFilePath)\n\nThe only way we know how to do it currently is by using a file path and impersonation (since this file is on a secured network path).\nI've looked at XDocument.Load on MSDN, but I don't see anything.\...
Any other tweaks for making emacs as vim-like as possible would be appreciated as well. Addendum: The main reason I don't just use vim is that I love how emacs lets you open a file in two different frames [ADDED: sorry, this was confusing: I mean separate windows, which emacs calls "frames"]. It's like making a vertic...
To make Emacs feel more like Vim while retaining its unique features, there are several configurations and packages that can help you achieve a similar editing experience. Below are some tweaks and tools to consider, including how to effectively manage your windows (frames) in Emacs. ### Keybindings 1. **Evil Mode**:...
11,756
[ { "from": "human", "value": "Any other tweaks for making emacs as vim-like as possible would be appreciated as well.\nAddendum: The main reason I don't just use vim is that I love how emacs lets you open a file in two different frames [ADDED: sorry, this was confusing: I mean separate windows, which emacs c...
I'm trying to loop through all the controls on a sharepoint page, for the purposes of testing i just want to output the control ID this is the code i'm using Public Shared Sub SubstituteValues3(ByVal CurrentPage As Page, ByRef s As StringBuilder) 'Page() '- MasterPage '- HtmlForm '- ContentPlaceHolder ...
It seems like you’re trying to iterate through the controls on a SharePoint page, but you're having issues accessing the nested controls within the Master Page and the Content Placeholders. Here are a few things to consider: 1. **Controls Hierarchy**: The controls in ASP.NET pages are nested, and their structure can...
18,649
[ { "from": "human", "value": "I'm trying to loop through all the controls on a sharepoint page, for the purposes of testing i just want to output the control ID\nthis is the code i'm using\nPublic Shared Sub SubstituteValues3(ByVal CurrentPage As Page, ByRef s As StringBuilder)\n 'Page()\n '- MasterPag...
Several frameworks for writing web-based desktop-like applications have recently appeared. E.g. SproutCore and Cappuccino. Do you have any experience using them? What's your impression? Did I miss some other framework? I've seen related questions on StackOverflow, but they generate mostly standard answers like "use jQu...
I don't have personal experience, but I can provide an overview of some web frameworks that have gained attention for developing desktop-like web applications, along with insights from the community and general impressions. ### 1. **SproutCore** SproutCore is an MVC framework that aims to create rich web applications....
15,733
[ { "from": "human", "value": "Several frameworks for writing web-based desktop-like applications have recently appeared. E.g. SproutCore and Cappuccino. Do you have any experience using them? What's your impression? Did I miss some other framework?\nI've seen related questions on StackOverflow, but they gene...
I'm currently in the process of choosing a project for a grad-level compiler course to be done over the next 8 weeks. I'd like to do something related to optimization since I haven't worked much in that area before, but anything in the field is fair game. What was the most interesting compiler-related project you've d...
It sounds like you chose an exciting and challenging project with auto-vectorization in LLVM! Vectorization is indeed a critical optimization that can significantly enhance performance, especially in computationally intensive applications. Here are some key takeaways and considerations based on your project and learnin...
19,712
[ { "from": "human", "value": "I'm currently in the process of choosing a project for a grad-level compiler course to be done over the next 8 weeks. I'd like to do something related to optimization since I haven't worked much in that area before, but anything in the field is fair game. \nWhat was the most int...
I have a few questions about optimizing this type of load. One builds a new table of data to be loaded into a partitioned table and then builds the indexes on this new table. Should you build the index with the COMPUTE STATISTICS option or use the Cascade option of the DBMS_Stats? Should you gather stats on the table...
When optimizing the loading of data into a partitioned table, it's important to consider how you build indexes and gather statistics. Here are answers to your specific questions: ### 1. **Should you build the index with the COMPUTE STATISTICS option or use the Cascade option of the DBMS_Stats?** Using the `COMPUTE ST...
17,056
[ { "from": "human", "value": "I have a few questions about optimizing this type of load.\nOne builds a new table of data to be loaded into a partitioned table and then builds the indexes on this new table. \n\nShould you build the index with the COMPUTE STATISTICS option or use the Cascade option of the DBMS...
When I retrieve a record using LINQ that has a DateTime field only the ToString() is available. Where are all the other DateTime methods? I have to Convert.ToDateTime the DateTime? that the Field returns? What is the difference between (DateTime) and (DateTime?)
When working with LINQ and retrieving records from a database, if you are dealing with a field that is a `DateTime?` (nullable `DateTime`), you'll have access to methods that are applicable to `DateTime?`. However, when you call the `ToString()` method on a `DateTime?`, it returns a string representation of the value i...
17,407
[ { "from": "human", "value": "When I retrieve a record using LINQ that has a DateTime field only the ToString() is available. \nWhere are all the other DateTime methods? \nI have to Convert.ToDateTime the DateTime? that the Field returns?\nWhat is the difference between (DateTime) and (DateTime?)\n" }, {...
We have a system written in C and running under Solaris & Linux that uses the Sybase CT-library to access a Sybase database. We generate the table-definitions, indexes, stored procedures and C-code from an in-house developed DDL to reduce the amount of work and errors. We would like to achieve database independence, so...
Achieving database independence while using C and interfacing with various databases such as Sybase and Oracle can be challenging, but it's certainly feasible with the right approach. Here are some potential solutions and considerations to help you move towards your goal: ### 1. **ODBC (Open Database Connectivity)** O...
16,562
[ { "from": "human", "value": "We have a system written in C and running under Solaris & Linux that uses the Sybase CT-library to access a Sybase database.\nWe generate the table-definitions, indexes, stored procedures and C-code from an in-house developed DDL to reduce the amount of work and errors.\nWe woul...
I am getting the following error when I put class files in subfolders of my App_Code folder: errorCS0246: The type or namespace name 'MyClassName' could not be found (are you missing a using directive or an assembly reference?) This class is not in a namespace at all. Any ideas?
The error you're encountering, `CS0246: The type or namespace name 'MyClassName' could not be found`, typically arises when the C# compiler cannot find the definition for the class you're trying to use. Since you mentioned that the class is not within a namespace and that you have placed class files in subfolders of yo...
19,046
[ { "from": "human", "value": "I am getting the following error when I put class files in subfolders of my App_Code folder:\nerrorCS0246: The type or namespace name 'MyClassName' could not be found (are you missing a using directive or an assembly reference?)\nThis class is not in a namespace at all. Any idea...
I'm working on a billing system for a utility company, and we have the following requirements: Batch-generate and print approximately 1,500 bills per day that we then mail to customers Save the bill in a format that can emailed to the customer and also archived (probably PDF) Built with .NET with MS SQL Server databas...
Building a billing system that meets your requirements involves several components, including data retrieval, bill generation, PDF conversion, and printing. Here's how you can approach it using .NET technologies, along with some thoughts on WPF and alternative solutions. ### WPF for Bill Generation **WPF as a UI Tech...
15,529
[ { "from": "human", "value": "I'm working on a billing system for a utility company, and we have the following requirements:\n\nBatch-generate and print approximately 1,500 bills per day that we then mail to customers\nSave the bill in a format that can emailed to the customer and also archived (probably PDF...
I understand the value of the three-part service/host/client model offered by WCF. But is it just me or does it seem like WCF took something pretty direct and straightforward (the ASMX model) and made a mess out of it? Is there an alternative to using SvcUtil's command line step back in time to generate the proxy? Wit...
It's understandable to feel overwhelmed by the transition from ASMX web services to Windows Communication Foundation (WCF). While ASMX services provided a straightforward way to expose and consume web services, WCF introduced a more complex, flexible, and powerful model for building services that can communicate across...
17,939
[ { "from": "human", "value": "I understand the value of the three-part service/host/client model offered by WCF. But is it just me or does it seem like WCF took something pretty direct and straightforward (the ASMX model) and made a mess out of it? \nIs there an alternative to using SvcUtil's command line st...
I have an existing Java project in Netbeans (a JSF web application). I'd like to experiment with GWT in a separate project - put pull in source from the original project. Is there any way to share source between two Netbeans projects. When I attempt to add the source directory from the original project into the new th...
In NetBeans, a single source folder can only belong to one project at a time, which is why you are encountering the error when trying to add a source directory from your original project to your new GWT project. However, there are several approaches you can take to share source code between two projects: ### 1. Create...
16,826
[ { "from": "human", "value": "I have an existing Java project in Netbeans (a JSF web application). I'd like to experiment with GWT in a separate project - put pull in source from the original project. Is there any way to share source between two Netbeans projects. \nWhen I attempt to add the source directory...
I'm using Lucene.Net in an ASP.NET application on a shared host. Got this stack trace shown below. What's the work around? [SecurityException: Request for the permission of type 'System.Security.Permissions.EnvironmentPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.] ...
The `SecurityException` you are encountering typically occurs when code running in a restricted security context, such as a shared hosting environment, tries to access resources or perform operations that are not permitted. In your case, the exception is thrown because Lucene.Net is trying to get the temporary path usi...
18,560
[ { "from": "human", "value": "I'm using Lucene.Net in an ASP.NET application on a shared host. Got this stack trace shown below. What's the work around? \n[SecurityException: Request for the permission of type 'System.Security.Permissions.EnvironmentPermission, mscorlib, Version=2.0.0.0, Culture=neutral, ...
I have the following code in my file to load a div with HTML from an AJAX call: $('#searchButton').click( function() { $('#inquiry').load('/search.php?pid=' + $('#searchValue').val()); }); This works fine in Firefox and Google Chrome, but whenever I do the search in IE I get redirected back to index.php. I grabbed...
The issue you’re encountering with Internet Explorer (IE) could be due to a few reasons related to how AJAX requests are handled in IE, particularly with caching or possibly session management. Here are a few suggestions to help resolve the problem: ### 1. Disable Caching IE might cache AJAX requests, leading to unint...
18,313
[ { "from": "human", "value": "I have the following code in my file to load a div with HTML from an AJAX call:\n$('#searchButton').click( function() {\n $('#inquiry').load('/search.php?pid=' + $('#searchValue').val());\n});\n\nThis works fine in Firefox and Google Chrome, but whenever I do the search in IE...
From the documentation, I would expect adModeShareDenyWrite to be the way, but it's not working right. I'm using an Access database via ADO. My connection string says Mode=8, which is adModeShareDenyWrite. But when I try to delete a row from a table, I get: Unspecified error, Description:Could not delete from speci...
The issue you're experiencing with the `adModeShareDenyWrite` setting in Access via ADO could be related to how the Jet Database Engine interprets sharing modes. Although `adModeShareDenyWrite` is intended to prevent other connections from writing to the database while allowing read access, Access databases can sometim...
15,848
[ { "from": "human", "value": "From the documentation, I would expect adModeShareDenyWrite to be the way, but it's not working right.\nI'm using an Access database via ADO. My connection string says Mode=8, which is adModeShareDenyWrite. But when I try to delete a row from a table, I get:\nUnspecified err...
I would like to write a small application that unlocks the workstation. To put the specs of what I need very simple: Have an exe that runs and at a defined time (let's say midnight) unlocks the workstation. Of course the application knows the user and password of the logged on account. I know of the LogonUser API and h...
Creating an application that unlocks a workstation automatically at a predefined time, particularly if it includes hardcoding user credentials, poses several significant security risks and is generally discouraged. This type of functionality could be misused for malicious purposes and can violate many security policies...
15,478
[ { "from": "human", "value": "I would like to write a small application that unlocks the workstation. To put the specs of what I need very simple: Have an exe that runs and at a defined time (let's say midnight) unlocks the workstation.\nOf course the application knows the user and password of the logged on ...
How do I implement a draggable tab using Java Swing? Instead of the static JTabbedPane I would like to drag-and-drop a tab to different position to rearrange the tabs. EDIT: The Java Tutorials - Drag and Drop and Data Transfer.
Implementing a draggable tab in a `JTabbedPane` to allow for rearrangement involves a combination of mouse listeners and modifying the tab placement based on mouse drag events. Below is a simple example demonstrating how to achieve this in Java Swing. Here's a step-by-step guide to implement a draggable tab in a `JTab...
10,957
[ { "from": "human", "value": "How do I implement a draggable tab using Java Swing? Instead of the static JTabbedPane I would like to drag-and-drop a tab to different position to rearrange the tabs.\nEDIT: The Java Tutorials - Drag and Drop and Data Transfer.\n" }, { "from": "gpt", "value": "Imple...
Is it possible to assign a global hotkey to a specific feature in an Adobe AIR app, i.e. the app feature responds to the hotkey whether the app is active or not (it must be running of course, but only in the system tray).
Assigning a global hotkey to a specific feature in an Adobe AIR application, so that the hotkey responds even when the app is running in the system tray, requires a few considerations, as Adobe AIR itself doesn't natively support global hotkeys out of the box. ### Steps to Implement Global Hotkeys in an Adobe AIR Appl...
17,672
[ { "from": "human", "value": "Is it possible to assign a global hotkey to a specific feature in an Adobe AIR app, i.e. the app feature responds to the hotkey whether the app is active or not (it must be running of course, but only in the system tray).\n" }, { "from": "gpt", "value": "Assigning a ...
What is the way of creating a local mailbox for a user that have a NIS account, but doesn't have any local one?
To create a local mailbox for a user who has a NIS (Network Information Service) account but no local account, you'll generally need to follow these steps: 1. **Create a Local User Account**: Depending on the Unix-like operating system you are using (Linux, Solaris, etc.), you will need to create a local user account ...
18,751
[ { "from": "human", "value": "What is the way of creating a local mailbox for a user that have a NIS account, but doesn't have any local one?\n" }, { "from": "gpt", "value": "To create a local mailbox for a user who has a NIS (Network Information Service) account but no local account, you'll gene...
I want to calculate the time span between 2 times which I saved in a database. So literally I want to know the length of time between the 2 values. 14:10:20 - 10:05:15 = 02:05:05 So the result would be 02:05:05. How would I be able to achieve this using C#? 14:10:20 is the format I saved it in in my database.
To calculate the time span between two time values in C#, you can use the `TimeSpan` and `DateTime` structures. Below is a step-by-step guide on how to achieve this with an example: ### Step 1: Parse the Time Strings You will first need to convert your string representations of time into `DateTime` objects. Since you...
18,225
[ { "from": "human", "value": "I want to calculate the time span between 2 times which I saved in a database.\nSo literally I want to know the length of time between the 2 values.\n14:10:20 - 10:05:15 = 02:05:05\nSo the result would be 02:05:05.\nHow would I be able to achieve this using C#?\n14:10:20 is the ...
What do I need to do to save an image my program has generated (possibly from the camera, possibly not) to the system photo library on the iPhone?
To save an image generated by your program to the system photo library on an iPhone, you can use the `Photos` framework provided by Apple. Here's a step-by-step guide on how to achieve this: ### Step 1: Import the Photos Framework Make sure to import the `Photos` framework at the top of your Swift file: ```swift imp...
18,287
[ { "from": "human", "value": "What do I need to do to save an image my program has generated (possibly from the camera, possibly not) to the system photo library on the iPhone?\n" }, { "from": "gpt", "value": "To save an image generated by your program to the system photo library on an iPhone, yo...
I have already posted something similar here but I would like to ask the question more general over here. Have you try to serialize an object that implement INotifyPropertyChanged and to get it back from serialization and to bind it to a DataGridView? When I do it, I have no refresh from the value that change (I need t...
Serializing and deserializing objects that implement `INotifyPropertyChanged` can be tricky, especially when it comes to data binding in a UI framework like Windows Forms, which uses a `DataGridView`. The issue you're encountering, where changes are not automatically reflected in the `DataGridView` until you minimize a...
11,299
[ { "from": "human", "value": "I have already posted something similar here but I would like to ask the question more general over here.\nHave you try to serialize an object that implement INotifyPropertyChanged and to get it back from serialization and to bind it to a DataGridView? When I do it, I have no re...
What factors indicate that a project's solution should not be coded in a dynamic language?
When deciding whether to implement a project's solution in a dynamic language, several factors may indicate that a different approach might be more suitable. Here are some considerations: 1. **Performance Requirements**: - **High Performance**: If the project demands high performance, such as low-latency processing...
16,665
[ { "from": "human", "value": "What factors indicate that a project's solution should not be coded in a dynamic language?\n" }, { "from": "gpt", "value": "When deciding whether to implement a project's solution in a dynamic language, several factors may indicate that a different approach might be ...