instruction
stringlengths
14
27.6k
completion
stringlengths
3
38.3k
__original_row_idx
int64
0
50k
conversations
listlengths
2
2
Why main must be declared as if it has external linkage? Why it should not be static? what is meant by external linkage??
In C and C++ programming, the `main` function serves as the entry point of the program. Here's an explanation of why it is typically declared with external linkage and why it should not be declared as `static`, along with an explanation of the term "external linkage." ### Why `main` Must Have External Linkage: 1. **P...
38,523
[ { "from": "human", "value": "Why main must be declared as if it has external linkage?\nWhy it should not be static?\nwhat is meant by external linkage??\n" }, { "from": "gpt", "value": "In C and C++ programming, the `main` function serves as the entry point of the program. Here's an explanation ...
How to integrate JQuery Intellisense support in VS 2005
Integrating jQuery IntelliSense support in Visual Studio 2005 can enhance your development experience by providing code suggestions, parameter info, and documentation hints while coding. Since Visual Studio 2005 does not natively support modern JavaScript libraries like jQuery as later versions do, you will need to fol...
38,093
[ { "from": "human", "value": "How to integrate JQuery Intellisense support in VS 2005\n" }, { "from": "gpt", "value": "Integrating jQuery IntelliSense support in Visual Studio 2005 can enhance your development experience by providing code suggestions, parameter info, and documentation hints while...
I have a Repeater control on ASPX-page defined like this: <asp:Repeater ID="answerVariantRepeater" runat="server" onitemdatabound="answerVariantRepeater_ItemDataBound"> <ItemTemplate> <asp:RadioButton ID="answerVariantRadioButton" runat="server" GroupName="answerVariants" Text='...
Yes, you can simplify the logic using LINQ to query the checked radio button from the `Repeater` items. Here's how you can do it in a more concise way: ```csharp using System.Linq; using System.Web.UI.WebControls; //... // In your form submission method RadioButton checkedButton = answerVariantRepeater.Items .Of...
40,505
[ { "from": "human", "value": "I have a Repeater control on ASPX-page defined like this:\n<asp:Repeater ID=\"answerVariantRepeater\" runat=\"server\"\n onitemdatabound=\"answerVariantRepeater_ItemDataBound\">\n <ItemTemplate>\n <asp:RadioButton ID=\"answerVariantRadioButton\" runat=\"server\"\n ...
How can I check which version of Apache is installed on a Debian machine? Is there a command for doing this?
Yes, you can check which version of Apache is installed on a Debian machine using the command line. Here are a couple of methods to do this: 1. **Using the `apache2` command:** You can run the following command in the terminal: ```bash apache2 -v ``` This will output the version of Apache that is curr...
40,327
[ { "from": "human", "value": "How can I check which version of Apache is installed on a Debian machine? \nIs there a command for doing this?\n" }, { "from": "gpt", "value": "Yes, you can check which version of Apache is installed on a Debian machine using the command line. Here are a couple of me...
in javascript, when I receive a focus event, how can I work out which element has lost focus? I'm trying to avoid having to put an onblur event handler on all elements within my web page.
In JavaScript, you can determine which element has lost focus when handling a focus event by using the `relatedTarget` property of the `focus` and `blur` events. This property will give you a reference to the element that gained focus, allowing you to infer which element has lost focus. Here's how you can handle this ...
39,816
[ { "from": "human", "value": "in javascript, when I receive a focus event, how can I work out which element has lost focus? I'm trying to avoid having to put an onblur event handler on all elements within my web page. \n" }, { "from": "gpt", "value": "In JavaScript, you can determine which elemen...
I'm making a program that retrieves decently large amounts of data through a python socket and then immediately disconnects when the information is finished sending. But I'm not sure how to do this All the examples on the web are of tcp clients where they have while 1: data = sock.recv(1024) But this creates a look...
You're correct in your understanding that the typical approach to receiving data over a TCP socket involves using a loop to read the data in chunks until all of the expected data has been received. However, it’s important to define how you know when you've received all the data. Here are a couple of common methods to d...
37,981
[ { "from": "human", "value": "I'm making a program that retrieves decently large amounts of data through a python socket and then immediately disconnects when the information is finished sending. But I'm not sure how to do this\nAll the examples on the web are of tcp clients where they have\nwhile 1:\n dat...
I've got a VB.NET module that reads from a resource file to display text in the correct language. Here's my problem - this code is shared between a web application and a non-web application, In the web application, I'm using System.Web.HttpContext to determine the user's preferred language, but now my Windows app won't...
It sounds like you have found a practical solution to your problem by adding a reference to `System.Web` and using a check for `HttpContext.Current`. This is a great approach to ensure your code runs smoothly in both environments (web and non-web). For clarity and additional options for anyone facing similar issues, ...
38,891
[ { "from": "human", "value": "I've got a VB.NET module that reads from a resource file to display text in the correct language. Here's my problem - this code is shared between a web application and a non-web application, In the web application, I'm using System.Web.HttpContext to determine the user's preferr...
Learning a little about T-SQL, and thought an interesting exercise would be to generate a Mandelbrot set with it. Turns out someone already has (and recently, it appears). I'll let someone else post it as an answer, but I'm curious what optimizations can be made. Alternately, what would you do to make the code more re...
Generating a Mandelbrot set in T-SQL is indeed a unique exercise, as SQL is not typically used for complex calculations or graphics generation. However, optimizing the code for readability and performance can help you understand how T-SQL operates while also making your code cleaner. Below, I will offer some suggestion...
37,428
[ { "from": "human", "value": "Learning a little about T-SQL, and thought an interesting exercise would be to generate a Mandelbrot set with it.\nTurns out someone already has (and recently, it appears). I'll let someone else post it as an answer, but I'm curious what optimizations can be made.\nAlternately,...
Some background: In Germany (at least) invoice numbers have to follow certain rules: The have to be ordered They have to be continuous (may not have gaps) Since a few months they are allowed to contain characters. Some customers want to use that possibility and customers don't know that or are afraid and they insist ...
Generating a continuous sequence of invoice numbers that adheres to your specified requirements involves a few steps. Here's a breakdown of how you might accomplish this: ### Requirements Recap: 1. **Ordered**: Invoice numbers should be in an increasing order. 2. **Continuous**: There should be no gaps in the sequence...
37,604
[ { "from": "human", "value": "Some background: In Germany (at least) invoice numbers have to follow certain rules:\n\nThe have to be ordered\nThey have to be continuous (may not have gaps)\n\nSince a few months they are allowed to contain characters. Some customers want to use that possibility and customers ...
I have two tables, one stores the products and quantity we have bought, the other stores the sells. The current stock is therefore the sum of all the quantity columns in the bought table minus the number of rows in the sells table. How can this be expressed in MySQL. Remember that there are many different products. EDI...
To achieve your requirements, you can use a `LEFT JOIN` to ensure that you get all products from the `products` table, even if they have not been bought or sold. You will calculate the total quantity bought from the `bought` table and the total quantity sold from the `sells` table, and then compute the available quanti...
38,769
[ { "from": "human", "value": "I have two tables, one stores the products and quantity we have bought, the other stores the sells. The current stock is therefore the sum of all the quantity columns in the bought table minus the number of rows in the sells table. How can this be expressed in MySQL. Remember th...
I have some markup for a popup menu that works in firefox but not IE. The problem is that the popup pops under other elements and is impervious to the z-index value. A complete runnable example is below. Now, I know that one fix is not to position the divs as relative, but I can't do that because, in the real code, I...
The issue you're experiencing with the popup menu appearing under other elements in Internet Explorer is primarily due to the way IE handles stacking contexts and positioning. Since you can't change the `position: relative` styles applied to the outer divs, we can tackle the issue by ensuring that the menu has the corr...
35,870
[ { "from": "human", "value": "I have some markup for a popup menu that works in firefox but not IE. The problem is that the popup pops under other elements and is impervious to the z-index value. A complete runnable example is below.\nNow, I know that one fix is not to position the divs as relative, but I ...
Objective-C 2.0 gave us @properties. They allow for introspection. They allow for declarative programming. The @synthesize and @dynamic mechanisms relieve use from having to write repetitive, stock accessors. Finally, there is the ‘dot’ property syntax, which some love, and some hate. That isn't what I'm hear to ask....
Using `@property` in Objective-C is indeed powerful, but it's crucial to apply it judiciously. Here are some appropriate and inappropriate usages of properties in Cocoa development: ### Appropriate Use Cases for Properties 1. **Model Objects**: As you've pointed out, model objects are one of the most appropriate ...
35,430
[ { "from": "human", "value": "Objective-C 2.0 gave us @properties.\n\nThey allow for introspection.\nThey allow for declarative programming.\nThe @synthesize and @dynamic mechanisms relieve use from having to write repetitive, stock accessors.\nFinally, there is the ‘dot’ property syntax, which some love, an...
I'm still trying to get my head around using Java's generics. I have no problems at all with using typed collections, but much of the rest of it just seems to escape me. Right now I'm trying to use the JUnit "PrivateAccessor", which requires a Class[] argument with a list of all the argument types for the private meth...
In Java, generics are mainly used to provide type safety at compile time, but they are not retained at runtime due to type erasure. This means that you can't reference generic types like `Collection<MyClass1>` or `ArrayList<MyClass2>` directly when you are dealing with reflection or class types at runtime. In your cas...
39,394
[ { "from": "human", "value": "I'm still trying to get my head around using Java's generics. I have no problems at all with using typed collections, but much of the rest of it just seems to escape me.\nRight now I'm trying to use the JUnit \"PrivateAccessor\", which requires a Class[] argument with a list of...
I have a class Customer in app_code folder in asp.net web site, how can I create an instance using reflection, for example using Activator.CreateInstance(assemblyName, typeName)? Because the app_code is dynamically compiled, I don't know the assembly in design time? Thanks Fred The question is should be how get a full ...
In an ASP.NET Web Site project, classes in the `App_Code` folder are compiled dynamically into a single assembly at runtime, and you don't have a specific assembly name at design time. However, the full name of the type can be obtained, which allows you to use `Activator.CreateInstance` effectively. Here's how to addr...
38,767
[ { "from": "human", "value": "I have a class Customer in app_code folder in asp.net web site, how can I create an instance using reflection, for example using Activator.CreateInstance(assemblyName, typeName)? Because the app_code is dynamically compiled, I don't know the assembly in design time?\nThanks\nFre...
The loop below is callign a proc that does various 'things' If it should throw an exception it also 'raises' it. I want to catch it and ignore it and allow the loop to continue processing the next value in the array. Thanks WHILE indx IS NOT NULL LOOP table_dump_csv(tableList(indx), tableList(indx) || '.csv'); ...
To handle exceptions in your loop so that you can ignore them and continue processing the next value in the array, you can use a `BEGIN...EXCEPTION...END` block within the loop. Here’s how you can modify your code to achieve this: ```sql WHILE indx IS NOT NULL LOOP BEGIN -- Call the procedure that might ra...
38,469
[ { "from": "human", "value": "The loop below is callign a proc that does various 'things'\nIf it should throw an exception it also 'raises' it. I want to catch it and ignore it and allow the loop to continue processing the next value in the array. \nThanks\nWHILE indx IS NOT NULL LOOP\n\n table_dump_csv(t...
What is the Constant Value of the Underline font in Java ? Font.BOLD bold font Font.ITALIC italic font What is the UNDERLINE font Constant ? I try all the available constants but it didn't work .
In Java's standard AWT and Swing libraries, there isn't a predefined constant for an underlined font like there is for bold (`Font.BOLD`) or italic (`Font.ITALIC`). Instead, you can create an underlined font using the `Map` and `Font` classes. Here's how you can create an underlined font in Java: 1. Create a font as ...
38,594
[ { "from": "human", "value": "What is the Constant Value of the Underline font in Java ?\nFont.BOLD bold font\nFont.ITALIC italic font\nWhat is the UNDERLINE font Constant ?\nI try all the available constants but it didn't work .\n" }, { "from": "gpt", "value": "In Java's standard AWT and Swing...
I wonder if it's possible to save all files in a Visual Studio 2008 project into a specific character encoding. I got a solution with mixed encodings and I want to make them all the same (UTF-8 with signature). I know how to save single files, but how about all files in a project?
To change the encoding of all files in a Visual Studio 2008 project to a specific character encoding (like UTF-8 with a BOM), you'll need to go through each file in the project and save it in the desired encoding. Unfortunately, Visual Studio 2008 does not provide a built-in feature to convert the encoding of all files...
36,673
[ { "from": "human", "value": "I wonder if it's possible to save all files in a Visual Studio 2008 project into a specific character encoding. I got a solution with mixed encodings and I want to make them all the same (UTF-8 with signature).\nI know how to save single files, but how about all files in a proje...
Why doesn't the code below work? The idea is that the page checks to see if the dropdown variable has changes since you last refreshed the page. <logic:equal name="Result" value = "-1"> <bean:define id="JOININGDATE" name="smlMoverDetailForm" property="empFDJoiningDate" type="java.lang.String" toScope = "se...
There are a few issues in your code snippet that could be causing it not to work as intended. Below are the points that need to be addressed, along with a corrected version of the code: 1. **Correct the Syntax of JSP Tags**: Ensure that your tags are properly formatted. In JSP, the `logic` and `bean` tags should be co...
32,192
[ { "from": "human", "value": "Why doesn't the code below work? The idea is that the page checks to see if the dropdown variable has changes since you last refreshed the page.\n <logic:equal name=\"Result\" value = \"-1\">\n <bean:define id=\"JOININGDATE\" name=\"smlMoverDetailForm\" property=\"empFDJoining...
Can someone explain the main benefits of different types of references in C#? Weak references Soft references Phantom references Strong references. We have an application that is consuming a lot of memory and we are trying to determine if this is an area to focus on.
In C#, references can be categorized into several types based on their behavior with respect to garbage collection. Understanding these reference types can be crucial in memory management, especially in applications consuming large amounts of memory. Here's a breakdown of the different types of references you've mentio...
37,176
[ { "from": "human", "value": "Can someone explain the main benefits of different types of references in C#?\n\nWeak references\nSoft references\nPhantom references\nStrong references.\n\nWe have an application that is consuming a lot of memory and we are trying to determine if this is an area to focus on.\n"...
I have a simple j2ee application: foo.ear - foo.war - foo.jar (ejb3 jar) I am deploying into jBoss 4.2.2, which is J2EE 1.4 compliant, with an ejb3 jar deployer. Thus, at present it is not possible to use the @EJB annotation in servlets. In a regular 1.4 j2EE app I could use a <ejb-local-ref> element in my web.xml, ...
In your case, since you're working with EJB 3 and JBoss 4.2.2, the @EJB annotation is not available in servlets due to the platform's limitations. However, you can still look up your EJBs in a compliant way using JNDI. To do this in a J2EE compliant manner while avoiding the platform-specific parts, you can define th...
34,388
[ { "from": "human", "value": "I have a simple j2ee application:\nfoo.ear\n - foo.war\n - foo.jar (ejb3 jar)\n\nI am deploying into jBoss 4.2.2, which is J2EE 1.4 compliant, with an ejb3 jar deployer. Thus, at present it is not possible to use the @EJB annotation in servlets. In a regular 1.4 j2EE app I could...
What features might our team find lacking if we adopted Basecamp for bug tracking, task tracking, external documentation, collaboration, and project management? I've used the free version before and think that 37Signals makes excellent products - but I wanted to hear from you what the drawbacks might be.
Basecamp is a popular project management and collaboration tool, but it may have certain limitations when used specifically for bug tracking, task tracking, external documentation, collaboration, and project management. Here are some potential drawbacks to consider: 1. **Limited Bug Tracking Features**: Basecamp is no...
38,201
[ { "from": "human", "value": "What features might our team find lacking if we adopted Basecamp for bug tracking, task tracking, external documentation, collaboration, and project management?\nI've used the free version before and think that 37Signals makes excellent products - but I wanted to hear from you w...
In WCF if we use webreference in the client project additional argument called "IsSpecified of bool" is automatically added for each of the argument that written in the Service. Why it was happening?
In Windows Communication Foundation (WCF), when you add a web reference (for example, by using the "Add Service Reference" feature in Visual Studio), the generated proxy classes for the service methods include additional boolean properties named `<ParameterName>Specified` for each parameter in the service operation. #...
36,071
[ { "from": "human", "value": "In WCF if we use webreference in the client project additional argument called \"IsSpecified of bool\" is automatically added for each of the argument that written in the Service.\nWhy it was happening?\n" }, { "from": "gpt", "value": "In Windows Communication Founda...
I need a member of my class to be a Control, and for it to implement an interface we define. If I declare it like this... public class MyClass { public Control MyMember; } ... then I don't get the interface methods, but if I declare it like this... public class MyClass { public IMyInterface MyMember; } ...the...
In C#, you cannot directly specify that a member variable must be of a type that inherits from both a class and an interface in the declaration of the variable itself. However, you can achieve this using a combination of class inheritance and interface implementation. Here’s how you can do it: 1. Create a class that ...
39,900
[ { "from": "human", "value": "I need a member of my class to be a Control, and for it to implement an interface we define.\nIf I declare it like this...\npublic class MyClass\n{\n public Control MyMember;\n}\n\n... then I don't get the interface methods, but if I declare it like this...\npublic class MyCl...
I need to copy a set of rows from one tab to another tab of the same Excel document by just clicking a button. Also, can I also get information on how can I copy a set of rows that are hidden and paste it in the same tab without copying the "hidden" format?
Certainly! You can achieve this in Excel using VBA (Visual Basic for Applications). Below are two solutions: one for copying rows from one tab to another with a button, and another for copying hidden rows without their hidden format. ### Solution 1: Copy Rows from One Tab to Another with a Button 1. **Open Excel and ...
31,915
[ { "from": "human", "value": "I need to copy a set of rows from one tab to another tab of the same Excel document by just clicking a button. \nAlso, can I also get information on how can I copy a set of rows that are hidden and paste it in the same tab without copying the \"hidden\" format?\n" }, { "...
I have written a control in C# that derives from System.Windows.Forms.Control. I have added a property Selected to which I want to databind to a business entity using a BindingSource. I’ve implemented the PropertyNameChanged pattern by adding a SelectedChanged event that I fire when the Selected property is changed. Th...
It sounds like you've implemented the `Selected` property and its change notification correctly; however, for data binding to work properly with WinForms, you need to ensure that your control is compatible with the data binding infrastructure. Here are a few things to check and adjustments you can make: ### 1. Implem...
38,395
[ { "from": "human", "value": "I have written a control in C# that derives from System.Windows.Forms.Control. I have added a property Selected to which I want to databind to a business entity using a BindingSource.\nI’ve implemented the PropertyNameChanged pattern by adding a SelectedChanged event that I fire...
If I have the following code: MyClass pClass = new MyClass(); pClass.MyEvent += MyFunction; pClass = null; Will pClass be garbage collected? Or will it hang around still firing its events whenever they occur? Will I need to do the following in order to allow garbage collection? MyClass pClass = new MyClass(); pClass.M...
In C#, events can create memory leaks if not handled properly due to the way event subscriptions work. When you subscribe to an event, the publisher (the object that raises the event) keeps a reference to the subscriber (the method handling the event) in its invocation list. This can prevent the publisher from being ga...
39,698
[ { "from": "human", "value": "If I have the following code:\nMyClass pClass = new MyClass();\npClass.MyEvent += MyFunction;\npClass = null;\n\nWill pClass be garbage collected? Or will it hang around still firing its events whenever they occur? Will I need to do the following in order to allow garbage collec...
Basic requests are: human readable / text format (for easy version control) online (for collaboration) easy formatting (markdown ok, html is too much) strict formatting (so authors don't invent new types of titles, bullets etc.) exportable to PDF, HTML easy backup and deployment (so we can "deploy" to customers site ...
Based on your requirements, here are some suggestions for wiki engines and documentation tools that should meet your criteria: ### 1. **MkDocs** - **Format:** Markdown support - **Storage:** Filesystem-based, uses Markdown files for content - **Export:** Can be easily deployed as static HTML - **Deployment:** Simple t...
36,690
[ { "from": "human", "value": "Basic requests are:\n\nhuman readable / text format (for easy version control)\nonline (for collaboration)\neasy formatting (markdown ok, html is too much)\nstrict formatting (so authors don't invent new types of titles,\nbullets etc.)\nexportable to PDF, HTML \neasy backup and ...
I am trying to find out which Hypervisor will allow me to grant access to specialized PCI cards (such as a telephony card) to a virtual machine. So far I have tried out VMWare ESXi server and it doesn't seem to allow me to do this. I have heard that Microsoft Virtual Server does allow this, but I haven't been able to f...
When it comes to granting access to specialized PCI cards (such as telephony cards) to a virtual machine, the technology you are looking for is called PCI passthrough or PCIe passthrough. This allows a virtual machine (VM) to directly access a PCI device as if it were running on bare metal. ### Hypervisors Supporting ...
37,519
[ { "from": "human", "value": "I am trying to find out which Hypervisor will allow me to grant access to specialized PCI cards (such as a telephony card) to a virtual machine. So far I have tried out VMWare ESXi server and it doesn't seem to allow me to do this. I have heard that Microsoft Virtual Server does...
Is there any way other than using reflection to access the members of a anonymous inner class?
In Java, anonymous inner classes are typically used to provide a concise implementation of an interface or abstract class without having to formally declare a new class. These classes have members that are not accessible outside their scope unless they are part of the interface or superclass they implement/extend. Ref...
38,008
[ { "from": "human", "value": "Is there any way other than using reflection to access the members of a anonymous inner class?\n" }, { "from": "gpt", "value": "In Java, anonymous inner classes are typically used to provide a concise implementation of an interface or abstract class without having to...
Oracle has two seemingly competing technologies. CDC and DCN. What are the strengths of each? When would you use one and not the other?
Oracle's Change Data Capture (CDC) and Database Change Notification (DCN) are two technologies used for tracking changes in database data, but they serve different purposes and have distinct strengths. Here’s a breakdown of each technology, their strengths, and when to use one over the other. ### Change Data Capture (...
36,364
[ { "from": "human", "value": "Oracle has two seemingly competing technologies. CDC and DCN.\nWhat are the strengths of each?\nWhen would you use one and not the other?\n" }, { "from": "gpt", "value": "Oracle's Change Data Capture (CDC) and Database Change Notification (DCN) are two technologies u...
Our web team has been asked to build some user interfaces in Sharepoint. The UI's would primarily be forms that would need to write to a SQL Server database. Is ASP.NET the best way to do this? If so what's the best way to integrate the ASP.NET application into Sharepoint?
When building user interfaces in SharePoint, especially forms that interact with a SQL Server database, ASP.NET can certainly be a viable solution, but there are specific considerations and alternatives to keep in mind. ### Considerations for Using ASP.NET in SharePoint 1. **Compatibility**: SharePoint is built on AS...
36,158
[ { "from": "human", "value": "Our web team has been asked to build some user interfaces in Sharepoint. The UI's would primarily be forms that would need to write to a SQL Server database.\nIs ASP.NET the best way to do this? If so what's the best way to integrate the ASP.NET application into Sharepoint?\n...
I'm currently trying to build a simple component which should monitor, if the user opens a window with a specific URL (IE only). So I wrote this component and everything works fine, so I integrated it with the application, where it was needed. The problem is, in this application PerformanceCounters are used, and these ...
The issue you're experiencing seems to be related to the threading and timing behavior of your application when using the PerformanceCounter alongside the Internet Explorer automation. The use of performance counters in a separate thread might be affecting how the COM objects (specifically the Internet Explorer instanc...
28,188
[ { "from": "human", "value": "I'm currently trying to build a simple component which should monitor, if the user opens a window with a specific URL (IE only).\nSo I wrote this component and everything works fine, so I integrated it with the application, where it was needed.\nThe problem is, in this applicati...
in windows I am able to use winmerge as the external diff tool for hg using mercurial.ini,etc. Using some options switch that you can find in web(I think it's a japanese website) Anyway, here for example: hg winmerge -r1 -r2 will list file(s) change(s) between rev1 and rev2 in winmerge. I can just click which file t...
It looks like you successfully set up Beyond Compare (BC) as the external diff tool for Mercurial (hg) and resolved the issue you were facing. Using `bcompare` instead of `bcomp` is indeed the correct approach to get the desired behavior. For others who might be facing similar issues or looking to set up Beyond Compar...
38,258
[ { "from": "human", "value": "in windows I am able to use winmerge as the external diff tool for hg using mercurial.ini,etc. \n\nUsing some options switch that you can find in web(I think it's a japanese website)\nAnyway, here\nfor example:\nhg winmerge -r1 -r2\nwill list file(s) change(s) between rev1 and ...
Situation: you've got a .swf embedded in an html page, and when you click on something in the .swf, it needs to popup a chromeless window. Normally this would be fairly easy - but consider Safari, which completely disables all 'window.open' functionality while its popup-blocker is enabled (it makes an exception if the ...
Creating a solution that gracefully degrades for browsers that block `window.open` calls from Flash involves a combination of techniques that will provide a fallback experience. Here's how you can achieve that: ### Strategy: 1. **Use a JavaScript bridge**: Instead of directly calling `window.open` from ActionScript (...
35,802
[ { "from": "human", "value": "Situation: you've got a .swf embedded in an html page, and when you click on something in the .swf, it needs to popup a chromeless window. Normally this would be fairly easy - but consider Safari, which completely disables all 'window.open' functionality while its popup-blocker ...
I'd like to allow users to record videos directly from their webcam. I haven't done much work with PHP but am stuck with it for this project. We currently have a system in place for video uploading and encoding, but nothing to actually access a user's webcam. How would you recommend I proceed?
To allow users to record videos directly from their webcam, you won't be able to achieve this solely with PHP, as PHP is a server-side language and does not have direct access to client-side hardware like webcams. Instead, you'll need to use HTML5 and JavaScript for accessing the webcam, and you can still use PHP for u...
30,594
[ { "from": "human", "value": "I'd like to allow users to record videos directly from their webcam.\nI haven't done much work with PHP but am stuck with it for this project.\nWe currently have a system in place for video uploading and encoding, but nothing to actually access a user's webcam.\nHow would you re...
We're building some software for an in-house Kiosk. The software is a basic .net windows form with an embedded browser. The Kiosk is outfitted with a mat that the user steps on. When the user steps on the mat, it sends a key comination through the keyboard. When the user steps off the mat it sends a different key co...
To achieve your goal of detecting keyboard input from the mat and changing the browser URL based on that input in a .NET Windows Forms application, you can follow these steps: 1. **Hooking into Keyboard Events**: You can use a low-level keyboard hook to listen for specific key combinations. This will involve using PIn...
29,001
[ { "from": "human", "value": "We're building some software for an in-house Kiosk. The software is a basic .net windows form with an embedded browser. The Kiosk is outfitted with a mat that the user steps on. When the user steps on the mat, it sends a key comination through the keyboard. When the user step...
I may be barking up the wrong tree... However, what I have is a MySQL server that accepts connections only from a client with a valid SSL cert (see this link). This works great for example with Rails. I have my database on one server, and a Rails app that connects using the client certificate. Maybe not the fastest, bu...
Your scenario of requiring SSL/TLS client certificates for database connections is a valid approach for securing communications between your applications and the database. This adds a strong layer of security by ensuring that only clients with valid certificates can connect to the MySQL server. ### phpMyAdmin and SSL ...
38,969
[ { "from": "human", "value": "I may be barking up the wrong tree... However, what I have is a MySQL server that accepts connections only from a client with a valid SSL cert (see this link). This works great for example with Rails. I have my database on one server, and a Rails app that connects using the clie...
We have scalar functions in our database for returning things like "number of tasks for a customer" or "total invoice amount for a customer". We are experimenting and looking to try to do this w/o stored procedures ... normally we would just call this function in our stored procedure and return it as a single value. ...
Yes, you can access scalar functions in your SQL database using LINQ to SQL. While LINQ to SQL does not have built-in support for invoking scalar functions directly like stored procedures, you can define a function in your data context that corresponds to the SQL scalar function. Here’s how you can achieve this: ### ...
37,051
[ { "from": "human", "value": "We have scalar functions in our database for returning things like \"number of tasks for a customer\" or \"total invoice amount for a customer\". \nWe are experimenting and looking to try to do this w/o stored procedures ... normally we would just call this function in our stor...
What is the best way to generate and maintain several ranking lists for the home page of a website/webapp? e.g. hot posts, most recent posts, most comments, most consecutive wins etc. Currently, I'm thinking about using a cron job scheduler to run the queries to gather the statistics, run an algorithm on the statistics...
Generating and maintaining ranking lists for your website or web application can indeed benefit from a combination of techniques to ensure both efficiency and freshness of the data. Here’s a structured approach to help you achieve that: ### 1. **Database Design** - **Normalized Tables:** Ensure that your data is no...
37,528
[ { "from": "human", "value": "What is the best way to generate and maintain several ranking lists for the home page of a website/webapp? e.g. hot posts, most recent posts, most comments, most consecutive wins etc.\nCurrently, I'm thinking about using a cron job scheduler to run the queries to gather the stat...
The framework I am developing for my application relies very heavily on dynamically generated domain objects. I recently started using Spring WebFlow and now need to be able to serialize my domain objects that will be kept in flow scope. I have done a bit of research and figured out that I can use writeReplace() and r...
The issue you're facing stems from the use of `@Configurable` with `preConstruction = true`. The `@Configurable` annotation allows Spring to inject dependencies into instances that it doesn't manage directly, such as those created via the `new` operator. However, this injection only happens if the Spring context is awa...
37,134
[ { "from": "human", "value": "The framework I am developing for my application relies very heavily on dynamically generated domain objects. I recently started using Spring WebFlow and now need to be able to serialize my domain objects that will be kept in flow scope. \nI have done a bit of research and figur...
I have to consume 2 different web services. Both contain a definition for a 'user' object. When I reference the services using "Add service reference" I give each service a unique namespace: com.xyz.appname.ui.usbo.UserManagement com.xyz.appname.ui.usbo.AgencyManagement The problem I have is that each one of the...
In .NET 3.5, when you consume multiple web services that have identical object definitions, you can encounter the issue of having duplicate types (in this case, the 'User' object) defined in different namespaces. Since you're crossing platforms (Java to .NET), sharing types is not feasible. However, there are a few pot...
36,974
[ { "from": "human", "value": "I have to consume 2 different web services. Both contain a definition for a 'user' object. \nWhen I reference the services using \"Add service reference\" I give each service a unique namespace:\ncom.xyz.appname.ui.usbo.UserManagement \ncom.xyz.appname.ui.usbo.AgencyManageme...
I really don't understand the fascination with XHTML strict. Inline JavaScript typically requires a rats nest of escapes to make it compatible with XHTML and semi-backwards compatible with MSIE 5 & 6. Then there is the issue of not being OCD enough on user input to make sure you don't miss any illegal characters. I...
Your concerns about XHTML are valid and shared by many developers. Let's break down some of the arguments for and against using XHTML, which may help you build a case against its use in your projects: ### Arguments Against XHTML 1. **Complexity with Inline JavaScript and CSS**: - As you mentioned, inline JavaScrip...
32,900
[ { "from": "human", "value": "I really don't understand the fascination with XHTML strict. Inline JavaScript typically requires a rats nest of escapes to make it compatible with XHTML and semi-backwards compatible with MSIE 5 & 6. Then there is the issue of not being OCD enough on user input to make sure ...
I'm making a simple form to create polls, therefore I want the possibility to add additional input fields in case the user wants more options in the poll. I've made Javascript code that adds a new input field to the form, but the dynamically added input fields are not posted when the form is submitted (I use a standard...
Your current implementation for dynamically adding input fields looks good, and the approach you're using to add the new fields is correct. When you create and append new input fields to the form, they should indeed be submitted as part of the form data when the form is submitted, as long as they have a `name` attribut...
35,606
[ { "from": "human", "value": "I'm making a simple form to create polls, therefore I want the possibility to add additional input fields in case the user wants more options in the poll.\nI've made Javascript code that adds a new input field to the form, but the dynamically added input fields are not posted wh...
I am currently using Subversion as my Source Control system, mainly because I found ANkhSVN to be a quite nicely integrated into Visual Studio. But many people seem to be using Git or Mercurial and others with great success. Now, I am wondering how to use a system like Git without some sort of IDE integration. Going to...
It's perfectly understandable to prefer an integrated environment for source control, especially when working within an IDE like Visual Studio. However, many developers have successfully transitioned to Git and similar systems without IDE integration, using a variety of workflows that can be both efficient and comforta...
36,505
[ { "from": "human", "value": "I am currently using Subversion as my Source Control system, mainly because I found ANkhSVN to be a quite nicely integrated into Visual Studio.\nBut many people seem to be using Git or Mercurial and others with great success.\nNow, I am wondering how to use a system like Git wit...
I've been creating a nice T4 template for a repository pattern for my entities. Instead of manually parsing the xml in the edmx file I use the EdmItemCollection to create a object graph presentation for the conceptual model. I've been able to get a lot of information out of this model. But I cant find where to locate t...
The access modifiers for properties in an EDMX file are specified in the CSDL (Conceptual Schema Definition Language) section, as you noted. However, the `EdmItemCollection` does not directly expose this information, as you've observed. To access the `SetterAccess` attribute (and potentially other attributes from the...
37,118
[ { "from": "human", "value": "I've been creating a nice T4 template for a repository pattern for my entities. Instead of manually parsing the xml in the edmx file I use the EdmItemCollection to create a object graph presentation for the conceptual model.\nI've been able to get a lot of information out of thi...
While looking at a micro-optimization question that I asked yesterday (here), I found something strange: an or statement in Java is running slightly faster than looking up a boolean value in an array of booleans. In my tests, running the below algorithms on long values from 0 to 1 billion, alg1 is about 2% faster. (I...
The performance difference you're observing between `alg1` and `alg2` could be attributed to several factors, even though at first glance `alg2` seems like it should be faster due to its use of a lookup table. Here are some possible reasons why `alg1` might be faster: 1. **Branch Prediction**: Modern processors use b...
38,489
[ { "from": "human", "value": "While looking at a micro-optimization question that I asked yesterday (here), I found something strange: an or statement in Java is running slightly faster than looking up a boolean value in an array of booleans.\nIn my tests, running the below algorithms on long values from 0 ...
I have a form that when filled out and submitted, works fine. When the recipient replies to the sender though, the email actually goes to him instead of the intended party. Below is the form. Help! <% Dim roomsanswer, fashionsanswer, commentsanswer, nameanswer, addressanswer, citystateanswer, zipanswer, phoneanswer, ph...
It looks like the issue you are experiencing is related to how the "Reply-To" header is being managed in the email being sent. When the recipient replies to the email, the reply goes to the address specified in the `Message.From` field by default. To have the replies go to a different address (in this case, the addre...
38,569
[ { "from": "human", "value": "I have a form that when filled out and submitted, works fine. When the recipient replies to the sender though, the email actually goes to him instead of the intended party.\nBelow is the form. Help!\n<%\nDim roomsanswer, fashionsanswer, commentsanswer, nameanswer, addressanswer,...
I've heard a lot about profiling. What is this all about? As far as I understand this is some kind of performance measurement but can someone elaborate this on more clearly so that a newbie can grasp the idea. Also, I use Eclipse IDE for my Java program. Can I profile my program using Eclipse IDE? What are the factors ...
Profiling is a technique used in software development to measure the performance of a program and identify areas where it can be improved. The main goal of profiling is to understand how resources (like CPU time, memory usage, and I/O operations) are consumed during the execution of a program, which helps developers op...
36,577
[ { "from": "human", "value": "I've heard a lot about profiling. What is this all about? As far as I understand this is some kind of performance measurement but can someone elaborate this on more clearly so that a newbie can grasp the idea. Also, I use Eclipse IDE for my Java program. Can I profile my program...
I am trying to do positioning in JavaScript. I am using a cumulative position function based on the classic quirksmode function that sums offsetTop and offsetLeft for each offsetParent until the top node. However, I am running into an issue where the element I'm interested in has no offsetParent in Firefox. In IE off...
The issue you are facing is related to how the `offsetParent` property is defined in the context of CSS positioning. The `offsetParent` of an element is determined by a few specific criteria based on its CSS properties. Here are the main reasons an element might have a `null` value for `offsetParent`: 1. **Positioning...
38,517
[ { "from": "human", "value": "I am trying to do positioning in JavaScript. I am using a cumulative position function based on the classic quirksmode function that sums offsetTop and offsetLeft for each offsetParent until the top node.\nHowever, I am running into an issue where the element I'm interested in ...
I want to be able to rewrite a URL from: // examples http://example.com/location/New York, NY --> http://example.com/location/index.html?location=New York, NY http://example.com/location/90210 --> http://example.com/location/index.html?location=90210 http://example.com/location/Texas --> http://example.com/locatio...
It looks like you are on the right track with using mod_rewrite in your `.htaccess` file. The rules you've written should work for rewriting the URLs, but let's make sure we have everything set up correctly. Here’s a refined version of your `.htaccess` file that should achieve what you are looking for: ```apache Rewr...
35,599
[ { "from": "human", "value": "I want to be able to rewrite a URL from:\n// examples\n\nhttp://example.com/location/New York, NY -->\nhttp://example.com/location/index.html?location=New York, NY\n\nhttp://example.com/location/90210 -->\nhttp://example.com/location/index.html?location=90210\n\nhttp://example...
After following the advice in this question successfully, I added a couple additional lines of code for another custom action. This one is intended to call regsvr32 on the copy of capicom which I've tried to put in the user's system folder. However, I'm getting error 2721, which seems to be a custom action not found ...
It looks like you're trying to call `regsvr32` to register a DLL (CAPICOM.DLL) during your MSI installation, but you're encountering error 2721, which indicates that the custom action is not found. Here are some suggestions to help troubleshoot and possibly resolve this issue: 1. **Check Custom Action Definition**: Ma...
36,697
[ { "from": "human", "value": "After following the advice in this question successfully, I added a couple additional lines of code for another custom action. This one is intended to call regsvr32 on the copy of capicom which I've tried to put in the user's system folder. However, I'm getting error 2721, whi...
I found very annoying the fact that the SerialPort class in the .NET Framework doesn't allow to set the rts control to TOGGLE. There is a property called RTSEnable that lets me control directly the status of the RTS signal, but in a Compact Framework app there is not much precision to make it work well. Another solutio...
The limitation you've encountered with the `SerialPort` class in the .NET Framework regarding the RTS control can indeed be frustrating. Since you want to toggle the RTS control programmatically and also need to work within the confines of existing libraries that depend on `SerialPort`, you're in a somewhat tricky situ...
35,448
[ { "from": "human", "value": "I found very annoying the fact that the SerialPort class in the .NET Framework doesn't allow to set the rts control to TOGGLE.\nThere is a property called RTSEnable that lets me control directly the status of the RTS signal, but in a Compact Framework app there is not much preci...
I have some content that i have to render as a excel file in browser. I was able to render a grid content to excel with the below code. Response.Clear(); Response.AddHeader("content-disposition", "attachment;filename=FileName.xls"); Response.Charset = ""; Response.ContentType = "application/vnd.xls"; System.I...
Yes, you can embed an image in an Excel file, but the method you've provided is primarily for rendering a simple HTML table (like a `GridView`) to an Excel file. If you want to embed an image in an Excel file, the best approach would be to use a library specifically designed for generating Excel files, such as EPPlus, ...
34,632
[ { "from": "human", "value": "I have some content that i have to render as a excel file in browser. I was able to render a grid content to excel with the below code.\n Response.Clear();\n Response.AddHeader(\"content-disposition\", \"attachment;filename=FileName.xls\");\n Response.Charset = \"\";\n Respo...
I have a LinkButton that has to postback to perform some logic. Once it is finished, instead of loading the page back up in the browser, I want to leave it alone and pop open a new window. So far, the best idea I've had is to put the LinkButton in an UpdatePanel, and have it render some JavaScript out when it reloads, ...
If you want to perform a postback using a `LinkButton` but then pop open a new window without reloading the entire page, using an `UpdatePanel` may not be the best approach as you've already identified. Instead, you can use a combination of a server-side method and client-side JavaScript to achieve this behavior more s...
36,408
[ { "from": "human", "value": "I have a LinkButton that has to postback to perform some logic.\nOnce it is finished, instead of loading the page back up in the browser, I want to leave it alone and pop open a new window.\nSo far, the best idea I've had is to put the LinkButton in an UpdatePanel, and have it r...
I'm trying to grab data from a MySQL database. Approach 2 - apply/map style I'm using the MySQL ADO Reference to try to build this system. In particular, the example found at 21.2.3.1.7. (using a pseudo code) let table = build_sequence(query.read) Where query.read returns a row in the table(Or rather, a list of elemen...
It looks like you are trying to read data from a MySQL database using a functional programming approach in F#, while avoiding mutable state as much as possible. The use of a mutable `rowIter` and looping constructs is indeed less functional. Instead, you can leverage higher-order functions and recursion to achieve a mo...
39,054
[ { "from": "human", "value": "I'm trying to grab data from a MySQL database.\nApproach 2 - apply/map style\nI'm using the MySQL ADO Reference to try to build this system. In particular, the example found at 21.2.3.1.7.\n(using a pseudo code)\nlet table = build_sequence(query.read)\n\nWhere query.read returns...
Here is the code currently used. public String getStringFromDoc(org.w3c.dom.Document doc) { try { DOMSource domSource = new DOMSource(doc); StringWriter writer = new StringWriter(); StreamResult result = new StreamResult(writer); TransformerFactory tf = Tra...
Your current method `getStringFromDoc` converts a `Document` object into a string representation using Java's XML transformation utilities. The code appears to be generally fine, but there are some improvements you could consider for clarity, performance, or additional functionality, such as handling character encoding...
39,723
[ { "from": "human", "value": "Here is the code currently used.\npublic String getStringFromDoc(org.w3c.dom.Document doc) {\n try\n {\n DOMSource domSource = new DOMSource(doc);\n StringWriter writer = new StringWriter();\n StreamResult result = new StreamResult(...
I am trying to write a grammar in EBNF (barring a really good reason, it has to be EBNF) and am looking for a couple of utilities for it - if there's a GUI interface that can make one, that would be great, but the thing I'm looking for most is something that can check the grammar, for instance to see if it is LALR(n), ...
There are several tools available for working with grammars in EBNF, including some that offer validation and analysis features. Here’s a breakdown of some useful utilities that may meet your requirements: ### 1. **EBNF Editors and Validators:** - **ANTLR**: While primarily a parser generator, ANTLR supports EBNF synt...
38,225
[ { "from": "human", "value": "I am trying to write a grammar in EBNF (barring a really good reason, it has to be EBNF) and am looking for a couple of utilities for it - if there's a GUI interface that can make one, that would be great, but the thing I'm looking for most is something that can check the gramma...
Hello I am compiling a program with make but I get the error of No such file or directory but the file is in a directory of the path. I have this #include "genetic.h", that file is in a directory called /home/myuser/toolbox/lib/genalg and in the PATH I have ...:/home/myuser/toolbox/lib/genalg, so I do not why make cann...
When you get an error like "No such file or directory" while including a file in C/C++ (e.g., with `#include "genetic.h"`), it typically means that the compiler is unable to find the specified file, even if it's in your PATH. Here are a few things you can check to resolve the issue: 1. **Include Directories with Compi...
39,369
[ { "from": "human", "value": "Hello I am compiling a program with make but I get the error of No such file or directory but the file is in a directory of the path.\nI have this #include \"genetic.h\", that file is in a directory called /home/myuser/toolbox/lib/genalg and in the PATH I have ...:/home/myuser/t...
With VS2005, I want to create a DLL and automatically export all symbols without adding __declspec(dllexport) everywhere, and without hand-creating .def files. Is there a way to do this?
Yes, you can automatically export all symbols from a DLL in Visual Studio 2005 without having to annotate every symbol with `__declspec(dllexport)` or manually creating a `.def` file. This can be accomplished by using a pragma directive in your code to define the export of all symbols. Here’s how you can do this: ###...
36,969
[ { "from": "human", "value": "With VS2005, I want to create a DLL and automatically export all symbols without adding __declspec(dllexport) everywhere, and without hand-creating .def files. Is there a way to do this?\n" }, { "from": "gpt", "value": "Yes, you can automatically export all symbols f...
The situation is somewhat like- var someVar = some_other_function(); someObj.addEventListener("click", function(){ some_function(someVar); }, false); The problem is that the value of someVar is not visible inside the listener function of the addEventListener, where it is probably being treated as a new variable.
In JavaScript, the value of `someVar` should be accessible within the event listener function because it is defined in the outer scope. If you are experiencing issues where `someVar` appears to be undefined or inaccessible within the listener function, there are a few potential causes and solutions. Here is a simple b...
37,579
[ { "from": "human", "value": "The situation is somewhat like-\nvar someVar = some_other_function();\nsomeObj.addEventListener(\"click\", function(){\n some_function(someVar);\n}, false);\n\nThe problem is that the value of someVar is not visible inside the listener function of the addEventListener, where ...
I have a program that when it starts, opens a winform (it is the one specified in Application.Run(new ...). From this form I open another form: OtherForm newForm=new OtherForm(); newForm.Show(); How can i communicate from the new winform with the form that opened it? So that I can add some items in it.
To communicate between two WinForms in C#, you can use several approaches. Here, I'll outline a common approach using properties or methods to pass data from the `OtherForm` back to the parent form. Let's assume that your parent form is called `MainForm`, and you want to add items to a list or some collection in `MainF...
37,336
[ { "from": "human", "value": "I have a program that when it starts, opens a winform (it is the one specified in Application.Run(new ...). From this form I open another form:\nOtherForm newForm=new OtherForm();\nnewForm.Show();\n\nHow can i communicate from the new winform with the form that opened it? So tha...
When using a subdomain and trying to view anything related to current_user. user is sent to a new session page, the page shows the session is created and gives the option to logout. I can use no subdomain and it works fine.
It seems like you're encountering an issue with session management when using subdomains in your application. This is a common scenario, especially when dealing with cookies, sessions, and authentication in web applications. Here's a breakdown of potential issues and solutions: ### Potential Issues 1. **Cookie Domain...
37,400
[ { "from": "human", "value": "When using a subdomain and trying to view anything related to current_user. user is sent to a new session page, the page shows the session is created and gives the option to logout. I can use no subdomain and it works fine.\n" }, { "from": "gpt", "value": "It seems l...
I am working on adding in a settings bundle for my application as a cheap way of getting a GUI on my preferences. Is it possible to launch this from a button in my application or will my users always have to access it manually via the built in settings application?
In iOS, the Settings bundle allows you to create a user interface for configuring app-specific preferences. However, Apple does not provide a direct way to launch the settings for your app programmatically from within your app. If you want to guide users to your app's settings, you can open the iOS Settings app direc...
40,240
[ { "from": "human", "value": "I am working on adding in a settings bundle for my application as a cheap way of getting a GUI on my preferences. Is it possible to launch this from a button in my application or will my users always have to access it manually via the built in settings application?\n" }, { ...
I'm preferably looking for a SQL query to accomplish this, but other options might be useful too.
Sure! I can help you with that. However, I'll need a bit more information about what you are trying to accomplish with the SQL query. What specific task or problem are you looking to address? Please provide details about the database structure (like table names, fields, etc.) and the desired outcome. This will help me ...
41,886
[ { "from": "human", "value": "I'm preferably looking for a SQL query to accomplish this, but other options might be useful too.\n" }, { "from": "gpt", "value": "Sure! I can help you with that. However, I'll need a bit more information about what you are trying to accomplish with the SQL query. Wh...
What is the difference between HAVING and WHERE in an SQL SELECT statement? EDIT: I have marked Steven's answer as the correct one as it contained the key bit of information on the link: When GROUP BY is not used, HAVING behaves like a WHERE clause The situation I had seen the WHERE in did not have GROUP BY and is wh...
In SQL, both `WHERE` and `HAVING` are used to filter records, but they are used in different contexts and at different stages of query processing. ### Key Differences: 1. **Stage of Filtering:** - **WHERE**: This clause is applied before any grouping takes place. It filters the records from the database table base...
40,201
[ { "from": "human", "value": "What is the difference between HAVING and WHERE in an SQL SELECT statement?\nEDIT: I have marked Steven's answer as the correct one as it contained the key bit of information on the link:\n\nWhen GROUP BY is not used, HAVING behaves like a WHERE clause\n\nThe situation I had see...
I'm new to cryptography and modular arithmetic. So, I'm sure it's a silly question, but I can't help it. How do I calculate a from      pow(a,q) = 1 (mod p), where p and q are known? I don't get the "1 (mod p)" part, it equals to 1, doesn't it? If so, than what is "mod p" about? Is this the same as      pow(a,-q) ...
Welcome to the fascinating world of cryptography and modular arithmetic! Your question is not silly at all; it's a great question and reflects some fundamental concepts in modular arithmetic. Let's break it down. 1. **Understanding the equation**: The equation \( \text{pow}(a, q) \equiv 1 \ (\text{mod} \ p) \) mea...
36,733
[ { "from": "human", "value": "I'm new to cryptography and modular arithmetic. So, I'm sure it's a silly question, but I can't help it. \nHow do I calculate a from \n     pow(a,q) = 1 (mod p), \nwhere p and q are known? I don't get the \"1 (mod p)\" part, it equals to 1, doesn't it? If so, than what is \"mod ...
If I target the x86 platform for my .NET app, will it run properly on AMD chips? I know that it will work with Intel chips, and that Vista 64 has the ability to run x86 apps in a special mode, but I don't know how much of that is hardware and how much of that is the OS. I've tested it on Vista 64 with an Intel chip an...
Yes, if you target the x86 platform for your .NET application, it will run properly on AMD processors as well as Intel processors. Both AMD and Intel x86 processors adhere to the same architecture standards, which means that software designed for the x86 architecture should run on both types of processors without issue...
39,856
[ { "from": "human", "value": "If I target the x86 platform for my .NET app, will it run properly on AMD chips? I know that it will work with Intel chips, and that Vista 64 has the ability to run x86 apps in a special mode, but I don't know how much of that is hardware and how much of that is the OS. \nI've t...
Can Spirit (part of Boost C++ library) be used to parse out binary data coming from a stream? For example, can it be used to parse data coming from a socket into structures, bytes, and individual bit flags? Thanks!
Yes, the Spirit library, which is part of the Boost C++ Libraries, is primarily designed for parsing text-based input (such as strings or files). However, it can also be adapted for parsing binary data from streams, such as data coming from a socket. ### Key Points for Parsing Binary Data with Spirit: 1. **Custom Par...
34,687
[ { "from": "human", "value": "Can Spirit (part of Boost C++ library) be used to parse out binary data coming from a stream? For example, can it be used to parse data coming from a socket into structures, bytes, and individual bit flags? Thanks!\n" }, { "from": "gpt", "value": "Yes, the Spirit l...
I have a SQL SELECT query which has a LIKE clause containing an underscore, which should specifically look for an underscore, not treat it as a wildcard: SELECT * FROM my_table WHERE name LIKE '_H9%'; I understand that I can change the actual clause to '[_]H9%' for this to work as I expect, but the problem is that th...
In SQL, the underscore character (`_`) is a wildcard that matches exactly one character in a `LIKE` clause. To treat it as a literal character, it needs to be escaped. However, if Hibernate is generating the queries automatically, it may not provide a built-in way to escape underscores without modifying the query itsel...
39,566
[ { "from": "human", "value": "I have a SQL SELECT query which has a LIKE clause containing an underscore, which should specifically look for an underscore, not treat it as a wildcard: \nSELECT * FROM my_table WHERE name LIKE '_H9%';\n\nI understand that I can change the actual clause to '[_]H9%' for this to ...
I am using ActiveState Perl 5.6 on a Windows 2003 Server, and am having some memory leak issues. Are there any good tools (or even bad tools which would give a clue) which I would be able to use to help find them.
Finding memory leaks in older versions of Perl, such as ActiveState Perl 5.6 on Windows 2003, can be a challenge due to the lack of modern debugging tools. However, there are a few approaches and tools you can consider to help identify memory leaks in your Perl application: 1. **Perl's Built-in Profiling**: You can en...
37,910
[ { "from": "human", "value": "I am using ActiveState Perl 5.6 on a Windows 2003 Server, and am having some memory leak issues. Are there any good tools (or even bad tools which would give a clue) which I would be able to use to help find them.\n" }, { "from": "gpt", "value": "Finding memory leak...
I have seen the GUID Collisons discussions but just wanted your thoughts on whether there could be a GUID collision if both clients accessed the same web page that generates the GUID at exactly the same time (- probably down to the micro-second) ?
GUIDs (Globally Unique Identifiers), also known as UUIDs (Universally Unique Identifiers), are designed to be unique across space and time. The likelihood of a GUID collision is exceedingly low, even in scenarios where multiple clients generate a GUID simultaneously. Here's why collisions are unlikely: 1. **Structure...
39,862
[ { "from": "human", "value": "I have seen the GUID Collisons\ndiscussions but just wanted your thoughts on whether there could be a GUID collision if both clients accessed the same web page that generates the GUID at exactly the same time (- probably down to the micro-second) ?\n" }, { "from": "gpt",...
I'm trying to find the definition of a binary search tree and I keep finding different definitions everywhere. Some say that for any given subtree the left child key is less than or equal to the root. Some say that for any given subtree the right child key is greater than or equal to the root. And my old college data ...
A Binary Search Tree (BST) is a data structure that maintains a specific ordering of its elements. The definitions you are encountering revolve around this ordering property, and they can indeed vary slightly in wording. Here's a clear and comprehensive definition of a Binary Search Tree: ### Definition of a Binary Se...
36,795
[ { "from": "human", "value": "I'm trying to find the definition of a binary search tree and I keep finding different definitions everywhere. \nSome say that for any given subtree the left child key is less than or equal to the root.\nSome say that for any given subtree the right child key is greater than or ...
What's the best way to run scheduled tasks in a Rails environment? Script/runner? Rake? I would like to run the task every few minutes.
In a Rails environment, there are several effective ways to run scheduled tasks, especially for tasks that need to execute every few minutes. The most popular approaches include using the `whenever` gem, `Sidekiq`, or using system cron jobs. Here’s a breakdown of each option: ### 1. Whenever Gem The `whenever` gem is ...
38,391
[ { "from": "human", "value": "What's the best way to run scheduled tasks in a Rails environment? Script/runner? Rake? I would like to run the task every few minutes.\n" }, { "from": "gpt", "value": "In a Rails environment, there are several effective ways to run scheduled tasks, especially for ta...
In AES encryption (.net framework), how are the public and private keys used? Are the public and private keys combined to form a full key, and then the algorithm uses the public + private key to encrypt the data? (simplified keys used below for example purposes) e.g. public key = 12345 private key = 67890 so the key us...
In AES (Advanced Encryption Standard) encryption, which is a symmetric key algorithm, the concepts of public and private keys do not apply in the same way they do in asymmetric encryption algorithms like RSA. Here's a breakdown of how AES works: ### Key Concepts of AES 1. **Symmetric Key Encryption**: AES uses the sa...
39,918
[ { "from": "human", "value": "In AES encryption (.net framework), how are the public and private keys used?\nAre the public and private keys combined to form a full key, and then the algorithm uses the public + private key to encrypt the data?\n(simplified keys used below for example purposes)\ne.g.\npublic ...
How do you programatically reorder items on a ToolStrip in C#. Thanks.
In C#, you can programmatically reorder items on a `ToolStrip` by modifying the `Items` collection of the `ToolStrip`. The `Items` collection can be manipulated to change the order of the `ToolStripItem` instances. Here's a simple way to reorder items in a `ToolStrip`. ### Example Code: 1. **Create a new Windows Form...
38,205
[ { "from": "human", "value": "How do you programatically reorder items on a ToolStrip in C#.\nThanks.\n" }, { "from": "gpt", "value": "In C#, you can programmatically reorder items on a `ToolStrip` by modifying the `Items` collection of the `ToolStrip`. The `Items` collection can be manipulated t...
Does ASP.Net 2.0 and Visual Studio 2005 has the possibility of working with MVC or I have to move to VS2008 and asp.net 3.5?
ASP.NET MVC was first released as a framework with ASP.NET 3.5 and is not supported in ASP.NET 2.0. Therefore, to work with ASP.NET MVC, you would need to upgrade to Visual Studio 2008 and ASP.NET 3.5 or later. ASP.NET 2.0 does not provide the infrastructure necessary for the MVC pattern, which was introduced in the M...
40,080
[ { "from": "human", "value": "Does ASP.Net 2.0 and Visual Studio 2005 has the possibility of working with MVC or I have to move to VS2008 and asp.net 3.5?\n" }, { "from": "gpt", "value": "ASP.NET MVC was first released as a framework with ASP.NET 3.5 and is not supported in ASP.NET 2.0. Therefore...
We're creating a metamodel of our report definitions within our central metadata repository. We know how to "harvest" SSRS reports since they are XML. IS there any easy way to do the same for Crystal Reports. We're interested in getting to anything CR understands about the report (similar in concept to the SSRS RDL ...
To create a metamodel of your report definitions for Crystal Reports, you can leverage the capabilities that Crystal Reports provides to export and access its report structure. While Crystal Reports does not use a straightforward XML format like SSRS RDL, there are some options you can explore: ### 1. Crystal Reports ...
39,857
[ { "from": "human", "value": "We're creating a metamodel of our report definitions within our central metadata repository. We know how to \"harvest\" SSRS reports since they are XML. IS there any easy way to do the same for Crystal Reports. We're interested in getting to anything CR understands about the ...
I need to generate buttons initially based on quite a processor and disk intensive search. Each button will represent a selection and trigger a postback. My issue is that the postback does not trigger the command b_Command. I guess because the original buttons have not been re-created. I cannot affort to execute th...
When you're dealing with dynamically created controls in ASP.NET Web Forms, it's essential to re-create those controls on every postback in the same order and with the same settings as they were originally created. This is because ASP.NET lifecycle events process controls differently during postbacks, and dynamically c...
34,984
[ { "from": "human", "value": "I need to generate buttons initially based on quite a processor and disk intensive search. Each button will represent a selection and trigger a postback. My issue is that the postback does not trigger the command b_Command. I guess because the original buttons have not been r...
GWT seems like a really nice technology for Java developers who don't like (or don't know) HTML/JS/CSS to build rich web interfaces. On the server-side Grails also looks really nice, it's often described as "Rails for Java developers". I've read that Grails' "convention over configuration" approach, together with the b...
Integrating GWT (Google Web Toolkit) with Grails can indeed yield a powerful stack for building rich web applications, particularly for Java developers. Both technologies have their own strengths: GWT allows Java developers to create complex client-side UIs while Grails simplifies back-end development with Groovy and a...
36,097
[ { "from": "human", "value": "GWT seems like a really nice technology for Java developers who don't like (or don't know) HTML/JS/CSS to build rich web interfaces. On the server-side Grails also looks really nice, it's often described as \"Rails for Java developers\". I've read that Grails' \"convention over ...
I was trying to create a Tracd Environment using the following command : trac-admin D:\My_Project initenv I get an error saying Import Error : No module named pkg_resources What am I missing? I have installed Genshi and Python 2.5.2 Thanks...
The error message you're encountering, "Import Error: No module named pkg_resources," indicates that the `setuptools` package, which provides the `pkg_resources` module, is not installed on your system. `setuptools` is a package development and distribution library for Python and is required for many Python projects, i...
39,151
[ { "from": "human", "value": "I was trying to create a Tracd Environment using the following command :\ntrac-admin D:\\My_Project initenv\nI get an error saying \nImport Error : No module named pkg_resources\nWhat am I missing? I have installed Genshi and Python 2.5.2\nThanks...\n" }, { "from": "gpt"...
I have an ASP.NET 2.0 application that is working fine in our local environment. When published to a test server, we're getting intermittent errors on the server. Here's the most common: Padding is invalid and cannot be removed. Description: An unhandled exception occurred during the execution of the current web reque...
The errors you are experiencing suggest issues related to cryptography and view state validation in ASP.NET. Let's break down both errors and explore possible solutions. ### 1. **Padding is invalid and cannot be removed.** This error usually indicates an issue with data that was encrypted/decrypted using different key...
36,282
[ { "from": "human", "value": "I have an ASP.NET 2.0 application that is working fine in our local environment. When published to a test server, we're getting intermittent errors on the server.\nHere's the most common:\nPadding is invalid and cannot be removed.\nDescription: An unhandled exception occurred d...
I am making an web based appliaction in java (using jsp). When the appliaction is invoked login page will come, when the user enter the valid credientials, he will be taken to the index page. But the problem is, when the login is success, the index page is coming but it is opening behind the login page. (means login pa...
The issue you are experiencing where the index page opens behind the login page after a successful login can be related to how you are redirecting the user or how the browser handles window focus. Here are some solutions to ensure that the index page appears on top after a successful login: ### Solution 1: Redirect Us...
33,983
[ { "from": "human", "value": "I am making an web based appliaction in java (using jsp). When the appliaction is invoked login page will come, when the user enter the valid credientials, he will be taken to the index page. But the problem is, when the login is success, the index page is coming but it is openi...
are there any additional WPF themes from microsoft except that default ones provided in PersentationFrameWork.Aero, PersentationFrameWork.Luna, PersentationFrameWork.Royale & PersentationFrameWork.Classic i am specially interested in a Office 2007 Blue theme
In addition to the default themes provided in the `PresentationFramework`, Microsoft did not officially provide any additional WPF themes beyond Aero, Luna, Royale, and Classic. However, if you're specifically looking for a theme similar to Office 2007 (which features a blue color scheme), there are a few approaches yo...
38,361
[ { "from": "human", "value": "are there any additional WPF themes from microsoft except that default ones provided in\nPersentationFrameWork.Aero,\nPersentationFrameWork.Luna,\nPersentationFrameWork.Royale &\nPersentationFrameWork.Classic\ni am specially interested in a Office 2007 Blue theme\n" }, { ...
I am starting a normal Java SE project and i am planning to use JPA/Hibernate. I was wondering if anyone could enlighten me as to what is considered the best way to interact with Hibernate in this environment (data access layers)?
When working with JPA and Hibernate in a standard Java SE application, it’s important to set up your data access layer (DAL) correctly to ensure effective interaction with your database. Here are some best practices and patterns to consider when structuring your project: ### 1. **Use a DAO Pattern** The Data Access Ob...
37,276
[ { "from": "human", "value": "I am starting a normal Java SE project and i am planning to use JPA/Hibernate. I was wondering if anyone could enlighten me as to what is considered the best way to interact with Hibernate in this environment (data access layers)?\n" }, { "from": "gpt", "value": "Whe...
This is my action class public Iterator<CgConsultant> getSearchresult() { List<CgConsultant> list =userSearch.getConsultantMatches(searchstring); System.out.println("The size of the resutl list:"+list.size()); Iterator<CgConsultant> iterator = list.iterator(); CgConsultant obj; ...
To display the results of your search on a JSP page, you'll need to make a few adjustments to your action class and your JSP. ### Action Class Adjustments 1. **Return the List Directly**: Instead of returning an `Iterator`, return the list of `CgConsultant` objects. This allows for easier iteration in the JSP. ```ja...
35,771
[ { "from": "human", "value": "This is my action class \npublic Iterator<CgConsultant> getSearchresult() {\n\n List<CgConsultant> list =userSearch.getConsultantMatches(searchstring);\n System.out.println(\"The size of the resutl list:\"+list.size());\n Iterator<CgConsultant> iterator = li...
Is it possible to intercept every request made from a page using javascript? i.e. Clicking on a link, loading an image, ajax request...
Yes, it is possible to intercept most requests made from a webpage using JavaScript, although the method and effectiveness may vary depending on the type of request. Here are some common techniques you can use: 1. **Overriding the Fetch API**: If the webpage uses the Fetch API for making network requests, you can over...
37,454
[ { "from": "human", "value": "Is it possible to intercept every request made from a page using javascript? i.e. Clicking on a link, loading an image, ajax request...\n" }, { "from": "gpt", "value": "Yes, it is possible to intercept most requests made from a webpage using JavaScript, although the ...
Hey everyone, I am trying to run the following program, but am getting a NullPointerException. I am new to the Java swing library so I could be doing something very dumb. Either way here are my two classes I am just playing around for now and all i want to do is draw a damn circle (ill want to draw a gallow, with a han...
The issue you're facing with the `NullPointerException` is related to how and when you're using the `Graphics` object in the `Gallow` class. The `Graphics` object should not be used directly in the constructor. Instead, you should override the `paintComponent` method of the `JPanel` class to perform custom painting. H...
37,608
[ { "from": "human", "value": "Hey everyone, I am trying to run the following program, but am getting a NullPointerException. I am new to the Java swing library so I could be doing something very dumb. Either way here are my two classes I am just playing around for now and all i want to do is draw a damn circ...
I'm programming a class that implements the observable pattern (not the interface) and I'm thinking about whether or not the copy constructor should also copy the listeners. On the one hand the copy constructor should create an instance that is as close as possible to the original instance so that it can be swapped out...
When implementing the observable pattern, especially in the context of a copy constructor, it's essential to weigh the implications of copying listeners. Here are some considerations and best practices to help guide your decision: ### Considerations 1. **Listener Behavior**: - If the listeners are tightly bound t...
38,052
[ { "from": "human", "value": "I'm programming a class that implements the observable pattern (not the interface) and I'm thinking about whether or not the copy constructor should also copy the listeners.\nOn the one hand the copy constructor should create an instance that is as close as possible to the origi...
I have a Delphi 5 executable that calls into a .NET assembly via the free Delphi .NET code, and for the most part, this works great. However, one of the requirements of my application is that our clients be able to use this from a networked share as well as local. On my test machine, I can't get this to work, I just ...
When dealing with an issue where your Delphi 5 application calls a .NET assembly from a network share, the problem may stem from the .NET security model, as well as how Delphi interacts with .NET under these circumstances. Here are some suggestions to help you troubleshoot the issue and possibly get more detailed error...
36,457
[ { "from": "human", "value": "I have a Delphi 5 executable that calls into a .NET assembly via the free Delphi .NET code, and for the most part, this works great. However, one of the requirements of my application is that our clients be able to use this from a networked share as well as local. On my test m...
I know that CSS can be used to control the presentation of (X)HTML in modern browsers. I was under the impression that this was possible for arbitrary XML as well. (Am I mistaken?) A concrete example: given the following XML <log> <entry revision="1"> <author>J Random Hacker</author> <message>Some pithy expl...
You are correct that CSS can be used to style XML documents in modern browsers, but there are some limitations compared to working with HTML. While many modern browsers can display XML with CSS styles, the styling capabilities are not as rich as those available when using HTML. To achieve the result you're looking fo...
33,085
[ { "from": "human", "value": "I know that CSS can be used to control the presentation of (X)HTML in modern browsers. I was under the impression that this was possible for arbitrary XML as well. (Am I mistaken?)\nA concrete example: given the following XML\n<log>\n <entry revision=\"1\">\n <author>J Rand...
I have some char() fields in a DBF table that were left encrypted by a past developer in the project. However, I know the plaintext result of the decryption of several records. How can I determine the function/algorithm/scheme to decrypt the original data? These are some sample fields: For cryptext: b5 01 02 c1 e3 0d ...
To determine the encryption algorithm or scheme used to convert your ciphertext into plaintext, you can start by analyzing the given pairs of ciphertext and plaintext. Below are the steps you can take to reverse-engineer the encryption: ### Step 1: Analyze the Data 1. **Hexadecimal to Binary Conversion**: Convert the...
37,035
[ { "from": "human", "value": "I have some char() fields in a DBF table that were left encrypted by a past developer in the project. \nHowever, I know the plaintext result of the decryption of several records. How can I determine the function/algorithm/scheme to decrypt the original data?\nThese are some samp...
How can I go through each of the properties in my custom object? It is not a collection object, but is there something like this for non-collection objects? For Each entry as String in myObject ' Do stuff here... Next There are string, integer and boolean properties in my object.
In many programming languages, especially those that are object-oriented, you can iterate over the properties of an object using reflection or by explicitly accessing each property. However, the approach depends on the specific language you're using. Here's how you can handle it in a few popular languages: ### In C# ...
36,957
[ { "from": "human", "value": "How can I go through each of the properties in my custom object? It is not a collection object, but is there something like this for non-collection objects?\nFor Each entry as String in myObject\n ' Do stuff here...\nNext\n\nThere are string, integer and boolean properties in...
I am developing some school grading software and decided to use Github to host the project. After building some code on my Ubuntu box I pushed it to Github and then cloned it down to my MacBook Pro. After editing the code on the MBP I pushed it back to Github. The next morning I tried to update my repo on the Ubuntu b...
Using Git and GitHub as a centralized repository for your projects is a common workflow, but issues can arise when you work on multiple machines. Here are some guidelines to help you manage your code across different environments more smoothly: ### 1. **Understand Git Workflow** When you clone a repository, you get a ...
38,307
[ { "from": "human", "value": "I am developing some school grading software and decided to use Github to host the project. After building some code on my Ubuntu box I pushed it to Github and then cloned it down to my MacBook Pro. After editing the code on the MBP I pushed it back to Github. The next morning ...
I'm pretty new at this so take it easy on me. The code I'm trying to get to work is: <jsp:useBean id="EJD" class= "MoverDetailForm" scope="application"/> <jsp:setProperty name="EJD" property="empFDJoiningDate" param="empFDJoiningDate" /> <% String empFDJoiningDate = EJD.getEmpFDJoiningDate(); out.print("please work" +...
It seems like you're trying to set a property on a JavaBean using JSP and then retrieve it. From your code, it looks like you are correctly using the JSP tags for the `useBean` and `setProperty`. However, there are a couple of things to check and ensure to troubleshoot the issue where `empFDJoiningDate` is returning `n...
37,342
[ { "from": "human", "value": "I'm pretty new at this so take it easy on me.\nThe code I'm trying to get to work is:\n<jsp:useBean id=\"EJD\" class= \"MoverDetailForm\" scope=\"application\"/>\n<jsp:setProperty name=\"EJD\" property=\"empFDJoiningDate\" param=\"empFDJoiningDate\" />\n\n<% String empFDJoiningD...
I have two STL containers that I want to merge, removing any elements that appear more than once. For example: typedef std::list<int> container; container c1; container c2; c1.push_back(1); c1.push_back(2); c1.push_back(3); c2.push_back(2); c2.push_back(3); c2.push_back(4); container c3 = unique_merge(c1, c2); // c...
Your approach using `std::set` is a valid way to merge two `std::list` containers while ensuring that the result only contains unique elements. However, since `std::set` maintains elements in a sorted order and automatically handles duplicates, it may not be the most efficient method when you just need to merge and rem...
37,422
[ { "from": "human", "value": "I have two STL containers that I want to merge, removing any elements that appear more than once. For example:\ntypedef std::list<int> container;\ncontainer c1;\ncontainer c2;\n\nc1.push_back(1);\nc1.push_back(2);\nc1.push_back(3);\n\nc2.push_back(2);\nc2.push_back(3);\nc2.push...
I am using iText to generate PDF invoices for a J2EE web application and included on the page is an image read from a URL constructed from the request URL. In the development and test environments this works fine, but in production I get a java.io.IOException: is not a recognized imageformat. If I paste the url into m...
The issue you're experiencing likely stems from the way `com.lowagie.text.Image.getInstance(URL)` handles the URL request and how it manages HTTP redirects. When your code constructs the URL, it likely ends up using the original `http` URL, which, when accessed directly, gets redirected to `https`. However, since `getI...
37,091
[ { "from": "human", "value": "I am using iText to generate PDF invoices for a J2EE web application and included on the page is an image read from a URL constructed from the request URL. In the development and test environments this works fine, but in production I get a java.io.IOException: is not a recogniz...
I'm new to development on the iPhone. Just about every sample project (as well as the default project templates) have one or more delegates and controllers. Can someone give me a breakdown of what the delegates are responsible for vs. what the controllers are supposed to do?
Welcome to iOS development! Understanding the roles of delegates and controllers is essential for building effective iPhone applications. Here’s a breakdown of their responsibilities: ### View Controllers **View Controllers** are responsible for managing the app's user interface. They handle the display of views and ...
36,153
[ { "from": "human", "value": "I'm new to development on the iPhone. Just about every sample project (as well as the default project templates) have one or more delegates and controllers. Can someone give me a breakdown of what the delegates are responsible for vs. what the controllers are supposed to do?\n...
Do all php include files have to be in an include directory, or is that just an organizational convenience? Can I include files from any directory using the path to that directory? Do html files that contain php includes have to have a php extension? If so, I guess that would mean all of my html docs would be php if th...
Your questions about PHP file inclusions and organizational practices are quite common, and I'll address each one below: 1. **Do all PHP include files have to be in an include directory, or is that just an organizational convenience?** - It is not a requirement for PHP include files to be in a specific "include" di...
37,093
[ { "from": "human", "value": "Do all php include files have to be in an include directory, or is that just an organizational convenience?\nCan I include files from any directory using the path to that directory?\nDo html files that contain php includes have to have a php extension?\nIf so, I guess that would...
StackOverflow, you're my only hope! I am unfortunate enough to have inherited an ASP.NET 3.5 application roughly 3/4 in development. This project uses Crystal Reports Basic for VS 2008 to generate a PDF file from a data source. Pretty straightforward. Anyway, this project compiles and runs fine on my development machin...
It sounds like you're running into an issue with the Crystal Reports runtime on your Windows Server 2003 environment. The `ufmanager.dll` error typically occurs when the report engine cannot locate necessary DLL files that support user-defined functions in Crystal Reports. Here are some steps you can take to resolve th...
36,065
[ { "from": "human", "value": "StackOverflow, you're my only hope!\nI am unfortunate enough to have inherited an ASP.NET 3.5 application roughly 3/4 in development. This project uses Crystal Reports Basic for VS 2008 to generate a PDF file from a data source. Pretty straightforward.\nAnyway, this project comp...
I am looking for a way to create or implement a collapsible side panel inside of a form. Similar in the way a ToolStripContainer works I would like the same general concept except using panels that I can fill with controls. Does anyone know of a simple way to do this with the provided .Net controls or is this a total c...
Creating a collapsible side panel in a WinForms application can be accomplished using the provided .NET controls, specifically by utilizing a combination of `Panel` controls and buttons or toggles to manage the collapsed and expanded states. Here’s a simple approach to implementing this functionality. ### Steps to Cre...
33,216
[ { "from": "human", "value": "I am looking for a way to create or implement a collapsible side panel inside of a form. Similar in the way a ToolStripContainer works I would like the same general concept except using panels that I can fill with controls. Does anyone know of a simple way to do this with the pr...