instruction
stringlengths
14
27.6k
completion
stringlengths
3
38.3k
__original_row_idx
int64
0
50k
conversations
listlengths
2
2
I was kind of scratching my head at this a week ago, and now with a little bit more Cocoa experience under my belt I feel like I have an inkling as to what might be going on. I'm making an application that is driven by a UINavigationController. In the AppDelegate, I create an instance of this class, using "page 1" as ...
You've stumbled upon a common confusion when working with view controllers in a UINavigationController hierarchy. Let’s break down what's happening and provide a solution. When you present a modal view controller, the `parentViewController` property of the modal view controller points to the UINavigationController, no...
25,434
[ { "from": "human", "value": "I was kind of scratching my head at this a week ago, and now with a little bit more Cocoa experience under my belt I feel like I have an inkling as to what might be going on. \nI'm making an application that is driven by a UINavigationController. In the AppDelegate, I create an ...
I have read that while plug-ins are not supported for SQL Server Management Studio, it can be done. Does anyone have any resources or advice on how to go about it using C#? A company that is currently offering plug-ins to Management Studio is Red Gate: http://www.red-gate.com/products/SQL_Refactor/index.htm
While SQL Server Management Studio (SSMS) does not officially support plug-ins, it is possible to extend its functionality through various means, including using Visual Studio extensions, COM add-ins, or by employing external tools. Below are some steps and resources you might find helpful for developing your own plug-...
13,414
[ { "from": "human", "value": "I have read that while plug-ins are not supported for SQL Server Management Studio, it can be done.\nDoes anyone have any resources or advice on how to go about it using C#?\nA company that is currently offering plug-ins to Management Studio is Red Gate:\nhttp://www.red-gate.com...
On the web side we are working on getting source control. Now, I want to see what can be done for the iSeries side. What is your favorite source control application for iSeries and why? I am looking for low-cost if possible.
For source control on the iSeries (IBM i), several options are available, depending on your specific needs, budget, and the environment you're working in. Here are some popular options, along with their advantages: 1. **Rational Team Concert (RTC)**: - **Why it’s favored**: RTC is specifically designed for IBM i d...
23,498
[ { "from": "human", "value": "On the web side we are working on getting source control. Now, I want to see what can be done for the iSeries side. What is your favorite source control application for iSeries and why? I am looking for low-cost if possible.\n" }, { "from": "gpt", "value": "For sourc...
In the documentation of hardware that allows us to control it via UDP/IP, I found the following fragment: In this communication protocol, DWORD is a 4 bytes data, WORD is a 2 bytes data, BYTE is a single byte data. The storage format is little endian, namely 4 bytes (32bits) data is stored as: d7-d0, d15-d8, d23-d16...
In C#, when dealing with binary data and protocols that require specific endianness (like little-endian in your case), you often need to take care of the byte order when you're preparing data for transmission. Here’s how you can handle it, especially for sending a 32-bit integer and a 4-character string over UDP/IP. #...
24,062
[ { "from": "human", "value": "In the documentation of hardware that allows us to control it via UDP/IP,\nI found the following fragment:\n\nIn this communication protocol, DWORD is a 4 bytes data, WORD is a 2 bytes data,\n BYTE is a single byte data. The storage format is little endian, namely 4 bytes (32bi...
The webservice on MSDN is now all about the Windows Communication Foundation. Is there any site out there that deal with WebService only? (.Net)
Yes, while MSDN has transitioned more towards Windows Communication Foundation (WCF) and other newer technologies, there are still resources available specifically for traditional ASMX web services and .NET web services in general. Here are a few options where you can find information specifically about .NET web servi...
27,765
[ { "from": "human", "value": "The webservice on MSDN is now all about the Windows Communication Foundation. Is there any site out there that deal with WebService only? (.Net)\n" }, { "from": "gpt", "value": "Yes, while MSDN has transitioned more towards Windows Communication Foundation (WCF) and ...
I periodically am called upon to do maintenance work on a system that was built by a real rocket surgeon. There's so much wrong with it that it's hard to know where to start. No, wait, I'll start at the beginning: in the early days of the project, the designer was told that the system would need to scale, and he'd ...
It sounds like you’re navigating a rather unique and challenging codebase! What you’ve described captures the essence of what can go wrong when a system is built without a strong understanding of best practices in software architecture and design. While I can’t offer you specific examples from my own experience, as I’...
23,407
[ { "from": "human", "value": "I periodically am called upon to do maintenance work on a system that was built by a real rocket surgeon. There's so much wrong with it that it's hard to know where to start. \nNo, wait, I'll start at the beginning: in the early days of the project, the designer was told that...
Basically, I'm trying to selectively copy a table from one database to another. I have two different [Oracle] databases (e.g., running on different hosts) with the same schema. I'm interested in a efficient way to load Table A in DB1 with the result of running a select on Table A in DB2. I'm using JDBC, if that's relev...
To efficiently copy data from one Oracle database (DB2) to another (DB1) using JDBC, you can follow these general steps: 1. **Establish JDBC Connections**: You need to create JDBC connections to both databases. 2. **Query Data from DB2**: Execute a SELECT statement on Table A in DB2 to retrieve the data you want to co...
22,210
[ { "from": "human", "value": "Basically, I'm trying to selectively copy a table from one database to another. I have two different [Oracle] databases (e.g., running on different hosts) with the same schema. I'm interested in a efficient way to load Table A in DB1 with the result of running a select on Table ...
I'm trying to write a log parsing script to extract failed events. I can pull these with grep: $ grep -A5 "FAILED" log.txt 2008-08-19 17:50:07 [7052] [14] DEBUG: data: 3a 46 41 49 4c 45 44 20 20 65 72 72 3a 30 32 33 :FAILED err:023 2008-08-19 17:50:07 [7052] [14] DEBUG: data: 20 74 65 78 74 3a 20 00 ...
You can use a combination of `grep` and `sed` or `awk` to extract the required values in a shell one-liner. Here's a possible solution using `awk` that processes the log file and extracts the error code and `dst` number for each failed event: ```bash awk '/FAILED/ { split($0, arr, "err:"); err_code = arr[2]; getline; ...
26,876
[ { "from": "human", "value": "I'm trying to write a log parsing script to extract failed events. I can pull these with grep:\n$ grep -A5 \"FAILED\" log.txt\n\n2008-08-19 17:50:07 [7052] [14] DEBUG: data: 3a 46 41 49 4c 45 44 20 20 65 72 72 3a 30 32 33 :FAILED err:023\n2008-08-19 17:50:07 [7052] [14] ...
When have you ever personally come upon the halting problem in the field? This can be when a co-worker / boss suggested a solution which would violate the fundamental limits of computation, or when you realized yourself that a problem you were trying to solve was, in fact, impossible to solve. The most recent time I ca...
Your experiences with the halting problem in the context of type checkers are a great illustration of its implications in practical computer science. While I don’t have personal experiences or anecdotes to share, I can elaborate on similar situations in the field that illustrate the concept. One common scenario where ...
24,728
[ { "from": "human", "value": "When have you ever personally come upon the halting problem in the field? This can be when a co-worker / boss suggested a solution which would violate the fundamental limits of computation, or when you realized yourself that a problem you were trying to solve was, in fact, impos...
I inherited an application where display:none was used to control conditional display of input elements based the values of other input elements. The way this was handled is by running some pretty ugly code to evaluate field values and reset the display property in the during page load. Every time. Isn't there a better...
Yes, there are definitely better ways to handle conditional display of input elements in an application than using `display: none` through complex code executed on every page load. Using JavaScript for dynamic updates to the user interface is a common approach. Here are a few strategies you can consider: ### 1. Use Ja...
21,042
[ { "from": "human", "value": "I inherited an application where display:none was used to control conditional display of input elements based the values of other input elements.\nThe way this was handled is by running some pretty ugly code to evaluate field values and reset the display property in the during p...
I am trying to send an email from a site I am building, but it ends up in the yahoo spam folder. It is the email that sends credentials. What can I do to legitimize it? $header = "From: site <sales@site.com>\r\n"; $header .= "To: $name <$email>\r\n"; $header .= "Subject: $subject\r\n"; $header .= "Reply-To: site <sales...
If emails from your site are landing in the spam folder, especially when they contain sensitive information like credentials, you should take several steps to improve email deliverability and ensure that your emails are considered legitimate. Here are some suggestions: ### 1. Use Proper Authentication Implement email ...
22,620
[ { "from": "human", "value": "I am trying to send an email from a site I am building, but it ends up in the yahoo spam folder. It is the email that sends credentials. What can I do to legitimize it?\n$header = \"From: site <sales@site.com>\\r\\n\";\n$header .= \"To: $name <$email>\\r\\n\";\n$header .= \"Subj...
We built a grant application system for a client. They've now asked for some simple workflow functionality (two approvals needed before the application is submitted). I've given some thought to the database design that I'd use to encode the workflow requirements in a way that would offer maximum flexibility and reusab...
When building a custom workflow functionality for your grant application system, it’s essential to structure your database in a way that is both flexible and scalable. Here are some design patterns and best practices to consider: ### 1. **Workflow Definition Tables** Create tables to define the workflow stages and the...
23,974
[ { "from": "human", "value": "We built a grant application system for a client. They've now asked for some simple workflow functionality (two approvals needed before the application is submitted). \nI've given some thought to the database design that I'd use to encode the workflow requirements in a way that ...
I would like to use a secure SSL login on my website! I have not used SSL before, so I am looking for some good reading. Can anyone tell me where I can find some sample code of SSL snippets or page code. (Not too technical) I do have a static IP My host is set-up to handle SSL Pages. Interested in: Basic page code....
Setting up SSL (Secure Sockets Layer) on your website is an important step for securing data and creating trust with your users. Since you have a static IP and your host is set up to handle SSL, you're already on the right track. Here’s a basic overview of what you need to do and some resources to help you get started....
19,569
[ { "from": "human", "value": "I would like to use a secure SSL login on my website! I have not used SSL before, so I am looking for some good reading. Can anyone tell me where I can find some sample code of SSL snippets or page code. (Not too technical)\n\nI do have a static IP\nMy host is set-up to handle S...
Does the C++ compiler optimize the multiply by two operation x*2 to a bitshift operation x<<1? I would love to believe that yes.
In general, modern C++ compilers are quite sophisticated and often perform various optimizations during the compilation process. One common optimization is recognizing certain mathematical expressions that can be simplified or transformed into more efficient operations. Specifically, multiplying a value by two can ofte...
24,299
[ { "from": "human", "value": "Does the C++ compiler optimize the multiply by two operation x*2 to a bitshift operation x<<1?\nI would love to believe that yes.\n" }, { "from": "gpt", "value": "In general, modern C++ compilers are quite sophisticated and often perform various optimizations during ...
What is the difference between a deep copy and a shallow copy?
The difference between a deep copy and a shallow copy lies in how they handle the copying of objects, especially when those objects contain references to other objects. ### Shallow Copy: - A shallow copy creates a new object, but instead of creating copies of the nested objects (or references), it copies the reference...
26,547
[ { "from": "human", "value": "What is the difference between a deep copy and a shallow copy?\n" }, { "from": "gpt", "value": "The difference between a deep copy and a shallow copy lies in how they handle the copying of objects, especially when those objects contain references to other objects.\n\...
Of course, there are a whole range of possible errors relating to document validity, but my immediate stumbling block occurs when changing a paragraph (p) into an address element. My current method is (more-or-less): var p = $('p#test'); p.replaceWith('<address>' + p.html() + '</address>'); but that fails for this spe...
The issue you're encountering arises because the `<address>` element is not a self-closing element. In HTML, it requires a closing tag (like `</address>`), and this is not happening in your current method due to how jQuery processes the replacement. When you use `replaceWith()` with a string, jQuery may not handle the...
27,771
[ { "from": "human", "value": "Of course, there are a whole range of possible errors relating to document validity, but my immediate stumbling block occurs when changing a paragraph (p) into an address element. My current method is (more-or-less):\nvar p = $('p#test');\np.replaceWith('<address>' + p.html() + ...
Has anyone used OSGi and JSF together? I ask because JSF uses class-loader magic to find custom components. From a tutorial (emphasis mine): This configuration file will end up being META-INF/faces-config.xml in the .jar file that represents this component. JSF will look for such a file name in each of the .ja...
Yes, there have been efforts and approaches to integrating OSGi with JSF (JavaServer Faces) in order to enable the use of JSF custom components as OSGi bundles. Since OSGi's modular architecture can conflict with JSF's traditional way of loading resources, integrating these two technologies requires careful considerati...
25,840
[ { "from": "human", "value": "Has anyone used OSGi and JSF together?\nI ask because JSF uses class-loader magic to find custom components. From a tutorial (emphasis mine):\n\nThis configuration file will end up\n being META-INF/faces-config.xml in the\n .jar file that represents this\n component. JSF will...
I have written a standalone app that controls a device through RS-232 port and some customers want to be able to use the device with LabVIEW. I have seen some threads describing where to start when learning to use LabVIEW, but I was wondering if anyone has experience with writing a plugin/driver (is that the right wor...
Creating a LabVIEW driver or plugin for your device is a great way to allow users to interface with it without needing to understand the details of the communication protocol. In LabVIEW, drivers are usually developed as a set of VIs (Virtual Instruments) that encapsulate the functionality of the device and provide a c...
23,535
[ { "from": "human", "value": "I have written a standalone app that controls a device through RS-232 port and some customers want to be able to use the device with LabVIEW. I have seen some threads describing where to start when learning to use LabVIEW, but I was wondering if anyone has experience with writi...
I have an array of shorts (short[]) that I need to write out to a file. What's the quickest way to do this?
To write an array of shorts (`short[]`) to a file in an efficient way, you can use Java's `DataOutputStream` or `FileOutputStream` classes. These classes allow you to write binary data directly to a file, which is typically faster than writing text data. Here's how you can do it: ### Example Code Using `DataOutputStre...
25,052
[ { "from": "human", "value": "I have an array of shorts (short[]) that I need to write out to a file. What's the quickest way to do this?\n" }, { "from": "gpt", "value": "To write an array of shorts (`short[]`) to a file in an efficient way, you can use Java's `DataOutputStream` or `FileOutputSt...
Is there any way in SQL Server to get the results starting at a given offset? For example, in another type of SQL database, it's possible to do: SELECT * FROM MyTable OFFSET 50 LIMIT 25 to get results 51-75. This construct does not appear to exist in SQL Server. How can I accomplish this without loading all the rows...
Yes, SQL Server provides a way to achieve similar functionality using the `OFFSET` and `FETCH NEXT` clauses, which are available starting from SQL Server 2012. This allows you to paginate through your result set. Here's how you can use it to get results starting at a specific offset: ```sql SELECT * FROM MyTable ORDE...
28,932
[ { "from": "human", "value": "Is there any way in SQL Server to get the results starting at a given offset? For example, in another type of SQL database, it's possible to do:\nSELECT * FROM MyTable OFFSET 50 LIMIT 25\n\nto get results 51-75. This construct does not appear to exist in SQL Server. \nHow can I...
I've developed a windows application that uses shared memory---that is---memory mapped files for interprocess communication. I have a windows service that does some processing and periodically writes data to the memory mapped file. I have a separate windows application that reads from the memory mapped file and displ...
It sounds like you're running into issues with permissions and security contexts that can occur with memory mapped files in Windows Vista and later operating systems. The behavior you're describing, where the consumer application can't read from the memory-mapped file until it is restarted, points toward a potential ra...
25,345
[ { "from": "human", "value": "I've developed a windows application that uses shared memory---that is---memory mapped files for interprocess communication. I have a windows service that does some processing and periodically writes data to the memory mapped file. I have a separate windows application that re...
I have a swing application that includes radio buttons on a form. I have the ButtonGroup, however, looking at the available methods, I can't seem to get the name of the selected JRadioButton. Here's what I can tell so far: From ButtonGroup, I can perform a getSelection() to return the ButtonModel. From there, I can pe...
In Java Swing, when working with `JRadioButton`s within a `ButtonGroup`, there is a straightforward way to determine which radio button is selected without looping through all elements or dealing with action commands. The `ButtonGroup` itself doesn't provide a direct way to retrieve the selected `JRadioButton`, but yo...
23,911
[ { "from": "human", "value": "I have a swing application that includes radio buttons on a form. I have the ButtonGroup, however, looking at the available methods, I can't seem to get the name of the selected JRadioButton. Here's what I can tell so far:\n\nFrom ButtonGroup, I can perform a getSelection() to r...
Has anyone implemented a very large EAV or open schema style database in SQL Server? I'm wondering if there are performance issues with this and how you were able to overcome those obstacles.
Entity-Attribute-Value (EAV) models, also known as open schema designs, are a flexible way to store highly dynamic data structures where the number of attributes can vary widely between entities. However, implementing a very large EAV schema in SQL Server—or any relational database—can lead to several performance chall...
25,002
[ { "from": "human", "value": "Has anyone implemented a very large EAV or open schema style database in SQL Server? I'm wondering if there are performance issues with this and how you were able to overcome those obstacles.\n" }, { "from": "gpt", "value": "Entity-Attribute-Value (EAV) models, also...
I'm making a shell script to find bigrams, which works, sort of. #tokenise words tr -sc 'a-zA-z0-9.' '\012' < $1 > out1 #create 2nd list offset by 1 word tail -n+2 out1 > out2 #paste list together paste out1 out2 #clean up rm out1 out2 The only problem is that it pairs words from the end and start of the previous sen...
You can indeed filter out the unwanted bigrams where the first word ends with a period (or any punctuation that signals the end of a sentence). Instead of just using `grep`, you can modify your existing script to include a conditional check for the last character of the first word in the bigram. Here's an updated vers...
25,638
[ { "from": "human", "value": "I'm making a shell script to find bigrams, which works, sort of.\n#tokenise words\ntr -sc 'a-zA-z0-9.' '\\012' < $1 > out1\n#create 2nd list offset by 1 word\ntail -n+2 out1 > out2\n#paste list together\npaste out1 out2 \n#clean up\nrm out1 out2\n\nThe only problem is that it pa...
I have created a non-visual component in C# which is designed as a placeholder for meta-data on a form. The component has a property which is a collection of custom objects, this object is marked as Serializable and implements the GetObjectData for serilizing and public constuctor for deserilizing. In the resx file for...
It seems like you're dealing with a combination of challenges around serialization in a Windows Forms application while trying to maintain a custom component that acts as a metadata holder. The main issues you're facing relate to: 1. **Binary Serialization** in `.resx` files, which can become problematic with changes ...
21,674
[ { "from": "human", "value": "I have created a non-visual component in C# which is designed as a placeholder for meta-data on a form.\nThe component has a property which is a collection of custom objects, this object is marked as Serializable and implements the GetObjectData for serilizing and public constuc...
I have this in some WSDL: <element name="startDate" type="xsd:dateTime"/> <element name="endDate" type="xsd:dateTime"/> Which results in the following text in the SOAP envelope: <startDate>2008-10-29T12:01:05</startDate> <endDate>2008-10-29T12:38:59.65625-04:00</endDate> Only some times have the milliseconds and zone...
The issue you're facing is not a rounding error with `DateTime`, but rather a misunderstanding of how time zones work in conjunction with your `DateTime` values. Here's a breakdown of the problem and how you can resolve it. ### Understanding DateTime with Time Zones 1. **UTC vs Local Time**: - The `xsd:dateTime` ...
25,253
[ { "from": "human", "value": "I have this in some WSDL:\n<element name=\"startDate\" type=\"xsd:dateTime\"/>\n<element name=\"endDate\" type=\"xsd:dateTime\"/>\n\nWhich results in the following text in the SOAP envelope:\n<startDate>2008-10-29T12:01:05</startDate>\n<endDate>2008-10-29T12:38:59.65625-04:00</e...
So this is a question for anyone who has had to integrate the building/compilation of legacy projects/code in a Team Build/MSBuild environment - specifically, Visual Basic 6 applications/projects. Outside of writing a custom build Task (which I am not against) does anyone have any suggestions on how best to integrate c...
Integrating the build and versioning of legacy Visual Basic 6 applications into an MSBuild environment can indeed be challenging, particularly because VB6 does not natively support MSBuild. While writing a custom build task is one viable option, there are several strategies you can consider to create a more robust inte...
21,054
[ { "from": "human", "value": "So this is a question for anyone who has had to integrate the building/compilation of legacy projects/code in a Team Build/MSBuild environment - specifically, Visual Basic 6 applications/projects.\nOutside of writing a custom build Task (which I am not against) does anyone have ...
In C# there is a method SetApartmentState in the class Thread. How do I do the same thing in C++?
In C#, the `SetApartmentState` method of the `Thread` class is used to specify the apartment state of a thread, which is particularly relevant for COM (Component Object Model) programming. C++ does not have a direct equivalent to the C# `Thread` class, but you can manage thread apartment states using the Windows API, p...
22,862
[ { "from": "human", "value": "In C# there is a method SetApartmentState in the class Thread.\nHow do I do the same thing in C++?\n" }, { "from": "gpt", "value": "In C#, the `SetApartmentState` method of the `Thread` class is used to specify the apartment state of a thread, which is particularly r...
We have set up a system where notifications get sent to a user with the following From address format: user-{0}@aol.com (replace {0} with an ID) This way we can track what user we sent the message to originally. This format is not likely to change for various reasons. The issue we are running into is this: every em...
Your understanding of SMTP relays and how they handle email addresses is partially correct, but it's important to clarify a few things. ### Understanding SMTP Relays 1. **SMTP Relay**: An SMTP relay is essentially a server that processes outgoing email messages and forwards them to the recipient's mail server. When y...
25,273
[ { "from": "human", "value": "We have set up a system where notifications get sent to a user with the following From address format: user-{0}@aol.com (replace {0} with an ID)\nThis way we can track what user we sent the message to originally. This format is not likely to change for various reasons. The is...
.NET has System.Uri for Uris and System.IO.FileInfo for file paths. I am looking for classes which are traditionally object oriented in that they specify both meaning and behavior for the string which is used in the object's construction. What other useful string encapsulation classes exist? Things such as regular expr...
If you're looking for classes in .NET that encapsulate strings with both meaning and behavior—similar to `System.Uri` for URIs and `System.IO.FileInfo` for file paths—you have a few options. These classes tend to encapsulate specific string formats or concepts and provide relevant methods for working with those strings...
23,898
[ { "from": "human", "value": ".NET has System.Uri for Uris and System.IO.FileInfo for file paths. I am looking for classes which are traditionally object oriented in that they specify both meaning and behavior for the string which is used in the object's construction. What other useful string encapsulation c...
I open gmail, click on an inbox item, and look at source of the page. It doesn't look like there isn't any proper html to relate to what is shown on the actual page. How is the source getting processed into the actual page? Is there some javascript processing this information?
Yes, Gmail uses JavaScript extensively to create a dynamic and interactive user experience. When you open your inbox and click on an email, what you see in the browser is often not a simple static HTML document. Instead, the page is rendered dynamically using client-side JavaScript, which manipulates the Document Objec...
25,963
[ { "from": "human", "value": "I open gmail, click on an inbox item, and look at source of the page. It doesn't look like there isn't any proper html to relate to what is shown on the actual page.\nHow is the source getting processed into the actual page? Is there some javascript processing this information...
Our users have created MS-Excel spreadsheets which over time have evolved into fairly complex applications. They run their part of the business with them. But, never having been exposed to software development discipline, these spreadsheets are brittle, single point of failure, solutions. Our development group uses O...
Converting complex MS-Excel spreadsheets into a more robust application, such as those developed using Oracle and Java, is a common challenge. While there might not be a one-size-fits-all automated tool to fully convert Excel spreadsheets to an Oracle database application, there are several approaches and tools that ca...
23,429
[ { "from": "human", "value": "Our users have created MS-Excel spreadsheets which over time have evolved into fairly complex applications. They run their part of the business with them. But, never having been exposed to software development discipline, these spreadsheets are brittle, single point of failure...
I'm trying to create a use-once HTTP server to handle a single callback and need help with finding a free TCP port in Ruby. This is the skeleton of what I'm doing: require 'socket' t = STDIN.read port = 8081 while s = TCPServer.new('127.0.0.1', port).accept puts s.gets s.print "HTTP/1.1 200/OK\rContent-type: text/p...
To automatically find a free TCP port in Ruby, you can use the `Socket` library to create a `TCPServer` without specifying a port. Instead, you can bind to port `0`, which tells the operating system to pick an available port for you. Here's how you can modify your code to find a free port and handle a single callback: ...
27,471
[ { "from": "human", "value": "I'm trying to create a use-once HTTP server to handle a single callback and need help with finding a free TCP port in Ruby.\nThis is the skeleton of what I'm doing:\nrequire 'socket'\nt = STDIN.read\nport = 8081\nwhile s = TCPServer.new('127.0.0.1', port).accept\n puts s.gets\n...
Lets say I have an array like this: string [] Filelist = ... I want to create an Linq result where each entry has it's position in the array like this: var list = from f in Filelist select new { Index = (something), Filename = f}; Index to be 0 for the 1st item, 1 for the 2nd, etc. What should I use for the expre...
You can achieve this in LINQ by using the `Select` method combined with the `Select` overload that provides the index of each element. Here's how you can do it: ```csharp var list = Filelist.Select((f, index) => new { Index = index, Filename = f }); ``` In this code: - `Filelist.Select((f, index) => ...)` is using t...
28,742
[ { "from": "human", "value": "Lets say I have an array like this:\nstring [] Filelist = ...\n\nI want to create an Linq result where each entry has it's position in the array like this:\nvar list = from f in Filelist\n select new { Index = (something), Filename = f};\n\nIndex to be 0 for the 1st item, 1 f...
On the .Net WebBrowser control the only way I can see to load a page to it is to set the URL property. But I would like to instead give it some HTML code that I already have in memory without writing it out to a file first. Is there any way to do this? Or are there any controls that will do this?
The .NET `WebBrowser` control indeed primarily loads pages from a URL, but you can also load HTML directly from a string in memory using the `DocumentText` property. This allows you to bypass writing to a file. Here’s how you can do it: ### Example of Loading HTML into the WebBrowser Control ```csharp using System; u...
23,034
[ { "from": "human", "value": "On the .Net WebBrowser control the only way I can see to load a page to it is to set the URL property. But I would like to instead give it some HTML code that I already have in memory without writing it out to a file first. Is there any way to do this? Or are there any contro...
I have the following intentionally trivial function: void ReplaceSome(ref string text) { StringBuilder sb = new StringBuilder(text); sb[5] = 'a'; text = sb.ToString(); } It appears to be inefficient to convert this to a StringBuilder to index into and replace some of the characters only to copy it back to ...
In C#, strings are immutable, meaning that once they are created, their contents cannot be changed. Your current function creates a new `StringBuilder`, modifies it, and then assigns the modified string back to the `text` parameter. However, because `text` is passed by reference, the modified string is not reflected in...
26,800
[ { "from": "human", "value": "I have the following intentionally trivial function:\nvoid ReplaceSome(ref string text)\n{\n StringBuilder sb = new StringBuilder(text);\n sb[5] = 'a';\n text = sb.ToString();\n}\n\nIt appears to be inefficient to convert this to a StringBuilder to index into and replac...
Before you answer, this question is complicated: We are developing in asp.net / asp.net mvc / jQuery but I'm open to solutions on any platform using any framework I think logic like sorting / hiding columns / re-arranging columns / validation (where it makes sense) should be on the client-side I think logic like searc...
Your situation raises several interesting architectural considerations when trying to achieve a clean separation of concerns between the client-side and server-side logic while ensuring code reusability and maintainability. Here are some thoughts on the MVC model on both the client and server sides, along with other pa...
21,324
[ { "from": "human", "value": "Before you answer, this question is complicated:\n\nWe are developing in asp.net / asp.net mvc / jQuery but I'm open to solutions on any platform using any framework\nI think logic like sorting / hiding columns / re-arranging columns / validation (where it makes sense) should be...
What's the most efficient way of getting the value of the SERIAL column after the INSERT statement? I.e. I am looking for a way to replicate @@IDENTITY or SCOPE_IDENTITY functionality of MS SQL
In PostgreSQL, the most efficient way to retrieve the value of a `SERIAL` column (or any auto-incrementing column) after an `INSERT` statement is to use the `RETURNING` clause. This allows you to get the generated value directly in the same query that you use to insert your data, minimizing the need for additional quer...
28,279
[ { "from": "human", "value": "What's the most efficient way of getting the value of the SERIAL column after the INSERT statement? I.e. I am looking for a way to replicate @@IDENTITY or SCOPE_IDENTITY functionality of MS SQL\n" }, { "from": "gpt", "value": "In PostgreSQL, the most efficient way to...
I'm looking for a LHarc de/compressing library, with source if possible.
LHarc is a file compression utility originally developed for DOS, and it can compress and decompress files using the LHA compression algorithm. There are a few libraries and tools that implement this algorithm or provide similar functionality. Here are some options: 1. **LHA**: - The original LHA is available, but ...
27,482
[ { "from": "human", "value": "I'm looking for a LHarc de/compressing library, with source if possible.\n" }, { "from": "gpt", "value": "LHarc is a file compression utility originally developed for DOS, and it can compress and decompress files using the LHA compression algorithm. There are a few l...
I've make an application in PHP that uses DOMDocument() in PHP 5. The problem is that my server uses PHP 4 and DOM object is not recognized. What can I do? Can I download any kind of software and put it in my server and use include? Which one? Thanks a lot.
Using the `DOMDocument` class requires PHP 5 or higher, as it was introduced in PHP 5. If your server is running PHP 4, you won't be able to use this class directly. Here are a few options you can consider: ### 1. Upgrade PHP Version The most straightforward solution is to upgrade your server to PHP 5 or higher. This ...
26,820
[ { "from": "human", "value": "I've make an application in PHP that uses DOMDocument() in PHP 5.\nThe problem is that my server uses PHP 4 and DOM object is not recognized. What can I do?\nCan I download any kind of software and put it in my server and use include?\nWhich one? \nThanks a lot.\n" }, { ...
In Ruby-on-Rails, this is called a "polymorphic association." I have several Commentable things in my application, the tables for each are below: Post id | title | text | author (FK:Person.id) | ... Person id | name | ... Photo id | title | owner (FK:Person.id) | path | ... I'd like to add a Comments table as follow...
To create a form in Ruby on Rails that handles a polymorphic association for comments, you'll want to ensure your form can dynamically build the right fields for the `commentable` object based on the polymorphic relationship defined in your `Comment` model. Here's how you can approach this: ### Step 1: Define the Mode...
20,372
[ { "from": "human", "value": "In Ruby-on-Rails, this is called a \"polymorphic association.\"\nI have several Commentable things in my application, the tables for each are below:\nPost\nid | title | text | author (FK:Person.id) | ...\n\nPerson\nid | name | ...\n\nPhoto\nid | title | owner (FK:Person.id) | pa...
Something like this is on my mind: I put one or a few strings in, and the algorithm shows me a matching regex. Is there an "easy" way to do this, or does something like this already exist? Edit 1: Yes, I'm trying to find a way to generate regex. Edit 2: Regulazy is not what I am looking for. The common use for the cod...
Yes, there are tools and libraries that can help you generate regular expressions based on provided strings, though they may not always produce the exact regex you might want in every situation. However, you can build a simple approach to achieve this by utilizing some programming or scripting. Here are a few options: ...
25,922
[ { "from": "human", "value": "Something like this is on my mind: I put one or a few strings in, and the algorithm shows me a matching regex.\nIs there an \"easy\" way to do this, or does something like this already exist?\nEdit 1: Yes, I'm trying to find a way to generate regex. \nEdit 2: Regulazy is not wha...
I am just looking at the using statement, I have always known what it does but until now not tried using it, I have come up with the below code: using (SqlCommand cmd = new SqlCommand(reportDataSource, new SqlConnection(Settings.Default.qlsdat_extensionsConnectionString))) { cmd.CommandType = Com...
Your observation is correct in that the `using` statement primarily serves to automatically manage the disposal of resources that implement the `IDisposable` interface, such as `SqlCommand` and `SqlConnection`. When you use `using`, these objects are disposed of when the code block is exited, either normally or because...
26,069
[ { "from": "human", "value": "I am just looking at the using statement, I have always known what it does but until now not tried using it, I have come up with the below code:\n using (SqlCommand cmd = \n new SqlCommand(reportDataSource, \n new SqlConnection(Settings.Default.qlsdat_extensionsConne...
I am trying to implement in windows scripting host the same function as windows Send To/Mail Recipient does. Did not find anything usefull on google except steps to instantiate Outlook.Application and directly calling its methods. I need to go the same path as windows do, as there is a mix of Outlook and Lotus Notes in...
To implement a functionality similar to "Send To > Mail Recipient" in Windows using Windows Script Host (WSH), you can use the existing system mail handler, which is indeed tied to the `sendmail.dll`. However, directly interacting with `sendmail.dll` from WSH can be quite complex because it's a COM object, and the regi...
19,353
[ { "from": "human", "value": "I am trying to implement in windows scripting host the same function as windows Send To/Mail Recipient does. Did not find anything usefull on google except steps to instantiate Outlook.Application and directly calling its methods.\nI need to go the same path as windows do, as th...
I was wondering about implementing my own sessions (more for an exercise than anything else) for a GAE app I'm working ... at first I was thinking of using the datastore to store the session data. However, every time something needs to be added to the session 'bucket', it would require saving to the datastore. Obviousl...
Implementing session management in a Google App Engine (GAE) app can indeed be a bit challenging due to the constraints of Datastore and Memcache. However, there are several strategies you can consider beyond just using cookies or the dual-write approach you mentioned: 1. **Hybrid Approach with Cookies and Memcache**:...
24,653
[ { "from": "human", "value": "I was wondering about implementing my own sessions (more for an exercise than anything else) for a GAE app I'm working ... at first I was thinking of using the datastore to store the session data. However, every time something needs to be added to the session 'bucket', it would ...
I know it's possible to change some columns in GridView controls to check boxes and when you are editing certain rows, the cells being hi-lited become text boxes, but supposed I want to add other controls in my gridView. For example: in the image below how would I change the entries of CategoryName to be a dropDown box...
To change the entries of `CategoryName` in a `GridView` to a dropdown box (or `DropDownList`) while allowing users to edit that field, you can use the `TemplateField` with an `EditItemTemplate`. This approach allows you to define custom controls for both the display and edit modes of the `GridView`. Here’s how to impl...
23,152
[ { "from": "human", "value": "I know it's possible to change some columns in GridView controls to check boxes and when you are editing certain rows, the cells being hi-lited become text boxes, but supposed I want to add other controls in my gridView. For example: in the image below how would I change the ent...
I'm looking for a method (or function) to strip out the example.ext part of any URL that's fed into the function. The domain extension can be anything (.com, .co.uk, .nl, .whatever), and the URL that's fed into it can be anything from http://www.example.com to www.example.com/path/script.php?=whatever What's the best w...
You can achieve this by using a combination of regular expressions in Python. Below is a sample function that extracts the domain from a URL and returns it in the desired format (example.com): ```python import re from urllib.parse import urlparse def strip_domain_extension(url): # Use urlparse to extract the netw...
25,317
[ { "from": "human", "value": "I'm looking for a method (or function) to strip out the example.ext part of any URL that's fed into the function. The domain extension can be anything (.com, .co.uk, .nl, .whatever), and the URL that's fed into it can be anything from http://www.example.com to www.example.com/pa...
Is there a standard idiom for comparing version numbers? I can't just use a straight String compareTo because I don't know yet what the maximum number of point releases there will be. I need to compare the versions and have the following hold true: 1.0 < 1.1 1.0.1 < 1.1 1.9 < 1.10
When comparing version numbers, it's common to split the version string by the dot (`.`) separator and then compare each part numerically. This allows for proper numerical comparisons rather than lexicographical string comparisons, which could lead to the issues you mentioned, such as treating "1.10" as less than "1.2"...
21,302
[ { "from": "human", "value": "Is there a standard idiom for comparing version numbers? I can't just use a straight String compareTo because I don't know yet what the maximum number of point releases there will be. I need to compare the versions and have the following hold true:\n1.0 < 1.1\n1.0.1 < 1.1\n1.9...
I'm using Visual Studio 2008 Team Development Edition and my Project properties page will not display. I right-clicked the project name and selected "Properties" and no page displayed as it normally would. Also, when I double-click the Settings.settings the normal Settings GUI does not display. I only see the XML i...
It sounds like you are experiencing issues with Visual Studio 2008 where the properties pages and the Settings GUI are not displaying as expected. Here are several troubleshooting steps you can try to resolve this issue: ### 1. Restart Visual Studio Sometimes, simply restarting Visual Studio can resolve issues where c...
25,010
[ { "from": "human", "value": "I'm using Visual Studio 2008 Team Development Edition and my Project properties page will not display. I right-clicked the project name and selected \"Properties\" and no page displayed as it normally would. Also, when I double-click the Settings.settings the normal Settings G...
My application is logically divided into server, which contain my Grails domain objects and controllers; and client, where I have my Ext GWT classes that build all the UI pages. For UI requests, I am using an AJAX call to a controller method that returns, for instance, a list of domain objects as a JSON structure. Foll...
Using Grails domain objects directly in your Ext GWT client is not recommended for several reasons, even though it may seem convenient and in line with the DRY principle. Here's why it's typically advised to avoid this approach and some alternatives that you might consider: ### Issues with Directly Using Domain Object...
25,830
[ { "from": "human", "value": "My application is logically divided into server, which contain my Grails domain objects and controllers; and client, where I have my Ext GWT classes that build all the UI pages.\nFor UI requests, I am using an AJAX call to a controller method that returns, for instance, a list o...
I have a SOAP client in Ruby that I'm trying to get working with a Ruby SOAP server, to no avail. The client works fine over SSL with a Python SOAP server, but not with the Ruby version. Here's what the server looks like: require 'soap/rpc/standaloneServer' require 'soap/rpc/driver' require 'rubygems' require 'httpclie...
To resolve the SSL connection issues between your Ruby SOAP client and server, let's take a systematic approach. The errors you're encountering suggest there may be problems related to the SSL configuration and the Ruby version you're using. Here are several steps and considerations that can help you troubleshoot and p...
20,797
[ { "from": "human", "value": "I have a SOAP client in Ruby that I'm trying to get working with a Ruby SOAP server, to no avail. The client works fine over SSL with a Python SOAP server, but not with the Ruby version. Here's what the server looks like:\nrequire 'soap/rpc/standaloneServer'\nrequire 'soap/rpc/d...
First of all (in case this is important) I'm using ActiveState's Perl (v5.8.7 built for MSWin32-x86-multi-thread). I've just emerged from a three hour long debugging session, trying to find the source of an error. I found there was simply no error, but for some reason ADO's connection object was getting the Errors.Coun...
Yes, the behavior you're encountering is indeed related to how SQL Server's `PRINT` statement interacts with ADO's error handling mechanism. Here’s a breakdown of your questions: ### Is this behavior normal? Yes, this behavior is normal and expected when using ADO with SQL Server. The `PRINT` statement in SQL Server ...
23,143
[ { "from": "human", "value": "First of all (in case this is important) I'm using ActiveState's Perl (v5.8.7 built for MSWin32-x86-multi-thread).\nI've just emerged from a three hour long debugging session, trying to find the source of an error. I found there was simply no error, but for some reason ADO's con...
I'm currently writing a server that hosts several modules. The server runs each module in a separate AppDomain. What I want to achieve is exception isolation, i.e. when one module throws an exception I don't want whole process to terminate, just this specific AppDomain. I know that I can tell CLR to fallback to old beh...
Using AppDomains for isolation in .NET is a good strategy, especially when it comes to handling exceptions for different modules without terminating the entire process. However, since .NET Core and .NET 5+ do not support AppDomains in the same way .NET Framework does, you would typically use separate processes or other...
22,669
[ { "from": "human", "value": "I'm currently writing a server that hosts several modules. The server runs each module in a separate AppDomain. What I want to achieve is exception isolation, i.e. when one module throws an exception I don't want whole process to terminate, just this specific AppDomain. I know t...
We have are relatively simple Reporting Services report that our users commonly export to Excel. I've noticed that the files produced by the Excel export seem unusually large. If I open one of these files and just click save, without making any changes, the file size reduces to about half of it's previous size. Has any...
Yes, this is a common issue that users encounter when exporting reports from SQL Server Reporting Services (SSRS) to Excel. The larger file sizes can result from various factors, including the way SSRS formats the output and the inclusion of unnecessary metadata or formatting within the exported Excel files. Here are ...
25,038
[ { "from": "human", "value": "We have are relatively simple Reporting Services report that our users commonly export to Excel. I've noticed that the files produced by the Excel export seem unusually large. If I open one of these files and just click save, without making any changes, the file size reduces to ...
How can I calculate the number of work days between two dates in SQL Server? Monday to Friday and it must be T-SQL.
To calculate the number of workdays (Monday to Friday) between two dates in SQL Server using T-SQL, you can use a combination of a common table expression (CTE) and a method to filter out the weekends (Saturday and Sunday). Here’s an example of how you can do this: ```sql DECLARE @StartDate DATE = '2023-10-01'; -- E...
26,270
[ { "from": "human", "value": "How can I calculate the number of work days between two dates in SQL Server? \nMonday to Friday and it must be T-SQL.\n" }, { "from": "gpt", "value": "To calculate the number of workdays (Monday to Friday) between two dates in SQL Server using T-SQL, you can use a co...
I'm running into a problem associating an invoked method in a plugin I'm writing with the appropriate plugin instance. The documentation at http://developer.mozilla.org/en/Gecko_Plugin_API_Reference/Scripting_plugins doesn't give enough information to be truly useful on this. In a nutshell, I'm trying to understand jus...
In the context of the NPAPI (Netscape Plugin Application Programming Interface), you’re right that each instance of your plugin should return a separate instance of an NPObject when the `NPP_GetValue` function is called with `NPPpluginScriptableNPObject`. This NPObject acts as a bridge between your plugin’s functionali...
25,386
[ { "from": "human", "value": "I'm running into a problem associating an invoked method in a plugin I'm writing with the appropriate plugin instance. The documentation at http://developer.mozilla.org/en/Gecko_Plugin_API_Reference/Scripting_plugins doesn't give enough information to be truly useful on this.\nI...
Is there some way to get a value from the last inserted row? I am inserting a row where the PK will automatically increase, and I would like to get this PK. Only the PK is guaranteed to be unique in the table. I am using Java with a JDBC and PostgreSQL.
Yes, you can retrieve the primary key (PK) of the last inserted row in PostgreSQL using JDBC. When you perform an `INSERT` operation, you can use the `RETURNING` clause in your SQL statement to get the value of the generated primary key. Here is a step-by-step guide to achieve this: 1. **Prepare Your SQL Insert Stat...
25,567
[ { "from": "human", "value": "Is there some way to get a value from the last inserted row?\nI am inserting a row where the PK will automatically increase, and I would like to get this PK. Only the PK is guaranteed to be unique in the table.\nI am using Java with a JDBC and PostgreSQL.\n" }, { "from":...
What's the advantage of passing data as parameters vs part of the URL in an Ajax GET request? Using parameters: var ajax = new Ajax.Request('server.php',{ parameters: 'store=11200&product=Meat', onSuccess: function(myData){whatever} }); Using URL: var ajax = new Ajax.Request('server.php?store=11200&product=Mea...
Passing data as parameters versus appending it directly to the URL in an Ajax GET request has several advantages and disadvantages. Here are some considerations for each method: ### Advantages of Using Parameters 1. **Readability and Maintainability**: - Using the `parameters` option keeps the URL cleaner and can...
24,714
[ { "from": "human", "value": "What's the advantage of passing data as parameters vs part of the URL in an Ajax GET request?\nUsing parameters:\nvar ajax = new Ajax.Request('server.php',{\n parameters: 'store=11200&product=Meat',\n onSuccess: function(myData){whatever}\n});\n\nUsing URL:\nvar ajax = new...
http://blogs.msdn.com/drnick/archive/2007/03/23/preventing-anonymous-access.aspx Can someone clarify whether it is possible to use wsHttpBinding in WCF and disable anonymous access in IIS without transport (ssl) or message security being required?
Yes, it is possible to use `wsHttpBinding` in Windows Communication Foundation (WCF) while disabling anonymous access in IIS without requiring transport (SSL) or message security. Here's how you can achieve this: 1. **Configure IIS**: In your IIS site, go to the Authentication settings. Disable Anonymous Authenticati...
26,004
[ { "from": "human", "value": "http://blogs.msdn.com/drnick/archive/2007/03/23/preventing-anonymous-access.aspx \nCan someone clarify whether it is possible to use wsHttpBinding in WCF and disable anonymous access in IIS without transport (ssl) or message security being required?\n" }, { "from": "gpt"...
Is there a way to programmatically determine if a given file path and name is stored in ROM (i.e. came installed on the device) or RAM (i.e. created after a hard reset)?
Determining whether a file is stored in ROM (Read-Only Memory) or RAM (Random Access Memory) can depend on the operating system and the specific environment in which you are working. Here's a general approach based on common platforms: ### For Embedded Systems 1. **Filesystem Awareness**: Some embedded systems provid...
26,084
[ { "from": "human", "value": "Is there a way to programmatically determine if a given file path and name is stored in ROM (i.e. came installed on the device) or RAM (i.e. created after a hard reset)?\n" }, { "from": "gpt", "value": "Determining whether a file is stored in ROM (Read-Only Memory) o...
I just came onto a project with a pretty huge code base. I'm mostly dealing with C++ and a lot of the code they write uses double negation for their boolean logic. if (!!variable && (!!api.lookup("some-string"))) { do_some_stuff(); } I know these guys are intelligent progr...
Your understanding is largely correct, and you are right to observe that using double negation (`!!`) in C++ serves a specific purpose. Let’s break it down: 1. **Purpose of Double Negation**: The primary reason for using double negation (`!!`) is to convert a value to its explicit boolean equivalent. In C++, many type...
25,778
[ { "from": "human", "value": "I just came onto a project with a pretty huge code base. \nI'm mostly dealing with C++ and a lot of the code they write uses double negation for their boolean logic. \n if (!!variable && (!!api.lookup(\"some-string\"))) {\n do_some_stuff();\n } ...
I am creating a plugin for Eclipse 3.4. I created a plug-in development project using the application with a view. Now I am trying to create a TextViewer the documentation says that it is located in org.eclipse.jface.text.TextViewer. But, this whole package is missing and eclipse cannot locate TextViewer class to im...
The `TextViewer` class is part of the JFace Text framework, which is included in the `org.eclipse.jface.text` package. If you cannot find this package in your Eclipse 3.4 setup, it may be due to one of the following reasons: 1. **Missing Plugin Dependency**: Ensure that your plugin project has a dependency on the `org...
26,913
[ { "from": "human", "value": "I am creating a plugin for Eclipse 3.4. I created a plug-in development project using the application with a view. Now I am trying to create a TextViewer the documentation says that it is located in org.eclipse.jface.text.TextViewer. But, this whole package is missing and ecl...
I'm experiencing what I believe is a circular dependency issue with my PHP application. Please let me know if this is incorrect. Here is the situation: Two classes, LogManager and DBSession. DBSession is used to interact with the database, and LogManager is used to log to files. Both are widely used in my application. ...
You're correct in identifying that you have a circular dependency issue between your `DBSession` and `LogManager` classes. This situation arises because `DBSession` requires a `LogManager` instance to log messages, while your extended `LogManager` is trying to use `DBSession` for database logging. Here are some strate...
18,766
[ { "from": "human", "value": "I'm experiencing what I believe is a circular dependency issue with my PHP application. Please let me know if this is incorrect. Here is the situation:\nTwo classes, LogManager and DBSession.\nDBSession is used to interact with the database, and LogManager is used to log to file...
So, I use Linux, and I've been trying to find the time to get into game programming. I started out with Panda3d and had some pretty decent results and got a feel for many of the concepts in game programming. Not too long after that, I decided to step it up a notch and go to something more powerful and C or C++ based. I...
It's great to hear that you're diving into game programming on Linux! There are quite a few game engines and frameworks that cater to different needs and preferences, especially in the C/C++ space. Here’s an overview of some popular options, including your current choices, as well as some resources and insights: ### 1...
21,520
[ { "from": "human", "value": "So, I use Linux, and I've been trying to find the time to get into game programming. I started out with Panda3d and had some pretty decent results and got a feel for many of the concepts in game programming. Not too long after that, I decided to step it up a notch and go to some...
I have this situation. I have a real stored in a varbinary field in a sql 2005 database. As I can't convert a varbinary to a real in sql 2005, I'm trying to do that in vb.net. That field gets stored as a byte() array in a DataTable. Now I would like to read that byte() into a double, or decimal variable. But I don't ha...
To convert a `byte[]` (varbinary data) stored in a SQL Server 2005 database to a `double` or `decimal` in VB.NET, you will need to interpret the bytes in the correct format. The key is to understand how the `real` type is stored in SQL Server. In SQL Server, the `real` type is a floating-point type that is equivalent...
24,786
[ { "from": "human", "value": "I have this situation.\nI have a real stored in a varbinary field in a sql 2005 database.\nAs I can't convert a varbinary to a real in sql 2005, I'm trying to do that in vb.net.\nThat field gets stored as a byte() array in a DataTable.\nNow I would like to read that byte() into ...
Why is the order of tables important when combining an outer & an inner join ? the following fails with postgres: SELECT grp.number AS number, tags.value AS tag FROM groups grp, insrel archiverel LEFT OUTER JOIN ownrel ownrel ON grp.number = ownrel.dnumber LEFT OUTER JOIN tags tags ON tags.numb...
The issue you're encountering relates to the way SQL handles joins and the order of tables in the `FROM` clause, especially when mixing different types of joins. Let's break down what's happening. ### SQL Join Order and Scoping 1. **Join Order**: In SQL, the order in which tables are mentioned in the `FROM` clause de...
21,699
[ { "from": "human", "value": "Why is the order of tables important when combining an outer & an inner join ?\nthe following fails with postgres:\nSELECT grp.number AS number, \n tags.value AS tag \nFROM groups grp,\n insrel archiverel \nLEFT OUTER JOIN ownrel ownrel ON grp.number = ownrel.dn...
Is it possible to play video from data that has been embedded in a swf at compile time (with the [Embed] metatag)? The "Import Video->Embed" feature provided by Flash CS3 etc. is not acceptable because it has many severe limitations (including sound synchronization issues, a maximum number of frames, and other caveats)...
Embedding video directly in a SWF file using the `[Embed]` metatag in ActionScript is not straightforward, especially when dealing with FLV files. The traditional method of embedding assets like images, sounds, and fonts using the `[Embed]` tag works seamlessly, but video files (FLV) are treated differently in Flash. ...
26,050
[ { "from": "human", "value": "Is it possible to play video from data that has been embedded in a swf at compile time (with the [Embed] metatag)?\nThe \"Import Video->Embed\" feature provided by Flash CS3 etc. is not acceptable because it has many severe limitations (including sound synchronization issues, a ...
I need to be able to periodically send email alerts to subscribed users. PHP seems to struggle with sending one message, so I'm looking for good alternatives. Any language will do, if the implementation is fast enough. The amount of mails sent will eventually be in the thousands. If purchasing licensed software can be ...
If you're looking for a robust and efficient way to send periodic email alerts to a large number of users, there are several alternatives and best practices you can consider. Below are some suggestions, including programming languages and libraries, as well as services to handle bulk email sending: ### 1. Use a Dedica...
23,961
[ { "from": "human", "value": "I need to be able to periodically send email alerts to subscribed users. PHP seems to struggle with sending one message, so I'm looking for good alternatives.\nAny language will do, if the implementation is fast enough. The amount of mails sent will eventually be in the thousand...
I know that this question has already been asked HERE but sadly none of the answers suggest a javascript standalone shell that has auto completion. I am reopening this question again, in the hope that some new answers might be found.
If you're looking for a standalone JavaScript shell with autocomplete capabilities, there are a few options you might consider: 1. **Node.js REPL**: The Node.js runtime has a built-in Read-Eval-Print Loop (REPL) that supports basic autocompletion for variable names and function names. You can start it by simply runnin...
27,776
[ { "from": "human", "value": "I know that this question has already been asked HERE but sadly none of the answers suggest a javascript standalone shell that has auto completion. I am reopening this question again, in the hope that some new answers might be found.\n" }, { "from": "gpt", "value": ...
I have a collection of data stored in XDocuments and DataTables, and I'd like to address both as a single unified data space with XPath queries. So, for example, "/Root/Tables/Orders/FirstName" would fetch the value of the Firstname column in every row of the DataTable named "Orders". Is there a way to do this without...
In .NET 3.5, you can achieve the behavior you're looking for by utilizing `LINQ to XML` and `LINQ to DataSet`. You can create an interface that allows you to query both `XDocument` and `DataTable` using XPath-like syntax. Although the .NET framework doesn’t support direct XPath queries over `DataTable`, you can leverag...
23,462
[ { "from": "human", "value": "I have a collection of data stored in XDocuments and DataTables, and I'd like to address both as a single unified data space with XPath queries. So, for example, \"/Root/Tables/Orders/FirstName\" would fetch the value of the Firstname column in every row of the DataTable named \...
I've got a table with a header, a row with input fields, rows with data. Like this. http://brow.hu/sitegen/stackoverflow_table_example.png If somebody enters something into an input field I want to filter the data with an ajax query. After receiving the new table I change the content of the old one: div.inn...
To avoid the blinking effect when you replace the entire content of the table's `innerHTML`, you can update only the parts of the table that need to change instead of the entire table. This approach enhances user experience by maintaining the visual state and reducing rendering time. Here's a suggested approach to ach...
23,051
[ { "from": "human", "value": "I've got a table with a header, a row with input fields, rows with data. Like this. http://brow.hu/sitegen/stackoverflow_table_example.png\nIf somebody enters something into an input field I want to filter the data with an ajax query. After receiving the new table I change the c...
Is there any good way to use a windows application written in C# to display/control a powerpoint slideshow? Ultimately I would like to show thumbnails in a form and clicking these thumbnails would advance the slides shown on a second monitor (similar to using Powerpoint itself to show a slideshow on a second monitor). ...
You can achieve your goal of displaying and controlling a PowerPoint slideshow using C# without requiring a full installation of Microsoft Office by leveraging the PowerPoint Viewer, which is designed for this purpose. Here's a general outline of how to create a Windows Forms application that shows thumbnails and contr...
23,584
[ { "from": "human", "value": "Is there any good way to use a windows application written in C# to display/control a powerpoint slideshow? Ultimately I would like to show thumbnails in a form and clicking these thumbnails would advance the slides shown on a second monitor (similar to using Powerpoint itself t...
Often multiple applications share a large codebase of libraries that change often in development. In these cases, I prefer to create a solution named after the suite, and include separate projects for each application and the shared libraries. Is this a good approach? How do others structure their code bases for thin...
Your approach to structuring a codebase for a suite of applications by creating a solution that encompasses multiple projects (for both applications and shared libraries) is a well-established practice. It promotes modularity, reusability, and maintainability. Here are some advantages of this approach, along with addit...
20,997
[ { "from": "human", "value": "Often multiple applications share a large codebase of libraries that change often in development. In these cases, I prefer to create a solution named after the suite, and include separate projects for each application and the shared libraries.\nIs this a good approach? How do ...
How you fix the following Hibernate error: What does "Use of the same entity name twice".
The error "Use of the same entity name twice" in Hibernate typically indicates that you have defined two entity classes with the same name in the same persistence context. This can happen for several reasons: 1. **Duplicate Entity Names**: Check if you have two entities that share the same name in the same package or ...
24,574
[ { "from": "human", "value": "How you fix the following Hibernate error:\nWhat does \"Use of the same entity name twice\".\n" }, { "from": "gpt", "value": "The error \"Use of the same entity name twice\" in Hibernate typically indicates that you have defined two entity classes with the same name ...
I need a SQL query that returns ContactDate, SortName, City, ContactType, and Summary from the tables below. If any value is null, I need it to return the text “No Entry”. ContactTable ContactID ContactDate UserID Summary ContactType SortName UserTable UserID FirstName LastName AddressID AddressTable AddressID...
To create a SQL query that returns the specified fields from the provided tables, and replaces null values with "No Entry", we can use the `COALESCE` function. This function returns the first non-null value in the list of arguments provided to it. Assuming the relationships between the tables are as follows: - `Contac...
28,007
[ { "from": "human", "value": "I need a SQL query that returns ContactDate, SortName, City, ContactType, and Summary from the tables below. If any value is null, I need it to return the text “No Entry”.\nContactTable\n\nContactID\nContactDate \nUserID \nSummary \nContactType\nSortName\n\nUserTable\n\nUserID\n...
My Win form app doesn't seem to like FormsAuthentication, I'm totally new to hashing so any help to convert this would be very welcome. Thanks. //Write hash protected TextBox tbPassword; protected Literal liHashedPassword; { string strHashedPassword = FormsAuthentication.HashPasswordForStoringInConfigFile(tbPassword...
It looks like you're trying to use the `FormsAuthentication.HashPasswordForStoringInConfigFile` method to hash passwords in a WinForms application. However, this method is not available in WinForms and is generally considered outdated and insecure for modern applications. Instead, you should use a more secure way to ha...
20,748
[ { "from": "human", "value": "My Win form app doesn't seem to like FormsAuthentication, I'm totally new to hashing so any help to convert this would be very welcome. Thanks.\n//Write hash\nprotected TextBox tbPassword;\nprotected Literal liHashedPassword;\n\n{\n string strHashedPassword = FormsAuthenticatio...
From wikipedia: the cross product is a binary operation on two vectors in a three-dimensional Euclidean space that results in another vector which is perpendicular to the plane containing the two input vectors. Given that the definition is only defined in three (or seven, one and zero) dimensions, how does one calcu...
The confusion you're encountering stems from the fact that the concept of the cross product is not strictly defined for 2D vectors in the same way it is for 3D vectors. However, there are useful interpretations and calculations that arise when dealing with 2D vectors. ### Understanding the Two Implementations 1. **Sc...
24,848
[ { "from": "human", "value": "From wikipedia: \n\nthe cross product is a binary operation on two vectors in a three-dimensional Euclidean space that results in another vector which is perpendicular to the plane containing the two input vectors.\n\nGiven that the definition is only defined in three (or seven,...
I've got a website that has windows authentication enable on it. From a page in the website, the users have the ability to start a service that does some stuff with the database. It works fine for me to start the service because I'm a local admin on the server. But I just had a user test it and they can't get the servi...
In order to access the services on a remote machine using a different user account than the one currently logged in, you have a few options. The most common method is to use impersonation, where you run the code that accesses the remote services under a different user's security context. ### Option 1: Use Impersonatio...
22,752
[ { "from": "human", "value": "I've got a website that has windows authentication enable on it. From a page in the website, the users have the ability to start a service that does some stuff with the database.\nIt works fine for me to start the service because I'm a local admin on the server. But I just had a...
A website I'm working on (using AS2 because it's oldschool) has a larger index .swf file that loads sub-swfs using loadMovie("foo1.swf", placeToShowSwf). There's foo1.swf through 4, which is silly because the only thing that's different between them is a single number in the address of an xml file that tells it what co...
The issue you're encountering is likely related to the timing of when `setFooNum()` is called in relation to when the XML file is being loaded and processed. Since the loading of `foo1.swf`, which calls your `setFooNum()` function, is asynchronous, it’s possible that the `onLoad` event of the XML is being triggered bef...
25,190
[ { "from": "human", "value": "A website I'm working on (using AS2 because it's oldschool) has a larger index .swf file that loads sub-swfs using loadMovie(\"foo1.swf\", placeToShowSwf). There's foo1.swf through 4, which is silly because the only thing that's different between them is a single number in the a...
Is there a simple way to write a common function for each of the CRUD (create, retreive, update, delete) operations in PHP WITHOUT using any framework. For example I wish to have a single create function that takes the table name and field names as parameters and inserts data into a mySQL database. Another requirement ...
Yes, you can create simple PHP functions for the basic CRUD operations (Create, Read, Update, Delete) that interact with a MySQL database without using a framework. Below, I'll provide an example of how you can implement these functions to support inserting data into multiple tables as well. ### Step 1: Database Conne...
17,461
[ { "from": "human", "value": "Is there a simple way to write a common function for each of the CRUD (create, retreive, update, delete) operations in PHP WITHOUT using any framework. For example I wish to have a single create function that takes the table name and field names as parameters and inserts data in...
I have a user control that is pretty basic. It contains several TextBox controls, a few DropDownList controls, a save Button and a cancel Button. I would like to use this control in two different modes. The first mode is in the normal postback mode to do the save and cancel actions. The second mode would use AJAX to do...
Yes, it is indeed possible to wrap the contents of your user control in an `UpdatePanel` and toggle between AJAX and standard postback behavior for the control's actions. You can achieve this by using a combination of properties or flags in your user control to determine the mode of operation, and then conditionally ha...
24,557
[ { "from": "human", "value": "I have a user control that is pretty basic. It contains several TextBox controls, a few DropDownList controls, a save Button and a cancel Button. I would like to use this control in two different modes. The first mode is in the normal postback mode to do the save and cancel acti...
How can I, in Java or using some other programming language, add a new program group in the applications menu in both KDE and Gnome? I am testing with Ubuntu and Kubuntu 8. Putting a simple .menu file in ~/.config/menus/applications-merged worked in Kubuntu, but the same procedure does nothing in Ubuntu. The content o...
To programmatically add a new program group in the applications menu in both KDE and GNOME, you will need to create a `.desktop` file and a `.menu` file to define your application group and its contents. Below is a step-by-step guide to achieve this. ### Creating a Program Group in Ubuntu (GNOME) For GNOME, the proce...
15,348
[ { "from": "human", "value": "How can I, in Java or using some other programming language, add a new program group in the applications menu in both KDE and Gnome? \nI am testing with Ubuntu and Kubuntu 8. Putting a simple .menu file in ~/.config/menus/applications-merged worked in Kubuntu, but the same proce...
The question is not how to tell in a oneliner. If you're writing the code in a one-liner, you know you are. But how does a module, included by -MMy::Module::Name know that it all started from a oneliner. This is mine. It's non-portable though and relies on UNIX standard commands (although, it can be made portable more...
Your inquiry regarding detecting whether a Perl script is running as a one-liner is quite interesting. The approach you've taken using the `ps` command is practical but does rely on system-specific behaviors and is thus non-portable. To enhance your regex a bit while maintaining clarity, consider this refined version...
25,793
[ { "from": "human", "value": "The question is not how to tell in a oneliner. If you're writing the code in a one-liner, you know you are. But how does a module, included by -MMy::Module::Name know that it all started from a oneliner. \nThis is mine. It's non-portable though and relies on UNIX standard comman...
I have the following problem using subversion: I'm currently working on the trunk of my project and plan to do some refactoring (which includes renaming files or moving files to different directories). At the same time someone else is working on the same project on a branch. At some time I want to merge the changes mad...
It looks like you're experiencing a common challenge in Subversion (SVN) when renaming files and trying to merge changes from a branch back to the trunk. When you rename files in SVN, it doesn't automatically track those changes for merging purposes, which can lead to situations where you try to merge changes from a fi...
24,473
[ { "from": "human", "value": "I have the following problem using subversion:\nI'm currently working on the trunk of my project and plan to do some refactoring (which includes renaming files or moving files to different directories).\nAt the same time someone else is working on the same project on a branch.\n...
I've got a code that lists the running application on a win32 box, and then displays theirs icons. So far so good, I get the hwnd of the app, then call for GetClassLong(hwnd,GCL_HICONSM), and everything's fine. But the case of a java apps is a pain to deal with, as the process answering to my calls is javaw.exe, and n...
To retrieve the application icon of Java applications launched with `javaw.exe`, you can indeed face challenges since `javaw.exe` does not expose the application-specific icons directly. However, there's a workaround that leverages the Java application windows themselves to obtain the right icons. Here’s a general app...
20,200
[ { "from": "human", "value": "I've got a code that lists the running application on a win32 box, and then displays theirs icons.\nSo far so good, I get the hwnd of the app, then call for GetClassLong(hwnd,GCL_HICONSM), and everything's fine.\nBut the case of a java apps is a pain to deal with, as the proces...
I'm working on a solution that contains multiple projects targeting Windows Mobile 5 and standard Windows applications. Lately when opening up a form in designer the common UI controls (textbox, button, label, etc etc...) have vanished leaving only the controls defined within the project. Resetting the toolbox has no e...
It sounds like you're experiencing a common issue with the Visual Studio toolbox, particularly when working on projects that target different platforms. Here are some steps you can try to resolve the problem of missing and grayed-out controls in the toolbox for Windows Forms: 1. **Ensure Project Configuration**: -...
23,410
[ { "from": "human", "value": "I'm working on a solution that contains multiple projects targeting Windows Mobile 5 and standard Windows applications.\nLately when opening up a form in designer the common UI controls (textbox, button, label, etc etc...) have vanished leaving only the controls defined within t...
I am trying to run some unit tests in a C# Windows Forms application (Visual Studio 2005), and I get the following error: System.IO.FileLoadException: Could not load file or assembly 'Utility, Version=1.2.0.200, Culture=neutral, PublicKeyToken=764d581291d764f7' or one of its dependencies. The located assembly's manife...
The error you're encountering suggests that your project or some of its dependencies are still referencing an older version of the `Utility` assembly, specifically version `1.2.0.200`. Here are some steps you can take to resolve this issue: ### 1. Check Project References Make sure that all projects in your solution a...
25,359
[ { "from": "human", "value": "I am trying to run some unit tests in a C# Windows Forms application (Visual Studio 2005), and I get the following error:\n\nSystem.IO.FileLoadException: Could not load file or assembly 'Utility, Version=1.2.0.200, Culture=neutral, PublicKeyToken=764d581291d764f7' or one of its ...
Is there any way I can detect when my page has been set as the user's homepage in their browser? I'm most interested in something in javascript, but I'd be happy to hear about other approaches as well. Edit: I'm not looking for anything sneaky. I'm wondering if there is anything that is explicitly allowed through the ...
Detecting if a webpage has been set as a user's homepage through JavaScript or any other client-side method is not feasible due to privacy and security restrictions imposed by modern web browsers. Browsers do not provide any API or event that would allow a web page to directly know if it has been set as the homepage. H...
26,802
[ { "from": "human", "value": "Is there any way I can detect when my page has been set as the user's homepage in their browser?\nI'm most interested in something in javascript, but I'd be happy to hear about other approaches as well.\nEdit: I'm not looking for anything sneaky. I'm wondering if there is anyth...
What is recommended for sharing configuration data amongst several related applications in a winforms solution? The two possible solutions I envisage are using a custom section in the machine.config (?) file, and the other is to create an extra config service application that maintains settings via its Properties clas...
When considering how to share configuration data among several related applications in a WinForms solution, both of your proposed solutions have their merits, but they also come with trade-offs. Here’s an overview of the options you've mentioned, along with some additional considerations. ### 1. Custom Section in `mac...
24,030
[ { "from": "human", "value": "What is recommended for sharing configuration data amongst several related applications in a winforms solution? The two possible solutions I envisage are using a custom section in the machine.config (?) file, and the other is to create an extra config service application that m...
I have been reading the MSDN documentation on subclassing and I have been successful in handling events in a subclass My issue is with passing messages back to the original WndProc. As an example, if I have a window, with a sub-classed groupbox control and a button as a child of that groupbox, I want to handle the but...
When you subclass a control (like your group box in this case) and handle messages in a custom procedure, you may find that you need to pass specific messages back to the original window procedure (WndProc) of the main window (not just the subclassed control) in certain scenarios. Here's how to achieve this: 1. **Sub...
23,015
[ { "from": "human", "value": "I have been reading the MSDN documentation on subclassing and I have been successful in handling events in a subclass\nMy issue is with passing messages back to the original WndProc.\nAs an example, if I have a window, with a sub-classed groupbox control and a button as a child...
After reading Martin Fowler's Mocks Aren't Stubs, I've discovered I've been practicing TDD in the "mockist" fashion. But I'm wondering if even in mockist TDD if one can take mocking too far. Here's an updated example in Python-style pseudo-code: def sync_path(self): if self.confirm_or_create_connection(): s...
It's great that you're reflecting on your TDD practices and the balance between using mocks and ensuring your tests remain meaningful. In mockist TDD, the focus is often on testing the interactions between components, which can lead to a reliance on mocks for internal method calls. In your example, you're correctly te...
27,033
[ { "from": "human", "value": "After reading Martin Fowler's Mocks Aren't Stubs, I've discovered I've been practicing TDD in the \"mockist\" fashion.\nBut I'm wondering if even in mockist TDD if one can take mocking too far.\nHere's an updated example in Python-style pseudo-code:\ndef sync_path(self):\n if...
The way I do 80-column indication in Vim seems incorrect:set columns=80. At times I also set textwidth, but I want to be able to see and anticipate line overflow with the set columns alternative. This has some unfortunate side effects: I can't set number for fear of splitting between files that have different orders ...
Handling an 80-column visual indication in Vim while still being able to use features like line numbering and vertical splits can be managed effectively with a few options. Here are some strategies to consider: ### 1. Use `set colorcolumn` Instead of adjusting the `columns` setting, you can use the `colorcolumn` optio...
24,629
[ { "from": "human", "value": "The way I do 80-column indication in Vim seems incorrect:set columns=80. \nAt times I also set textwidth, but I want to be able to see and anticipate line overflow with the set columns alternative.\nThis has some unfortunate side effects:\n\nI can't set number for fear of splitt...
I have an application that when it first starts i need it to run a database query. I have all the database queries however forms are all loaded by this method. dim myfrm as new Form2 myfrm.show. The thing is if this app has crashed etc i need to make sure its the first initial start of this program Does anyone have an...
To ensure that your application runs a specific database query only on the first start, you can use several methods to keep track of whether the application has previously started successfully. Here are a few approaches: ### 1. Using a Configuration File You can create a simple configuration file (e.g., a text file or...
24,698
[ { "from": "human", "value": "I have an application that when it first starts i need it to run a database query.\nI have all the database queries however forms are all loaded by this method.\ndim myfrm as new Form2 \nmyfrm.show.\nThe thing is if this app has crashed etc i need to make sure its the first init...
I was wondering if there was a way to get at the raw HTTP request data in PHP running on apache that doesn't involve using any additional extensions. I've seen the HTTP functions in the manual, but I don't have the option of installing an extension in my environment. While I can access the information from $_SERVER, I ...
If you want to access the raw HTTP request data in PHP without relying on additional extensions or libraries, you can achieve this by using the `php://input` stream for the request body and some custom logic for the headers. However, please note that retrieving the raw HTTP headers without PHP's built-in transformation...
21,173
[ { "from": "human", "value": "I was wondering if there was a way to get at the raw HTTP request data in PHP running on apache that doesn't involve using any additional extensions. I've seen the HTTP functions in the manual, but I don't have the option of installing an extension in my environment.\nWhile I ca...
We have a project with many dll files which get loaded when the application starts. The baseaddresses of the dll files do overlap so that the memory image gets relocated. Is there a possibility to assign the baseaddresses automatically or a way to calculate a "good" baseaddress for each dll file?
When dealing with DLL (Dynamic Link Library) files in Windows, base address conflicts can occur when multiple DLLs attempt to load at the same address in memory. This can lead to the operating system relocating the DLLs to different addresses, which may have performance implications and could potentially cause issues i...
19,985
[ { "from": "human", "value": "We have a project with many dll files which get loaded when the application starts. The baseaddresses of the dll files do overlap so that the memory image gets relocated. Is there a possibility to assign the baseaddresses automatically or a way to calculate a \"good\" baseaddres...
I have a rails application that I am running with Vista,IIS7 and SQL 2005. For some reason the CSS is not being rendered. The CSS works fine when I use Webrick. Any ideas how to get CSS working correctly with IIS7. I have uninstalled and reinstalled windows components "Common Http Features" with no luck.
When you're encountering issues with CSS not rendering in a Rails application running on IIS7 while it works fine with Webrick, it could be due to several reasons related to IIS configuration. Here are some steps to troubleshoot and resolve the issue: ### 1. Check Static File Serving Ensure that IIS is configured to ...
23,279
[ { "from": "human", "value": "I have a rails application that I am running with Vista,IIS7 and SQL 2005. For some reason the CSS is not being rendered. The CSS works fine when I use Webrick.\nAny ideas how to get CSS working correctly with IIS7. I have uninstalled and reinstalled windows components \"Common ...
What would you recommend for class that needs to keep a list of unique integers? I'm going to want to Add() integers to the collection and also check for existence e.g. Contains(). Would be nice to also get them in a list as a string for display, ie. "1, 5, 10, 21".
For your requirements, a good approach would be to use a combination of a `HashSet<int>` to manage the collection of unique integers and a method to convert that collection into a formatted string. The `HashSet` is ideal because it automatically handles uniqueness and provides efficient methods for adding items and che...
24,324
[ { "from": "human", "value": "What would you recommend for class that needs to keep a list of unique integers?\nI'm going to want to Add() integers to the collection and also check for existence e.g. Contains().\nWould be nice to also get them in a list as a string for display, ie. \"1, 5, 10, 21\".\n" }, ...
Our company uses Citrix to remote into a terminal server for remote users to launch smart client apps within a virtual window on their machine. The problem is that smartclient apps are being downloaded each time the user launches them eventhough the version on the remote citrix server has not change. This is due to th...
The scenario you’re describing, where the user profiles are purged after each session, can indeed lead to inefficiencies with applications that need to be downloaded every time they are launched. Here are several approaches you can consider to mitigate this issue while still maintaining user profile purging: ### 1. **...
13,887
[ { "from": "human", "value": "Our company uses Citrix to remote into a terminal server for remote users to launch smart client apps within a virtual window on their machine.\nThe problem is that smartclient apps are being downloaded each time the user launches them eventhough the version on the remote citrix...
In my experience Meta-templates are really fun (when your compilers are compliant), and can give good performance boosts, and luckily I'm surrounded by seasoned C++ programmers that also grok meta-templates, however occasionally a new developer arrives and can't make heads or tails of some of the meta-template tricks w...
Meta-template programming in C++ can be a powerful tool for achieving performance optimizations, code generation, and compile-time computations. However, its complexity can pose challenges for new developers, and opinions on whether it should be a requirement for C++ programmers can vary. ### Pros of Requiring Meta-Te...
23,946
[ { "from": "human", "value": "In my experience Meta-templates are really fun (when your compilers are compliant), and can give good performance boosts, and luckily I'm surrounded by seasoned C++ programmers that also grok meta-templates, however occasionally a new developer arrives and can't make heads or ta...
I wish to migrate the database of a legacy web app from SQL Server to MySQL. What are the limitations of MySQL that I must look out for ? And what all items would be part of a comprehensive checklist before jumping into actually modifying the code ?
Migrating a database from SQL Server to MySQL involves various considerations and potential limitations. Here's an overview of the key differences, limitations, and a comprehensive checklist to help you prepare for the migration. ### Limitations of MySQL vs. SQL Server 1. **Data Types**: - Some SQL Server data typ...
24,018
[ { "from": "human", "value": "I wish to migrate the database of a legacy web app from SQL Server to MySQL. What are the limitations of MySQL that I must look out for ? And what all items would be part of a comprehensive checklist before jumping into actually modifying the code ? \n" }, { "from": "gpt...