instruction
stringlengths
14
27.6k
completion
stringlengths
3
38.3k
__original_row_idx
int64
0
50k
conversations
listlengths
2
2
My boss is bidding on a project to convert a desktop application into one that runs online as a client-server application. The original app has a little more than a quarter of a million lines of C++ (MFC) code that's not cleanly divided between engine and front-end. I need to come up with estimates of how long it will ...
Converting a large, legacy desktop application to a modern client-server architecture is a significant undertaking that requires careful consideration. Here are some points to help you estimate the scope of the project, the resource needs, and arguments you can use to convince your boss that this project might not be t...
28,317
[ { "from": "human", "value": "My boss is bidding on a project to convert a desktop application into one that runs online as a client-server application. The original app has a little more than a quarter of a million lines of C++ (MFC) code that's not cleanly divided between engine and front-end.\nI need to c...
Is there an alternative to history.go(-1) for FireFox and Safari. Any Help would be greatly appreciated.
Yes, if you are looking for an alternative to `history.go(-1)` for navigating back in history, you can use `window.history.back()` which is widely supported across all major browsers including Firefox and Safari. The `history.back()` method functions similarly to clicking the back button in the browser and will take th...
37,792
[ { "from": "human", "value": "Is there an alternative to history.go(-1) for FireFox and Safari. Any Help would be greatly appreciated. \n" }, { "from": "gpt", "value": "Yes, if you are looking for an alternative to `history.go(-1)` for navigating back in history, you can use `window.history.back(...
I have a table of about a million rows and I need to update every row in the table with the result of a lengthy calculation (the calculation gets a potentially different result for each row). Because it is time consuming, the DBA must be able to control execution. This particular calculation needs to be run once a year...
The error you're encountering, `ORA-27486: insufficient privileges`, suggests that the user under which the stored procedure is executed does not have the necessary privileges to create a job using `DBMS_SCHEDULER`. Here are several suggestions to address the issue while maintaining your requirements: ### 1. Grant the...
33,298
[ { "from": "human", "value": "I have a table of about a million rows and I need to update every row in the table with the result of a lengthy calculation (the calculation gets a potentially different result for each row). Because it is time consuming, the DBA must be able to control execution. This particula...
I have a Windows Service written in Delphi which runs a number of programs. On Stopping the service, I want to also close these programs. When the service was originally written, this worked fine, but I think I've updated the tProcess component and now - The subordinate programs are not being closed. in tProcess - He...
To gracefully close the GUI programs started by your Windows Service using `CreateProcess`, you will need to send a message to those processes to request them to close instead of killing them outright. This is typically done using the `WM_CLOSE` message, which simulates the user clicking the close button on the window....
33,595
[ { "from": "human", "value": "I have a Windows Service written in Delphi which runs a number of programs. \nOn Stopping the service, I want to also close these programs. When the service was originally written, this worked fine, but I think I've updated the tProcess component and now - The subordinate progra...
I'm using the PureMVC framework on a FlexBuilder 3 project. I have already hooked up the ApplicationFacade and have executed simple commands successfully. I have a ModuleLoader in my entry point Application.mxml and I set the url of the ModuleLoader when the user logs in from the ApplicationMdiator. Where do I registe...
In PureMVC, the management of mediators and commands for dynamically loaded modules can indeed be a bit tricky, but it can be done effectively without needing to create a separate facade for each module. Here's a general approach to handle module registration in your scenario: 1. **Load the Module**: When the user lo...
34,370
[ { "from": "human", "value": "I'm using the PureMVC framework on a FlexBuilder 3 project. I have already hooked up the ApplicationFacade and have executed simple commands successfully.\nI have a ModuleLoader in my entry point Application.mxml and I set the url of the ModuleLoader when the user logs in from ...
My log file is: Wed Nov 12 blah blah blah blah cat1 Wed Nov 12 blah blah blah blah Wed Nov 12 blah blah blah blah Wed Nov 12 blah blah blah blah cat2 more blah blah even more blah blah Wed Nov 12 blah blah blah blah cat3 Wed Nov 12 blah blah blah blah cat4 I want to parse out the full multiline entrie...
You can achieve the desired parsing using either `awk` or `sed`. Here are solutions for both: ### Using `awk` You can use `awk` to identify lines containing "cat" and print the full multiline entries. Here's an `awk` command that does this: ```bash awk '/cat/{flag=1} flag; /^$/ {flag=0}' log_file ``` **Explanation:...
36,591
[ { "from": "human", "value": "My log file is:\n Wed Nov 12 blah blah blah blah cat1\n Wed Nov 12 blah blah blah blah\n Wed Nov 12 blah blah blah blah \n Wed Nov 12 blah blah blah blah cat2\n more blah blah\n even more blah blah\n Wed Nov 12 blah blah blah blah cat3\n Wed Nov 12 blah blah blah blah ca...
I need to suppress autoplay for the mass storage devices. This needs to be achieved programatically through a service/deamon running in the background. I know it can be done by an application which opens a window and handles the "queryCancelAutoPlay" message sent by windows. Can this be done without GUI.I have the guid...
To suppress autoplay for mass storage devices in Windows programmatically without a GUI, you can use the Windows Registry and Windows APIs. Here’s a step-by-step outline of how to achieve this: ### Method 1: Using Windows Registry Autoplay settings for devices can be managed using the Windows Registry. Here’s how you...
34,404
[ { "from": "human", "value": "I need to suppress autoplay for the mass storage devices.\nThis needs to be achieved programatically through a service/deamon running in the background.\nI know it can be done by an application which opens a window and handles the \"queryCancelAutoPlay\" message sent by windows....
I am trying to use EWS, first time trying to use the ExchangeServiceBinding. The code I am using is below: _service = new ExchangeServiceBinding(); //_service.Credentials = new NetworkCredential(userName, userPassword, this.Domain); _service.Credentials = System.Net.CredentialCache.DefaultNetworkCredentials; _service.U...
Using EWS (Exchange Web Services) with impersonation can be a bit tricky, especially if it's your first time. It looks like you’re on the right track, but there are a few things to check and consider when using impersonation with EWS. ### Key Points for EWS Impersonation: 1. **Ensure Proper Permissions**: - Make ...
30,329
[ { "from": "human", "value": "I am trying to use EWS, first time trying to use the ExchangeServiceBinding. The code I am using is below:\n_service = new ExchangeServiceBinding();\n//_service.Credentials = new NetworkCredential(userName, userPassword, this.Domain);\n_service.Credentials = System.Net.Credentia...
I need to programmatically enable READ COMMITTED SNAPSHOT in SQL Server. How can I do that?
To enable the `READ COMMITTED SNAPSHOT` isolation level programmatically in SQL Server, you can use T-SQL commands to modify the database settings. Here's how you can do it: 1. **Connect to your SQL Server instance** using your preferred SQL client or management tool. 2. **Execute the following T-SQL command** to ena...
32,916
[ { "from": "human", "value": "I need to programmatically enable READ COMMITTED SNAPSHOT in SQL Server. How can I do that?\n" }, { "from": "gpt", "value": "To enable the `READ COMMITTED SNAPSHOT` isolation level programmatically in SQL Server, you can use T-SQL commands to modify the database sett...
After researching on the topic of claims-Based security (or a federated security model). I've been coming across many examples that use CardSpace as an example. The main article that I read that gave a really great explanation of the subject was a PDF by Microsoft on a framework called Zermatt. The claims-based securi...
Claims-based security, particularly in a federated security model, provides a flexible and scalable way to manage authentication and authorization across different services. As you've pointed out, the concept revolves around using a Security Token Service (STS) to manage claims issued during authentication and authoriz...
28,673
[ { "from": "human", "value": "After researching on the topic of claims-Based security (or a federated security model). I've been coming across many examples that use CardSpace as an example. The main article that I read that gave a really great explanation of the subject was a PDF by Microsoft on a framework...
When debugging in Internet Explorer, I first get an alert box with extremely limited if not useless information (sorry IE) and choose to debug it. After selecting yes, I get another option every time to choose between 'New instance of Microsoft script debugger' and 'New instance of Visual Studio'. I'm fed up with havin...
It sounds like you're dealing with quite a frustrating debugging experience in Internet Explorer! The redundant prompts you're encountering can be quite annoying. Unfortunately, the design of the debugging process in Internet Explorer and the script debugger can be a bit cumbersome. Here are some suggestions that might...
33,924
[ { "from": "human", "value": "When debugging in Internet Explorer, I first get an alert box with extremely limited if not useless information (sorry IE) and choose to debug it. After selecting yes, I get another option every time to choose between 'New instance of Microsoft script debugger' and 'New instance...
Is there anyway to get Eclipse to automatically look for static imports? For example, now that I've finally upgraded to Junit 4, I'd like to be able to write: assertEquals(expectedValue, actualValue); hit Ctrl + Shift + O and have Eclipse add: import static org.junit.Assert.assertEquals; Maybe I'm asking too much.
Eclipse doesn't automatically add static imports when you use static methods in your code. However, you can still make use of the features available in Eclipse to streamline the process. Here are some steps you can take to manage static imports more easily: ### Enable Static Import Suggestions 1. **Preferences for Cod...
36,771
[ { "from": "human", "value": "Is there anyway to get Eclipse to automatically look for static imports? For example, now that I've finally upgraded to Junit 4, I'd like to be able to write:\nassertEquals(expectedValue, actualValue);\n\nhit Ctrl + Shift + O and have Eclipse add:\nimport static org.junit.Assert...
I have a custom installer class that fires OnAfterInstall, how can I read values that were entered by the user in the pervious installation screens? The values are entered in textboxes. Also how can I force the installation to fail in my custom installer class and display an appropriate message to the user regarding t...
In a custom installer class in .NET, you can access the values that users entered in previous installation screens using the `Context.Parameters` collection. This collection allows you to retrieve parameters that were passed to the installer when it was invoked. Here's how you can do that and also how to force the inst...
36,648
[ { "from": "human", "value": "I have a custom installer class that fires OnAfterInstall, how can I read values that were entered by the user in the pervious installation screens? The values are entered in textboxes.\nAlso how can I force the installation to fail in my custom installer class and display an a...
Here's an interface: public interface Foo<T> extends Comparable<Foo<T>> { ... } And there are some classes implementing this interface: public class Bar extends Something implements Foo<Something> { public Vector<Foo<Bar>> giveBar() { ... } } public class Boo extends SomethingElse implements Foo<S...
The issue you're encountering arises from the fact that `Vector<Foo<SomethingElse>>` and `Vector<Foo<Bar>>` are not compatible types, even though `Boo` and `Bar` both implement `Foo`. This is due to Java's type system and the way generics work in Java, which does not support covariance for type parameters. ### Solutio...
32,542
[ { "from": "human", "value": "Here's an interface:\npublic interface Foo<T> extends Comparable<Foo<T>> {\n ...\n}\n\nAnd there are some classes implementing this interface:\npublic class Bar extends Something implements Foo<Something> {\n public Vector<Foo<Bar>> giveBar() {\n ...\n }\n}\n\npu...
I'm setting up a User Control driven by a XML configuration. It is easier to explain by example. Take a look at the following configuration snippet: <node> <text lbl="Text:"/> <checkbox lbl="Check me:" checked="true"/> </node> What I'm trying to achieve to translate that snippet into a single text box and a checkb...
To resolve the challenge of dynamically generating controls based on an XML configuration in ASP.NET using a Repeater, we need to consider a different approach. The problem you're facing stems from attempting to bind data using attributes of the XML node while rendering controls, which isn't feasible directly in the `I...
29,393
[ { "from": "human", "value": "I'm setting up a User Control driven by a XML configuration. It is easier to explain by example. Take a look at the following configuration snippet:\n<node>\n <text lbl=\"Text:\"/>\n <checkbox lbl=\"Check me:\" checked=\"true\"/>\n</node>\n\nWhat I'm trying to achieve to trans...
I'd like to use the DataGridView control as a list with columns. Sort of like ListView in Details mode but I want to keep the DataGridView flexibility. ListView (with Details view and FullRowSelect enabled) highlights the whole line and shows the focus mark around the whole line: DataGridView (with SelectionMode = Ful...
To make a `DataGridView` row selection look more like a `ListView` in Details view with FullRowSelect, you can customize the selection behavior by handling the `CellPainting` event to draw the selected row differently. This way, you can provide a visual cue that matches the `ListView` style. Here’s a straightforward a...
32,935
[ { "from": "human", "value": "I'd like to use the DataGridView control as a list with columns. Sort of like ListView in Details mode but I want to keep the DataGridView flexibility.\nListView (with Details view and FullRowSelect enabled) highlights the whole line and shows the focus mark around the whole lin...
I'm trying to create a POST request, unfortunately the body of the POST never seems to be sent. Below is the code that I'm using. The code is invoked when a user clicks on a link, not a form "submit" button. It runs without error, invokes the servlet that is being called but, as I mentioned earlier, the body of the P...
It looks like you're using a JavaScript Ajax library (possibly Prototype or similar), and there are a couple of issues to check to ensure the request body is sent correctly. ### Suggestions: 1. **Correct Content-Type**: Ensure that the content type you are using is appropriate for sending JSON data. While `text/x-js...
33,070
[ { "from": "human", "value": "I'm trying to create a POST request, unfortunately the body of the POST never seems to be sent.\nBelow is the code that I'm using. The code is invoked when a user clicks on a link, not a form \"submit\" button. It runs without error, invokes the servlet that is being called bu...
How can I strip out extra whitespace from jsp pages' output? Is there a switch I can flip on my web.xml? Is there a Tomcat specific setting?
To strip out extra whitespace from JSP pages' output, there is no specific switch in the `web.xml` file or a Tomcat-specific setting that directly addresses this issue. However, there are several methods you can use to minimize whitespace output from JSPs: ### 1. **Using the JSP Directive `<%@ page trimDirectiveWhites...
33,860
[ { "from": "human", "value": "How can I strip out extra whitespace from jsp pages' output? Is there a switch I can flip on my web.xml? Is there a Tomcat specific setting?\n" }, { "from": "gpt", "value": "To strip out extra whitespace from JSP pages' output, there is no specific switch in the `w...
What will the best way to pass a datatable data to unmanaged environments? (c++) Ofer
Passing data from a managed environment (like C# with a `DataTable`) to an unmanaged environment (like C++ without .NET) can be accomplished in several ways. Here are the most common methods to facilitate this transfer: ### 1. **Using P/Invoke (Platform Invocation Services)** You can use P/Invoke to call unmanaged C+...
32,316
[ { "from": "human", "value": "What will the best way to pass a datatable data to unmanaged environments? (c++)\nOfer\n" }, { "from": "gpt", "value": "Passing data from a managed environment (like C# with a `DataTable`) to an unmanaged environment (like C++ without .NET) can be accomplished in sev...
We've currently got four web servers in a farm generating IIS web logs about 100Mb per day. These can be compressed pretty effieciently down to somewhere around 5% of their size. We are planning to use waRmZip to move them off the servers and onto a SAN. After a week or so we can be confident we don't have any technica...
When it comes to log retention periods, there are several factors to consider, including your specific business needs, industry regulations, and legal requirements. Here are some general guidelines and recommendations: ### Recommended Retention Periods: 1. **Operational Needs**: - For operational troubleshooting ...
31,487
[ { "from": "human", "value": "We've currently got four web servers in a farm generating IIS web logs about 100Mb per day. These can be compressed pretty effieciently down to somewhere around 5% of their size.\nWe are planning to use waRmZip to move them off the servers and onto a SAN. After a week or so we c...
We're using Stored Procedures for every query to the DB. This seems incredibly un-DRY: Design the table Design CRUD operation SPs for that table Design code (preferably a class) to fill parameters and execute CRUD SPs If we add a single column, or change a datatype, we have to edit the table, a handful of SPs, and a...
You're right in observing that using stored procedures for every query can lead to a lot of duplication and maintenance challenges, especially when schema changes occur. Here are some strategies to reduce this duplication and improve the maintainability of your application: ### 1. Dynamic SQL Instead of creating sepa...
31,288
[ { "from": "human", "value": "We're using Stored Procedures for every query to the DB. This seems incredibly un-DRY:\n\nDesign the table\nDesign CRUD operation SPs for that table\nDesign code (preferably a class) to fill parameters and execute CRUD SPs\n\nIf we add a single column, or change a datatype, we ...
I am evaluating VisualSVN for me and a small team of developers. I set it up on the server (VisualSVN server) without problems and installed TortoiseSVN and VisualSVN in order to integrate it in Visual Studio 2008. So far, it works well and we use it for the development of our main application. I've heard good things a...
Switching from VisualSVN to AnkhSVN is certainly possible, and you can keep your VisualSVN Server installation as they are compatible. Here are the answers to your questions: ### 1. Switching from VisualSVN to AnkhSVN - **Compatibility:** AnkhSVN can work with the same Subversion repositories that you created and mana...
34,705
[ { "from": "human", "value": "I am evaluating VisualSVN for me and a small team of developers. I set it up on the server (VisualSVN server) without problems and installed TortoiseSVN and VisualSVN in order to integrate it in Visual Studio 2008. So far, it works well and we use it for the development of our m...
I want to create a class that takes string array as a constructor argument and has command line option values as members vals. Something like below, but I don't understand how the Bistate works. import scalax.data._ import scalax.io.CommandLineParser class TestCLI(arguments: Array[String]) extends CommandLineParser { ...
To create a class that parses command line options using the `scalax.io.CommandLineParser`, you'll want to understand how the options are defined and how to handle them. The `Bistate` class in this context is a utility that helps in dealing with the state of your command line options (whether they are present or not). ...
34,183
[ { "from": "human", "value": "I want to create a class that takes string array as a constructor argument and has command line option values as members vals. Something like below, but I don't understand how the Bistate works.\nimport scalax.data._\nimport scalax.io.CommandLineParser\n\nclass TestCLI(arguments...
I have an asp.net page which sends content of a file to the client, so the browser shows the save as dialog to download the file. This page is displayed in a popup and when the user clicks the save button, it closes automatically and the download starts. On windows server 2003, it works fine. On vista with other browse...
The issue you're experiencing with the file download in Internet Explorer 7 on Vista, particularly when it involves a popup window, could be influenced by several factors, including security settings in IE, the way you handle the response in ASP.NET, or even the way the popup is created. Here are some suggestions to t...
34,233
[ { "from": "human", "value": "I have an asp.net page which sends content of a file to the client, so the browser shows the save as dialog to download the file. This page is displayed in a popup and when the user clicks the save button, it closes automatically and the download starts.\nOn windows server 2003,...
Alright so I'm essentialyl trying to code something that will combine two files together in VB and output a single file that when run, runs both of them. I've grabbed this source from several places online and am just trying to get it to work. We have the main program that combines them with a GUI Const FileSplit = "...
It looks like you are trying to combine multiple executable files into a single file that will run each of the combined executables when executed. Let's debug your code step-by-step and correct any issues. ### Issues to Address: 1. **Reading the Stub Executable**: You are using the `Input` function to read the content...
20,989
[ { "from": "human", "value": "Alright so I'm essentialyl trying to code something that will combine two files together in VB and output a single file that when run, runs both of them. I've grabbed this source from several places online and am just trying to get it to work. We have the main program that com...
Are you aware of any serious performance problems with checking if a file exists before you open it and send it? The context for this is a web application that serves up files dynamically via an ASP page. I was told that there is no check for whether or not the file exists because the database stores this information a...
Your instinct about checking for a file's existence before attempting to open it is indeed valid, and generally a good practice in a web application context, especially when user experience is a priority. ### Performance Concerns 1. **Overhead of Existence Checks**: Checking if a file exists is typically a low-cost ...
35,163
[ { "from": "human", "value": "Are you aware of any serious performance problems with checking if a file exists before you open it and send it? The context for this is a web application that serves up files dynamically via an ASP page. I was told that there is no check for whether or not the file exists becau...
In our setup there are two different websites in IIS 7 setup that point to the same physical path. One with the binding http://websitename.domain.com/ (virtual root ~ is /) and the second at https://webserver.domain.com/userid/websitename (so the virtual root ~ is /userid/websitename). We use the second for secure asp...
In your scenario where you have two websites in IIS 7 pointing to the same physical path but with different bindings, handling the paths for generated resources like `WebResource.axd` can indeed be problematic due to the differing virtual roots. Here's how you can approach solving this issue: ### 1. Use `<location>`...
35,221
[ { "from": "human", "value": "In our setup there are two different websites in IIS 7 setup that point to the same physical path. One with the binding http://websitename.domain.com/ (virtual root ~ is /) \nand the second at https://webserver.domain.com/userid/websitename (so the virtual root ~ is /userid/webs...
In what areas of programming would I use state machines ? Why ? How could I implement one ? EDIT: please provide a practical example , if it's not too much to ask .
State machines are a powerful design pattern used in various areas of programming where the system can be in one of a limited number of states, and the transitions between these states are triggered by events. Here are some areas where you might find state machines particularly useful: ### Areas of Use: 1. **User Inte...
27,159
[ { "from": "human", "value": "In what areas of programming would I use state machines ? Why ? How could I implement one ?\nEDIT: please provide a practical example , if it's not too much to ask .\n" }, { "from": "gpt", "value": "State machines are a powerful design pattern used in various areas o...
I'm having a small problem in Java. I have an interface called Modifiable. Objects implementing this interface are Modifiable. I also have a ModifyCommand class (with the Command pattern) that receive two Modifiable objects (to swap them in a list further on - that's not my question, I designed that solution already). ...
Your instinct to move away from using `clone()` in the way you've set it up is a good one. The `clone()` method in Java can be quite tricky due to its behavior and how it relates to the `Cloneable` interface. Let's clarify a few points and suggest a more straightforward approach. ### The Issues with `clone()` 1. **In...
28,248
[ { "from": "human", "value": "I'm having a small problem in Java. I have an interface called Modifiable. Objects implementing this interface are Modifiable.\nI also have a ModifyCommand class (with the Command pattern) that receive two Modifiable objects (to swap them in a list further on - that's not my que...
I'm trying to configure an ejabberd installation, using LDAP authentication, but I just can't login, even with the admin user. This is part of my ejabberd.cfg file: %... {auth_method, ldap}. {ldap_servers, ["server2000.tek2000.local"]}. {ldap_port,389}. {ldap_uidattr, "uid"}. {ldap_base, "dc=server2000,dc=tek2000,dc=co...
When configuring ejabberd with LDAP authentication, there are several key details to consider to ensure that the setup works correctly. Here are some suggestions based on your provided `ejabberd.cfg` snippet and common issues with LDAP configurations in ejabberd: 1. **Check LDAP Attributes**: Ensure that the `ldap_...
34,203
[ { "from": "human", "value": "I'm trying to configure an ejabberd installation, using LDAP authentication, but I just can't login, even with the admin user.\nThis is part of my ejabberd.cfg file:\n%...\n{auth_method, ldap}.\n{ldap_servers, [\"server2000.tek2000.local\"]}.\n{ldap_port,389}.\n{ldap_uidattr, \"...
I'm trying to get a set of reports running in an (VB) ASP.NET project and as part of that I'd like to display some charts visualising the data. I'm able to get charts generated, and have used Flotr, Plotr, Google Charts, and some CSS techniques at various times as I've experimented with this. Ideally, what I'm trying t...
You don't need to rely on Flash to achieve interactive charts in your ASP.NET project. Modern JavaScript chart libraries offer extensive support for interactivity, including clickable elements like slices in a pie chart or bars in a bar graph, which can easily be integrated into your web application. Here are some sugg...
27,248
[ { "from": "human", "value": "I'm trying to get a set of reports running in an (VB) ASP.NET project and as part of that I'd like to display some charts visualising the data. I'm able to get charts generated, and have used Flotr, Plotr, Google Charts, and some CSS techniques at various times as I've experimen...
I need to use sendmail from Macs in an office. At the moment, I can get it to work on the two development Macs (which I think is due to MAMP being installed and working), but getting it to go on the others seems to be a problem... I assume it's down to some config issue, and hope there's someway to fix it (without reso...
Based on the logs you've shared, the error message `451 cannot relay now to <xx@xx.com>` indicates that the mail server you're trying to send emails through is rejecting the attempt to relay messages from the `claire@claire-g5.local` address. Here are some steps you can take to troubleshoot and potentially resolve this...
34,664
[ { "from": "human", "value": "I need to use sendmail from Macs in an office. At the moment, I can get it to work on the two development Macs (which I think is due to MAMP being installed and working), but getting it to go on the others seems to be a problem...\nI assume it's down to some config issue, and ho...
I'm trying to implement the "Writing Information to UserData" section of this article, but it doesn't work properly when the cookie is part of the URI. My code: // Create the cookie that contains the forms authentication ticket HttpCookie authCookie = FormsAuthentication.GetAuthCookie( userName, createPersistantCookie ...
When you are using cookieless sessions in ASP.NET, the session ID is typically appended to the URL. This means that when you set a cookie that stores user authentication information, it can cause issues because ASP.NET doesn't handle the URL properly when redirecting. To resolve the issue with cookieless sessions and ...
33,647
[ { "from": "human", "value": "I'm trying to implement the \"Writing Information to UserData\" section of this article, but it doesn't work properly when the cookie is part of the URI.\nMy code:\n// Create the cookie that contains the forms authentication ticket\nHttpCookie authCookie = FormsAuthentication.Ge...
I am working on a project where I search through a large text file (large is relative, file size is about 1 Gig) for a piece of data. I am looking for a token and I want a dollar value immediately after that token. For example, this is the token 9,999,999.99 So here's is how I am approaching this problem. After ...
You're definitely on the right track with your approach to reading large files in chunks, especially since you know the token is likely near the end of the file. There are a few enhancements and considerations that might improve your implementation. ### Improvements and Considerations: 1. **Read Larger Chunks**: Inst...
31,337
[ { "from": "human", "value": "I am working on a project where I search through a large text file (large is relative, file size is about 1 Gig) for a piece of data. I am looking for a token and I want a dollar value immediately after that token. For example,\nthis is the token 9,999,999.99\nSo here's is...
If I'm writing unit tests in Python (using the unittest module), is it possible to output data from a failed test, so I can examine it to help deduce what caused the error? I am aware of the ability to create a customized message, which can carry some information, but sometimes you might deal with more complex data, th...
Yes, it is possible to output data from a failed test in Python's `unittest` framework. One common approach to achieve this is by using the `setUp` and `tearDown` methods or by using the `subTest` context manager, which allows you to group tests together and also capture information when a failure occurs. Here's how y...
35,175
[ { "from": "human", "value": "If I'm writing unit tests in Python (using the unittest module), is it possible to output data from a failed test, so I can examine it to help deduce what caused the error?\nI am aware of the ability to create a customized message, which can carry some information, but sometimes...
How do I implement the WS addressing using WCF?
WS-Addressing is a specification that provides a standard way to include addressing information in SOAP messages. In Windows Communication Foundation (WCF), implementing WS-Addressing is relatively straightforward since WCF provides built-in support for it. Here's a step-by-step guide on how to implement WS-Addressing...
28,374
[ { "from": "human", "value": "How do I implement the WS addressing using WCF?\n" }, { "from": "gpt", "value": "WS-Addressing is a specification that provides a standard way to include addressing information in SOAP messages. In Windows Communication Foundation (WCF), implementing WS-Addressing is...
I would like to have my CodeGear Delphi 2007 project to automatically set the debug module attributes depending on whether my project is in debug or release mode. I can manually set this value by right clicking on the project->Version Info->Edit values as needed. These are for the project as a whole and are the same fo...
To automate the setting of the debug module attributes in your CodeGear Delphi 2007 project based on whether you are in debug or release mode, you can utilize the `#define` compiler directive and some conditional compilation to modify the version information dynamically. ### Setting Manifest Attributes Based on Compil...
35,060
[ { "from": "human", "value": "I would like to have my CodeGear Delphi 2007 project to automatically set the debug module attributes depending on whether my project is in debug or release mode.\nI can manually set this value by right clicking on the project->Version Info->Edit values as needed. These are for ...
I'm developing an application using Java, Tomcat, Spring Framework and Spring LDAP 1.2.1 for LDAP access. According to our LDAP administrator, it is not possible to find out programmatically, if a specific user is locked out in the directory - the user is just not returned. This makes life difficult for me, as I need t...
Your LDAP administrator is correct in saying that some LDAP directories do not expose the status of accounts (like locked or unlocked) in a way that can be easily queried. Many LDAP implementations, particularly those adhering to certain standards or those configured with specific security policies, may not reveal deta...
35,123
[ { "from": "human", "value": "I'm developing an application using Java, Tomcat, Spring Framework and Spring LDAP 1.2.1 for LDAP access.\nAccording to our LDAP administrator, it is not possible to find out programmatically, if a specific user is locked out in the directory - the user is just not returned. Thi...
I am trying to create a user interface using XAML. However, the file is quickly becoming very large and difficult to work with. What is the best way for splitting it across several files. I would like to be able to set the content of an element such as a ComboBox to an element that is defined in a different xaml file (...
Splitting a large XAML file into multiple files is a good practice that can help keep your user interface organized and maintainable. In WPF (Windows Presentation Foundation), you can achieve this by using UserControls, ResourceDictionaries, and DataTemplates. Here are a few ways to split your XAML and reference eleme...
32,532
[ { "from": "human", "value": "I am trying to create a user interface using XAML. However, the file is quickly becoming very large and difficult to work with. What is the best way for splitting it across several files.\nI would like to be able to set the content of an element such as a ComboBox to an element ...
I was wondering if its possible to inject a thread into a remote app domain running in a separate process. My guess is that I could do this using the debugging interfaces (ICorDebug) but I was wondering if there is any other way?
Injecting a thread into a remote application domain running in a separate process is a complex and sensitive task that can raise security and stability concerns. You are correct that the ICorDebug interfaces provided by the .NET framework are one way to achieve this, as they are designed to enable debugging and introsp...
30,483
[ { "from": "human", "value": "I was wondering if its possible to inject a thread into a remote app domain running in a separate process. \nMy guess is that I could do this using the debugging interfaces (ICorDebug) but I was wondering if there is any other way? \n" }, { "from": "gpt", "value": "I...
We have an Access DB which has a set of local tables and input forms etc. in which a user maintains their data. We also have a SQL DB with the same tables which is used to displays the data in a web search form. What is the best way to allow the user to udate his changes to the SQL db while keeping the working copy loc...
To achieve a seamless way for users to update their SQL database while maintaining a local Access database for offline work, you can follow a structured approach. Here’s a step-by-step guide: ### Step 1: Set Up Linked Tables - Link the SQL tables in your Access DB as linked tables. This will allow you to interact with...
31,112
[ { "from": "human", "value": "We have an Access DB which has a set of local tables and input forms etc. in which a user maintains their data.\nWe also have a SQL DB with the same tables which is used to displays the data in a web search form.\nWhat is the best way to allow the user to udate his changes to th...
Recently, when porting some STL code to VS2008 I wanted to disable warnings generated by std::copy by defining the new _SCL_SECURE_NO_WARNINGS flag. You can do this in two ways: Using the /D compiler switch, which can be specified in the project properties. You need to ensure it is defined for both Release and Debug ...
Both methods you mentioned for disabling warnings in Visual Studio 2008 using the `_SCL_SECURE_NO_WARNINGS` macro have their own advantages and considerations. Here’s a breakdown of the two approaches: ### 1. Using the `/D` Compiler Switch in Project Properties **Advantages:** - **Centralized Management:** You can ma...
35,083
[ { "from": "human", "value": "Recently, when porting some STL code to VS2008 I wanted to disable warnings generated by std::copy by defining the new _SCL_SECURE_NO_WARNINGS flag. You can do this in two ways:\n\nUsing the /D compiler switch, which can be specified in the project properties. You need to ensur...
When using wireframe fill mode in Direct3D, all rectangular faces display a diagonal running across due to the face being split in to two triangles. How do I eliminate this line? I also want to remove hidden surfaces. Wireframe mode doesn't do this. I need to display a Direct3D model in isometric wireframe view. The re...
To achieve an isometric wireframe view in Direct3D without the diagonal lines that appear from the triangular faces, and to remove hidden surfaces, you can use a combination of techniques: ### Steps to Eliminate Diagonals and Remove Hidden Surfaces 1. **Create a Custom Shader**: Instead of using the built-in wirefram...
34,145
[ { "from": "human", "value": "When using wireframe fill mode in Direct3D, all rectangular faces display a diagonal running across due to the face being split in to two triangles. How do I eliminate this line? I also want to remove hidden surfaces. Wireframe mode doesn't do this.\nI need to display a Direct3D...
I have MainViewController calling WebViewController (From UICatalog sample application) In WebViewController I make some function setValue(){...} to set some value passed as parameter to the variable (NSString *value) from WebViewController.h but when I try from MainViewController something like WebViewController targe...
It seems like you're encountering an issue with calling a method (`setValue`) on an instance of your `WebViewController`. The error message indicates that the compiler doesn't recognize `setValue` as a member of the `WebViewController` class, likely due to how you're trying to access it. Let's troubleshoot this step b...
33,788
[ { "from": "human", "value": "I have MainViewController calling WebViewController (From UICatalog sample application)\nIn WebViewController I make some function setValue(){...} to set some value passed as parameter to the variable (NSString *value) from WebViewController.h but when I try from MainViewControl...
I'm using Apache Subversion to manage and store a decent volume of code. Trying to get at it on a standard work machine using svn+ssh with TortoiseSVN on Windows Vista, I find that I can't actually bring all of it down to my local machine at once - the transfer stops after about 1 MB. I can grab it all in fits and star...
It sounds like you are experiencing a frustrating issue with TortoiseSVN when using `svn+ssh` to communicate with a Subversion repository hosted on a Solaris machine. Here are several approaches you might consider to diagnose and potentially resolve the problem: ### 1. **Check Network Stability** - **Network Issues...
29,516
[ { "from": "human", "value": "I'm using Apache Subversion to manage and store a decent volume of code. Trying to get at it on a standard work machine using svn+ssh with TortoiseSVN on Windows Vista, I find that I can't actually bring all of it down to my local machine at once - the transfer stops after about...
I'd like to create a webpage layout with the sidebar to the right and the main content flowing around the sidebar. Requirements: Content below the sidebar should occupy all of the available width Content below the sidebar should not wrap when it hits the left of the sidebar Main content should precede the sidebar in t...
Creating a webpage layout that meets all of your specified requirements is indeed challenging, especially considering the need for the sidebar to be placed after the main content in the markup, while still allowing the main content to flow around it. However, with careful use of CSS, we can achieve a layout that fulfil...
33,121
[ { "from": "human", "value": "I'd like to create a webpage layout with the sidebar to the right and the main content flowing around the sidebar.\nRequirements:\n\nContent below the sidebar should occupy all of the available width\nContent below the sidebar should not wrap when it hits the left of the sidebar...
I am using SQL Server Reporting Services 2008 (though this seems to be an issue for me in 2005 also). I have a report that has one page per customer (i.e. paged on customerId). The odd thing I'm seeing is that the first report (i.e. first page of the report) has a bit of extra white space at the top than the other pa...
This issue with extra white space on the first page of a SQL Server Reporting Services (SSRS) report is a common challenge. It often arises due to how SSRS handles rendering and paging. Here are some steps you can take to minimize or eliminate the extra white space on the first page: 1. **Check Report Body Size**: ...
34,189
[ { "from": "human", "value": "I am using SQL Server Reporting Services 2008 (though this seems to be an issue for me in 2005 also). I have a report that has one page per customer (i.e. paged on customerId). The odd thing I'm seeing is that the first report (i.e. first page of the report) has a bit of extra...
I work on a medium sized development team that maintains a 8+ years old web application written in Java 1.4. For new development I always try to convince people to adhere to newer standards and best practices, That goes from simple things like using new naming standards like HtmlImplementation over HTMLImplementation, ...
Certainly! It's great that you're advocating for better coding practices and keeping your team informed about newer standards. Here is a collection of online resources, articles, and books that cover various best practices in Java and software development in general: ### Books 1. **Effective Java** by Joshua Bloch ...
35,304
[ { "from": "human", "value": "I work on a medium sized development team that maintains a 8+ years old web application written in Java 1.4.\nFor new development I always try to convince people to adhere to newer standards and best practices, That goes from simple things like using new naming standards like Ht...
I have an application that needs to "poll" a webservice to see if the user has any new messages waiting. I have no control over the webservice so I cannot switch to a "push" mechanism, I'm stuck making a request every X number of seconds to see what's available. I am using a System.Threading.Timer to make the request ...
To implement a polling mechanism for your web service in a mobile application while managing battery consumption and ensuring that the timer continues to function in standby mode, you can follow these strategies: ### 1. Use Background Services Depending on the platform (Android, iOS), you can utilize background servic...
35,339
[ { "from": "human", "value": "I have an application that needs to \"poll\" a webservice to see if the user has any new messages waiting. I have no control over the webservice so I cannot switch to a \"push\" mechanism, I'm stuck making a request every X number of seconds to see what's available.\nI am using...
I'm porting an application from Crystal Reports 8 to Crystal Reports XI in Delphi 5, using the RDC/ActiveX interface. In Crystal Reports 8, I was able to bring up the crystal reports default report viewer window for a report like so: RptInvoicing.Destination := 0; // To: window RptInvoicing.Action := 1; // Execute How...
In Crystal Reports XI, the default report viewer as it existed in earlier versions like Crystal Reports 8 has been replaced with a new viewer model that is more integrated with the Windows Forms and .NET framework. However, it is still possible to utilize a viewer that closely resembles the original functionality. ###...
31,156
[ { "from": "human", "value": "I'm porting an application from Crystal Reports 8 to Crystal Reports XI in Delphi 5, using the RDC/ActiveX interface.\nIn Crystal Reports 8, I was able to bring up the crystal reports default report viewer window for a report like so:\nRptInvoicing.Destination := 0; // To: windo...
So we are sure that we will be taking our product internationally and will eventually need to internationalize it. How much internationalizing would you recommend we do as we go along? I guess in other words, is there any internationalization that is easy now but can be much worse if we let the code base mature and tha...
Internationalization (i18n) is a critical aspect of product development that can significantly impact the user experience and expansion efforts. Here are some recommendations on how to approach internationalizing your application as you develop it, especially given that you're using C#, WPF, and WinForms: ### 1. **Sta...
30,856
[ { "from": "human", "value": "So we are sure that we will be taking our product internationally and will eventually need to internationalize it. How much internationalizing would you recommend we do as we go along?\nI guess in other words, is there any internationalization that is easy now but can be much wo...
I have a class like this: public class Stretcher : Panel { public static readonly DependencyProperty StretchAmountProp = DependencyProperty.RegisterAttached("StretchAmount", typeof(double), typeof(Stretcher), null); public static void SetStretchAmount(DependencyObject obj, double amount) { Framewo...
In WPF, the attached properties are typically registered as either regular properties or dependency properties that can be used with the attached property syntax. However, the way you have implemented the `SetStretchAmount` method does not align with how attached properties work, particularly when it comes to setting v...
32,989
[ { "from": "human", "value": "I have a class like this:\npublic class Stretcher : Panel {\n\n public static readonly DependencyProperty StretchAmountProp = DependencyProperty.RegisterAttached(\"StretchAmount\", typeof(double), typeof(Stretcher), null);\n\n public static void SetStretchAmount(Dependency...
Multimap essentially has groups of data sorted by the key. I want a method by which I could access these individual groups and get their aggregate values. For example, in a std::multimap< string, int > I store {"Group1", 1}, {"Group1", 2}, {"Group1", 3}, {"Group2", 10}, {"Group2", 11}, {"Group2", 12} Having sto...
You are correct that the C++ Standard Library (STL) does not provide a direct method for aggregating values in a `std::multimap`. However, your approach using `lower_bound` and `upper_bound` is a standard way to aggregate values associated with a specific key. Here’s an example implementation using `std::multimap` tha...
31,739
[ { "from": "human", "value": "Multimap essentially has groups of data sorted by the key. I want a method by which I could access these individual groups and get their aggregate values.\nFor example, in a std::multimap< string, int > I store \n{\"Group1\", 1}, \n{\"Group1\", 2}, \n{\"Group1\", 3}, \n\n{\"Grou...
We've got a fairly complex httphandler for handling images. Basically it streams any part of the image at any size that is requested. Some clients use this handler without any problems. But we've got one location that gives us problems, and now it also gives problems on my development environment. What happens is that ...
The behavior you are experiencing with your HTTP handler can indeed be tricky, especially when dealing with streaming binary data like images. Here are some areas to investigate and potential solutions for the issues you're encountering: ### 1. **Response Buffering** You're setting `context.Response.BufferOutput = tru...
32,924
[ { "from": "human", "value": "We've got a fairly complex httphandler for handling images. Basically it streams any part of the image at any size that is requested. Some clients use this handler without any problems. But we've got one location that gives us problems, and now it also gives problems on my devel...
What is the best way to replicate the update stream to a large (6TB) oracle db into another non-DBMS system? I don't need to "bulk load" the oracle db, but merely want to flow all updates into another home-grown system in near realtime (10s latency or less). Updates happen at the rate of 150 rows/second representing ...
Replicating updates from a large Oracle database to a non-DBMS application in near real-time can be accomplished using several approaches. Given your specific requirements, here are a few methods you can consider: ### 1. Change Data Capture (CDC) Oracle provides Change Data Capture functionality that can capture chan...
34,477
[ { "from": "human", "value": "What is the best way to replicate the update stream to a large (6TB) oracle db into another non-DBMS system? I don't need to \"bulk load\" the oracle db, but merely want to flow all updates into another home-grown system in near realtime (10s latency or less). Updates happen a...
Im building a windows app in c# and I have the following design question : I have the following object structure : Parent -> Child Collection - > Child - > Grandchild collection -> Grandchild. The use case requires that I use my Parent object in stages. Eg. Make a new instance of parent. Populate parent and save. At a ...
Your object model with the hierarchical structure of `Parent -> Child Collection -> Child -> Grandchild Collection -> Grandchild` seems to be a common pattern for representing a hierarchical relationship in object-oriented design. However, the way you intend to manage the population and saving of these objects across s...
33,330
[ { "from": "human", "value": "Im building a windows app in c# and I have the following design question :\nI have the following object structure : Parent -> Child Collection - > Child - > Grandchild collection -> Grandchild.\nThe use case requires that I use my Parent object in stages. Eg. Make a new instance...
Let's say I wanted to make a python script interface with a site like Twitter. What would I use to do that? I'm used to using curl/wget from bash, but Python seems to be much nicer to use. What's the equivalent? (This isn't Python run from a webserver, but run locally via the command line)
To create a Python script that interfaces with a site like Twitter, you can use the `requests` library, which is a popular and user-friendly way to make HTTP requests in Python. Here's how you can get started: 1. **Install the requests library**: If you haven't already, you'll need to install the `requests` library. Y...
34,739
[ { "from": "human", "value": "Let's say I wanted to make a python script interface with a site like Twitter.\nWhat would I use to do that? I'm used to using curl/wget from bash, but Python seems to be much nicer to use. What's the equivalent?\n(This isn't Python run from a webserver, but run locally via the ...
I'm trying to detect when the onresize event ends in a browser. If I use the onresize event, in Firefox it seems to be fired only once, after the resize event ends, which is exactly what I want. But if I try in IE, the onresize event gets fired many times during the resize. I also try the onresizeend event, advertised ...
The `onresize` event is indeed fired multiple times while the window is being resized, especially in browsers like Internet Explorer. The `onresizeend` event, as you noted, is not a standard event and is not supported in most browsers. To detect when the resize event has finished, you can use a combination of the `onr...
29,552
[ { "from": "human", "value": "I'm trying to detect when the onresize event ends in a browser. If I use the onresize event, in Firefox it seems to be fired only once, after the resize event ends, which is exactly what I want. But if I try in IE, the onresize event gets fired many times during the resize.\nI a...
We have a project that contains a WCF Service and a few clients that connect to it. Some of them are PCs using NetTcp to connect to the service. Few others run on Windows Mobile Devices(Compact Framework), using BasicHttp to connect. We can't use Windows Authentication, because different PCs use different Windows accou...
Securing a WCF service that communicates with different clients (PCs and Windows Mobile devices) can be approached using a combination of authentication and authorization strategies. Since you're unable to use Windows Authentication due to varying Windows accounts, here are some alternatives you can consider to secure ...
31,535
[ { "from": "human", "value": "We have a project that contains a WCF Service and a few clients that connect to it. Some of them are PCs using NetTcp to connect to the service. Few others run on Windows Mobile Devices(Compact Framework), using BasicHttp to connect.\nWe can't use Windows Authentication, because...
I'm writing a custom blog engine and would like to have trackbacks similar to Wordpress. I could look at the Wordpress source, but I'd really prefer a tutorial of some sort and so far I haven't been able to find one. Are there any good tutorials for implementing trackbacks or pingbacks in PHP5?
Implementing trackbacks or pingbacks can be a great addition to your custom blog engine. While there may not be a single comprehensive tutorial specifically for PHP5 trackbacks, I can provide a concise guide to help you get started. Below, you'll find a basic overview of what trackbacks and pingbacks are, as well as th...
32,498
[ { "from": "human", "value": "I'm writing a custom blog engine and would like to have trackbacks similar to Wordpress. I could look at the Wordpress source, but I'd really prefer a tutorial of some sort and so far I haven't been able to find one. Are there any good tutorials for implementing trackbacks or pi...
Hypothetically, you have two products, one written in Java, the other in C#. You like the Java based backend (non-user visible portion), but would like to use the C# (WPF) frontend. What is the best way to go about interfacing them? Note that the backend must be able to run on either a server or on the local machine a...
To interface a Java backend with a C# (WPF) frontend, while ensuring that the backend can run locally or on a server and that the frontend can connect to either, you have several viable options. Below are a few approaches you might consider: ### 1. Web Services (REST or SOAP) Using web services is a common and effecti...
34,608
[ { "from": "human", "value": "Hypothetically, you have two products, one written in Java, the other in C#. You like the Java based backend (non-user visible portion), but would like to use the C# (WPF) frontend. What is the best way to go about interfacing them? \nNote that the backend must be able to run on...
I am using Borland Turbo C++ with some inlined assembler code, so presumably Turbo Assembler (TASM) style assembly code. I wish to do the following: void foo::bar( void ) { __asm { mov eax, SomeLabel // ... } // ... SomeLabel: // ... } So the address of SomeLabel is placed into EAX. Thi...
To achieve your goal of obtaining the address of a label as a constant during compilation in Borland Turbo C++ with inlined assembly, you can use a combination of the `OFFSET` operator and a direct label reference in your assembly code. In Borland's TASM, the `OFFSET` operator can be utilized to retrieve the address of...
36,882
[ { "from": "human", "value": "I am using Borland Turbo C++ with some inlined assembler code, so presumably Turbo Assembler (TASM) style assembly code. I wish to do the following:\nvoid foo::bar( void )\n{\n __asm\n {\n mov eax, SomeLabel\n // ...\n }\n // ...\nSomeLabel:\n // ...\n}\...
So I am getting ready to wrap up another project in VB and C# (written in Visual Studio 2008). Now I want to have the software only run in full version mode if the user enters a valid registration key value (like xxxx-xxxx-xxxx-xxxx). What software are on the guru's list using which I can manage the registration key ge...
Managing software licensing and registration key generation can be an essential aspect of protecting your intellectual property and ensuring that your software is used in accordance with your licensing terms. Below are some options and tools you can consider for implementing a registration key system in your VB and C# ...
32,065
[ { "from": "human", "value": "So I am getting ready to wrap up another project in VB and C# (written in Visual Studio 2008). Now I want to have the software only run in full version mode if the user enters a valid registration key value (like xxxx-xxxx-xxxx-xxxx). What software are on the guru's list using w...
I have a dev and a UAT environments. Dev is in our place, UAT is in client's place. Our DEV machine is a XEON 4 core @2,33GHz, 4Go RAM with Windows server 2003 The UAT physical machine is quite the same but a virtual machine is used (under VMWare). I don't know the exact parameters used for this VM. The problem is th...
It sounds like you’re dealing with a performance issue on your SQL Server instance in the UAT environment, and you've already performed some important checks. Based on your description and the error message you noted, here are some suggestions and things you might want to investigate further: ### 1. **File Growth Sett...
32,197
[ { "from": "human", "value": "I have a dev and a UAT environments. \nDev is in our place, UAT is in client's place.\nOur DEV machine is a XEON 4 core @2,33GHz, 4Go RAM with Windows server 2003\nThe UAT physical machine is quite the same but a virtual machine is used (under VMWare). \nI don't know the exact p...
I'm starting to look into the whole world of RJS and Prototype/jQuery in Rails and am a little bit confused. There seems to be no clear line of where to use one or the other. Say I wanted one of the "Active, Hot, Week" tabs like the ones here on SO. When pressing one of them, I want to remove a CSS class (like "active-...
You're right that combining different technologies and approaches can be a bit confusing when starting out with Rails, RJS, and JavaScript libraries like Prototype or jQuery. In your case, you want to handle both class manipulation and content replacement when a tab is clicked. Here's how you can effectively approach t...
34,329
[ { "from": "human", "value": "I'm starting to look into the whole world of RJS and Prototype/jQuery in Rails and am a little bit confused. There seems to be no clear line of where to use one or the other.\nSay I wanted one of the \"Active, Hot, Week\" tabs like the ones here on SO. When pressing one of them,...
My problem is that all the textbox's my formview are getting cleared when I hit the submit button. I currently have a page with a small section that has an update panel around it. This small section adds an address to my databse. To the left of this form there is a gridview that is tied into the formview. So if i click...
It sounds like you're facing an issue where your FormView is losing its state when the submit button is clicked. This can happen for a variety of reasons in ASP.NET Web Forms, especially when dealing with postbacks. Below are some common causes and solutions that you can explore: ### 1. ViewState Issues Ensure that Vi...
34,250
[ { "from": "human", "value": "My problem is that all the textbox's my formview are getting cleared when I hit the submit button.\nI currently have a page with a small section that has an update panel around it. This small section adds an address to my databse. To the left of this form there is a gridview tha...
I'm getting a totally bizzare error trying to compile a C program using GCC. Here is the batch file I am using: echo Now compiling, assembling, and linking the core: nasm -f aout -o start.o start.asm gcc -Wall -O -fstrength-reduce -fomit-frame-pointer -finline-functions -nostdinc -fno-builtin -I./include -c -o console...
It sounds like you've run into a common issue when working with DJGPP on Windows, particularly with batch files and the command-line length limit that DJGPP has. ### Potential Causes and Solutions 1. **Command Length Limit**: DJGPP has a limit on the length of command lines it can handle. If the length of your com...
32,808
[ { "from": "human", "value": "I'm getting a totally bizzare error trying to compile a C program using GCC. Here is the batch file I am using:\necho Now compiling, assembling, and linking the core:\nnasm -f aout -o start.o start.asm\n\ngcc -Wall -O -fstrength-reduce -fomit-frame-pointer -finline-functions -no...
Inspired by this question, I wanted to try my hand at the latest ponder this challenge, using F# My approach is probably completely off course, but in the course of solving this problem, I'm trying to get a list of all the permutations of the digits 0-9. I'm looking at solving it using a n-ary tree like so: type Node =...
Your current approach to traverse the n-ary tree and extract the paths is close, but it has a couple of issues that can lead to incorrect results. The primary problem is that you're using `List.map` and then summing the results, which leads to a sum of all paths instead of collecting individual paths. To obtain the in...
34,913
[ { "from": "human", "value": "Inspired by this question, I wanted to try my hand at the latest ponder this challenge, using F#\nMy approach is probably completely off course, but in the course of solving this problem, I'm trying to get a list of all the permutations of the digits 0-9.\nI'm looking at solving...
I am currently trying to learn all new features of C#3.0. I have found a very nice collection of sample to practice LINQ but I can't find something similar for Lambda. Do you have a place that I could practice Lambda function? Update LINQpad is great to learn Linq (thx for the one who suggest) and use a little bit Lamb...
Certainly! Lambda expressions in C# are a powerful feature that allow you to create anonymous functions and are commonly used with LINQ, but they can also be used in other contexts, such as delegates and events. Here are some resources and exercises to help you practice lambda expressions specifically: ### Online Reso...
25,186
[ { "from": "human", "value": "I am currently trying to learn all new features of C#3.0. I have found a very nice collection of sample to practice LINQ but I can't find something similar for Lambda.\nDo you have a place that I could practice Lambda function?\nUpdate\nLINQpad is great to learn Linq (thx for th...
There are so many options when it comes to PHP development environments and you have to piece it all together yourself. I'm wondering if someone has come up with what they think is the ideal setup that gets out of your way and lets you develop. Right now I use vim and svn from the command-line. I write scripts to mana...
Setting up a professional PHP development environment can greatly enhance your productivity and collaboration as a developer. Here’s a comprehensive guide outlining an ideal setup, which includes everything from the IDE to deployment strategies. ### 1. **Development Environment** #### IDE/Editor - **Visual Studio Co...
33,171
[ { "from": "human", "value": "There are so many options when it comes to PHP development environments and you have to piece it all together yourself.\nI'm wondering if someone has come up with what they think is the ideal setup that gets out of your way and lets you develop.\nRight now I use vim and svn from...
I want to create a file on the webserver dynamically in PHP. First I create a directory to store the file. THIS WORKS // create the users directory and index page $dirToCreate = "..".$_SESSION['s_USER_URL']; mkdir($dirToCreate, 0777, TRUE); // create the directory for the user Now I want to create a file called index....
It looks like you're trying to create a file using the 'x' mode in the `fopen` function, which is used for creating a new file. However, the 'x' mode fails if the file already exists, and since you're creating the file in a directory with a relative path, it may not be finding the directory correctly. Here’s how you c...
33,233
[ { "from": "human", "value": "I want to create a file on the webserver dynamically in PHP.\nFirst I create a directory to store the file. THIS WORKS\n// create the users directory and index page\n$dirToCreate = \"..\".$_SESSION['s_USER_URL'];\nmkdir($dirToCreate, 0777, TRUE); // create the directory for the ...
So I was hoping that some old school Vim'ers could help me out. These are all separate questions and normally I would put them up each on their own but I'm not sure if that qualifies as question whoring here. Plus I think if you know enough to be asking any of these questions they will all be coming up in the near fut...
Absolutely, let's tackle your questions one by one! ### 1. Building `ctags` for Library and Applications To build a `ctags` file for your library and applications that allows you to navigate between them seamlessly in Vim, you can follow these steps: 1. **Generate `tags` files separately** for both your library and ...
33,529
[ { "from": "human", "value": "So I was hoping that some old school Vim'ers could help me out. These are all separate questions and normally I would put them up each on their own but I'm not sure if that qualifies as question whoring here. \nPlus I think if you know enough to be asking any of these questions ...
I am trying to bind a hashtable to a detailsview in my ASP.NET web app. When I do this, the detailsview does not appear on the webpage when I do a debug. I have checked ALL the properties for the control and ensured that the visible and autogeneratecolumns (there is no autogeneraterows property) is set to true, and it ...
To bind a `DetailsView` to a `Hashtable` in an ASP.NET Web Application, you'll need to make sure you're creating a proper data structure that the `DetailsView` can understand. The `DetailsView` control is typically used to display data in a tabular format with key-value pairs, but it doesn't work directly with a `Hasht...
32,152
[ { "from": "human", "value": "I am trying to bind a hashtable to a detailsview in my ASP.NET web app. When I do this, the detailsview does not appear on the webpage when I do a debug. I have checked ALL the properties for the control and ensured that the visible and autogeneratecolumns (there is no autogener...
I would like to to try Emacs, and want to give it the best chance possible. To do this, it seems like having a good .emacs file is important. I primarily use Mac OS X (so I have looked at Aquamacs), and I mainly do Python programming, so anything specifically for that would be great.
Certainly! Emacs is a powerful and flexible text editor, and customizing your `.emacs` (or `init.el` in newer versions) file can significantly enhance your experience, especially for Python development. Below is a basic configuration tailored for Python development on macOS, which should get you started. ### Basic Ema...
32,388
[ { "from": "human", "value": "I would like to to try Emacs, and want to give it the best chance possible.\nTo do this, it seems like having a good .emacs file is important.\nI primarily use Mac OS X (so I have looked at Aquamacs), and I mainly do Python programming, so anything specifically for that would be...
I really like the Flex framework, however I routinely deal with SWF files that are ~ 500KB. I don't know at what point a file considered to be "too big" to be served on the internet, but I would assume that a 500KB download just to use a web application would certainly annoy some users. Are there any tips or technique...
Reducing the size of compiled SWF files in the Flex framework is essential for improving load times and enhancing user experience. Here are some tips and techniques you can use to reduce the size of your SWF files: 1. **Code Optimization**: - **Remove Unused Code**: Make sure to remove any unused classes, functions...
31,971
[ { "from": "human", "value": "I really like the Flex framework, however I routinely deal with SWF files that are ~ 500KB. \nI don't know at what point a file considered to be \"too big\" to be served on the internet, but I would assume that a 500KB download just to use a web application would certainly annoy...
In VBP its possible to define user defined actions by creating a custom COM component or a custom script. I need to create an user defined action which is iterative, which means it has to call child steps in an iterative manner like the "process files" built in action does. I can't figure out how to do this and Google ...
Creating a user-defined action in a Visual Build Pro (VBP) project that behaves iteratively, like the "Process Files" built-in action, typically involves using a custom COM component or a custom script. Below, I'll outline the general steps to achieve this. In this case, I'll assume that you are using a scripting langu...
28,920
[ { "from": "human", "value": "In VBP its possible to define user defined actions by creating a custom COM component or a custom script.\nI need to create an user defined action which is iterative, which means it has to call child steps in an iterative manner like the \"process files\" built in action does.\n...
This is one of those ajax "alternate flow" questions. Normally I expect my ajax request to return a part of the page. But sometimes it may return a full page with html, head and body tag. At the time I return from my ajax-request I can detect if this is a full page, but is it possible to trigger a full page reload (wi...
Yes, it is possible to trigger a full page reload based on the response content of your AJAX request. If you detect that the response contains a full HTML document (including the `<html>`, `<head>`, and `<body>` tags), you can redirect the browser to a new URL that serves this document. Here's a general approach to ac...
28,620
[ { "from": "human", "value": "This is one of those ajax \"alternate flow\" questions. Normally I expect my ajax request to return a part of the page. But sometimes it may return a full page with html, head and body tag. \nAt the time I return from my ajax-request I can detect if this is a full page, but is i...
What is the best way to display and print XPS files in a Windows Forms application?
Displaying and printing XPS (XML Paper Specification) files in a Windows Forms application can be accomplished using the built-in capabilities of .NET Framework, specifically through the `System.Windows.Xps` and `System.Windows.Xps.Packaging` namespaces, which provide classes for handling XPS documents. Below is a step...
27,823
[ { "from": "human", "value": "What is the best way to display and print XPS files in a Windows Forms application?\n" }, { "from": "gpt", "value": "Displaying and printing XPS (XML Paper Specification) files in a Windows Forms application can be accomplished using the built-in capabilities of .NET...
Our company uses an app that was originally ColdFusion + Access later converted to classic ASP + MS Sql for task/time tracking called the request system. It's broken down by department, so there's one for MIS, marketing, logistics, etc. The problem comes in when (mainly managers) are using more than one at a time, with...
Dealing with session variable conflicts across multiple instances of an application (such as opening multiple request systems in different browser windows) can indeed be quite challenging, especially in a classic ASP environment where session management is quite simplistic. Here are a few strategies and hacks that mig...
34,334
[ { "from": "human", "value": "Our company uses an app that was originally ColdFusion + Access later converted to classic ASP + MS Sql for task/time tracking called the request system. It's broken down by department, so there's one for MIS, marketing, logistics, etc. The problem comes in when (mainly managers...
I have a legacy DLL written in C that contains a function that returns a string, and I need to access this function from Delphi. The only info I have about the DLL is the VB declare for accessing the function: Public Declare Function DecryptStr Lib "strlib" (Str As String) As String I've tried the following without su...
When working with DLLs in Delphi, especially when dealing with strings, it’s important to understand how strings are managed between different programming languages. The function you’re trying to call from your C DLL likely modifies the string passed to it or expects a specific calling convention. Based on the informa...
34,753
[ { "from": "human", "value": "I have a legacy DLL written in C that contains a function that returns a string, and I need to access this function from Delphi. The only info I have about the DLL is the VB declare for accessing the function:\nPublic Declare Function DecryptStr Lib \"strlib\" (Str As String) As...
I am currently working on automating/improving the release process for packaging my shop's entire product. Currently the product is a combination of: Java server-side codebase XML configuration and application files Shell and batch scripts for administrators Statically served HTML pages and some other stuff, but th...
Automating and improving the release process for a diverse product like yours can be a significant challenge, especially given the variety of technologies and file types involved. However, there are several best practices and strategies you can employ to create a more maintainable and robust release process. Here are s...
34,147
[ { "from": "human", "value": "I am currently working on automating/improving the release process for packaging my shop's entire product. Currently the product is a combination of: \n\nJava server-side codebase \nXML configuration and application files\nShell and batch scripts for administrators\nStatically s...
I need a WiX 3 script to display to display only 2 dialogs: Welcome & Completed. Thats it no need for EULA, folder selection etc. All help appreciated.
Certainly! Below is a simple WiX 3 script that creates a basic installer with only two dialogs: Welcome and Completed. This setup skips dialogs for EULA, folder selection, and any others. You can create a `.wxs` file (e.g., `MyInstaller.wxs`) with the following content: ```xml <?xml version="1.0" encoding="UTF-8"?> <...
29,038
[ { "from": "human", "value": "I need a WiX 3 script to display to display only 2 dialogs: Welcome & Completed. Thats it no need for EULA, folder selection etc. All help appreciated.\n" }, { "from": "gpt", "value": "Certainly! Below is a simple WiX 3 script that creates a basic installer with only...
I've developed a "Proof of Concept" application that logs unhandled exceptions from an application to a bug-tracking system (in this case Team Foundation Server, but it could be ANY bug tracking system). A limitation of this idea is that I don't want duplicate Bug Items opened every time the same exception is thrown (...
Handling duplicate bug reports for the same unhandled exception is a common challenge in software development, and there are various strategies to efficiently manage this without overwhelming your bug tracking system. Here are several approaches you could consider: ### 1. **Hashing and Fingerprinting** Instead of stor...
33,017
[ { "from": "human", "value": "I've developed a \"Proof of Concept\" application that logs unhandled exceptions from an application to a bug-tracking system (in this case Team Foundation Server, but it could be ANY bug tracking system). A limitation of this idea is that I don't want duplicate Bug Items opene...
I'm not talking about algorithmic stuff (eg use quicksort instead of bubblesort), and I'm not talking about simple things like loop unrolling. I'm talking about the hardcore stuff. Like Tiny Teensy ELF, The Story of Mel; practically everything in the demoscene, and so on.
It sounds like you're interested in the advanced techniques and creativity often employed in the demoscene and similar areas, where programmers push the boundaries of what's possible in terms of performance, size, and visual/audio effects. Here are some hardcore optimization strategies and creative techniques that have...
33,480
[ { "from": "human", "value": "I'm not talking about algorithmic stuff (eg use quicksort instead of bubblesort), and I'm not talking about simple things like loop unrolling.\nI'm talking about the hardcore stuff. Like Tiny Teensy ELF, The Story of Mel; practically everything in the demoscene, and so on.\n" ...
I have a CGI-script which produces a .pdf file from the HTML page. My problem is that when it is launched from the Web Browser, there is no creation of the .pdf document. What I have done so far: chmod settings set to above recommended (777) tested normal output on the file from the script, which works fine when runni...
It appears that your CGI script runs successfully from the command line but fails to produce a PDF file when accessed via a web browser. Here are some potential reasons and solutions for this issue: ### Common Issues and Solutions 1. **Permissions**: - While you've set the script permissions to 777, ensure that th...
33,158
[ { "from": "human", "value": "I have a CGI-script which produces a .pdf file from the HTML page. My problem is that when it is launched from the Web Browser, there is no creation of the .pdf document.\nWhat I have done so far:\n\nchmod settings set to above recommended (777)\ntested normal output on the file...
My question is, how do I version control the production environment in a good way? This is our current environment: (Internal server) Development - Version controlled source code (Customer server) Acceptance test environment (Customer server) Staging environment (Customer server) Production environment When we releas...
Mikael, Version controlling production and staging environments is an essential part of a robust deployment strategy, and it sounds like you're already looking to streamline your process. Here are some best practices and strategies that might help improve your workflow: ### 1. **Use a Release Management Tool** Consid...
31,963
[ { "from": "human", "value": "My question is, how do I version control the production environment in a good way?\nThis is our current environment:\n\n(Internal server) Development - Version controlled source code\n(Customer server) Acceptance test environment\n(Customer server) Staging environment\n(Customer...
I am working with a larger than average sqlite database (for use on both on windows and linux) and am looking to maximize the performance I get out of it. The database is to be installed on commodity hardware along with an sqlite gui. The users I am delivering this to are sql savvy but are unlikely to undertake their o...
To maximize the performance of an SQLite database on both Windows and Linux, especially on commodity hardware, you can take a number of steps to optimize the configuration, schema design, and usage patterns. Here are several recommendations to help you achieve better performance: ### 1. Database Configuration #### PR...
32,738
[ { "from": "human", "value": "I am working with a larger than average sqlite database (for use on both on windows and linux) and am looking to maximize the performance I get out of it. The database is to be installed on commodity hardware along with an sqlite gui. The users I am delivering this to are sql sa...
Is it possible to protect flv files from download? I'd like to protect my files from download but I don't have the money for a streaming server which I think provides some sort of protection. The files are streamed via PHP and are located in an upload folder on my server. I've used PHP to ensure that only subscribers c...
Protecting FLV files (or any video files) from being downloaded is a challenging task. While you can implement certain measures to deter users from downloading the content, it's important to understand that there is no foolproof method to completely prevent downloading. Here are some approaches you can consider to incr...
34,963
[ { "from": "human", "value": "Is it possible to protect flv files from download? I'd like to protect my files from download but I don't have the money for a streaming server which I think provides some sort of protection. The files are streamed via PHP and are located in an upload folder on my server.\nI've ...
I asked a question earlier about which language to use for an AI prototype. The consensus seemed to be that if I want it to be fast, I need to use a language like Java or C++, but that Python / Perl / Ruby would be good for the interface bits. So, this leads me on to another question. How easy is it to link these lang...
Integrating different programming languages in a web application is a common practice, especially when you want to leverage the strengths of each language—like using Python or Ruby for rapid development and C++ or Java for performance-critical components. Here are several ways you can connect a Ruby CGI (or any Ruby-ba...
32,976
[ { "from": "human", "value": "I asked a question earlier about which language to use for an AI prototype. The consensus seemed to be that if I want it to be fast, I need to use a language like Java or C++, but that Python / Perl / Ruby would be good for the interface bits. \nSo, this leads me on to another q...
I've got a WAR file that I need to add two files to. Currently, I'm doing this: File war = new File(DIRECTORY, "server.war"); JarOutputStream zos = new JarOutputStream(new BufferedOutputStream(new FileOutputStream(war))); //Add file 1 File file = new File(DIRECTORY, "file1.jar"); InputStream is = new BufferedInputStre...
The behavior you're encountering is due to the way you're opening the `JarOutputStream`. When you create a `JarOutputStream` with a `FileOutputStream`, it will truncate the file if it already exists. That is why the existing contents of the WAR file are being clobbered. To append files to an existing WAR file, you nee...
31,302
[ { "from": "human", "value": "I've got a WAR file that I need to add two files to. Currently, I'm doing this:\nFile war = new File(DIRECTORY, \"server.war\");\nJarOutputStream zos = new JarOutputStream(new BufferedOutputStream(new FileOutputStream(war)));\n\n//Add file 1\nFile file = new File(DIRECTORY, \"fi...
I'm working with SChannel at the moment for an async (IOCP) based server and I've got most things working fine but I'm having a problem with renegotiation. Specifically, when peer A sends peer B a request to renegotiate and peer B responds with an TLS1 NO RENEGOTIATION alert how does peer A continue? I seem to have an ...
When dealing with TLS renegotiation and the `SEC_I_NO_RENEGOTIATION` response in SChannel, it’s important to understand a few key points regarding the behavior of the protocol and how SChannel handles it. 1. **Renegotiation and the Alert**: In TLS, when one peer requests a renegotiation, the other peer has the option ...
22,049
[ { "from": "human", "value": "I'm working with SChannel at the moment for an async (IOCP) based server and I've got most things working fine but I'm having a problem with renegotiation. Specifically, when peer A sends peer B a request to renegotiate and peer B responds with an TLS1 NO RENEGOTIATION alert how...
I have the following configuration, but I have not able to find any documentation on how to set a maximum backup files on date rolling style. I know that you can do this with size rolling style by using the maxSizeRollBackups. <appender name="AppLogFileAppender" type="log4net.Appender.RollingFileAppender"> <file v...
In log4net, when you are using the `RollingFileAppender` with a rolling style set to `Date`, you can't directly set a maximum number of backup files in the same way you can with size-based rolling (using the `maxSizeRollBackups` parameter). However, you can achieve similar behavior through the `maxSizeRollBackups` sett...
9,031
[ { "from": "human", "value": "I have the following configuration, but I have not able to find any documentation on how to set a maximum backup files on date rolling style. I know that you can do this with size rolling style by using the maxSizeRollBackups.\n<appender name=\"AppLogFileAppender\" type=\"log4n...
In a piece of C# that I am writing at the moment I need to handle several methods with the same signature in the same way. Also there might be more of these methods in the future. Instead of repeating the same kind of logic over and over I thought up the following: private delegate bool cleanStep(BuildData bd, out Stri...
Your approach using delegates and a list to manage and execute methods with the same signature is a valid one. However, if you're looking for a cleaner or more maintainable way to handle this scenario, you might consider a few different patterns. Here are some alternatives that can help improve the readability and main...
29,701
[ { "from": "human", "value": "In a piece of C# that I am writing at the moment I need to handle several methods with the same signature in the same way. Also there might be more of these methods in the future. Instead of repeating the same kind of logic over and over I thought up the following:\nprivate dele...
Google hosts some popular JavaScript libraries at: http://code.google.com/apis/ajaxlibs/ According to google: The most powerful way to load the libraries is by using google.load() ... What are the real advantages of using google.load("jquery", "1.2.6") vs. <script type="text/javascript" src="http://ajax.googleapis.c...
The `google.load()` method and directly including a script via the `<script>` tag serve the same fundamental purpose of loading JavaScript libraries, but they have different advantages and use cases. Here's a comparison of the two approaches: ### Using `google.load()` 1. **Dynamic Loading**: `google.load()` allows fo...
33,998
[ { "from": "human", "value": "Google hosts some popular JavaScript libraries at:\nhttp://code.google.com/apis/ajaxlibs/\nAccording to google:\n\nThe most powerful way to load the libraries is by using google.load() ...\n\nWhat are the real advantages of using \ngoogle.load(\"jquery\", \"1.2.6\")\nvs.\n<scrip...
By Logic Programming I mean the a sub-paradigm of declarative programming languages. Don't confuse this question with "What problems can you solve with if-then-else?" A language like Prolog is very fascinating, and it's worth learning for the sake of learning, but I have to wonder what class of real-world problems is ...
Logic programming, particularly exemplified by languages like Prolog, is a unique paradigm that focuses on formal logic to represent knowledge and solve problems. It is distinct from imperative and functional programming paradigms and offers specific advantages for certain types of problems. Here’s a breakdown of the r...
31,741
[ { "from": "human", "value": "By Logic Programming I mean the a sub-paradigm of declarative programming languages. Don't confuse this question with \"What problems can you solve with if-then-else?\"\nA language like Prolog is very fascinating, and it's worth learning for the sake of learning, but I have to ...
I was recently diagnosed with a cascading dissociative disorder that causes retrograde amnesia in addition to an existing case of possible anterograde amnesia. Many people have tried to remind me of how great a programmer I was before -- Right now I get the concepts and the idioms, but I want to teach myself whether I ...
It's great to hear that you're finding joy in learning Clojure and that you have clear goals for your programming journey. Clojure is indeed a powerful functional programming language, particularly for building concurrent applications and working with immutable data structures. However, like any technology, it has its ...
35,490
[ { "from": "human", "value": "I was recently diagnosed with a cascading dissociative disorder that causes retrograde amnesia in addition to an existing case of possible anterograde amnesia. Many people have tried to remind me of how great a programmer I was before -- Right now I get the concepts and the idio...
We have a pretty mature COM dll, which we test using DUnit. One of our recent tests creates a few threads, and tests the object from those threads. This test works fine when running the test using the gui front-end, but hangs when running as a console application. Here's a quick pseudo view of what we have in the test ...
It sounds like you're encountering a threading issue that arises only when you run your DUnit tests as a console application. This could be related to the message loop or how the threading model of your application differs between the GUI and console environments. ### Possible Reasons for the Issue: 1. **Message Loop...
35,508
[ { "from": "human", "value": "We have a pretty mature COM dll, which we test using DUnit. One of our recent tests creates a few threads, and tests the object from those threads. This test works fine when running the test using the gui front-end, but hangs when running as a console application. Here's a quick...
I am monitoring a folder with a .net filewatcher for certain kind of files(*.mbxml). I am using the created event of filewatcher for it. Once the created event fires I have to move this file to another folder. The problem with this approach is that the created event is fired as soon as the file copying starts. So if th...
You're right that the `FileSystemWatcher.Created` event fires as soon as the file is created, which might occur before the copying process is complete. Unfortunately, the `FileSystemWatcher` itself doesn't have a built-in mechanism to differentiate between a file that is in the process of being written to and one that ...
29,859
[ { "from": "human", "value": "I am monitoring a folder with a .net filewatcher for certain kind of files(*.mbxml). I am using the created event of filewatcher for it. Once the created event fires I have to move this file to another folder. The problem with this approach is that the created event is fired as ...
I am not sure if I formulated the question right, but still ... I have a view that shows a flash embed and this flash take as parameter a /controller/action URL that generates a XML. I nee to send, from this view, an array to the XML generator action. How is the best way ? Is there some helper->set() method like or I h...
To pass an array or any additional parameters from your view to the action that generates the XML, you typically want to build a query string that contains the necessary data. Since you are using SWFObject to embed a Flash object, you can utilize the `addVariable` method to append your parameters directly into the SWF ...
27,869
[ { "from": "human", "value": "I am not sure if I formulated the question right, but still ...\nI have a view that shows a flash embed and this flash take as parameter a /controller/action URL that generates a XML. I nee to send, from this view, an array to the XML generator action. How is the best way ? Is t...
My company, a C++ house, is always looking to hire recent grads. However due to the Java Schools phenomenon, we typically end up interviewing strong Java programmers with maybe a minute smattering of C++. Often the C++ classes don't really prepare students for working in C++. Nevertheless, often these are bright kids, ...
Turning a Java School programmer into a strong C or C++ programmer can certainly be a challenge, but it is not insurmountable. Here are some considerations based on common experiences and best practices in the industry: ### 1. **Understanding of Fundamentals** - **Language Differences:** Java and C++ have fundament...
30,370
[ { "from": "human", "value": "My company, a C++ house, is always looking to hire recent grads. However due to the Java Schools phenomenon, we typically end up interviewing strong Java programmers with maybe a minute smattering of C++. Often the C++ classes don't really prepare students for working in C++. Ne...