instruction
stringlengths
14
27.6k
completion
stringlengths
3
38.3k
__original_row_idx
int64
0
50k
conversations
listlengths
2
2
Is there a way to have Linux read ahead when cloning a disk? I use the program named "dd" to clone disks. The last time I did this it seemed as though the OS was reading then writing but never at the same time. Ideally, the destination disk would be constantly writing without waiting that's of course if the source d...
When using `dd` to clone disks, it is common for the process to be limited by the way it reads from the source and writes to the destination. While `dd` does not inherently perform simultaneous reading and writing, there are several methods to improve the performance of disk cloning by optimizing read-ahead and write c...
11,734
[ { "from": "human", "value": "Is there a way to have Linux read ahead when cloning a disk? I use the program named \"dd\" to clone disks. The last time I did this it seemed as though the OS was reading then writing but never at the same time. Ideally, the destination disk would be constantly writing witho...
What is the web config syntax for specifying a WCF WebService Proxy's Default Target Endpoint? Specifically, I'm trying to configure the address that the client uses for locating the .asmx of the webservice
In a WCF application, when you're using a service reference to a web service (such as an ASMX web service), the configuration settings are typically defined in the `app.config` or `web.config` file, depending on whether it's a desktop application or a web application. To specify the default target endpoint for a WCF W...
13,282
[ { "from": "human", "value": "What is the web config syntax for specifying a WCF WebService Proxy's Default Target Endpoint?\nSpecifically, I'm trying to configure the address that the client uses for locating the .asmx of the webservice\n" }, { "from": "gpt", "value": "In a WCF application, when...
I often have data in Excel or text that I need to get into SqlServer. I can use ODBC to query the Excel file and I can parse the text file. What I want though is some tool that will just grab the data and put it into tables with little / no effort. Does anyone know of such a tool?
There are several tools and methods that can help you easily import data from Excel or text files into SQL Server with minimal effort. Here are some popular options: 1. **SQL Server Integration Services (SSIS)**: - SSIS is a powerful ETL (Extract, Transform, Load) tool that comes with SQL Server. It allows you to c...
12,166
[ { "from": "human", "value": "I often have data in Excel or text that I need to get into SqlServer. I can use ODBC to query the Excel file and I can parse the text file. What I want though is some tool that will just grab the data and put it into tables with little / no effort. Does anyone know of such a t...
Apparently xrange is faster but I have no idea why it's faster (and no proof besides the anecdotal so far that it is faster) or what besides that is different about for i in range(0, 20): for i in xrange(0, 20):
The difference between `range()` and `xrange()` is a concept that pertains to Python 2, as `xrange()` does not exist in Python 3. Here's a breakdown of the differences and why `xrange()` is generally considered faster in Python 2: ### Python 2: `range()` vs. `xrange()` 1. **Return Type**: - `range()`: When you cal...
14,738
[ { "from": "human", "value": "Apparently xrange is faster but I have no idea why it's faster (and no proof besides the anecdotal so far that it is faster) or what besides that is different about\nfor i in range(0, 20):\nfor i in xrange(0, 20):\n\n" }, { "from": "gpt", "value": "The difference bet...
I'm looking for a good TraceListener for .Net that supports rolling over the log file based on size limits. Constraints Uses .Net built in Trace logging Independent class or binary that's not part of some gigantic library Allows rolling over a log file based on size
For .NET applications, if you want a lightweight solution for logging that supports rolling over log files based on size limits, you can create a custom `TraceListener` that fulfills your requirements without relying on a large library. Below is an example implementation that demonstrates how you can achieve this. ###...
12,839
[ { "from": "human", "value": "I'm looking for a good TraceListener for .Net that supports rolling over the log file based on size limits. \nConstraints\n\nUses .Net built in Trace logging\nIndependent class or binary that's not part of some gigantic library\nAllows rolling over a log file based on size\n\n"...
How do I generate WSDL from a Web Service in Ruby using Soap4R (SOAP::RPC::StandaloneServer) that would be consumed from .NET?
Generating a WSDL (Web Services Description Language) file from a Ruby web service using the Soap4R library can be a bit tricky, especially when you want to ensure compatibility with .NET clients. Below are steps you can follow to create a SOAP web service in Ruby using Soap4R and generate a WSDL. ### Prerequisites M...
9,851
[ { "from": "human", "value": "How do I generate WSDL from a Web Service in Ruby using Soap4R (SOAP::RPC::StandaloneServer) that would be consumed from .NET?\n" }, { "from": "gpt", "value": "Generating a WSDL (Web Services Description Language) file from a Ruby web service using the Soap4R library...
Firebug is the most convenient tool I've found for editing CSS - so why isn't there a simple "save" option for CSS? I am always finding myself making tweaks in Firebug, then going back to my original .css file and replicating the tweaks. Has anyone come up with a better solution? EDIT: I'm aware the code is stored on a...
It sounds like you're encountering a common frustration when working with browser developer tools like Firebug. While Firebug provides a powerful interface for real-time CSS editing, it indeed lacks a straightforward "save" or "export" feature for stylesheets. Here are some alternative solutions and tools you might con...
14,781
[ { "from": "human", "value": "Firebug is the most convenient tool I've found for editing CSS - so why isn't there a simple \"save\" option for CSS?\nI am always finding myself making tweaks in Firebug, then going back to my original .css file and replicating the tweaks.\nHas anyone come up with a better solu...
I'm looking for an internal representation format for text, which would support basic formatting (font face, size, weight, indentation, basic tables, also supporting the following features: Bidirectional input (Hebrew, Arabic, etc.) Multi-language input (i.e. UTF-8) in same text field Anchored footnotes (i.e. a supers...
Creating an internal representation format for text that supports the features you've outlined is a complex task, but there are several approaches you could consider. Below are some options, along with some insights into how they might work with a web-editable context: ### 1. **Using Custom JSON or XML Format** You co...
12,945
[ { "from": "human", "value": "I'm looking for an internal representation format for text, which would support basic formatting (font face, size, weight, indentation, basic tables, also supporting the following features:\n\nBidirectional input (Hebrew, Arabic, etc.)\nMulti-language input (i.e. UTF-8) in same ...
I've set up wildcard mapping on IIS 6, by adding "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll", and ensured "Verify that file exists" is not checked : on the "websites" directory in IIS on the website However, after a iisreset, when I go to http://myserver/something.gif, I still get IIS 404 error, ...
It looks like you are trying to set up wildcard mapping in IIS 6 for ASP.NET to handle requests for file types that are not typically processed by the ASP.NET runtime, such as `.gif`. While you've taken the right steps to configure the wildcard mapping, there are some additional considerations to ensure that everything...
13,292
[ { "from": "human", "value": "I've set up wildcard mapping on IIS 6, by adding \"C:\\WINDOWS\\Microsoft.NET\\Framework\\v2.0.50727\\aspnet_isapi.dll\", and ensured \"Verify that file exists\" is not checked :\n\non the \"websites\" directory in IIS\non the website\n\nHowever, after a iisreset, when I go to h...
Some 4 years back, I followed this MSDN article for DateTime usage best practices for building a .Net client on .Net 1.1 and ASMX web services (with SQL 2000 server as the backend). I still remember the serialization issues I had with DateTime and the testing effort it took for servers in different time zones. My quest...
When dealing with date and time across different time zones, especially in a distributed system involving SQL Server 2008, WCF (Windows Communication Foundation), and .NET clients, it is essential to establish a consistent and robust strategy. Below are some best practices and considerations for handling DateTime acros...
12,616
[ { "from": "human", "value": "Some 4 years back, I followed this MSDN article for DateTime usage best practices for building a .Net client on .Net 1.1 and ASMX web services (with SQL 2000 server as the backend). I still remember the serialization issues I had with DateTime and the testing effort it took for ...
In the Flex framework a custom preloader can be used while the site is loading. In the Adobe docs it specifies that 'the progress bar [preloader] is displayed if less than half of the application is downloaded after 700 milliseconds of downloading.' However I ALWAYS want the preloader to appear instantly since I know t...
Certainly! If you want to ensure that your custom preloader appears instantly when your application starts loading, you can achieve this by modifying the default behavior of the preloader in the Flex framework. Here's a straightforward approach to accomplish that: ### Steps to Display the Preloader Instantly: 1. **Cr...
11,539
[ { "from": "human", "value": "In the Flex framework a custom preloader can be used while the site is loading.\nIn the Adobe docs it specifies that 'the progress bar [preloader] is displayed if less than half of the application is downloaded after 700 milliseconds of downloading.'\nHowever I ALWAYS want the p...
When I try the following lookup in my code: Context initCtx = new InitialContext(); Context envCtx = (Context) initCtx.lookup("java:comp/env"); return (DataSource) envCtx.lookup("jdbc/mydb"); I get the following exception: java.sql.SQLException: QueryResults: Unable to initialize naming context: Name java:comp i...
The issue you're encountering with the `java:comp/env` naming context not being bound usually stems from the configuration of the JNDI resources and how they are defined in the context of your application. Since you are using Embedded JBoss with Tomcat, there are a few key steps you need to verify to ensure that your J...
11,797
[ { "from": "human", "value": "When I try the following lookup in my code:\nContext initCtx = new InitialContext();\nContext envCtx = (Context) initCtx.lookup(\"java:comp/env\");\nreturn (DataSource) envCtx.lookup(\"jdbc/mydb\"); \n\nI get the following exception:\njava.sql.SQLException: QueryResults: Unable ...
I am trying to read an Http response stream twice via the following: HttpWebResponse response = (HttpWebResponse)request.GetResponse(); stream = response.GetResponseStream(); RssReader reader = new RssReader(stream); do { element = reader.Read(); if (element is RssChannel) { feed.Channels.Add((RssChannel)elem...
You are encountering a common issue when working with streams: once you read from a stream, its position is moved to the end, and you cannot read it again unless the stream supports seeking (which many network streams do not). To solve your problem, you can read the response stream into a memory buffer (like a `Memory...
15,191
[ { "from": "human", "value": "I am trying to read an Http response stream twice via the following:\nHttpWebResponse response = (HttpWebResponse)request.GetResponse();\nstream = response.GetResponseStream();\nRssReader reader = new RssReader(stream);\ndo\n{\n element = reader.Read();\n if (element is RssCha...
Simply put, is there a way to create a 2D javascript array using similar syntax to this? var newArray = [ [0, 1, 2], [3, 4, 5], [6, 7, 8] ]
Yes, the syntax you've provided is already a valid way to create a 2D array in JavaScript. In JavaScript, a 2D array is essentially an array of arrays. Your example creates an array called `newArray` that contains three sub-arrays, each representing a row. Here’s your code again for clarity: ```javascript var newArra...
18,464
[ { "from": "human", "value": "Simply put, is there a way to create a 2D javascript array using similar syntax to this?\nvar newArray = [\n [0, 1, 2],\n [3, 4, 5],\n [6, 7, 8]\n]\n\n" }, { "from": "gpt", "value": "Yes, the syntax you've provided is already a valid way to create a 2D array...
I'm attempting to debug my web application with FireFox3. However, when a JSON feed comes from my application, Firefox wants to open up the "application/json" in a new program. Is there a way to configure FireFox3 to handle JSON like regular text files and open up the JSON in the current tab? Thanks.
In Firefox 3, you can configure how the browser handles JSON responses. By default, Firefox might not display JSON content directly in the browser, and instead prompts you to download it or open it with an external application. However, you can change this behavior to view JSON as plain text in the current tab. Here a...
13,924
[ { "from": "human", "value": "I'm attempting to debug my web application with FireFox3. However, when a JSON feed comes from my application, Firefox wants to open up the \"application/json\" in a new program. Is there a way to configure FireFox3 to handle JSON like regular text files and open up the JSON i...
I am involved in the process of porting a system containing several hundreds of ksh scripts from AIX, Solaris and HPUX to Linux. I have come across the following difference in the way ksh behaves on the two systems: #!/bin/ksh flag=false echo "a\nb" | while read x do flag=true done echo "flag = ${flag}" exit 0 On ...
The behavior you're encountering is related to how different implementations of `ksh` (KornShell) handle variable scope when using a subshell. In your original example, the `while read` loop is being executed in a subshell due to the way you pipe the output to it. This results in the `flag` variable being set in the su...
13,603
[ { "from": "human", "value": "I am involved in the process of porting a system containing several hundreds of ksh scripts from AIX, Solaris and HPUX to Linux. I have come across the following difference in the way ksh behaves on the two systems:\n#!/bin/ksh\nflag=false\necho \"a\\nb\" | while read x\ndo\n ...
I make a lot of web applications and from time to time I need a color picker. What's one that I can use like an API and doesn't require a lot of code to plug in? I also need it to work in all browsers.
A great option for a color picker that can be used as an API and is easy to integrate into web applications is the **Coloris** library. It is a lightweight, simple color picker that works across all modern browsers and requires minimal setup. Here's how you can use it: ### Step 1: Include Coloris in Your Project You ...
14,975
[ { "from": "human", "value": "I make a lot of web applications and from time to time I need a color picker. What's one that I can use like an API and doesn't require a lot of code to plug in? I also need it to work in all browsers.\n" }, { "from": "gpt", "value": "A great option for a color picke...
Running sp_attach_single_file_db gives this error: The log scan number (10913:125:2) passed to log scan in database 'myDB' is not valid Isn't it supposed to re-create the log file? How else would I be able to attach/repair that .mdf file?
The error message you are encountering, "The log scan number (10913:125:2) passed to log scan in database 'myDB' is not valid," typically indicates that the SQL Server cannot read the transaction log and, as a result, cannot attach the MDF file properly. This issue usually occurs when the log file (LDF) is missing or c...
14,258
[ { "from": "human", "value": "Running sp_attach_single_file_db gives this error:\nThe log scan number (10913:125:2) passed to log scan in database 'myDB' is not valid\n\nIsn't it supposed to re-create the log file? \nHow else would I be able to attach/repair that .mdf file?\n" }, { "from": "gpt", ...
I've created a new C++ project in Visual Studio 2008. No code has been written yet; Only project settings have been changed. When I compile the project, I receive the following fatal error: fatal error LNK1104: cannot open file 'C:\Program.obj'
The error you're encountering, **LNK1104: cannot open file 'C:\Program.obj'**, suggests that the linker is having trouble finding or accessing the object file named `Program.obj`. This typically happens because of an issue with the file path, especially since it seems to be trying to interpret the path `C:\Program` inc...
14,623
[ { "from": "human", "value": "I've created a new C++ project in Visual Studio 2008. No code has been written yet; Only project settings have been changed.\nWhen I compile the project, I receive the following fatal error:\n\nfatal error LNK1104: cannot open file 'C:\\Program.obj'\n\n" }, { "from": "...
We all know the various ways of testing OO systems. However, it looks like I'll be going to do a project where I'll be dealing with PLC ladder logic (don't ask :/), and I was wondering if there's a good way of testing the validity of the system. The only way I see so far is simply constructing a huge table with all kno...
Testing PLC (Programmable Logic Controller) ladder logic systems can indeed be quite different from testing object-oriented systems, but there are several strategies you can employ to ensure the validity and reliability of your ladder logic programs. Here are some approaches to consider: ### 1. **Simulation Tools** ...
13,288
[ { "from": "human", "value": "We all know the various ways of testing OO systems. However, it looks like I'll be going to do a project where I'll be dealing with PLC ladder logic (don't ask :/), and I was wondering if there's a good way of testing the validity of the system.\nThe only way I see so far is sim...
how do i implement an eval script in a sever side control? eg. <a runat="server" href="?id=<%= Eval("Id") %>">hello world</a>
In ASP.NET Web Forms, using `<%= Eval("Id") %>` to generate a server-side hyperlink in an `HtmlAnchor` control (or any other server-side control) can be a bit tricky because `Eval` is intended for use in data-binding scenarios like in `Repeater`, `GridView`, etc. However, if you're trying to dynamically set the `href...
13,306
[ { "from": "human", "value": "how do i implement an eval script in a sever side control?\neg. <a runat=\"server\" href=\"?id=<%= Eval(\"Id\") %>\">hello world</a>\n" }, { "from": "gpt", "value": "In ASP.NET Web Forms, using `<%= Eval(\"Id\") %>` to generate a server-side hyperlink in an `HtmlAnch...
Is it possible to listen for a certain hotkey (e.g:Ctrl-I) and then perform a specific action? My application is written in C, will only run on Linux, and it doesn't have a GUI. Are there any libraries that help with this kind of task? EDIT: as an example, amarok has global shortcuts, so for example if you map a combin...
Yes, it is possible to listen for global hotkeys in a console application on Linux. There are several libraries and methods you can use to achieve this. Here are a few options: ### 1. **X11 Libraries** If your application runs in an X11 environment, you can use the Xlib or XKB libraries to register global hotkeys. - ...
14,012
[ { "from": "human", "value": "Is it possible to listen for a certain hotkey (e.g:Ctrl-I) and then perform a specific action? My application is written in C, will only run on Linux, and it doesn't have a GUI. Are there any libraries that help with this kind of task?\nEDIT: as an example, amarok has global sho...
A sysadmin teacher told me one day that I should learn to use "make" because I could use it for a lot of other things that just triggering complilations. I never got the chance to talk longer about it. Do you have any good example ? As a bonus, isn't it this tool deprecated, and what are modern alternatives (for the co...
`make` is a build automation tool that is primarily used for managing and maintaining groups of programs and files. While it was originally designed to automate the compilation of programs, it can be used for a variety of tasks beyond just compiling code. Here are some examples of how `make` can be utilized: ### Examp...
8,759
[ { "from": "human", "value": "A sysadmin teacher told me one day that I should learn to use \"make\" because I could use it for a lot of other things that just triggering complilations.\nI never got the chance to talk longer about it. Do you have any good example ?\nAs a bonus, isn't it this tool deprecated,...
I am creating a downloading application and I wish to preallocate room on the harddrive for the files before they are actually downloaded as they could potentially be rather large, and noone likes to see "This drive is full, please delete some files and try again." So, in that light, I wrote this. // Quick, and very di...
To preallocate space for a file on the filesystem without actually writing data to it, you can use the `SetFilePointerEx` and `SetEndOfFile` Windows API functions, which allow you to efficiently allocate space for a file. This method avoids the overhead of writing large amounts of data, as it simply sets the size of th...
12,479
[ { "from": "human", "value": "I am creating a downloading application and I wish to preallocate room on the harddrive for the files before they are actually downloaded as they could potentially be rather large, and noone likes to see \"This drive is full, please delete some files and try again.\" So, in that...
How would I go about replacing Windows Explorer with a third party tool such as TotalCommander, explorer++, etc? I would like to have one of those load instead of win explorer when I type "C:\directoryName" into the run window. Is this possible?
Yes, it is possible to replace Windows Explorer with a third-party file manager like Total Commander or Explorer++ when you type a path into the Run dialog (Win + R). However, this typically involves modifying the Windows registry or using a third-party tool that can redirect file management requests. Here's how you ca...
13,687
[ { "from": "human", "value": "How would I go about replacing Windows Explorer with a third party tool such as TotalCommander, explorer++, etc?\nI would like to have one of those load instead of win explorer when I type \"C:\\directoryName\" into the run window. Is this possible?\n" }, { "from": "gpt"...
Specifically, I am looking to use CA on properties of types other than integers and doubles CGRect, CGPoint, CGSize, and CGAffineTransform structures CATransform3D data structures CGColor and CGImage references and in objects other than CALayers or NSViews
Core Animation (CA) is primarily designed for animating properties of `CALayer` and related types, and it operates most effectively within the UIKit and AppKit frameworks in iOS and macOS, respectively. However, if you're looking to animate properties of other types or objects, there are some approaches you can take: ...
14,573
[ { "from": "human", "value": "Specifically, I am looking to use CA on properties of types other than \n\nintegers and doubles\nCGRect, CGPoint, CGSize, and CGAffineTransform structures\nCATransform3D data structures\nCGColor and CGImage references\n\nand in objects other than CALayers or NSViews\n" }, { ...
I'm trying to do the following: User goes to web page, uploads XLS file use ADO .NET to open XLS file using JET engine connection to locally uploaded file on web server This all works fine locally (my machine as the client and the web server) - and in fact is working on the customer's web server with remote clients b...
It seems you're encountering an issue with opening an Excel file using the Microsoft JET OLEDB provider, specifically in an environment with certain restrictions. Here are several steps you can take to troubleshoot and resolve the issue: ### 1. Check File Path and Permissions - **Verify the File Path**: Make sure that...
13,861
[ { "from": "human", "value": "I'm trying to do the following:\n\nUser goes to web page, uploads XLS file\nuse ADO .NET to open XLS file using JET engine connection to locally uploaded file on web server\n\nThis all works fine locally (my machine as the client and the web server) - and in fact is working on t...
For example, if I have an echo statement, there's no guarantee that the browser might display it right away, might display a few dozen echo statements at once, and might wait until the entire page is done before displaying anything. Is there a way to have each echo appear in a browser as it is executed?
When you use PHP's `echo` statement in a web application, the output is typically buffered until the entire script has completed execution. However, if you want to send output to the browser immediately, you can use output buffering techniques and control the flush of the output. Here are some steps to achieve this: #...
14,899
[ { "from": "human", "value": "For example, if I have an echo statement, there's no guarantee that the browser might display it right away, might display a few dozen echo statements at once, and might wait until the entire page is done before displaying anything.\nIs there a way to have each echo appear in a ...
Might be subjective and/or discussion.. but here goes. I've been asked to estimate a feature for the next big thing at work. I break it down.. use story points come up with a estimate. The feature however calls for interfacing with GoDiagrams a third party diagramming component in addition to various other company init...
This situation is a common challenge in software development, particularly when working with complex systems and third-party components. Here are some strategies and considerations that might help you effectively estimate and manage your work while handling spikes: ### 1. Understanding Spikes: - **Purpose**: Spikes ar...
13,765
[ { "from": "human", "value": "Might be subjective and/or discussion.. but here goes.\nI've been asked to estimate a feature for the next big thing at work. I break it down.. use story points come up with a estimate. The feature however calls for interfacing with GoDiagrams a third party diagramming component...
I'd like to do some basic profiling of my code, but found that the DateTime.Now in C# only have a resolution of about 16 ms. There must be better time keeping constructs that I haven't yet found.
If you're looking for better time resolution than `DateTime.Now` in C#, you can use `Stopwatch` from the `System.Diagnostics` namespace, which provides a higher-resolution timing mechanism suitable for profiling and measuring performance. Here's a quick guide on how to use `Stopwatch` for profiling your code: ### Usi...
15,941
[ { "from": "human", "value": "I'd like to do some basic profiling of my code, but found that the DateTime.Now in C# only have a resolution of about 16 ms. There must be better time keeping constructs that I haven't yet found.\n" }, { "from": "gpt", "value": "If you're looking for better time reso...
Does anyone know how to solve this java error? java.io.IOException: Invalid keystore format I get it when I try and access the certificate store from the Java option in control panels. It's stopping me from loading applets that require elevated privileges. Error Image
The error message you're encountering, `java.io.IOException: Invalid keystore format`, typically indicates that the Java application is trying to read a keystore file that is not in a valid format or is corrupted. Here are several steps you can take to troubleshoot and resolve this issue: 1. **Check Keystore File**: E...
11,325
[ { "from": "human", "value": "Does anyone know how to solve this java error?\njava.io.IOException: Invalid keystore format\n\nI get it when I try and access the certificate store from the Java option in control panels. It's stopping me from loading applets that require elevated privileges.\nError Image\n" ...
I have an if/else statement in the controller and 2 different types of views to display depending on the outcome. So I have my 2 views in a .aspx page with a placeholder around each. How do I set the property placeholder.Visible from the controller? Or by the theory of MVC should I even be doing that sort of presentati...
In MVC (Model-View-Controller) architecture, it is important to maintain a clean separation of concerns. The controller is responsible for handling user input, working with the model to retrieve data, and deciding which view to render. The view is responsible for rendering the data in a way that can be presented to the...
15,466
[ { "from": "human", "value": "I have an if/else statement in the controller and 2 different types of views to display depending on the outcome.\nSo I have my 2 views in a .aspx page with a placeholder around each.\nHow do I set the property placeholder.Visible from the controller? Or by the theory of MVC sho...
Is there an efficient way to tell if a DOM element (in an HTML document) is currently visible (appears in the viewport)? (The question refers to Firefox.)
Yes, there is an efficient way to check if a DOM element is currently visible in the viewport using JavaScript. The most common way to do this is by using the `Element.getBoundingClientRect()` method, which returns the size of an element and its position relative to the viewport. Here's how you can do it: 1. Use `get...
16,292
[ { "from": "human", "value": "Is there an efficient way to tell if a DOM element (in an HTML document) is currently visible (appears in the viewport)?\n(The question refers to Firefox.)\n" }, { "from": "gpt", "value": "Yes, there is an efficient way to check if a DOM element is currently visible ...
Any code I've seen that uses Regexes tends to use them as a black box: Put in string Magic Regex Get out string This doesn't seem a particularly good idea to use in production code, as even a small change can often result in a completely different regex. Apart from cases where the standard is permanent and unchanging...
You raise a valid point about the use of regular expressions (regexes) as black boxes in production code. While regexes are powerful tools for pattern matching and manipulation in strings, they come with trade-offs, especially when it comes to readability, maintainability, and error handling. Here are some consideratio...
14,256
[ { "from": "human", "value": "Any code I've seen that uses Regexes tends to use them as a black box:\n\nPut in string\nMagic Regex\nGet out string\n\nThis doesn't seem a particularly good idea to use in production code, as even a small change can often result in a completely different regex.\nApart from case...
When developing (works fine live) the pages for our website don't pick up the correct CSS until the user has authenticated (logged on). So the Logon and Logoff forms look bad, but once inside the site, the CSS works again. I'm guessing it's some kind of authentication issue? Haven't really looked into it too much becau...
It sounds like you're experiencing a CSS loading issue on your website that is dependent on the user's authentication state. Here are several potential causes and solutions you can explore to resolve this issue: ### 1. **Check CSS Pathing:** - Ensure that the paths to your CSS files are correct and consistent for b...
10,110
[ { "from": "human", "value": "When developing (works fine live) the pages for our website don't pick up the correct CSS until the user has authenticated (logged on).\nSo the Logon and Logoff forms look bad, but once inside the site, the CSS works again.\nI'm guessing it's some kind of authentication issue? H...
I have a problem with a string in C++ which has several words in Spanish. This means that I have a lot of words with accents and tildes. I want to replace them for their not accented counterparts. Example: I want to replace this word: "había" for habia. I tried replace it directly but with replace method of string clas...
The approach you're using has a few issues. Specifically, when you try to replace accented characters with their non-accented counterparts using `std::string::find_first_of`, you're actually checking for the presence of whole words instead of single characters, which is not what you want. Here's a revised version of ...
12,630
[ { "from": "human", "value": "I have a problem with a string in C++ which has several words in Spanish. This means that I have a lot of words with accents and tildes. I want to replace them for their not accented counterparts. Example: I want to replace this word: \"había\" for habia. I tried replace it dire...
I have a couple of triggers on a table that I want to keep separate and would like to priortize them. I could have just one trigger and do the logic there, but I was wondering if there was an easier/logical way of accomplishing this of having it in a pre-defined order ?
In SQL databases, particularly with systems like PostgreSQL, MySQL, and Oracle, the execution of triggers is typically governed by the order in which they were created, with some exceptions based on specific database behaviors or configurations. However, managing the order of trigger execution explicitly can be a chall...
14,995
[ { "from": "human", "value": "I have a couple of triggers on a table that I want to keep separate and would like to priortize them.\nI could have just one trigger and do the logic there, but I was wondering if there was an easier/logical way of accomplishing this of having it in a pre-defined order ?\n" },...
In this MSDN article, MS explains how to specify other delimiters besides commas for csv-type exports from SSRS 2005, however, literal tab characters are stripped by the config file parser, and it doesn't appear that MS has provided a workaround. This entry on Microsoft Connect seems to confirm this. Has anyone develop...
Exporting tab-delimited files from SSRS 2005 can indeed be challenging due to the limitations you mentioned. While Microsoft’s built-in features primarily support comma-separated values, there are a few approaches that have been explored by the community to create custom renderers or use alternative methods for generat...
15,199
[ { "from": "human", "value": "In this MSDN article, MS explains how to specify other delimiters besides commas for csv-type exports from SSRS 2005, however, literal tab characters are stripped by the config file parser, and it doesn't appear that MS has provided a workaround.\nThis entry on Microsoft Connect...
I'm trying to write some C# code to get to a specific folder in an Outlook mailbox. I have the following code: Outlook.Application oApp = new Outlook.Application(); Outlook.NameSpace oNS = oApp.GetNamespace("mapi"); Outlook.Recipient oRecip = oNS.CreateRecipient("AccountNameHere"); oRecip.Resolve(); if (oRecip.Resolved...
To navigate through the top-level folders in a shared Outlook mailbox and access a specific folder using C#, you can indeed use the `GetFolderFromID` method. However, to utilize this method, you'll first need to enumerate through the top-level folders to find the desired folder's EntryID and StoreID. Here's how you ca...
12,660
[ { "from": "human", "value": "I'm trying to write some C# code to get to a specific folder in an Outlook mailbox. I have the following code:\nOutlook.Application oApp = new Outlook.Application();\nOutlook.NameSpace oNS = oApp.GetNamespace(\"mapi\");\nOutlook.Recipient oRecip = oNS.CreateRecipient(\"AccountNa...
I realize that parameterized SQL queries is the optimal way to sanitize user input when building queries that contain user input, but I'm wondering what is wrong with taking user input and escaping any single quotes and surrounding the whole string with single quotes. Here's the code: sSanitizedInput = "'" & Replace(sI...
Your approach to escaping single quotes in user input by replacing single quotes with double single quotes (`''`) is a common practice, but it still exposes you to risks associated with SQL injection, especially because of the way SQL commands are structured. Let’s discuss a few reasons why your method is not bulletpro...
11,837
[ { "from": "human", "value": "I realize that parameterized SQL queries is the optimal way to sanitize user input when building queries that contain user input, but I'm wondering what is wrong with taking user input and escaping any single quotes and surrounding the whole string with single quotes. Here's the...
I have an excel spreadsheet in a format similar to the following... | NAME | CLUB | STATUS | SCORE | | Fred | a | Gent | 145 | | Bert | a | Gent | 150 | | Harry | a | Gent | 195 | | Jim | a | Gent | 150 | | Clare | a | Lady | 99 | | Simon | a | Junior | 130 | | John | b ...
You can achieve this in Excel using a combination of formulas and possibly a pivot table, depending on how comfortable you are with them. Here’s a step-by-step guide to calculate the scores while adhering to your rules: ### Step 1: Create Helper Columns You will need helper columns to categorize and filter scores. 1....
9,509
[ { "from": "human", "value": "I have an excel spreadsheet in a format similar to the following...\n| NAME | CLUB | STATUS | SCORE |\n| Fred | a | Gent | 145 |\n| Bert | a | Gent | 150 |\n| Harry | a | Gent | 195 |\n| Jim | a | Gent | 150 |\n| Clare | a | Lady | 99 |\n...
I am using gsoap to create a soap server in C++. Messages are routed through a bus written in Java. Both the server and the bus are multithreaded. Everything works well sending one message at a time through the system. If I start 3 clients each sending messages as fast as possible everything is fine for about 3500 mess...
The "Only one socket connection allowed at a time" error in gSOAP typically indicates that your server is receiving a second incoming connection attempt on a socket that it has already accepted and is still processing the request. This can occur in multi-threaded applications if there are issues with how the server is ...
10,257
[ { "from": "human", "value": "I am using gsoap to create a soap server in C++. Messages are routed through a bus written in Java. Both the server and the bus are multithreaded. Everything works well sending one message at a time through the system. If I start 3 clients each sending messages as fast as possib...
I know there is a list-comprehension library for common lisp (incf-cl), I know they're supported natively in various other functional (and some non-functional) languages (F#, Erlang, Haskell and C#) - is there a list comprehension library for Scheme? incf-cl is implemented in CL as a library using macros - shouldn't it...
Yes, it is indeed possible to create list comprehensions in Scheme using macros. Although Scheme doesn't have native support for list comprehensions like some other languages, you can define your own syntax using Scheme's powerful macro system. One approach to implementing list comprehensions in Scheme is to define a ...
15,681
[ { "from": "human", "value": "I know there is a list-comprehension library for common lisp (incf-cl), I know they're supported natively in various other functional (and some non-functional) languages (F#, Erlang, Haskell and C#) - is there a list comprehension library for Scheme?\nincf-cl is implemented in C...
What are real-world problems where a recursive approach is the natural solution besides depth-first search (DFS)? (I don't consider Tower of Hanoi, Fibonacci number, or factorial real-world problems. They are a bit contrived in my mind.)
Certainly! Recursion is a powerful technique that can be applied to a variety of real-world problems beyond classical examples like Tower of Hanoi, Fibonacci, or factorial calculations. Here are some real-world scenarios where a recursive approach is natural: 1. **File System Navigation**: When traversing directories ...
15,112
[ { "from": "human", "value": "What are real-world problems where a recursive approach is the natural solution besides depth-first search (DFS)? \n(I don't consider Tower of Hanoi, Fibonacci number, or factorial real-world problems. They are a bit contrived in my mind.)\n" }, { "from": "gpt", "val...
I heard Microsoft allows use of commercially available Office UI controls, with the exception of competing products, such as a word processor or spreadsheet app, etc. How true is that? Also, if it is not true, do you know of any free Ribbon controls?
Microsoft does have guidelines regarding the use of its Office UI controls, including the Ribbon control. Generally, developers can use Microsoft's Office UI controls in their applications as long as they are not creating competing products, such as another word processor or spreadsheet application. This aligns with Mi...
17,446
[ { "from": "human", "value": "I heard Microsoft allows use of commercially available Office UI controls, with the exception of competing products, such as a word processor or spreadsheet app, etc.\nHow true is that?\nAlso, if it is not true, do you know of any free Ribbon controls?\n" }, { "from": "g...
I have this code that performs an ajax call and loads the results into two duplicate divs every time a dropdown is changed. I want the results to be faded into the div, to give a more obvious indication that something has changed, as its so seamless its sometimes hard to notice the change! print("$('.ajaxdropdown').cha...
To create a fade effect when loading new content into your divs after an AJAX call, you can follow these steps. You can first hide the divs, update their content, and then fade them back in. Here's an updated version of your code to achieve this effect: ```javascript $('.ajaxdropdown').change(function() { var sele...
16,738
[ { "from": "human", "value": "I have this code that performs an ajax call and loads the results into two duplicate divs every time a dropdown is changed. I want the results to be faded into the div, to give a more obvious indication that something has changed, as its so seamless its sometimes hard to notice ...
In Informix, how can I cast a char(8) type into a money type, so that I can compare it to another money type? Using "tblAid.amt::money as aid_amt" did not work. Using "(tblAid.amt * 1) AS aid_amt" did not work.
To cast a `CHAR(8)` type into a `MONEY` type in Informix, you can use the `CAST` function, which is designed for such conversions. The format you generally want to use is as follows: ```sql CAST(tblAid.amt AS MONEY) ``` This will correctly convert the character string in `tblAid.amt` to a `MONEY` type, assuming that ...
17,440
[ { "from": "human", "value": "In Informix, how can I cast a char(8) type into a money type, so that I can compare it to another money type?\nUsing \"tblAid.amt::money as aid_amt\" did not work.\nUsing \"(tblAid.amt * 1) AS aid_amt\" did not work.\n" }, { "from": "gpt", "value": "To cast a `CHAR(8...
In bash, environmental variables will tab-expand correctly when placed after an echo command, for example: echo $HOME But after cd or cat, bash places a \ before the $ sign, like so: cd \$HOME If I use a variable as the second argument to a command, it won't expand at all: cp somefile $HOM What mysterious option do ...
The behavior you’re describing suggests that the shell is treating the `$` character as a literal rather than expanding it to the value of the variable. This is often linked to the configuration of your readline library settings in `.inputrc`, or it could be due to how your terminal is configured to handle escape seque...
15,188
[ { "from": "human", "value": "In bash, environmental variables will tab-expand correctly when placed after an echo command, for example:\necho $HOME\n\nBut after cd or cat, bash places a \\ before the $ sign, like so:\ncd \\$HOME\n\nIf I use a variable as the second argument to a command, it won't expand at ...
When you run something similar to: UPDATE table SET datetime = NOW(); on a table with 1 000 000 000 records and the query takes 10 seconds to run, will all the rows have the exact same time (minutes and seconds) or will they have different times? In other words, will the time be when the query started or when each row...
When you run an `UPDATE` statement like `UPDATE table SET datetime = NOW();` in MySQL (and in many other relational database management systems), the function `NOW()` is evaluated once at the start of the query. This means that all rows that are updated will receive the same timestamp value, which is the time when the ...
18,897
[ { "from": "human", "value": "When you run something similar to:\nUPDATE table SET datetime = NOW();\n\non a table with 1 000 000 000 records and the query takes 10 seconds to run, will all the rows have the exact same time (minutes and seconds) or will they have different times? In other words, will the tim...
I have the following code: info = new System.Diagnostics.ProcessStartInfo("TheProgram.exe", String.Join(" ", args)); info.CreateNoWindow = true; info.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden; info.RedirectStandardOutput = true; info.UseShellExecute = false; System.Diagnostics.Process p = System.Diagno...
Yes, the hanging issue you're experiencing when reading the standard output of a process could be due to the way the output is being buffered. When you redirect the standard output of a process and read from it, if the buffer fills up and is not read, the process that produces the output can become blocked, leading to ...
13,666
[ { "from": "human", "value": "I have the following code:\ninfo = new System.Diagnostics.ProcessStartInfo(\"TheProgram.exe\", String.Join(\" \", args));\ninfo.CreateNoWindow = true;\ninfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;\ninfo.RedirectStandardOutput = true;\ninfo.UseShellExecute = f...
Do you guys keep track of stored procedures and database schema in your source control system of choice? When you make a change (add a table, update an stored proc, how do you get the changes into source control? We use SQL Server at work, and I've begun using darcs for versioning, but I'd be curious about general st...
It's great to hear that you're looking into best practices for managing database changes with source control! Here are some general strategies and tools for keeping track of stored procedures, database schemas, and other database objects in source control: ### Strategies for Versioning Database Changes: 1. **Schema V...
13,718
[ { "from": "human", "value": "Do you guys keep track of stored procedures and database schema in your source control system of choice?\nWhen you make a change (add a table, update an stored proc, how do you get the changes into source control? \nWe use SQL Server at work, and I've begun using darcs for vers...
I'm using TinyXML to parse/build XML files. Now, according to the documentation this library supports multibyte character sets through UTF-8. So far so good I think. But, the only API that the library provides (for getting/setting element names, attribute names and values, ... everything where a string is used) is thro...
Your question touches on an important aspect of working with text encoding, especially when dealing with XML and libraries like TinyXML that use an 8-bit interface while still claiming to support Unicode. ### Understanding UTF-8 and std::string 1. **UTF-8 Basics**: - UTF-8 is a variable-length character encoding f...
12,673
[ { "from": "human", "value": "I'm using TinyXML to parse/build XML files. Now, according to the documentation this library supports multibyte character sets through UTF-8. So far so good I think. But, the only API that the library provides (for getting/setting element names, attribute names and values, ... e...
in tcsh I'm trying to redirect STDERR from a command from my .aliases file. I found that I can redirect STDERR from the command line like this. . . $ (xemacs > /dev/tty) >& /dev/null . . . but when I put this in my .aliases file I get an alias loop. . . $ cat .aliases alias xemacs '(xemacs > /dev/tty ) >& /dev/null' $...
In `tcsh`, the redirection and aliasing can indeed be a bit tricky, especially when it involves complex commands and arguments. You're right that your current alias is leading to an alias loop and that escaping the command can prevent arguments from being passed properly. Instead of creating a wrapper script as you me...
15,084
[ { "from": "human", "value": "in tcsh I'm trying to redirect STDERR from a command from my .aliases file.\nI found that I can redirect STDERR from the command line like this. . .\n$ (xemacs > /dev/tty) >& /dev/null\n\n. . . but when I put this in my .aliases file I get an alias loop. . .\n$ cat .aliases\nali...
How do I write an Excel workbook to a MemoryStream without first saving it to the file system? All options within the Microsoft.Office.Interop.Excel.WorkBook save options take a filename.
To write an Excel workbook to a `MemoryStream` in C#, you can't use the `Microsoft.Office.Interop.Excel` library directly because it requires file paths to save the workbook. Instead, you can use the `EPPlus` or `ClosedXML` libraries to manipulate Excel files in memory. Here, I will provide you examples using both `EP...
12,811
[ { "from": "human", "value": "How do I write an Excel workbook to a MemoryStream without first saving it to the file system?\nAll options within the Microsoft.Office.Interop.Excel.WorkBook save options take a filename.\n" }, { "from": "gpt", "value": "To write an Excel workbook to a `MemoryStream...
I just noticed that Chromium was installed in AppData in both Vista and XP. If Google does that and if other applications does this, than is that becuase there is some form of protection? Should we write installers that does the same thing as Google?
The practice of installing applications in user-specific directories such as AppData (in Windows) is indeed a common approach, particularly for applications that are intended to be used by individual users rather than installed system-wide. Here are a few reasons why this method is used: 1. **User-Specific Configurati...
14,650
[ { "from": "human", "value": "I just noticed that Chromium was installed in AppData in both Vista and XP. If Google does that and if other applications does this, than is that becuase there is some form of protection? Should we write installers that does the same thing as Google?\n" }, { "from": "gpt...
I want to quickly test an ocx. How do I drop that ocx in a console application. I have found some tutorials in CodeProject and but are incomplete.
Testing an ActiveX Control (OCX) in a console application can be a bit tricky since OCX controls are typically designed for use in a GUI environment. However, it is possible to instantiate and use OCX controls in a console application using the Windows API and COM (Component Object Model). Here's a step-by-step guide ...
7,677
[ { "from": "human", "value": "I want to quickly test an ocx. How do I drop that ocx in a console application. I have found some tutorials in CodeProject and but are incomplete. \n" }, { "from": "gpt", "value": "Testing an ActiveX Control (OCX) in a console application can be a bit tricky since OC...
Are there any decent PHP libraries available for accessing SVN repositories? Right now I just have some scripts executing commands to the command line and parsing the feedback, I'd love to find something less dependent on the command line and more tightly integrated. Any ideas?
Yes, there are several PHP libraries available for accessing SVN repositories without relying on command-line commands. Here are a few libraries that you might find useful: 1. **php-svn**: This is a PHP extension that provides a set of functions to access Subversion repositories. It uses the SVN C library (Subversion'...
16,255
[ { "from": "human", "value": "Are there any decent PHP libraries available for accessing SVN repositories? Right now I just have some scripts executing commands to the command line and parsing the feedback, I'd love to find something less dependent on the command line and more tightly integrated. Any ideas?\...
Is there a way to make a popup window maximised as soon as it is opened? If not that, at least make it screen-sized? This: window.open(src, 'newWin', 'fullscreen="yes"') apparently only worked for old version of IE.
The ability to open a popup window maximized or full screen is highly dependent on the user's browser settings, and modern browsers have placed restrictions on popup windows to prevent unwanted behavior and enhance user experience. As of now, there is no reliable cross-browser method to open a popup window that is maxi...
16,059
[ { "from": "human", "value": "Is there a way to make a popup window maximised as soon as it is opened? If not that, at least make it screen-sized? This:\nwindow.open(src, 'newWin', 'fullscreen=\"yes\"')\n\napparently only worked for old version of IE.\n" }, { "from": "gpt", "value": "The ability ...
Greetings, I want to write a small cross-platform utility program with GUI in it. What language/GUI-library should I stick to? Is it possible whatsoever? This is gonna be a small program, so I don't want to make people download JVM or .NET Framework. Is it possible to develop it natively? Update 1. By "natively" I mean...
Certainly! There are several options for developing a small cross-platform utility with a GUI, which compile to native code without the need for a runtime environment like the JVM or .NET Framework. Here are some good choices: ### 1. **C++ with Qt** - **Description**: Qt is a powerful cross-platform GUI toolkit writte...
13,477
[ { "from": "human", "value": "Greetings,\nI want to write a small cross-platform utility program with GUI in it. What language/GUI-library should I stick to? Is it possible whatsoever?\nThis is gonna be a small program, so I don't want to make people download JVM or .NET Framework. Is it possible to develop ...
I've got a class that I'm using as a settings class that is serialized into an XML file that administrators can then edit to change settings in the application. (The settings are a little more complex than the App.config allows for.) I'm using the XmlSerializer class to deserialize the XML file, and I want it to be ab...
It sounds like you've successfully implemented a solution that meets your requirements for using `XmlSerializer` with a read-only collection in your settings class. By removing the setter from the property and initializing the collection in the constructor, you've effectively created a property that allows XML deserial...
14,669
[ { "from": "human", "value": "I've got a class that I'm using as a settings class that is serialized into an XML file that administrators can then edit to change settings in the application. (The settings are a little more complex than the App.config allows for.)\nI'm using the XmlSerializer class to deseri...
In C++, static library A is linked into dynamic libraries B and C. If a class, Foo, is used in A which is defined in B, will C link if it doesn't use Foo? I thought the answer was yes, but I am now running into a problem with xlc_r7 where library C says Foo is an undefined symbol, which it is as far as C is concerned. ...
In C++, the linking behavior can depend on the specific implementation of the linker being used, which may account for the different behaviors you're seeing across various platforms and linkers. ### Understanding the Scenario 1. **Static Library (A)**: Contains definitions (like classes, functions) that can be used b...
15,344
[ { "from": "human", "value": "In C++, static library A is linked into dynamic libraries B and C. If a class, Foo, is used in A which is defined in B, will C link if it doesn't use Foo?\nI thought the answer was yes, but I am now running into a problem with xlc_r7 where library C says Foo is an undefined symb...
I'm having some inheritance issues as I've got a group of inter-related abstract classes that need to all be overridden together to create a client implementation. Ideally I would like to do something like the following: abstract class Animal { public Leg GetLeg() {...} } abstract class Leg { } class Dog : Animal ...
In C#, the issue you're encountering relates to the rules of method overriding and type covariance in the context of class inheritance. When you override a method in a derived class, the method signature (including the return type) must match the base class method signature exactly. This means that if the base class me...
14,373
[ { "from": "human", "value": "I'm having some inheritance issues as I've got a group of inter-related abstract classes that need to all be overridden together to create a client implementation. Ideally I would like to do something like the following:\nabstract class Animal\n{\n public Leg GetLeg() {...}\n}...
I'm writing an app and our designers want to use gradients for some of the backgrounds on a few of our composites. I wrote the following code: composite.addListener (SWT.Paint, new Listener () { public void handleEvent (Event e) { GC gc = e.gc; Rectangle rect = composite.getClientArea (); ...
It looks like you're attempting to create a gradient background for a composite in SWT, but you're facing issues with child controls displaying their default backgrounds instead of inheriting the gradient. Here are a few suggestions and solutions that you might find helpful: ### 1. Use `setBackgroundImage()` Instead ...
16,480
[ { "from": "human", "value": "I'm writing an app and our designers want to use gradients for some of the backgrounds on a few of our composites. \nI wrote the following code:\ncomposite.addListener (SWT.Paint, new Listener () {\n public void handleEvent (Event e) {\n GC gc = e.gc;\n ...
Can perforce be adjusted so I don't need to "open files for edit"? Someone told me that this was a "feature", and that s/he guessed it could be turned off.
In Perforce (P4), the requirement to open files for edit before making changes is an intentional feature designed to help manage source control effectively. This ensures that multiple users can collaborate without overwriting each other's changes and helps keep track of what files are being worked on. However, there a...
15,515
[ { "from": "human", "value": "Can perforce be adjusted so I don't need to \"open files for edit\"? Someone told me that this was a \"feature\", and that s/he guessed it could be turned off.\n" }, { "from": "gpt", "value": "In Perforce (P4), the requirement to open files for edit before making cha...
I have a Nant build file which executes NUnit after compiling the dll's. I am executing the NAnt build file with a task in CruiseControl. So NAnt is running the tests not CruiseControl. How do I configure it so that the CruiseControl web dashboard can be used to view the NUnit output ? This fixed it: <publishers> ...
To ensure that the NUnit test results are correctly published to the CruiseControl dashboard, you need to set up your NAnt build file to generate the appropriate test result files and configure the CruiseControl server to read those files. It looks like you’ve already identified and implemented the necessary configur...
13,809
[ { "from": "human", "value": "I have a Nant build file which executes NUnit after compiling the dll's. I am executing the NAnt build file with a task in CruiseControl. So NAnt is running the tests not CruiseControl.\nHow do I configure it so that the CruiseControl web dashboard can be used to view the NUnit...
I am working on a client proposal and they will need to upgrade their network infrastructure to support hosting an ASP.NET application. Essentially, I need to estimate peak usage for a system with a known quantity of users (currently 250). A simple answer like "you'll need a dedicated T1 line" would probably suffice, b...
Estimating bandwidth requirements for hosting an ASP.NET application on a network involves considering several factors, including user behavior, application architecture, and data transmission patterns. Here’s a more structured approach you can follow to develop your proposal. ### Step 1: Understand User Behavior 1. ...
14,031
[ { "from": "human", "value": "I am working on a client proposal and they will need to upgrade their network infrastructure to support hosting an ASP.NET application. Essentially, I need to estimate peak usage for a system with a known quantity of users (currently 250). A simple answer like \"you'll need a de...
I am interested to learn: what are the most common technical causes (from the perspective of operating system programming) of an operating system crash (not limited to Windows crashes)? I'm looking for an answer not like "too many apps open", but what specifically happens when too many apps are open that causes the cr...
Operating system crashes can occur for a variety of technical reasons, and understanding the underlying causes requires some knowledge of how operating systems manage resources, processes, and hardware interactions. Here are some of the most common technical causes of OS crashes, particularly from the perspective of op...
8,883
[ { "from": "human", "value": "I am interested to learn: what are the most common technical causes (from the perspective of operating system programming) of an operating system crash (not limited to Windows crashes)? I'm looking for an answer not like \"too many apps open\", but what specifically happens whe...
It often happens that characters such as é gets transformed to é, even though the collation for the MySQL DB, table and field is set to utf8_general_ci. The encoding in the Content-Type for the page is also set to UTF8. I know about utf8_encode/decode, but I'm not quite sure about where and how to use it. I have read ...
Dealing with character encoding issues, especially in a MySQL and PHP environment, can be challenging but can be managed effectively by ensuring proper setup and handling at every level. Here’s a step-by-step guide to ensure that user-entered data containing international characters does not get corrupted: ### 1. Data...
14,074
[ { "from": "human", "value": "It often happens that characters such as é gets transformed to é, even though the collation for the MySQL DB, table and field is set to utf8_general_ci. The encoding in the Content-Type for the page is also set to UTF8.\nI know about utf8_encode/decode, but I'm not quite sure a...
I have a list of timesheet entries that show a start and stop time. This is sitting in a MySQL database. I need to create bar charts based on this data with the 24 hours of the day along the bottom and the amount of man-hours worked for each hour of the day. For example, if Alice worked a job from 15:30 to 19:30 and Bo...
To create a bar chart based on your timesheet entries with the specified requirements, you can perform the necessary calculations directly in your MySQL database. Once the data is aggregated to show the amount of man-hours worked for each 15-minute interval, you can easily export it for chart creation. Here is a step-b...
9,244
[ { "from": "human", "value": "I have a list of timesheet entries that show a start and stop time. This is sitting in a MySQL database. I need to create bar charts based on this data with the 24 hours of the day along the bottom and the amount of man-hours worked for each hour of the day.\nFor example, if Ali...
I would like to do a lookup of tables in my SQL Server 2005 Express database based on table name. In MySQL I would use SHOW TABLES LIKE "Datasheet%", but in T-SQL this throws an error (it tries to look for a SHOW stored procedure and fails). Is this possible, and if so, how?
In SQL Server, you can achieve similar functionality to MySQL's `SHOW TABLES LIKE` command using the system catalog views. Specifically, you can query the `INFORMATION_SCHEMA.TABLES` view or the `sys.tables` system catalog view to find table names that match a certain pattern. Here are two ways to do this: ### Using ...
16,659
[ { "from": "human", "value": "I would like to do a lookup of tables in my SQL Server 2005 Express database based on table name. In MySQL I would use SHOW TABLES LIKE \"Datasheet%\", but in T-SQL this throws an error (it tries to look for a SHOW stored procedure and fails).\nIs this possible, and if so, how?\...
I know that services like my.yahoo.com allow you to add content from RSS feeds to your personal page, but in general they are links which draw the user to the site which provided the feed. What are the legalities and implications of using RSS feeds as a data source for a site which repackages the data so as to be unre...
Using RSS feeds as a data source for a site that repackages the data raises a number of legal, ethical, and practical questions. Here's a breakdown of these considerations: ### Legal Considerations 1. **Copyright**: Content in RSS feeds is typically protected by copyright. Even if you repackage the data, the underlyi...
14,199
[ { "from": "human", "value": "I know that services like my.yahoo.com allow you to add content from RSS feeds to your personal page, but in general they are links which draw the user to the site which provided the feed. What are the legalities and implications of using RSS feeds as a data source for a site w...
Is it possible to show multiple lines of text in grid cells using the .NET Compact framework? We need to create a grid where the middle column contains an address. We'd like to show this over multiple lines and (possibly) apply some formatting to the final line. e.g. 123 Anywhere Street Birmingham B1 2DU tel: 0123 555...
In the .NET Compact Framework, the capabilities for displaying multi-line text in grid cells are somewhat limited compared to the full .NET Framework. Specifically, if you're using a `DataGrid` control, it doesn't natively support multi-line cell content out of the box. However, you can achieve a similar effect with a...
10,878
[ { "from": "human", "value": "Is it possible to show multiple lines of text in grid cells using the .NET Compact framework? We need to create a grid where the middle column contains an address. We'd like to show this over multiple lines and (possibly) apply some formatting to the final line. \ne.g.\n123 Anyw...
I have a Windows Form project that I've just started. On the form I have a listbox that I'm loading with Products. When someone double clicks a Product, I want it to raise a ProductChanged event. Other things in my project will subscribe to this event and update things like other parts of the GUI when the Product chang...
When designing an event system in a Windows Forms application, particularly for a scenario like yours where a Product change needs to be communicated across different parts of your application, you have several options. However, the approach should prioritize separation of concerns and maintainability. ### Best Practi...
12,118
[ { "from": "human", "value": "I have a Windows Form project that I've just started. On the form I have a listbox that I'm loading with Products. When someone double clicks a Product, I want it to raise a ProductChanged event. Other things in my project will subscribe to this event and update things like othe...
I hear logarithms mentioned quite a lot in the programming context. They seem to be the solution to many problems and yet I can't seem to find a real-world way of making use of them. I've read the Wikipedia entry and that, quite frankly, leaves me none the wiser. So, where can I learn about the real-world programming p...
Logarithms can seem abstract at first, but they have practical applications in many areas of programming and computer science. Here are some real-world problems and concepts where logarithms play a crucial role: ### 1. **Complexity Analysis**: - In algorithms, especially sorting and searching algorithms, logarithms...
13,001
[ { "from": "human", "value": "I hear logarithms mentioned quite a lot in the programming context. They seem to be the solution to many problems and yet I can't seem to find a real-world way of making use of them. I've read the Wikipedia entry and that, quite frankly, leaves me none the wiser.\nSo, where can ...
i'm wondering if there is any nice and neat tool to replace the GNU Autotools or Make to build a very large C++ project, which are such a complicated thing to use. It is simple to generate all the files that de Autotools require if the project is small, but if the source code is divided in many directories, with multi...
If you're looking for alternatives to GNU Autotools or Make for building large C++ projects, there are several modern build systems that can simplify your workflow and manage complex dependencies more effectively. Here are a few popular options: 1. **CMake**: - **Overview**: CMake is a widely used, cross-platform b...
11,911
[ { "from": "human", "value": "i'm wondering if there is any nice and neat tool to replace the GNU Autotools or Make to build a very large C++ project, which are such a complicated thing to use. \nIt is simple to generate all the files that de Autotools require if the project is small, but if the source code ...
In Tomcat 5.5 the server.xml can have many connectors, typically port only 8080, but for my application a user might configure their servlet.xml to also have other ports open (say 8081-8088). I would like for my servlet to figure out what socket connections ports will be vaild (During the Servlet.init() tomcat has not...
In Tomcat 5.5, you can access the connectors configured in `server.xml` programmatically during the `init()` method of your servlet. Although the server has not completely started up at this point, the connectors are typically already configured in the Tomcat context. You can retrieve the connectors through the `Servle...
15,690
[ { "from": "human", "value": "In Tomcat 5.5 the server.xml can have many connectors, typically port only 8080, but for my application a user might configure their servlet.xml to also have other ports open (say 8081-8088). I would like for my servlet to figure out what socket connections ports will be vaild ...
I am working on a web application (J2EE) and I would like to know the options that are available for handling a double post from the browser. The solutions that I have seen and used in the past are all client-side: Disable the submit button as soon as the user clicks it. Follow a POST-Redirect-GET pattern to prevent P...
Handling double submissions effectively is important for any web application to avoid issues like duplicate records or inconsistent data. While client-side solutions can help mitigate the problem to some extent, server-side solutions can provide a more robust way to handle double posting, especially since not all users...
13,520
[ { "from": "human", "value": "I am working on a web application (J2EE) and I would like to know the options that are available for handling a double post from the browser.\nThe solutions that I have seen and used in the past are all client-side:\n\nDisable the submit button as soon as the user clicks it.\nFo...
My company is considering changing continuous integration servers (I won't say which one we have now, so I won't skew your responses in anyway :) ) I wondering if anybody has any recommendations? Best user experience, level of difficulty to maintain, etc... Our code is all in java, and we use ANT as a build tool.
When considering a change to a continuous integration (CI) server, there are several options available that offer good user experiences, ease of maintenance, and compatibility with Java and ANT. Here are some popular CI tools to consider: ### 1. **Jenkins** - **User Experience**: Highly customizable with a large ecosy...
12,430
[ { "from": "human", "value": "My company is considering changing continuous integration servers (I won't say which one we have now, so I won't skew your responses in anyway :) ) I wondering if anybody has any recommendations? Best user experience, level of difficulty to maintain, etc...\nOur code is all in ...
In my job we have to deploy an application on various environments. It's a standard WAR file which needs a bit of configuration, deployed on Tomcat 6. Is there any way of creating a 'deployment package' with Tomcat so that you just extract it and it sets up Tomcat as well as your application? I'm not sure that creating...
Creating a deployment package for Tomcat that includes your application and configures the server can be achieved, but it requires some manual setup initially. Here’s a step-by-step approach to create a deployment package for Tomcat and your WAR file that can be extracted and configured on a Windows server: ### Step 1...
11,087
[ { "from": "human", "value": "In my job we have to deploy an application on various environments. It's a standard WAR file which needs a bit of configuration, deployed on Tomcat 6.\nIs there any way of creating a 'deployment package' with Tomcat so that you just extract it and it sets up Tomcat as well as yo...
I'm a Engineering student and I'm attending a Database and Information Systems class this semester. It's required that I produce a website/application that uses a database, using PHP/PGSQL. My questions are: which IDE would you recommend? does anyone have good tips and advices for a new developer? it would help me (a ...
It sounds like you're gearing up for an exciting project! Here are some recommendations based on your questions: ### IDE Recommendations 1. **Visual Studio Code**: A popular and lightweight code editor with great support for PHP through extensions. It has a rich ecosystem of plugins, and the built-in terminal makes it...
13,217
[ { "from": "human", "value": "I'm a Engineering student and I'm attending a Database and Information Systems class this semester. It's required that I produce a website/application that uses a database, using PHP/PGSQL. My questions are:\n\nwhich IDE would you recommend?\ndoes anyone have good tips and advic...
I'm trying to have two inputs (one textbox, one drop down) to have the same width. You can set the width through css, but for some reason, the select box is always a few pixels smaller. It seems this only happens with the xhtml 1.0 strict doctype Any suggestions/ideas about the reason/work around? Having the following ...
The difference in widths between input fields and select boxes can be attributed to how browsers render different types of form elements. In your case, since you're using XHTML 1.0 Strict, some browsers might apply default styles that cause the select box to appear smaller than the text input. To ensure that both elem...
13,614
[ { "from": "human", "value": "I'm trying to have two inputs (one textbox, one drop down) to have the same width.\nYou can set the width through css, but for some reason, the select box is always a few pixels smaller.\nIt seems this only happens with the xhtml 1.0 strict doctype\nAny suggestions/ideas about t...
I have just started working with the AnimationExtender. I am using it to show a new div with a list gathered from a database when a button is pressed. The problem is the button needs to do a postback to get this list as I don't want to make the call to the database unless it's needed. The postback however stops the ...
Certainly! It sounds like you want to ensure that the animation starts only after the postback is complete and the list has been gathered, without any stuttering during the animation due to the timing of the postback. You're on the right track with using the `ScriptManager` and the `add_endRequest` event. Here's a re...
11,766
[ { "from": "human", "value": "I have just started working with the AnimationExtender. I am using it to show a new div with a list gathered from a database when a button is pressed. The problem is the button needs to do a postback to get this list as I don't want to make the call to the database unless it's...
Can anyone provide some real examples as to how best to keep script files for views, stored procedures and functions in a SVN (or other) repository. Obviously one solution is to have the script files for all the different components in a directory or more somewhere and simply using TortoiseSVN or the like to keep them ...
To achieve automated export and commit of your SQL script files for views, stored procedures, and functions to an SVN repository, you can create a batch script that performs the following steps: 1. **Identify Changed Objects**: Query the database to find out which stored procedures, views, or functions have changed si...
9,671
[ { "from": "human", "value": "Can anyone provide some real examples as to how best to keep script files for views, stored procedures and functions in a SVN (or other) repository.\nObviously one solution is to have the script files for all the different components in a directory or more somewhere and simply u...
I must admit that I am incredibly jealous of those developers who happen to live near active user groups (e.g. the ALT.NET guys in Austin). I often read blog posts and listen to podcasts that reference these in-person meetings and find myself wishing that I could sit in and participate as well. But it just isn't real...
Yes, there are several platforms and initiatives that facilitate virtual meetups, discussions, and collaboration among developers, particularly for those who do not have access to local user groups. Here are some options you might find helpful: 1. **Virtual Meetups**: Websites like Meetup.com often have virtual events...
14,187
[ { "from": "human", "value": "I must admit that I am incredibly jealous of those developers who happen to live near active user groups (e.g. the ALT.NET guys in Austin). I often read blog posts and listen to podcasts that reference these in-person meetings and find myself wishing that I could sit in and par...
I use serialize in one ActiveRecord model to serialize an Array of simple Hashes into a text database field. I even use the second parameter to coerce deserialization into Arrays. class Shop < ActiveRecord::Base serialize : recipients, Array end It seems to work fine but, after a few requests, the content of recipie...
The issue you're experiencing with the `recipients` field changing from an array of hashes to `HashWithIndifferentAccess` could be related to how Ruby's serialization mechanism (using YAML by default) and ActiveRecord's handling of attributes interact with your application state over time. Here are some potential reas...
13,966
[ { "from": "human", "value": "I use serialize in one ActiveRecord model to serialize an Array of simple Hashes into a text database field. I even use the second parameter to coerce deserialization into Arrays.\nclass Shop < ActiveRecord::Base\n serialize : recipients, Array\nend\n\nIt seems to work fine but...
I am not sure whether is it possible to change attribute's parameter during runtime? For example, inside an assembly I have the following class public class UserInfo { [Category("change me!")] public int Age { get; set; } [Category("change me!")] public string Name { ...
If you cannot modify the original class and want to change the behavior of the `Category` attribute at runtime, you can use a custom type descriptor. The `TypeDescriptor` class in .NET provides the ability to extend and modify the behavior of types at runtime, including attributes like `Category`. Here's an approach u...
9,649
[ { "from": "human", "value": "I am not sure whether is it possible to change attribute's parameter during runtime? For example, inside an assembly I have the following class\npublic class UserInfo\n{\n [Category(\"change me!\")]\n public int Age\n {\n get;\n set;\n }\n [Category(...
We've got a multiproject we're trying to run Cobertura test coverage reports on as part of our mvn site build. I can get Cobertura to run on the child projects, but it erroneously reports 0% coverage, even though the reports still highlight the lines of code that were hit by the unit tests. We are using mvn 2.0.8. I h...
It sounds like you're experiencing an issue with Cobertura reporting 0% coverage in a multi-module Maven project setup. This situation can be tricky, and there are a few things you might consider to help resolve the issue: ### Common Issues and Solutions 1. **Ensure Correct Lifecycle Phase**: Make sure that Cobert...
13,021
[ { "from": "human", "value": "We've got a multiproject we're trying to run Cobertura test coverage reports on as part of our mvn site build. I can get Cobertura to run on the child projects, but it erroneously reports 0% coverage, even though the reports still highlight the lines of code that were hit by the...
Tackling a strange scenario here. We use a proprietary workstation management application which uses mySQL to store its data. Within the application they provide number of reports, such as which user logged into which machine at what time, all the software products installed on the monitored machines, so on and so for...
It's important to approach this scenario carefully, given the potential implications of accessing a database without authorization. However, since you have administrative access to the Windows server hosting the MySQL instance, you may have options to create a new MySQL user account without resetting the root password ...
13,429
[ { "from": "human", "value": "Tackling a strange scenario here. \nWe use a proprietary workstation management application which uses mySQL to store its data. Within the application they provide number of reports, such as which user logged into which machine at what time, all the software products installed o...
I'm in the process of designing a PHP-based content management system for personal use and eventually to be distributed. I know there are a lot of CMS's already out there, but I really haven't found one that meets my all of my needs and I also would like to have the learning experience. Security is a large focus, as ar...
Designing your own CMS is an exciting and challenging project. Here are some pieces of advice that might help you streamline the process and avoid common pitfalls: ### Core Features to Include 1. **User Management**: - Roles and permissions (Admin, Editor, Contributor, etc.). - User registration, login, and pas...
10,836
[ { "from": "human", "value": "I'm in the process of designing a PHP-based content management system for personal use and eventually to be distributed. I know there are a lot of CMS's already out there, but I really haven't found one that meets my all of my needs and I also would like to have the learning exp...
I want to provide my own message from the validation done in DocumentBuilder, rather than the one from XMLMessages.properties. Now I see that a property error-reporter needs to be set to a class which extends XMLErrorReporter. However, I've not been able to get ComponentManager from Document/Builder/Factory. Doing pars...
To customize error reporting in a XML parsing context using a `DocumentBuilder` in Java, you are indeed on the right track by thinking about extending `XMLErrorReporter`. However, managing error reporting properly involves a few steps to integrate your custom error reporter into the parsing process. ### Steps to Set U...
15,645
[ { "from": "human", "value": "I want to provide my own message from the validation done in DocumentBuilder, rather than the one from XMLMessages.properties.\nNow I see that a property error-reporter needs to be set to a class which extends XMLErrorReporter.\nHowever, I've not been able to get ComponentManage...
Where can I find the redistributable version of the IBM DB2 Type 4 driver? I suppose this is the driver I would use to connect from a Java app (on windows) to DB2 on the mainframe?
Yes, the IBM DB2 Type 4 JDBC driver is indeed what you would use to connect a Java application to a DB2 database, including databases hosted on a mainframe. The Type 4 driver is pure Java, which means it doesn’t require any native libraries and is portable across different platforms, making it suitable for use in Java ...
10,146
[ { "from": "human", "value": "Where can I find the redistributable version of the IBM DB2 Type 4 driver?\nI suppose this is the driver I would use to connect from a Java app (on windows) to DB2 on the mainframe?\n" }, { "from": "gpt", "value": "Yes, the IBM DB2 Type 4 JDBC driver is indeed what y...
I want to raise an event when a popup window is closed, or preferably, just before closing. I'm storing the popup window object as an object, but I don't know of any way to bind to the close event, or an event just before the window is closed. var popupWindow = window.open("/popup.aspx", "popupWindow", "height=550,widt...
The issue you're facing relates to how window events are handled across different contexts, particularly between the main window and the popup window. Unfortunately, browsers do not provide a built-in mechanism to detect the close event of a popup window directly using jQuery or plain JavaScript in the way you might ex...
17,702
[ { "from": "human", "value": "I want to raise an event when a popup window is closed, or preferably, just before closing. I'm storing the popup window object as an object, but I don't know of any way to bind to the close event, or an event just before the window is closed.\nvar popupWindow = window.open(\"/p...
Below is the code I use to build an HTML table on the fly (using JSON data received from the server). I display an animated pleasewait (.gif) graphic while the data is loading. However, the graphic freezes while the JavaScript function is building the table. At first, I was just happy to make this happen (display the t...
To improve the performance of your HTML table creation and prevent the loading graphic from freezing, you can adopt several strategies: 1. **Use `DocumentFragment`:** Instead of building the entire table as a string and then appending it to the DOM, use a `DocumentFragment`. This allows you to build the table structur...
8,177
[ { "from": "human", "value": "Below is the code I use to build an HTML table on the fly (using JSON data received from the server).\nI display an animated pleasewait (.gif) graphic while the data is loading. However, the graphic freezes while the JavaScript function is building the table. At first, I was jus...
It's the weekend, so I relax from spending all week programming by writing a hobby project. I wrote the framework of a MOS 6502 CPU emulator yesterday, the registers, stack, memory and all the opcodes are implemented. (Link to source below) I can manually run a series of operations in the debugger I wrote, but I'd like...
It sounds like you're making great progress on your MOS 6502 CPU emulator! The NES (Nintendo Entertainment System) indeed uses a variant of the 6502 CPU, so the opcode encoding will be very similar. ### Opcode Structure Each opcode on the 6502 CPU is a single byte that identifies the operation, but many instructions ...
14,076
[ { "from": "human", "value": "It's the weekend, so I relax from spending all week programming by writing a hobby project.\nI wrote the framework of a MOS 6502 CPU emulator yesterday, the registers, stack, memory and all the opcodes are implemented. (Link to source below)\nI can manually run a series of opera...
I have created a database report generator in Excel. I am trying to create a dialog box that displays status information as the program runs. When I generate the report, although the dialog box appears, I cannot refresh/update the information it displays. Most of the time, the dialog box only partially appears. I have ...
When creating a dialog box in Excel VBA that needs to update dynamically while a report is being generated, it's important to ensure that the user interface (UI) remains responsive. If you find that the dialog box only updates after the process is complete, it may be due to the way Excel handles screen updates and even...
15,422
[ { "from": "human", "value": "I have created a database report generator in Excel. I am trying to create a dialog box that displays status information as the program runs.\nWhen I generate the report, although the dialog box appears, I cannot refresh/update the information it displays. Most of the time, the ...
How to create editable PDF using ASP.NET. I want to create a Pdf from a master template, edit it (fill some value(input not from database)) and save. Is it possible without using a 3rd party? If some sample code available it will be great
Creating an editable PDF using ASP.NET without relying on third-party libraries can be quite challenging because the built-in capabilities of .NET do not natively support direct PDF manipulation. However, you can create PDFs using the `System.Drawing` and `System.IO` namespaces and then save them. But keep in mind that...
12,951
[ { "from": "human", "value": "How to create editable PDF using ASP.NET. I want to create a Pdf from a master template, edit it (fill some value(input not from database)) and save. Is it possible without using a 3rd party? \nIf some sample code available it will be great\n" }, { "from": "gpt", "va...
If I have a large number of SQLite databases, all with the same schema, what is the best way to merge them together in order to perform a query on all databases? I know it is possible to use ATTACH to do this but it has a limit of 32 and 64 databases depending on the memory system on the machine.
Merging a large number of SQLite databases with the same schema can be efficiently achieved using various methods. While you are correct that SQLite's `ATTACH` command has limits on the number of databases you can attach at once, you can work around this limitation by combining several strategies. Here are some recomme...
12,403
[ { "from": "human", "value": "If I have a large number of SQLite databases, all with the same schema, what is the best way to merge them together in order to perform a query on all databases? \nI know it is possible to use ATTACH to do this but it has a limit of 32 and 64 databases depending on the memory sy...
I am planning on porting a PHP application over to Python. The application is mostly about data collection and processing. The main application runs as a stand alone command line application. There is a web interface to the application which is basically a very light weight reporting interface. I did not use a fra...
When considering a port from PHP to Python, especially for a command-line application with a light web interface, your choice of tools and frameworks will significantly impact both development and distribution. Here are some suggestions based on your requirements: ### Command-Line Application For the command-line par...
14,113
[ { "from": "human", "value": "I am planning on porting a PHP application over to Python. The application is mostly about data collection and processing. The main application runs as a stand alone command line application. There is a web interface to the application which is basically a very light weight r...
A third-party application reads some Java code from an XML file, and runs it when a certain event happens. In Java, I want to tell a .NET 3.5 application, running on the same machine, that this event occurred. The total data transferred each time is probably a few characters. What is the best way of using Java to tell ...
Given the constraints of your scenario, you want a lightweight and efficient way for your Java application to notify a .NET 3.5 application about an event on the same machine, while avoiding the overhead of web services or other complex solutions. Here are a couple of potential solutions that you might consider: ### ...
14,304
[ { "from": "human", "value": "A third-party application reads some Java code from an XML file, and runs it when a certain event happens. In Java, I want to tell a .NET 3.5 application, running on the same machine, that this event occurred. The total data transferred each time is probably a few characters.\nW...
I have object A which in turn has a property of type Object B Class A property x as Object B End Class On my ASP.NET page when I select a gridview item which maps to an object of type A I serialize the object onto the QueryString and pass it to the next page. However I run into problems if property x actually has s...
Passing complex objects through the QueryString can indeed lead to issues, especially when dealing with larger objects. You are correct that there's a limitation to the QueryString length, which is around 2048 characters in most browsers, and 4096 characters in some, but it's best to stay well below these limits to ens...
13,401
[ { "from": "human", "value": "I have object A which in turn has a property of type Object B\nClass A\n\nproperty x as Object B\n\nEnd Class\n\nOn my ASP.NET page when I select a gridview item which maps to an object of type A I serialize the object onto the QueryString and pass it to the next page. \nHowever...