instruction
stringlengths
14
27.6k
completion
stringlengths
3
38.3k
__original_row_idx
int64
0
50k
conversations
listlengths
2
2
Our DB server fell, and we need to restore some of it's DB's. We can find only the LDF file of the needed DB. Is there a tool that can use that for restoring? We're using SQL 2005.
Restoring a SQL Server database using only the LDF (transaction log) file is quite challenging, especially in SQL Server 2005. Typically, to fully restore a database, both the MDF (data file) and the LDF (log file) are necessary. However, if you only have the LDF file, there are a few approaches you could consider: ##...
36,225
[ { "from": "human", "value": "Our DB server fell, and we need to restore some of it's DB's. We can find only the LDF file of the needed DB. Is there a tool that can use that for restoring? We're using SQL 2005.\n" }, { "from": "gpt", "value": "Restoring a SQL Server database using only the LDF (t...
What's a better way to start a thread, _beginthread, _beginthreadx or CreateThread? I'm trying to determine what are the advantages/disadvantages of _beginthread, _beginthreadex and CreateThread. All of these functions return a thread handle to a newly created thread, I already know that CreateThread provides a little...
When it comes to creating threads in a Windows application, it's important to understand the differences between the various thread creation functions available: `_beginthread`, `_beginthreadex`, and `CreateThread`. Each function has its specific use cases, advantages, and disadvantages. ### 1. CreateThread **Advanta...
38,752
[ { "from": "human", "value": "What's a better way to start a thread, _beginthread, _beginthreadx or CreateThread?\nI'm trying to determine what are the advantages/disadvantages of _beginthread, _beginthreadex and CreateThread. All of these functions return a thread handle to a newly created thread, I alread...
I want to close a System.Windows.Forms.Form if the user clicks anywhere outside it. I've tried using IMessageFilter, but even then none of the messages are passed to PreFilterMessage. How do I receive clicks outside a form's window?
To close a `System.Windows.Forms.Form` when the user clicks outside of it, you can handle this using the `Deactivate` event of the form along with the `FormClosing` event to ensure it behaves correctly. However, a more reliable method is to use the `Win32` API to track mouse clicks outside the form. Here’s how you can...
39,826
[ { "from": "human", "value": "I want to close a System.Windows.Forms.Form if the user clicks anywhere outside it. I've tried using IMessageFilter, but even then none of the messages are passed to PreFilterMessage. How do I receive clicks outside a form's window?\n" }, { "from": "gpt", "value": ...
I am starting to work with Microsoft BI suite: Analysis services 2005, Business Intelligence Development Studio 2005, stuff like that. Of course my first wish was to set up the same source control/automated testing environment I have for my .NET projects. But xml files used by Analysiss services (dwproj, cube, dim, ...
Working with the Microsoft BI suite can indeed pose challenges when it comes to source control, especially given the way that files like `.dwproj`, `.dtsx`, and cube and dimension files are formatted and saved. Here are several strategies and tools you can use to better manage source control for your BI projects: ### ...
39,321
[ { "from": "human", "value": "I am starting to work with Microsoft BI suite: Analysis services 2005, Business Intelligence Development Studio 2005, stuff like that. Of course my first wish was to set up the same source control/automated testing environment I have for my .NET projects. \nBut xml files used ...
I have a plugin project I've been developing for a few years where the plugin works with numerous combinations of [primary application version, 3rd party library version, 32-bit vs. 64-bit]. Is there a (clean) way to use autotools to create a single makefile that builds all versions of the plugin. As far as I can te...
To handle the complexity of building a plugin for different combinations of primary application versions, third-party library versions, and architecture (32-bit vs. 64-bit), a single Makefile approach using a tool like Autotools can be challenging but not impossible. However, considering your requirements and your will...
38,990
[ { "from": "human", "value": "I have a plugin project I've been developing for a few years where the plugin works with numerous combinations of [primary application version, 3rd party library version, 32-bit vs. 64-bit]. Is there a (clean) way to use autotools to create a single makefile that builds all ver...
There is a distinct overlap between what u can do with both of them. Is the ComponentModel reflection stuff just a little friendlier layer on top of System.Reflection?
Yes, that's a good way to describe it. The `System.Reflection` namespace provides the core functionality for inspecting types, assemblies, and members in .NET, while `System.ComponentModel` (and specifically the `ComponentModel` namespace) builds on top of that reflection functionality to offer a more user-friendly and...
40,520
[ { "from": "human", "value": "There is a distinct overlap between what u can do with both of them. Is the ComponentModel reflection stuff just a little friendlier layer on top of System.Reflection?\n" }, { "from": "gpt", "value": "Yes, that's a good way to describe it. The `System.Reflection` nam...
I have created a pretty basic Flash website for a client and am having an issue programming a Client Login feature that he would like. Currently, if I navigate to the site and click Client Login, it takes me to a login page. The way I need this to work is -- within the Flash, using ActionScript 2.0 -- have the user ent...
Creating a login feature in a Flash website using ActionScript 2.0 to submit data to a different domain can be challenging due to security restrictions and cross-domain policies. However, it is technically possible, and here's how you can approach it while keeping legal and technical aspects in mind: ### Legal and Sec...
38,208
[ { "from": "human", "value": "I have created a pretty basic Flash website for a client and am having an issue programming a Client Login feature that he would like. Currently, if I navigate to the site and click Client Login, it takes me to a login page. The way I need this to work is -- within the Flash, us...
I'm trying to configure Apache to allow read only access and ask for user to write to a SVN repository when you are coming from the local network (10.*) but not allow any access unless logged in when coming from external network. I sort of understand how the Order, Deny, Allow, and Limit directives work but I do not kn...
To achieve the desired access control configuration for your SVN repository via Apache, you can use a combination of the directives you mentioned, along with some modifications. You want to allow read-only access for local network users (10.x.x.x) and prompt for authentication for write access, while restricting all ex...
34,991
[ { "from": "human", "value": "I'm trying to configure Apache to allow read only access and ask for user to write to a SVN repository when you are coming from the local network (10.*) but not allow any access unless logged in when coming from external network.\nI sort of understand how the Order, Deny, Allow,...
I'm trying to get the following SQL statement to work: UPDATE myschema.tableA update_tableA SET field_id = ( SELECT src.field_id FROM myschema.srcTable src INNER JOIN myschema.tableB tableB ON update_tableA.id = tableB.id AND SDO_ANYINTERACT( tableB.shape, src.shape )...
The error you're encountering, `ORA-00904: "UPDATE_TABLEA"."ID": invalid identifier`, indicates that the alias `update_tableA` is not recognized within the subquery. In SQL, the scope of aliases is limited to the immediate query level; they cannot be referenced from within nested subqueries. To resolve this issue, yo...
35,377
[ { "from": "human", "value": "I'm trying to get the following SQL statement to work:\nUPDATE myschema.tableA update_tableA\n SET field_id = \n ( SELECT src.field_id \n FROM myschema.srcTable src\n INNER JOIN myschema.tableB tableB ON \n update_tableA.id = tableB.id \n ...
I used the following code to display custom marker on Yahoo Maps : <Script type=text/javascript> var map=new YMap(document.getElementById('map')); // Create a map object Get_Lat_Lon() ...
It appears that you are using Yahoo Maps API, which has gone through several changes over the years. Yahoo Maps has been deprecated for a while now, and the support and functionality may vary significantly between different versions. Here are a few steps you can take to try to address the issue of your custom markers n...
39,854
[ { "from": "human", "value": "I used the following code to display custom marker on Yahoo Maps :\n<Script type=text/javascript>\n var map=new YMap(document.getElementById('map')); // Create a map object\n Get_Lat_Lon() ...
So I have this large XML file containing 300+ elements for each record and I need to insert these records into a database table. The name of the nodes in the XML file are the same as the column names in the db. And they're all strings. Is there an automatic way to map them and insert the data or will I have to write ou...
Inserting records from a large XML file into a SQL Server 2005 database can be done efficiently without manually mapping each element to a database column. Here’s a step-by-step approach to achieve this automatically using the XML capabilities built into SQL Server. ### Step 1: Load the XML Data into SQL Server You c...
38,899
[ { "from": "human", "value": "So I have this large XML file containing 300+ elements for each record and I need to insert these records into a database table. The name of the nodes in the XML file are the same as the column names in the db. And they're all strings. Is there an automatic way to map them and i...
What is the best way to convert an array of bytes declared as TBytes to a unicode string in Delphi 2009? In my particular case, the TBytes array has UTF-16 encoded data already (2 bytes for each char). Since TBytes doesn't store a null terminator, the following will only work if the array happens to have #0 in the memo...
To convert a `TBytes` array containing UTF-16 encoded data into a Unicode string in Delphi 2009, you will need to explicitly handle the byte array as a string. Since the `TBytes` array does not include a null terminator, you should create a string from the byte array by specifying the length of the byte array. Here's...
40,406
[ { "from": "human", "value": "What is the best way to convert an array of bytes declared as TBytes to a unicode string in Delphi 2009? In my particular case, the TBytes array has UTF-16 encoded data already (2 bytes for each char).\nSince TBytes doesn't store a null terminator, the following will only work i...
I've been trying to create a custom control that works exactly like the Panel control except surrounded by a few divs and such to create a rounded box look. I haven't been able to find a decent example of how to do this. I need to be able to place text and controls inside the control and access it directly without ref...
Certainly! To create a custom control that behaves like a Panel but surrounds its content with additional HTML elements (such as `div` for styling), you can extend a `Panel` and override its rendering logic. This can be achieved in ASP.NET Web Forms using a custom control. Here’s a simple example to demonstrate how yo...
38,185
[ { "from": "human", "value": "I've been trying to create a custom control that works exactly like the Panel control except surrounded by a few divs and such to create a rounded box look. I haven't been able to find a decent example of how to do this. \nI need to be able to place text and controls inside the ...
I want to add paginated table to a page. It should be 2 rows by 4 columns. Each cell contains a thumbnail image and some small links. We're using YUI elsewhere on the project, so I'd like to use the Datatable. All the examples I see are geared around tabular data (understandable), but my hunch is that I can rewrit...
Yes, it is indeed possible to use YUI's DataTable to create a paginated table with custom HTML content in each cell, including thumbnails and links. Although YUI DataTable is primarily designed for tabular data, you can customize the cell content by using a renderer function or by manipulating the cell's inner HTML aft...
36,501
[ { "from": "human", "value": "I want to add paginated table to a page. It should be 2 rows by 4 columns. Each cell contains a thumbnail image and some small links. \nWe're using YUI elsewhere on the project, so I'd like to use the Datatable. All the examples I see are geared around tabular data (understa...
I am using a service component through ASP.NET MVC. I would like to send the email in a asynchronous way to let the user do other stuff without having to wait for the sending. When I send a message without attachments it works fine. When I send a message with at least one in-memory attachment it fails. So, I would like...
The issue you are facing with sending emails that contain in-memory attachments asynchronously is related to the fact that the `MemoryStream` you're using for the attachment does not support reading when the `SmtpClient` tries to read it after sending the email. The key here is to ensure that the `MemoryStream` is po...
39,230
[ { "from": "human", "value": "I am using a service component through ASP.NET MVC.\nI would like to send the email in a asynchronous way to let the user do other stuff without having to wait for the sending.\nWhen I send a message without attachments it works fine.\nWhen I send a message with at least one in-...
Per the Java documentation, the hash code for a String object is computed as: s[0]*31^(n-1) + s[1]*31^(n-2) + ... + s[n-1] using int arithmetic, where s[i] is the ith character of the string, n is the length of the string, and ^ indicates exponentiation. Why is 31 used as a multiplier? I understand that the mu...
The choice of 31 as the multiplier in the hash code computation for Java strings has practical and mathematical reasons: 1. **Odd Prime Number**: 31 is an odd prime number. Using a prime number helps in reducing the chances of collisions in hash codes. While other primes like 29 or 37 could also work, 31 has been hist...
40,864
[ { "from": "human", "value": "Per the Java documentation, the hash code for a String object is computed as:\n\ns[0]*31^(n-1) + s[1]*31^(n-2) + ... + s[n-1]\n\nusing int arithmetic, where s[i] is the\n ith character of the string, n is the length of\n the string, and ^ indicates exponentiation.\n\nWhy is ...
I have a project consisting of two files, main.c and logoff.c. When I try to compile them I get this error: gcc -c -g -Wall main.c gcc -c -g -Wall logoff.c gcc -o main -g -Wall main.o logoff.o ld: duplicate symbol _logoff in logoff.o and main.o I have a function named logoff in logoff.c, but I have searched main.c for...
The issue you are encountering is likely due to the use of default symbol visibility in C. By default, C functions have external linkage, which means that they can be referenced from other translation units (i.e., other `.c` files). If two different `.c` files define functions with the same name, the linker will encoun...
40,168
[ { "from": "human", "value": "I have a project consisting of two files, main.c and logoff.c. When I try to compile them I get this error:\ngcc -c -g -Wall main.c\ngcc -c -g -Wall logoff.c\ngcc -o main -g -Wall main.o logoff.o\nld: duplicate symbol _logoff in logoff.o and main.o\nI have a function named logo...
Background: we have a system that was written in an older CMS based on Java back during the 2002-2003 days. We want to keep moving forward with our new stuff, using tomcat, stripes, and sitemesh. We have navigation, layouts, "pods", js, css, etc, that we've taken out of the old CMS and into a few of our new apps so w...
It sounds like you're dealing with a classic case of code duplication and needing a centralized way to manage shared resources in a Java web application environment. Let's explore a few options that can help you with your requirements, as well as some considerations regarding the architecture. ### Potential Solutions:...
34,249
[ { "from": "human", "value": "Background: we have a system that was written in an older CMS based on Java back during the 2002-2003 days. We want to keep moving forward with our new stuff, using tomcat, stripes, and sitemesh. We have navigation, layouts, \"pods\", js, css, etc, that we've taken out of the ...
I have a polymorphic association in a Ruby on Rails model. In the migration, I have: create_table "offer_defs" do |t| t.integer "product_def_id" t.string "product_def_type" ... end I would like to add an index for this association. I am hesitating between the following options: add_index :offer_defs, [:produc...
When dealing with polymorphic associations in Rails, indexing your columns effectively is important for performance, especially when querying records that involve these associations. Let's break down the pros and cons of your options for indexing the polymorphic association. ### 1. Composite Index: `add_index :offer_d...
39,927
[ { "from": "human", "value": "I have a polymorphic association in a Ruby on Rails model. In the migration, I have:\ncreate_table \"offer_defs\" do |t|\n t.integer \"product_def_id\"\n t.string \"product_def_type\"\n ...\nend\n\nI would like to add an index for this association. I am hesitating between ...
Can anyone explain the difference between Server.MapPath("."), Server.MapPath("~"), Server.MapPath(@"\") and Server.MapPath("/")?
Certainly! The `Server.MapPath` method is used in ASP.NET applications to map a virtual path (like a URL path) to a physical path on the server's file system. Here's a breakdown of the different arguments you've mentioned: 1. **Server.MapPath(".")**: - This maps the current directory where the code is executing to ...
41,301
[ { "from": "human", "value": "Can anyone explain the difference between Server.MapPath(\".\"), Server.MapPath(\"~\"), Server.MapPath(@\"\\\") and Server.MapPath(\"/\")?\n" }, { "from": "gpt", "value": "Certainly! The `Server.MapPath` method is used in ASP.NET applications to map a virtual path (l...
I have installed m2eclipse plugin from http://m2eclipse.codehaus.org/. Now I want to use that as a standalone build tool but I am unable to find the installation directory. Can anyone help me in this?
The m2eclipse plugin is primarily designed to integrate Maven with Eclipse, rather than being a standalone build tool. It allows you to work with Maven projects within the Eclipse IDE. If you're looking to use Maven independently from Eclipse, you will need to install Maven separately. To find the m2eclipse installati...
40,441
[ { "from": "human", "value": "I have installed m2eclipse plugin from http://m2eclipse.codehaus.org/. Now I want to use that as a standalone build tool but I am unable to find the installation directory. Can anyone help me in this?\n" }, { "from": "gpt", "value": "The m2eclipse plugin is primarily...
I have a List containing several keywords. I foreach through them building my linq query with them like so (boiled down to remove the code noise): List<string> keys = FillKeys() foreach (string key in keys){ q = q.Where(c => c.Company.Name.Contains(key)); } When I now make my keys contain 2 keys that return result...
The issue you're encountering is due to the way LINQ constructs the query when you use a `foreach` loop to build it in a sequential manner. Each iteration of your `foreach` loop is modifying the existing query without considering the previous conditions correctly. To achieve the behavior you want, where you get result...
39,144
[ { "from": "human", "value": "I have a List containing several keywords.\nI foreach through them building my linq query with them like so (boiled down to remove the code noise):\nList<string> keys = FillKeys()\nforeach (string key in keys){\n q = q.Where(c => c.Company.Name.Contains(key));\n}\n\nWhen I no...
I want to record sound (voice) using PortAudio (PyAudio) and output the corresponding sound wave on the screen. Hopeless as I am, I am unable to extract the frequency information from the audio stream so that I can draw it in Hz/time form. Here's an example code snippet that records and plays recorded audio for five s...
To extract frequency information from an audio signal in real-time while recording with PyAudio, you can utilize the Fast Fourier Transform (FFT) provided by the `numpy` library. The FFT will allow you to analyze the frequency content of your audio data. Here's a step-by-step breakdown and example code to achieve what ...
36,710
[ { "from": "human", "value": "I want to record sound (voice) using PortAudio (PyAudio) and output the corresponding sound wave on the screen. Hopeless as I am, I am unable to extract the frequency information from the audio stream so that I can draw it in Hz/time form.\n\nHere's an example code snippet that ...
I have a tabview controller to which I added a UIViewController to each tab. I want to have multiple UIViews inside the UIViewController. So in the implementation of the UIViewController class I added [self.view addSubView:uiview1] and [self.view addSubView:uiview2]. The problem is that when I run the app, it crahes on...
The issue you're encountering is likely related to how you're adding subviews to your `UIViewController`'s main view. When you set `self.view` to a specific UIView instance (like `UIView1`), you are replacing the entire view of the view controller. Consequently, if you then try to add other subviews directly to `self.v...
37,111
[ { "from": "human", "value": "I have a tabview controller to which I added a UIViewController to each tab. I want to have multiple UIViews inside the UIViewController.\nSo in the implementation of the UIViewController class I added [self.view addSubView:uiview1] and [self.view addSubView:uiview2]. The proble...
I use the dark-blue2 color theme but it seems ugly under console. So I want to use no color theme under terminal, what can I do then?
If you're using a specific application or IDE that allows you to customize your color theme but you prefer to have no color theme in the terminal, you typically have a few options. Here are some general steps you can take: ### For Terminal Emulator 1. **Reset Terminal Colors**: If you're using a terminal emulator (li...
40,823
[ { "from": "human", "value": "I use the dark-blue2 color theme but it seems ugly under console.\nSo I want to use no color theme under terminal, what can I do then?\n" }, { "from": "gpt", "value": "If you're using a specific application or IDE that allows you to customize your color theme but you...
I have a single form for editing an event, in which the user can (a) edit the details of the event (title, description, dates, etc.) in a FormView and (b) view and edit a ListView of contacts who are registered for the event. Here's my LinqDataSource, which allows me to add and remove contacts to the event. <asp:lin...
To achieve the desired behavior of persisting changes to the `ListView` only when the `FormView` is successfully saved, you'll need to implement some additional logic. While the `LinqDataSource` automatically handles CRUD operations, it doesn't inherently support transactional behavior that you want here. Instead, you'...
35,444
[ { "from": "human", "value": "I have a single form for editing an event, in which the user can (a) edit the details of the event (title, description, dates, etc.) in a FormView and (b) view and edit a ListView of contacts who are registered for the event. \nHere's my LinqDataSource, which allows me to add a...
We are looking at various options in porting our persistence layer from Oracle to another database and one that we are looking at is MS SQL. However we use Oracle sequences throughout the code and because of this it seems moving will be a headache. I understand about @identity but that would be a massive overhaul of th...
Yes, SQL Server does support sequences, but it also offers the `IDENTITY` property for auto-incrementing primary keys. If you want to replicate the behavior of Oracle sequences while minimizing changes in your code, you can create a SQL Server sequence and use it with a custom function to retrieve the next value, which...
39,083
[ { "from": "human", "value": "We are looking at various options in porting our persistence layer from Oracle to another database and one that we are looking at is MS SQL. However we use Oracle sequences throughout the code and because of this it seems moving will be a headache. I understand about @identity b...
In the Windows registry, how does CurrentControlSet differ from ControlSet001 and ControlSet002? Which should be set when installing for all users? We are trying to add an environment variable for all users. Is this correct? HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Envinronment
In the Windows registry, `CurrentControlSet`, `ControlSet001`, and `ControlSet002` are related to the configuration of the operating system and the services it manages. ### Key Differences: - **CurrentControlSet**: This is a symbolic link that points to the control set currently in use by the operating system. It ref...
40,524
[ { "from": "human", "value": "In the Windows registry, how does CurrentControlSet differ from\nControlSet001 and ControlSet002? Which should be set when installing for all\nusers?\nWe are trying to add an environment variable for all users. Is this correct?\nHKLM\\SYSTEM\\CurrentControlSet\\Control\\Session ...
There has been a lot of press about IPv6 and the impending switch over to IPv6 from IPv4. I have some understanding of IPv6, but I've often wondered how much impact IPv6 has on application development & design (specifically)? Are there some tangible/well known benefits IPv6 provides which we don't already have today? ...
The transition from IPv4 to IPv6 is indeed a significant evolution in networking that impacts application development and design in various ways. Here are some insights into the impact, benefits, and considerations for IPv6: ### 1. **Impact on Application Development & Design** - **Address Space**: IPv6 offers a va...
36,787
[ { "from": "human", "value": "There has been a lot of press about IPv6 and the impending switch over to IPv6 from IPv4. I have some understanding of IPv6, but I've often wondered how much impact IPv6 has on application development & design (specifically)?\nAre there some tangible/well known benefits IPv6 pr...
We have one web application (sharepoint) that collects information from disparate sources. We would like to be able to link users to the main websites of those various sources and have them pre-authenticated. I.E. they enter their credentials for the other sources (which are a number of different types LDAP, AD and hom...
The scenario you are describing is possible but involves several challenges and considerations, especially with respect to security, user experience, and the technologies involved. Here's an outline of what could be done: ### Key Considerations 1. **Authentication Mechanisms**: - Since you're dealing with multiple...
38,751
[ { "from": "human", "value": "We have one web application (sharepoint) that collects information from disparate sources. We would like to be able to link users to the main websites of those various sources and have them pre-authenticated. I.E. they enter their credentials for the other sources (which are a n...
I am trying to self-host a TCP-based WFC service inside a Windows Service. The Windows Service is a wrapper for performing 2 jobs: hosting a TCP-based WCF service (note the Windows Service is a simple service) running other Windows Services under it I am able to run the Windows Service, but when trying to connect to...
The TCP 10061 error, which indicates that the target machine actively refused the connection, can be caused by several factors when attempting to connect to a TCP-based WCF (Windows Communication Foundation) service hosted within a Windows Service. Here are some common reasons for this issue along with potential soluti...
38,766
[ { "from": "human", "value": "I am trying to self-host a TCP-based WFC service inside a Windows Service. The Windows Service is a wrapper for performing 2 jobs:\n\nhosting a TCP-based WCF service (note the Windows Service is a simple service)\nrunning other Windows Services under it \n\nI am able to run the ...
Last night I added a parameter to a stored procedure in a mySQL database. I accessed it, messed up the parameter, and decided to remove the parameter again, for testing. Still minutes after re-creating the procedure without the parameter, my command object was still complaining about a missing parameter. Is this myS...
The issue you're facing with the missing parameter in your command object after modifying a stored procedure could stem from several sources, but it is typically related to how the database, the connector, and the application cache or manage the metadata. ### Possible Causes: 1. **Cached Metadata**: Some database con...
40,012
[ { "from": "human", "value": "Last night I added a parameter to a stored procedure in a mySQL database. I accessed it, messed up the parameter, and decided to remove the parameter again, for testing. Still minutes after re-creating the procedure without the parameter, my command object was still complainin...
Does anyone know the official method for submitting feedback on C# 4.0 so that Anders and his team will get the feedback and be able to respond to the submission?
For submitting feedback on C# 4.0 or any other Microsoft product, the best way is to use the official channels provided by Microsoft. Here are a few methods you can try: 1. **Microsoft Connect**: This platform allows users to report issues, suggest features, and provide feedback directly to Microsoft. You can visit th...
42,626
[ { "from": "human", "value": "Does anyone know the official method for submitting feedback on C# 4.0 so that Anders and his team will get the feedback and be able to respond to the submission?\n" }, { "from": "gpt", "value": "For submitting feedback on C# 4.0 or any other Microsoft product, the b...
I need a Linux text editor to replace Textpad 4.7.3 (a Windows nagware app), but all the alternatives I've tried are either bloated or incomplete. Here are the features I find most important, in descending order: Regex search, mark, and replace (across all open files, even), regex search in directory trees Tabbed edit...
Finding a text editor that meets all your specified requirements can be challenging, especially given your specific needs. Below are a few text editors that you might find suitable based on your criteria: ### 1. **Sublime Text** - **Regex Search & Replace**: Fully supports regex in search and replace, including across...
37,125
[ { "from": "human", "value": "I need a Linux text editor to replace Textpad 4.7.3 (a Windows nagware app), but all the alternatives I've tried are either bloated or incomplete. Here are the features I find most important, in descending order:\n\nRegex search, mark, and replace (across all open files, even), ...
I've been running into some problems duplicating some old ASP files into some newer .NET 2.0 code. One of the tasks is to merge the 4-5 SQL statements into one. While I have done this and had some success in performance boosts, Oracle is a new bag for me. This problem however surpasses my own SQL skills as I haven't do...
To include records where the conversion factor does not exist in your query, you need to change the way you're joining your tables. Instead of using an inner join for the `conversionfactor` table, which will filter out records that don’t have a matching conversion factor, you should use an outer join. This allows you t...
39,700
[ { "from": "human", "value": "I've been running into some problems duplicating some old ASP files into some newer .NET 2.0 code. One of the tasks is to merge the 4-5 SQL statements into one. While I have done this and had some success in performance boosts, Oracle is a new bag for me. This problem however su...
I have a SSRS 2005 report that has a number of images in it. The way that I have the images included is I have an image object with the URL set in the value property. The actual images are hosted by an IIS virtual directory on the same server. I'm doing it this way because I need to dynamically change the image sou...
The issue you're experiencing with SSRS 2005, where images are displaying correctly in Visual Studio but not when deployed, can be attributed to a few common reasons. Let's go through them and see if we can resolve the problem. ### 1. **Permissions**: - Ensure that the account running the SSRS service has appropria...
38,237
[ { "from": "human", "value": "I have a SSRS 2005 report that has a number of images in it. The way that I have the images included is I have an image object with the URL set in the value property. The actual images are hosted by an IIS virtual directory on the same server. I'm doing it this way because I...
I don't know why this bothers me so much, but when I create websites, I always try to do all my styling with CSS. However one thing I always have to remember to do when I'm working with tables is add cellspacing="0" and cellpadding="0" Why is there not a CSS property to override these antiquated HTML 4 attributes?
The `cellspacing` and `cellpadding` attributes in HTML 4 are indeed considered outdated, as they are part of the older HTML specification. They were commonly used to control the spacing around and within table cells before CSS became the primary method for styling web pages. In CSS, you can achieve the same effects th...
40,433
[ { "from": "human", "value": "I don't know why this bothers me so much, but when I create websites, I always try to do all my styling with CSS. However one thing I always have to remember to do when I'm working with tables is add cellspacing=\"0\" and cellpadding=\"0\"\nWhy is there not a CSS property to ov...
I am working on an app with an NSTextView. When I paste random bytes into it (say, from a compiled C program) it displays gibberish, as it should. However, when I -setShowsControlCharacters:YES, the same causes a crash and gives the following error multiple times: 2008-11-22 00:27:22.671 MyAppName[6119:10b] *** -[NSB...
To debug the crash you're encountering in your app with the `NSTextView`, you can follow these steps: ### 1. **Reproduce the Issue** Ensure that you can consistently reproduce the crash. Make a note of the specific conditions (like the data being pasted) that trigger the error. ### 2. **Enable Exception Breakpoint...
37,603
[ { "from": "human", "value": "I am working on an app with an NSTextView. When I paste random bytes into it (say, from a compiled C program) it displays gibberish, as it should. However, when I -setShowsControlCharacters:YES, the same causes a crash and gives the following error multiple times:\n2008-11-22 ...
Can anyone tell me how can I get the xpath of the name attribute from this file: <asmv1:assembly xmlns:asmv1="urn:schemas-microsoft-com:asm.v1"> <assemblyIdentity name="MyName"/> </asmv1:assembly> I'm trying to get it for nant xmlpoke task without success. Thanks.
To get the `name` attribute from the given XML using XPath, you can use the following XPath expression: ```xpath /asmv1:assembly/assemblyIdentity/@name ``` ### Explanation: - `/asmv1:assembly`: This selects the `assembly` element in the namespace defined by `asmv1`. - `/assemblyIdentity`: This selects the `assemblyId...
41,108
[ { "from": "human", "value": "Can anyone tell me how can I get the xpath of the name attribute from this file:\n<asmv1:assembly xmlns:asmv1=\"urn:schemas-microsoft-com:asm.v1\">\n <assemblyIdentity name=\"MyName\"/>\n</asmv1:assembly>\n\nI'm trying to get it for nant xmlpoke task without success.\nThanks.\n...
I have written a Windows service that allows me to remotely run and stop applications. These applications are run using CreateProcess, and this works for me because most of them only perform backend processing. Recently, I need to run applications that present GUI to the current log in user. How do I code in C++ to all...
To run a GUI application from a Windows service, you face some challenges because services run in a different session (Session 0) than the logged-in user sessions. GUI applications need to run in the context of the user session, which requires some additional steps to properly interact with the desktop. Here's a gener...
32,030
[ { "from": "human", "value": "I have written a Windows service that allows me to remotely run and stop applications. These applications are run using CreateProcess, and this works for me because most of them only perform backend processing. Recently, I need to run applications that present GUI to the current...
I need to test a JDBC connection to a database. The java code to do that should be as simple as: DriverManager.getConnection("jdbc connection URL", "username", "password"); The driver manager will lookup the appropriate the driver for the given connection URL. However I need to be able to load the JDBC driver (jar) at...
To load a JDBC driver at runtime and register it with the `DriverManager`, you can indeed use a `URLClassLoader` to dynamically load the JDBC driver JAR file. After loading the driver, you need to ensure that it is registered with the `DriverManager`. Here's how you can achieve this: 1. Load the JDBC driver using a `U...
36,463
[ { "from": "human", "value": "I need to test a JDBC connection to a database. The java code to do that should be as simple as:\nDriverManager.getConnection(\"jdbc connection URL\", \"username\", \"password\");\n\nThe driver manager will lookup the appropriate the driver for the given connection URL. However ...
The section Last links in the chain: Stashing and the reflog in http://ftp.newartisans.com/pub/git.from.bottom.up.pdf recommends stashing often to take snapshots of your work in progress. The author goes as far as recommending that you can use a cron job to stash your work regularly, without having to do a stash manu...
To make automatic stashing more reliable, you can modify the approach to ensure that you don't apply the stash if there are no changes in your working directory or to manage the timing more effectively. Here are a few suggestions: ### 1. Check for Changes Before Stashing You can modify the script to check for changes...
37,906
[ { "from": "human", "value": "The section Last links in the chain: Stashing and the reflog in http://ftp.newartisans.com/pub/git.from.bottom.up.pdf recommends stashing often to take snapshots of your work in progress. The author goes as far as recommending that you can use a cron job to stash your work reg...
how do i insert items into an html listbox from a database? im using asp c#. i cant make the listbox run at server because the application wont work if i do that. so i have to insert values from a database into an html listbox. I just need to display 1 column of data. cheers..
To populate an HTML listbox with data from a database in an ASP.NET application using C#, you can retrieve the data in the code-behind and then dynamically create the options in the HTML listbox. Since you're using a non-server control for the listbox (e.g., `<select>`), you'll need to use standard HTML and inject the ...
35,019
[ { "from": "human", "value": "how do i insert items into an html listbox from a database?\nim using asp c#. i cant make the listbox run at server because the application wont work if i do that. so i have to insert values from a database into an html listbox. I just need to display 1 column of data. cheers..\...
I have a database that contains a table that looks a bit like this: PropertyId, EntityId, Value PropertyId and EntityId are a combined primary key. Every Entity is spread over a couple of rows where every row contains a single property of the entity. I have no control over this database so I'll have to work with it. Is...
Yes, you can definitely use NHibernate to map entities from a table structured as you've described, even if the data is spread across multiple rows. NHibernate is flexible enough to handle such scenarios, particularly with its support for using custom queries and result transformers. Here's a basic outline of how you...
37,230
[ { "from": "human", "value": "I have a database that contains a table that looks a bit like this:\nPropertyId, EntityId, Value\nPropertyId and EntityId are a combined primary key. Every Entity is spread over a couple of rows where every row contains a single property of the entity. I have no control over thi...
Is there a native c++ variable type that's "bigger" than a double? float is 7 double is 15 (of course depending on the compiler) Is there anything bigger that's native, or even non-native?
In C++, the built-in floating-point types are typically defined by the IEEE 754 standard, which includes: 1. `float`: Usually 32 bits (single precision). 2. `double`: Usually 64 bits (double precision). 3. `long double`: The size of `long double` can vary depending on the compiler and the architecture, but it is often...
41,465
[ { "from": "human", "value": "Is there a native c++ variable type that's \"bigger\" than a double?\nfloat is 7\ndouble is 15 (of course depending on the compiler)\nIs there anything bigger that's native, or even non-native?\n" }, { "from": "gpt", "value": "In C++, the built-in floating-point typ...
I have a canvas in Flex that shall be able only to be scrolled in vertical direction, so I set the attributes of the canvas as follows: verticalScrollPolicy="auto" horizontalScrollPolicy="off" The problem here is that the vertical scrollbar covers the content when it appears - altough there is enough horizontal room l...
In Flex, when you're using a `Canvas` and you want to ensure that the vertical scrollbar does not cover any content, you might need to handle the layout yourself since the `Canvas` does not automatically resize its children when a scrollbar appears or disappears. Here's a workaround you can implement to adjust the la...
39,348
[ { "from": "human", "value": "I have a canvas in Flex that shall be able only to be scrolled in vertical direction, so I set the attributes of the canvas as follows:\nverticalScrollPolicy=\"auto\" horizontalScrollPolicy=\"off\"\n\nThe problem here is that the vertical scrollbar covers the content when it app...
I'm having trouble with the Dojo documentation (as usual). On their TabContainer API, they list the second argument as an object called "params", but they never say what you can actually put in this params object. Can I specify the width? The height? Do I specify the id's of the divs I want to be the tabs inside the c...
It can indeed be frustrating when documentation lacks clarity regarding the available parameters for certain APIs. Let's go over your queries regarding the `TabContainer` API in Dojo. ### Params Object in TabContainer The `params` object can take a variety of properties, but the most common ones include: - `tabPosit...
39,114
[ { "from": "human", "value": "I'm having trouble with the Dojo documentation (as usual).\nOn their TabContainer API, they list the second argument as an object called \"params\", but they never say what you can actually put in this params object. Can I specify the width? The height? Do I specify the id's of...
For a web application, when creating the user which will connect to the MySQL database, you have the choice of privileges. Assuming that the only actions intended to be done by that user are SELECT/INSERT/UPDATE/DELETE, it seems to make sense to only provide those privileges, however I've never seen that recommended an...
When it comes to setting up database users and their privileges, the principle of least privilege is an important guideline to follow. This means granting a user only the permissions necessary for their specific tasks, which enhances security and minimizes the risk of unintentional or malicious actions. ### Reasons fo...
40,227
[ { "from": "human", "value": "For a web application, when creating the user which will connect to the MySQL database, you have the choice of privileges. Assuming that the only actions intended to be done by that user are SELECT/INSERT/UPDATE/DELETE, it seems to make sense to only provide those privileges, ho...
[This code is called from within the Inspector.Activate event handler (first call), i.e. right before the inspector window is actually shown.] For "native" mail inspectors I can simply QI the Inspector interface to IOleWindow and call its GetWindow method. However, this will not work for Word inspectors which are in fa...
The challenge of getting a reliable window handle for Word inspectors in Outlook is indeed tricky due to the way Word integrates with Outlook. Here are a few approaches you might consider to reliably obtain the window handle for a Word inspector: ### 1. Use `FindWindow` with Class and Title While you mentioned difficu...
39,819
[ { "from": "human", "value": "[This code is called from within the Inspector.Activate event handler (first call), i.e. right before the inspector window is actually shown.]\nFor \"native\" mail inspectors I can simply QI the Inspector interface to IOleWindow and call its GetWindow method. However, this will ...
I have a bunch of enum types in some library header files that I'm using, and I want to have a way of converting enum values to user strings - and vice-versa. RTTI won't do it for me, because the 'user strings' need to be a bit more readable than the enumerations. A brute force solution would be a bunch of functions l...
Your task of mapping enum values to user-friendly strings can indeed be made elegant without significantly changing the underlying enum definitions. The approach you've proposed using `#define` macros is a reasonable one, but we can take it a step further by leveraging C++ features like `constexpr` and `std::array` for...
38,150
[ { "from": "human", "value": "I have a bunch of enum types in some library header files that I'm using, and I want to have a way of converting enum values to user strings - and vice-versa. \nRTTI won't do it for me, because the 'user strings' need to be a bit more readable than the enumerations.\nA brute for...
How can I go through all external links in a div with javascript, adding (or appending) a class and alt-text? I guess I need to fetch all objects inside the div element, then check if each object is a , and check if the href attributen starts with http(s):// (should then be an external link), then add content to the al...
You can achieve this by using JavaScript to select all the anchor (`<a>`) elements within a specific `<div>` element, check if their `href` attribute starts with `http://` or `https://`, and then add or append a class and alt text accordingly. Below is an example of how you can implement this functionality: ```html <d...
34,673
[ { "from": "human", "value": "How can I go through all external links in a div with javascript, adding (or appending) a class and alt-text?\nI guess I need to fetch all objects inside the div element, then check if each object is a , and check if the href attributen starts with http(s):// (should then be an ...
This works, but is it the proper way to do it??? I have a custom server control that has an [input] box on it. I want it to kinda mimic the ASP.NET TextBox, but not completely. When the textbox is rendered i have a javascript that allows users to select values that are then placed in that input box. I have a public t...
It looks like you're on the right track, but there are some improvements that can be made to ensure your custom server control behaves more like a standard ASP.NET control, particularly with regard to handling the value set by JavaScript or user input. ### Key Points to Consider 1. **Use of ViewState**: It's good th...
35,314
[ { "from": "human", "value": "This works, but is it the proper way to do it???\nI have a custom server control that has an [input] box on it. I want it to kinda mimic the ASP.NET TextBox, but not completely. When the textbox is rendered i have a javascript that allows users to select values that are then p...
How can I send email using Perl through my Gmail account? The one CPAN library (Mail::Webmail::Gmail) that I tried didn't work and I don't see much activity with it. At the moment I really only need to send a message. However, the advanced functionality of getting my contacts, acting when a new email is received that...
To send an email using Perl through your Gmail account, you can use the `Net::SMTP` module. This approach utilizes Gmail's SMTP server to send the emails. Below is a simple example of how to do that. ### Prerequisites 1. **Install the required Perl modules**: Make sure you have `Net::SMTP` and `MIME::Base64`. You can ...
37,505
[ { "from": "human", "value": "How can I send email using Perl through my Gmail account? The one CPAN library (Mail::Webmail::Gmail) that I tried didn't work and I don't see much activity with it.\nAt the moment I really only need to send a message. However, the advanced functionality of getting my contacts...
I have some old C code that I would like to combine with some C++ code. The C code used to have has the following includes: #include <windows.h> #include <stdio.h> #include <string.h> #include "mysql.h" Now I'm trying to make it use C++ with iostream like this: #include <windows.h> #include <stdio.h> #include <string>...
The linker errors you're encountering indicate that your C++ code is not being linked against the standard C++ library, which is necessary for it to find the implementations of standard C++ features such as `std::string` and `std::ios_base`. Here’s how to resolve these errors: 1. **Check Compiler Settings:** - In ...
37,001
[ { "from": "human", "value": "I have some old C code that I would like to combine with some C++ code.\nThe C code used to have has the following includes:\n#include <windows.h>\n#include <stdio.h>\n#include <string.h>\n#include \"mysql.h\"\n\nNow I'm trying to make it use C++ with iostream like this:\n#inclu...
I have two machines setup to run Visual Studio 2008 (SP1) & NET Framework 3.5 (SP1). If I create a .tt file in a console appliaction on machine #1 it automatically creates the sub .cs file for me, however if I do the exact same on machine #2 then no sub .cs file is created. I have tried toggling the "Show All Files" op...
It sounds like you're encountering an issue with T4 text template (.tt) file generation in Visual Studio 2008 on one of your machines. The behavior you're experiencing—where .cs files are generated automatically from .tt files on one machine but not the other—can be caused by several factors. Here are a few troubleshoo...
39,345
[ { "from": "human", "value": "I have two machines setup to run Visual Studio 2008 (SP1) & NET Framework 3.5 (SP1). If I create a .tt file in a console appliaction on machine #1 it automatically creates the sub .cs file for me, however if I do the exact same on machine #2 then no sub .cs file is created.\nI h...
Last week I implemented a date validation in our front end, a combination of ASP.NET and heavily dependent on lots of JavaScript code to avoid server round-trips until a form is actually saved. I felt it clumsy that this rule check is not done on the server, but our current architecture and performance requirements pr...
Your question touches on a common challenge faced in modern web development: the need to ensure data integrity and validation consistently across both client and server while adhering to performance and architectural constraints. Here are several strategies to achieve consistent validation: ### 1. **Shared Validation ...
37,669
[ { "from": "human", "value": "Last week I implemented a date validation in our front end, a combination of ASP.NET and heavily dependent on lots of JavaScript code to avoid server round-trips until a form is actually saved. I felt it clumsy that this rule check is not done on the server, but our current arc...
I'm a recent semi-convert to Eclipse after 20 years of using vi and gvim. One of the things I miss about gvim is that I could cut a bunch of different snippets of code into named buffers, and paste them at will when doing something like repeating a common idiom. For instance I'd have it so "ap would paste DatabaseHan...
In Eclipse, you can manage code snippets using a feature called "Templates." Templates allow you to create and manage reusable code snippets that can be inserted into your code with just a few keystrokes. Here’s how to create and manage code snippets using templates in Eclipse: ### Creating and Managing Templates 1. ...
37,150
[ { "from": "human", "value": "I'm a recent semi-convert to Eclipse after 20 years of using vi and gvim. One of the things I miss about gvim is that I could cut a bunch of different snippets of code into named buffers, and paste them at will when doing something like repeating a common idiom. For instance I...
On a Linux box, the common interface names look like eth0, eth1, etc. I know how to find at least one IP address using gethostbyname or similar functions, but I don't know any way to specify which named interface I want the IP address of. I could use ifconfig and parse the output, but shelling out for this information ...
Yes, there are ways to enumerate network interfaces and retrieve their IP addresses and MAC addresses programmatically in a more elegant way than parsing the output of `ifconfig`. You can use various system libraries in C/C++ or other programming languages. Below are a few approaches you can consider based on different...
35,816
[ { "from": "human", "value": "On a Linux box, the common interface names look like eth0, eth1, etc. I know how to find at least one IP address using gethostbyname or similar functions, but I don't know any way to specify which named interface I want the IP address of. I could use ifconfig and parse the outpu...
I have written C# code for ascx. I am trying to send an email on click of image button which works in Mozilla Firefox but not in Internet Explorer. This function is called on button click: <%@ Control Language="C#" %> <%@ Import Namespace="System" %> <%@ Import Namespace="System.Web.UI.WebControls" %> <%@ Import Namesp...
If your C# code for sending emails works in Mozilla Firefox but not in Internet Explorer, the issue may be related to several factors. Here are some steps you can take to troubleshoot and potentially resolve the issue: ### 1. JavaScript Issues Internet Explorer can be less tolerant of certain JavaScript syntax and beh...
39,751
[ { "from": "human", "value": "I have written C# code for ascx. I am trying to send an email on click of image button which works in Mozilla Firefox but not in Internet Explorer.\nThis function is called on button click:\n<%@ Control Language=\"C#\" %>\n<%@ Import Namespace=\"System\" %>\n<%@ Import Namespace...
What is the best way to create a 'global event' in flex/actionscript - preferably using a static class? I want to raise an event to indicate that a stylesheet is loaded in order to show components that require that stylesheet. So I want each portion of the application that requires a style from the stylesheet to listen...
Creating a global event system in Flex/ActionScript can be done effectively using a static class to manage the event dispatching and listening. Here's a basic outline of how you can implement this pattern, particularly for your requirement to notify different parts of your application when a stylesheet has been loaded....
37,218
[ { "from": "human", "value": "What is the best way to create a 'global event' in flex/actionscript - preferably using a static class?\nI want to raise an event to indicate that a stylesheet is loaded in order to show components that require that stylesheet. So I want each portion of the application that requ...
I've decided to attempt using the double submitted cookies technique to attempt to prevent XSRF attacks on the site I'm working on. So the way I have it written down here is, all actions that actually DO something other than GET information, will be posts. Gets will be...uh...GETs. Secondly, every form that posts wi...
Implementing the double-submit cookies technique in an ASP.NET MVC application is a solid approach to mitigating Cross-Site Request Forgery (CSRF) attacks. Your strategy is generally well thought out, and here’s a more structured way to implement this feature. ### Step 1: Generate a Unique Key You need to create a un...
35,342
[ { "from": "human", "value": "I've decided to attempt using the double submitted cookies technique to attempt to prevent XSRF attacks on the site I'm working on. So the way I have it written down here is, all actions that actually DO something other than GET information, will be posts. Gets will be...uh......
I am trying to come up with a best practices on project directory structure. my latest thought is that there should be no classes in the root directory of a project. All classes must go under one of the following directories UI BusinessObjects BusinessLogic DataAccess i would like to hear other people thought on ...
Your thought process on project directory structure aligns well with common best practices in software development. A clean and organized project structure enhances maintainability, scalability, and understandability. However, there are some considerations and potential exceptions to your proposed structure. Here are s...
37,759
[ { "from": "human", "value": "I am trying to come up with a best practices on project directory structure.\nmy latest thought is that there should be no classes in the root directory of a project. All classes must go under one of the following directories\n\nUI \nBusinessObjects\nBusinessLogic\nDataAccess...
We have a very important application, but so far no source code. The application was written in COBOL and a compiled version is in our production system and is running. However, we need to migrate to a new server, and new cobol compiler. We're under the impression that we need to recompile the code to get it to work ...
Given your situation with the COBOL application, there are several steps you can consider to approach the migration to a new server, despite the lack of complete source code and the urgency of the timeline. Here are some ideas and suggestions: 1. **Gather All Existing Resources**: - Collect any documentation, old s...
38,865
[ { "from": "human", "value": "We have a very important application, but so far no source code. The application was written in COBOL and a compiled version is in our production system and is running.\nHowever, we need to migrate to a new server, and new cobol compiler. We're under the impression that we nee...
I have a page with several controls. The controls are bound to display values which they get from the page's DataContext. What I would like to do is display another look of the page should the DataContext be null. In some cases the controls of the page should display differently if "their" property is set or not. Is is...
In WPF, if you want to bind to the DataContext of a page or a control and react to whether it's null, you can achieve this without needing an additional property like `IsDataContextSet`. Instead, you can leverage the `DataTrigger` or a `Converter` to create a more elegant solution. Here are a couple of approaches you c...
39,328
[ { "from": "human", "value": "I have a page with several controls. The controls are bound to display values which they get from the page's DataContext. What I would like to do is display another look of the page should the DataContext be null. In some cases the controls of the page should display differently...
I develop using MAMP pro on my Mac. When I start MAMP it prompts me for a password if I use port 80. If I use a higher port it doesn't prompt me, but I have to append the port number in the URL ( eg dev.local:8888 ). Does anyone know how to make it not prompt for password when using standard ports? Thank you.
When you run MAMP Pro on your Mac using port 80, it requires elevated privileges to bind to that port because it is a standard HTTP port. This is why you're prompted for a password. To use port 80 without the password prompt, you have a couple of options: ### Option 1: Use `sudo` to Start MAMP One way to avoid the pas...
35,192
[ { "from": "human", "value": "I develop using MAMP pro on my Mac. When I start MAMP it prompts me for a password if I use port 80. If I use a higher port it doesn't prompt me, but I have to append the port number in the URL ( eg dev.local:8888 ).\nDoes anyone know how to make it not prompt for password when ...
Eclipse issues warnings when a serialVersionUID is missing. The serializable class Foo does not declare a static final serialVersionUID field of type long What is serialVersionUID and why is it important? Please show an example where missing serialVersionUID will cause a problem.
In Java, the `serialVersionUID` is a unique identifier for each class that implements the `Serializable` interface. It is used during the deserialization process to ensure that a loaded class corresponds exactly to a serialized object. When an object is serialized (converted into a byte stream), its class definition,...
32,518
[ { "from": "human", "value": "Eclipse issues warnings when a serialVersionUID is missing. \n\nThe serializable class Foo does not declare a static final\n serialVersionUID field of type long\n\nWhat is serialVersionUID and why is it important? Please show an example where missing serialVersionUID will cau...
We are developing large ASP.NET applications with lot of dynmically created pages containing ASCX controls. We use a lot of jQuery everywhere. I have been reading that it would make sense to move the inline JavaScript code to the bottom of the page as it could delay the loading of the page when it's included "too early...
Moving your JavaScript to the bottom of the page is a common performance optimization technique, especially in traditional HTML applications. The idea is that placing `<script>` tags at the bottom helps the browser to render the HTML content first before executing the JavaScript. This can improve the perceived loading ...
37,520
[ { "from": "human", "value": "We are developing large ASP.NET applications with lot of dynmically created pages containing ASCX controls. We use a lot of jQuery everywhere.\nI have been reading that it would make sense to move the inline JavaScript code to the bottom of the page as it could delay the loading...
I want to use Google's Annotated Time Line Visualization. It is very easy to make this work by manually adding the lines for column & row data. This is all done through attributes of google.visualization.DataTable(). I would like to update this data table dynamically, but I do not know how. The data is on a server run...
To dynamically update the data in Google's Annotated Timeline Visualization from an MS SQL Server database using VB.NET or C#, you can create a web service or a Web API that retrieves data from the SQL Server database and serves it as JSON. This JSON data can then be fetched by the front end (JavaScript) to update the ...
34,100
[ { "from": "human", "value": "I want to use Google's Annotated Time Line Visualization. It is very easy to make this work by manually adding the lines for column & row data. This is all done through attributes of google.visualization.DataTable(). I would like to update this data table dynamically, but I do ...
I am currently running the following code based on Chapter 12.5 of the Python Cookbook: from xml.parsers import expat class Element(object): def __init__(self, name, attributes): self.name = name self.attributes = attributes self.cdata = '' self.children = [] def addChild(self, ...
Parsing large XML files with the `xml.parsers.expat` module can be slow and memory-intensive, especially if the entire file is read into memory at once as done in your `Parse` method. Instead, consider the following options to improve performance and handle large files more efficiently: ### 1. Stream Parsing with `ite...
39,102
[ { "from": "human", "value": "I am currently running the following code based on Chapter 12.5 of the Python Cookbook:\nfrom xml.parsers import expat\n\nclass Element(object):\n def __init__(self, name, attributes):\n self.name = name\n self.attributes = attributes\n self.cdata = ''\n ...
A custom HTTP header is being passed to a Servlet application for authentication purposes. The header value must be able to contain accents and other non-ASCII characters, so must be in a certain encoding (ideally UTF-8). I am provided with this piece of Java code by the developers who control the authentication enviro...
You're correct to be cautious about handling character encodings in HTTP headers, especially when dealing with non-ASCII characters. Here's a detailed explanation regarding how HTTP headers work, particularly in relation to encoding, and how to handle them properly in Java. ### 1. HTTP Headers and Encoding HTTP heade...
39,593
[ { "from": "human", "value": "A custom HTTP header is being passed to a Servlet application for authentication purposes. The header value must be able to contain accents and other non-ASCII characters, so must be in a certain encoding (ideally UTF-8).\nI am provided with this piece of Java code by the develo...
I may be going about this backwards... I have a class which is like a document and another class which is like a template. They both inherit from the same base class and I have a method to create a new document from a template (or from another document, the method it is in the base class). So, if I want to create a ne...
You're dealing with an interesting design challenge that involves object initialization and construction while trying to avoid code duplication. In C#, you cannot assign to `this` inside a constructor, which is why you're facing issues when trying to create an instance based on the template directly. Given your requi...
39,364
[ { "from": "human", "value": "I may be going about this backwards...\nI have a class which is like a document and another class which is like a template. They both inherit from the same base class and I have a method to create a new document from a template (or from another document, the method it is in the ...
I want to perform some empirical trade-off's to assess the performance of applications written in a number of different languages on a Linux platform. Are there standard algorithms that typically used for this purpose?
When assessing the performance of applications written in different programming languages on a Linux platform, there are several methodologies and algorithms you can use for empirical trade-off analysis. Here are some standard approaches and metrics to consider: ### 1. Benchmarking Benchmarking is a systematic way to ...
37,580
[ { "from": "human", "value": "I want to perform some empirical trade-off's to assess the performance of applications written in a number of different languages on a Linux platform. Are there standard algorithms that typically used for this purpose? \n" }, { "from": "gpt", "value": "When assessin...
Is it possible to define a spring-managed EJB3 hibernate listener? I have this definition in my persistence.xml: <properties> <property name="hibernate.ejb.interceptor" value="my.class.HibernateAuditInterceptor" /> <property name="hibernate.ejb.event.post-update" value="my.class.HibernateAudit...
Yes, it is possible to define a Spring-managed EJB3 Hibernate listener and interceptor, allowing you to take advantage of Spring's dependency injection features. However, it requires some additional setup, as you cannot directly specify Spring beans in the `persistence.xml` file. Here’s how you can achieve that: ### S...
31,456
[ { "from": "human", "value": "Is it possible to define a spring-managed EJB3 hibernate listener?\nI have this definition in my persistence.xml:\n<properties> \n <property name=\"hibernate.ejb.interceptor\"\n value=\"my.class.HibernateAuditInterceptor\" /> \n <property name=\"hibernate.ejb.event....
I wouldn't dare do anything complex in a database without transactions. There is nearly always a simple to use in-built command. But when you start working with other persistent data you just don't get this simple to use transaction support. Some example are file systems web services (none that I've used) Even in non...
You raise an interesting point about transaction support and its prevalence in databases compared to other systems. Here's a breakdown of why databases have built-in transaction support and why that support is less common in other data storage mechanisms: ### Why Databases Have Transaction Support 1. **ACID Propertie...
37,469
[ { "from": "human", "value": "I wouldn't dare do anything complex in a database without transactions. There is nearly always a simple to use in-built command. But when you start working with other persistent data you just don't get this simple to use transaction support. Some example are\n\nfile systems\nweb...
I just uploaded my first ASP.NET (as part of my learning of vb.net) and got into awful mess with the connection pooling (funny things happen when there are more than 1 user of your web site) all sorted now by better use of the try catch statements (well the idea was to learn) BUT I was wondering if this is the best / f...
Handling errors gracefully in a web application is crucial for providing a good user experience. Here are some general strategies you can consider when dealing with database operations and error handling in an ASP.NET application: ### 1. **Use Try-Catch Effectively** - Enclose your database access code within a `tr...
39,341
[ { "from": "human", "value": "I just uploaded my first ASP.NET (as part of my learning of vb.net) and got into awful mess with the connection pooling (funny things happen when there are more than 1 user of your web site) all sorted now by better use of the try catch statements (well the idea was to learn) BU...
I have a CSS like this ul { list-style-image:url(images/bulletArrow.gif); } ul li { background: url(images/hr.gif) no-repeat left bottom; padding: 5px 0 7px 0; } But the bullet image doesn't align properly in IE (it's fine in Firefox). I already have a background image for li, so I can't use the bullet im...
Aligning list bullets correctly across different browsers can sometimes be tricky due to inconsistencies in how browsers render list styles. In this case, since you want to maintain a custom bullet image without using it as a background image, you could try a few different approaches to align the bullets properly in In...
38,988
[ { "from": "human", "value": "I have a CSS like this\nul {\n list-style-image:url(images/bulletArrow.gif);\n}\n\nul li {\n background: url(images/hr.gif) no-repeat left bottom;\n padding: 5px 0 7px 0;\n}\n\nBut the bullet image doesn't align properly in IE (it's fine in Firefox).\nI already have a b...
I'm trying to create a jqgrid, but the table is empty. The table renders, but the data doesn't show. The data I'm getting back from the php call is: { "page":"1", "total":1, "records":"10", "rows":[ {"id":"2:1","cell":["1","image","Chief Scout","Highest Award test","0"]}, {"id":"2:2","cell":["2","image","Link Badge","...
Your jqGrid configuration and the data structure you've provided look mostly correct, but there are a few potential issues to consider that might cause the table to render without data. Here are some suggestions to help you troubleshoot the problem: 1. **HTML Table Tag**: The HTML for the table is not properly closed....
36,510
[ { "from": "human", "value": "I'm trying to create a jqgrid, but the table is empty. The table renders, but the data doesn't show.\nThe data I'm getting back from the php call is:\n{\n\"page\":\"1\",\n\"total\":1,\n\"records\":\"10\",\n\"rows\":[\n{\"id\":\"2:1\",\"cell\":[\"1\",\"image\",\"Chief Scout\",\"...
When extracting files from a ZIP file I was using the following. Sub Unzip(strFile) ' This routine unzips a file. NOTE: The files are extracted to a folder ' ' in the same location using the name of the file minus the extension. ' ' EX. C:\Test.zip will be extracted to C:\Test ' 'strFile (String) = Full path and filen...
The "The File Exists" error you're encountering usually occurs when the destination folder already has a file or folder with the same name as one being extracted from the ZIP file. The `CopyHere` method you are using does not overwrite existing files by default; hence it raises this error. Here are a few potential sol...
38,797
[ { "from": "human", "value": "When extracting files from a ZIP file I was using the following.\nSub Unzip(strFile)\n' This routine unzips a file. NOTE: The files are extracted to a folder '\n' in the same location using the name of the file minus the extension. '\n' EX. C:\\Test.zip will be extracted to C:\...
I have a VS 2005 C# project that uses a special Plugin folder to load extra DLLs (for use as nodes in an asset conversion process). I have a mixture of C# and C++ DLLs in this folder. The issue I have is that when Shadow Copying is enabled, the C++ DLLs refuse to load using Assembly.LoadFrom. I have attempted to create...
Working with a mix of C# and C++ DLLs in a Shadow Copying scenario can be complex due to the way .NET handles assemblies. Here are several approaches you can consider to work around these limitations: ### 1. Use a Separate Process for C++ Plugins Since the issue arises due to the mixing of managed and unmanaged code,...
38,985
[ { "from": "human", "value": "I have a VS 2005 C# project that uses a special Plugin folder to load extra DLLs (for use as nodes in an asset conversion process).\nI have a mixture of C# and C++ DLLs in this folder.\nThe issue I have is that when Shadow Copying is enabled, the C++ DLLs refuse to load using As...
I've been a bad programmer because I am doing a copy and paste. An example is that everytime i connect to a database and retrieve a recordset, I will copy the previous code and edit, copy the code that sets the datagridview and edit. I am aware of the phrase code reuse, but I have not actually used it. How can i utiliz...
It's great that you're looking to improve your programming practices! Code reuse is essential for maintaining clean, maintainable, and efficient code. Here are several strategies to help you achieve code reuse for your database interactions and DataGridView setup. ### 1. **Use Functions or Methods** Encapsulate your ...
36,556
[ { "from": "human", "value": "I've been a bad programmer because I am doing a copy and paste. An example is that everytime i connect to a database and retrieve a recordset, I will copy the previous code and edit, copy the code that sets the datagridview and edit. I am aware of the phrase code reuse, but I ha...
self.logger.info(msg) popinstance=poplib.POP3(self.account[0]) self.logger.info(popinstance.getwelcome()) popinstance.user(self.account[1]) popinstance.pass_(self.account[2]) try: (numMsgs, totalSize)=popinstance.stat() self.logger.info("POP contains " + str(numMsgs) + " emails")...
The issue you're encountering is related to the encoding of the email body, especially when it includes non-ASCII characters such as Chinese characters. The `=20` in the email body is a result of quoted-printable encoding, which is a method used to encode binary data into ASCII characters. In quoted-printable encoding,...
38,297
[ { "from": "human", "value": " self.logger.info(msg)\n popinstance=poplib.POP3(self.account[0])\n self.logger.info(popinstance.getwelcome())\n popinstance.user(self.account[1])\n popinstance.pass_(self.account[2])\n try:\n (numMsgs, totalSize)=popinstance.stat()\n self.logger....
When I write code like this in VS 2008: .h struct Patterns { string ptCreate; string ptDelete; string ptDrop; string ptUpdate; string ptInsert; string ptSelect; }; class QueryValidate { string query; string pattern; static Patterns pts; public: f...
The errors you're encountering in your code are related to how you've defined and initialized the static member `pts` of the `QueryValidate` class. Let's take a closer look at the relevant parts of your code and the issues that arise. ### Issues: 1. **Static Member Initialization**: When you declare a static member in...
39,848
[ { "from": "human", "value": "When I write code like this in VS 2008:\n.h\nstruct Patterns {\n string ptCreate;\n string ptDelete;\n string ptDrop;\n string ptUpdate;\n string ptInsert;\n string ptSelect;\n }; \n\nclass QueryValidate {\n string query;\n ...
I'm using Windows CE Platform Builder and my code is written in C++ . For each of the folders in the project I'm creating a lib ( the code is statically linked ) . However , there are about 20 libs so far . Is there a way to reduce their number ? I was thinking of creating a lib from other libs , but I don't know if th...
Yes, you can create a static library that consists of other static libraries in Windows CE Platform Builder, effectively reducing the number of libraries you manage. This process is known as "lib aggregation" or creating a "wrapper library." Here’s how you can do it: ### Steps to Create a Combined Library from Other L...
39,558
[ { "from": "human", "value": "I'm using Windows CE Platform Builder and my code is written in C++ . For each of the folders in the project I'm creating a lib ( the code is statically linked ) . However , there are about 20 libs so far . Is there a way to reduce their number ? I was thinking of creating a lib...
I'm trying to embed my Subversion revision number in a C++ project and am having problems setting up GNU make to do so. My makefile currently looks something like this: check-svnversion: ../shared/update-svnversion-h.pl ../shared/svnversion.h: check-svnversion shared/svnversion.o: ../shared/svnversion.h .PHONY: c...
It looks like you're facing a common problem with generated files in make. The issue is that GNU Make does not automatically re-evaluate the timestamp of prerequisites after the commands for those prerequisites have run. However, there are some strategies you can use to address your needs without requiring manual inter...
39,209
[ { "from": "human", "value": "I'm trying to embed my Subversion revision number in a C++ project and am having problems setting up GNU make to do so. My makefile currently looks something like this:\ncheck-svnversion:\n ../shared/update-svnversion-h.pl\n\n../shared/svnversion.h: check-svnversion\n\nshared/...
How do you get/set the absolute position of a MovieClip in Flash/AS3? And by absolute, I mean its position relative to the stage's origo. I currently have this setter: class MyMovieClip extends MovieClip { function set xAbs(var x:Number):void { this.x = -(this.parent.localToGlobal(new Point()).x) + x; } } T...
To correctly get and set the absolute position of a `MovieClip` in ActionScript 3 (AS3) while taking into account different stage alignments, you need to properly handle the conversion between local and global coordinates, as you've pointed out. The method you used in your setter and getter is close, but it requires so...
40,255
[ { "from": "human", "value": "How do you get/set the absolute position of a MovieClip in Flash/AS3? And by absolute, I mean its position relative to the stage's origo.\nI currently have this setter:\nclass MyMovieClip extends MovieClip\n{\n function set xAbs(var x:Number):void\n {\n this.x = -(this.pare...
I'm considering migrating a project to managed code, but I've heard that the .NET runtime is huge--several times larger than my executable binary, in fact. That just seems like the tail wagging the dog to me. But I've also been told that some CLR implementations, such as Mono, are modular, and you can create a custom...
Migrating to managed code can be a significant decision, especially considering the size and requirements of the .NET runtime. Here’s a breakdown of your questions regarding the size of various .NET runtimes, their modularity, and what to expect in terms of deployment. ### 1. Size of CLR Packages The size of the CLR ...
38,279
[ { "from": "human", "value": "I'm considering migrating a project to managed code, but I've heard that the .NET runtime is huge--several times larger than my executable binary, in fact. That just seems like the tail wagging the dog to me. But I've also been told that some CLR implementations, such as Mono,...
I am working on creating a tag cloud in Silverlight 2 and trying to bind data from a List collection to a Scale transform on a TextBlock. When running this I get an AG_E_PARSER_BAD_PROPERTY_VALUE error. Is it possible to data bind values to transforms in Silverlight 2? If not could I do something to the effect of Font...
In Silverlight 2, data binding can be somewhat limited, especially when it comes to directly binding values to transforms like `ScaleTransform`. The error you are encountering (`AG_E_PARSER_BAD_PROPERTY_VALUE`) indicates that the binding may not be able to resolve correctly at runtime for the transform properties. Ho...
37,101
[ { "from": "human", "value": "I am working on creating a tag cloud in Silverlight 2 and trying to bind data from a List collection to a Scale transform on a TextBlock. When running this I get an AG_E_PARSER_BAD_PROPERTY_VALUE error. Is it possible to data bind values to transforms in Silverlight 2? If not c...
I'm not sure how to approach this: I want a TreeView that will display some simple data from a hierarchical data structure. As a basic example (In XML, cause it's easy to type): <Node text="Root"> <Node text="Item 1"> <Node text="Item 1.1" /> </Node> <Node text="Item 2"/> </Node> The catch is that ...
Yes, you can create a `TreeView` in WPF (Windows Presentation Foundation) that can handle an infinite nesting of hierarchical data structures. The key is to use a `HierarchicalDataTemplate` which allows you to define how to display each level of your data. Here is a complete example to demonstrate how to display your...
37,163
[ { "from": "human", "value": "I'm not sure how to approach this: I want a TreeView that will display some simple data from a hierarchical data structure. As a basic example (In XML, cause it's easy to type):\n<Node text=\"Root\">\n <Node text=\"Item 1\">\n <Node text=\"Item 1.1\" />\n </Node>\n ...
What is the best practice to solve a Java VM crash if the follow conditions are true: No own or third party native code. 100% pure java The same program run on many other system without any problems. PS: With VM crash I means that the VM write a dump file like hs_err_pid1234.log and terminate.
Java VM crashes, especially those that result in an `hs_err_pid*.log` file, can be challenging to diagnose and resolve, especially when you are running pure Java code. Here are some best practices and steps you can take to troubleshoot and potentially resolve the issue: ### 1. Analyze the Dump File - **Examine the hs_...
35,078
[ { "from": "human", "value": "What is the best practice to solve a Java VM crash if the follow conditions are true:\n\nNo own or third party native code. 100% pure java\nThe same program run on many other system without any problems.\n\nPS: With VM crash I means that the VM write a dump file like hs_err_pid1...
Can anyone point me out, how can I parse/evaluate HQL and get map where key is table alias and value - full qualified class name. E.g. for HQL SELECT a.id from Foo a INNER JOIN a.test b I wish to have pairs: a, package1.Foo b. package2.TestClassName It's relatively easy to do for result set HQLQueryPlan hqlPlan = ((...
Parsing HQL (Hibernate Query Language) to extract table aliases along with their corresponding fully qualified class names requires more than just retrieving the result set metadata. You would need to analyze the HQL string itself to identify the aliases and map them to the entities they represent. Here's a general ap...
38,965
[ { "from": "human", "value": "Can anyone point me out, how can I parse/evaluate HQL and get map where key is table alias and value - full qualified class name.\nE.g. for HQL\n\nSELECT a.id from Foo a INNER JOIN a.test b\n\nI wish to have pairs:\na, package1.Foo\nb. package2.TestClassName\nIt's relatively eas...
I´m using Transaction Binding=Explicit Unbind in the connection string as recommended here since I´m also using TransactionScope with timeout. The problem is that the connections does not seem to close after being disposed and eventually there are no more connections available in the connection pool. I got the same res...
When you're using explicit transaction binding with `TransactionScope` and noticing that connections remain open in the connection pool, this can often be attributed to how the connections are being managed under transaction scopes and connection pooling behaviors. Here are some strategies to ensure that connections ar...
36,994
[ { "from": "human", "value": "I´m using Transaction Binding=Explicit Unbind in the connection string as recommended here since I´m also using TransactionScope with timeout. The problem is that the connections does not seem to close after being disposed and eventually there are no more connections available i...
What are the hidden features of Maven2?
Maven 2 introduced a variety of features that may not be immediately obvious to all users. While many users are familiar with core functionalities, there are several less-known or "hidden" features that can enhance the Maven experience: 1. **Profiles**: Maven allows you to define different profiles in your `pom.xml` f...
37,755
[ { "from": "human", "value": "What are the hidden features of Maven2?\n" }, { "from": "gpt", "value": "Maven 2 introduced a variety of features that may not be immediately obvious to all users. While many users are familiar with core functionalities, there are several less-known or \"hidden\" fea...
I'm dealing with an issue with my current employer that has seriously made me consider seeking employment elsewhere. They are under the impression that 100% of custom development should be eliminated and replaced with COTS products, such as SharePoint. While I realize that this is not a realistic expectation, I've fo...
It sounds like you're in a challenging situation where your professional expertise is not being recognized or valued in the decision-making process. This can be incredibly frustrating, especially when you know that custom development could better serve your customers’ needs. Here are some strategies you might consider ...
40,110
[ { "from": "human", "value": "I'm dealing with an issue with my current employer that has seriously made me consider seeking employment elsewhere. They are under the impression that 100% of custom development should be eliminated and replaced with COTS products, such as SharePoint. While I realize that thi...
I have a Google Map that suddenly stopped working for no apparent reason (I hadn't touched the code for months, but the wrapper code from our CMS may have changed without Corporate telling me). http://www.democratandchronicle.com/section/builder (sorry about the nasty HTML outside the map, most of that comes from our c...
It looks like you are using an older version of the Google Maps API based on the syntax (`GEvent.addListener`, `marker.openInfoWindowHtml`, etc.). Google has since transitioned to the Maps JavaScript API v3, which has a different syntax and structure. Here are a few things to check and try to troubleshoot the issue wi...
40,124
[ { "from": "human", "value": "I have a Google Map that suddenly stopped working for no apparent reason (I hadn't touched the code for months, but the wrapper code from our CMS may have changed without Corporate telling me).\nhttp://www.democratandchronicle.com/section/builder\n(sorry about the nasty HTML out...
I wrote code to set permission of the folder. Function I developed was public void SetPermission(string user,FileSystemRights rights) { DirectoryInfo dInfo = new DirectoryInfo(folderPath); DirectorySecurity oDirectorySecurity = new DirectorySecurity(); oDirectorySecurity.AddAccessRule(new FileSystemAccessR...
The behavior you're observing is due to the way permissions are handled in the Windows file system and how they are displayed in the Security tab of folder properties. ### Explanation: 1. **Explicit vs. Inherited Permissions**: In Windows, permissions can be explicitly set for users or groups, or they can be inherited...
38,518
[ { "from": "human", "value": "I wrote code to set permission of the folder. Function I developed was\npublic void SetPermission(string user,FileSystemRights rights)\n{\n DirectoryInfo dInfo = new DirectoryInfo(folderPath);\n DirectorySecurity oDirectorySecurity = new DirectorySecurity();\n\n oDirect...
I want to cache custom data in an ASP.NET application. I am putting lots of data into it, such as List<objects>, and other objects. Is there a best practice for this? Since if I use a static data, if the w3p.exe dies or gets recycled, the cache will need to be filled again. The database is also getting updated by other...
Caching in an ASP.NET application can significantly improve performance, but it also requires careful management to ensure that the cache remains valid and up-to-date. Here are some best practices and strategies for caching in your scenario: ### 1. Caching Strategies 1. **In-Memory Caching**: - Use the `MemoryCach...
40,036
[ { "from": "human", "value": "I want to cache custom data in an ASP.NET application. I am putting lots of data into it, such as List<objects>, and other objects.\nIs there a best practice for this? Since if I use a static data, if the w3p.exe dies or gets recycled, the cache will need to be filled again.\nTh...
My software authorizes the user prior to booting Mac OS X (Tiger and Leopard.) I want to use SFAuthorizationPluginView to create a plugin to attempt to use our pre-boot authorization (cached securely) for user login to Mac OS X for single-sign-on capability. I have not yet validated if that will even work for Leopard...
Creating a plugin to interface with the authorization system in Mac OS X Tiger and Leopard can be a complex task, particularly when dealing with pre-boot authorization. Here are some points to consider while you work on your implementation: ### SFAuthorizationPluginView Overview `SFAuthorizationPluginView` is part of ...
38,494
[ { "from": "human", "value": "My software authorizes the user prior to booting Mac OS X (Tiger and Leopard.) I want to use SFAuthorizationPluginView to create a plugin to attempt to use our pre-boot authorization (cached securely) for user login to Mac OS X for single-sign-on capability. I have not yet val...
Is it possible to use BindingSource.find on multple columns? I have a treeview and a combobox. The combobox provides the ID that is used to build the treeview. When I select a node in the tree view I want to display the details/child information for the ID from the combobox and the tag/ID value from the tree Node. ...
Using `BindingSource.Find` to search based on multiple columns in a single call isn't directly supported, as `BindingSource.Find` can only search based on one column at a time. However, you can implement the desired functionality in other ways. Below is a general approach on how to achieve the behavior you want with a ...
37,698
[ { "from": "human", "value": "Is it possible to use BindingSource.find on multple columns?\nI have a treeview and a combobox. The combobox provides the ID that is used to build the treeview. When I select a node in the tree view I want to display the details/child information for the ID from the combobox a...
I'm quickly falling in love with ASP.NET MVC beta, and one of the things I've decided I won't sacrifice in deploying to my IIS 6 hosting environment is the extensionless URL. Therefore, I'm weighing the consideration of adding a wildcard mapping, but everything I read suggests a potential performance hit when using thi...
Your situation is quite common for developers who want to utilize extensionless URLs with ASP.NET MVC in legacy hosting environments like IIS 6. Let's break down your questions one by one. ### 1. Benchmark Information on Wildcard Mappings Regarding benchmarks and performance tests, there aren't many formal studies sp...
37,945
[ { "from": "human", "value": "I'm quickly falling in love with ASP.NET MVC beta, and one of the things I've decided I won't sacrifice in deploying to my IIS 6 hosting environment is the extensionless URL. Therefore, I'm weighing the consideration of adding a wildcard mapping, but everything I read suggests a...
I have been learning C++ for three months now and in that time created a number of applications for my company. I consider myself fairly comfortable with C++ / MFC and STL, however I don't just want to be an OK programmer, I want to be a good programmer. I have a few books on best practices but I was wondering if anyon...
It's great to hear that you're committed to becoming a better programmer in C++! Improving your skills involves not just learning the language, but also understanding design principles, best practices, and software development methodologies. Here are some reading materials and disciplines to help you on your journey: ...
39,018
[ { "from": "human", "value": "I have been learning C++ for three months now and in that time created a number of applications for my company. I consider myself fairly comfortable with C++ / MFC and STL, however I don't just want to be an OK programmer, I want to be a good programmer. I have a few books on be...