instruction
stringlengths
14
27.6k
completion
stringlengths
3
38.3k
__original_row_idx
int64
0
50k
conversations
listlengths
2
2
I have a VB6 legacy program which I need to change. I am unable to run the program from the IDE. When I activate one of the forms in the IDE I get an error which refers me to an error log file. The log file has the following in it "Cannot load control SSPanel; license not found" The SSPanel is part the Sheridan 3D cont...
The error "Cannot load control SSPanel; license not found" typically indicates that the control you're trying to use is not registered correctly on your system or that the required license for the control is not present. Here are several steps you can take to resolve the issue: ### 1. **Register the OCX File** First,...
46,224
[ { "from": "human", "value": "I have a VB6 legacy program which I need to change. I am unable to run the program from the IDE. When I activate one of the forms in the IDE I get an error which refers me to an error log file. The log file has the following in it\n\"Cannot load control SSPanel; license not foun...
I'm a newbie with Subversion, so I don't now if this is a dumb question: I've inherited a subversion repository with a flat structure with no /trunk /tags /branches top level). I'd like re-structure it so that it follows the /trunk /tags /branches layout. Is this possible?
Not a dumb question at all! It's quite common for repositories to start with a flat structure, and restructuring them to follow the more standard layout of `/trunk`, `/branches`, and `/tags` is a good idea for organization and ease of use. Yes, it's definitely possible to restructure your Subversion repository. Here's...
47,999
[ { "from": "human", "value": "I'm a newbie with Subversion, so I don't now if this is a dumb question:\nI've inherited a subversion repository with a flat structure with no /trunk /tags /branches top level).\nI'd like re-structure it so that it follows the \n/trunk\n/tags\n/branches\n\nlayout.\nIs this possi...
In c (embedded) a plugin can be implemented by defining a function pointer table and an address range that the module can be loaded into. This requires linker directive to allocate the space and define the location of the function table. Is there a similar mechanism in HDL / VHDL or Verilog. I guess what I am thinking ...
In HDL (Hardware Description Language) like VHDL and Verilog, the concept of dynamic loading and execution of functionality at runtime, similar to what you describe for C plugins, is not directly supported due to the static nature of FPGA design and synthesis. However, there are some methodologies and techniques you ca...
47,596
[ { "from": "human", "value": "In c (embedded) a plugin can be implemented by defining a function pointer table and an address range that the module can be loaded into.\nThis requires linker directive to allocate the space and define the location of the function table.\nIs there a similar mechanism in HDL / V...
Greetings! I'd like to investigate Django but I'm running Windows XP. I've installed XMPP and I currently have Python 2.6 installed (is it true that 2.5 is the only version that will work with XMPP?). What else do I need to get up and running? Any tips, recommended IDEs, etc?
Greetings! Getting Django up and running on Windows XP can be a bit of a challenge, especially since Windows XP is quite outdated and many libraries and tools have since moved on to support newer versions of Windows. Here's a step-by-step guide to help you set up Django on your system: ### System Requirements: 1. **P...
45,499
[ { "from": "human", "value": "Greetings!\nI'd like to investigate Django but I'm running Windows XP. I've installed XMPP and I currently have Python 2.6 installed (is it true that 2.5 is the only version that will work with XMPP?). What else do I need to get up and running? Any tips, recommended IDEs, etc?...
I've read a few instances in reading mathematics and computer science that use the equivalence symbol ≡, (basically an '=' with three lines) and it always makes sense to me to read this as if it were equality. What is the difference between these two concepts?
The symbol ≡ is often used in mathematics and computer science to denote a specific type of equivalence, which can differ from the standard equality symbol (=). Here are some key distinctions between the two: 1. **Definition**: - **Equality (=)**: Represents the relationship between two expressions that are exactly...
46,514
[ { "from": "human", "value": "I've read a few instances in reading mathematics and computer science that use the equivalence symbol ≡, (basically an '=' with three lines) and it always makes sense to me to read this as if it were equality. What is the difference between these two concepts?\n" }, { "...
Environment: Windows 2003 Server (32 bit); IIS6, ASP.NET 2.0 (3.5); 4Gb Ram; 1 Worker Process We have a situation where we have a very large System.XmlDocument is being loaded into memory, and then it heads into a complied XSL transform. What is happening is when a web request comes in the server is sitting in an idle...
When dealing with a `System.OutOfMemoryException` in an environment like the one you've described, it's important to understand the behavior of the .NET framework, memory management, and IIS. Here are the answers to your questions: ### 1. At what level in the stack is this out-of-memory limitation being met? The `Sys...
47,566
[ { "from": "human", "value": "Environment:\nWindows 2003 Server (32 bit); IIS6, ASP.NET 2.0 (3.5); 4Gb Ram; 1 Worker Process \nWe have a situation where we have a very large System.XmlDocument is being loaded into memory, and then it heads into a complied XSL transform.\nWhat is happening is when a web reque...
I've been lately trying to learn more and generally test Java's serialization for both work and personal projects and I must say that the more I know about it, the less I like it. This may be caused by misinformation though so that's why I'm asking these two things from you all: 1: On byte level, how does serialization...
Serialization in Java is a mechanism that enables the conversion of an object into a byte stream, allowing it to be easily saved to a file, sent over a network, or otherwise persisted. Let's address your questions one by one: ### 1. How does serialization know how to match serialized values with some class? When an o...
46,945
[ { "from": "human", "value": "I've been lately trying to learn more and generally test Java's serialization for both work and personal projects and I must say that the more I know about it, the less I like it. This may be caused by misinformation though so that's why I'm asking these two things from you all:...
Please don't say EHCache or OSCache, etc. Assume for purposes of this question that I want to implement my own using just the SDK (learning by doing). Given that the cache will be used in a multithreaded environment, which datastructures would you use? I've already implemented one using LinkedHashMap and Collections#sy...
You're right in your consideration that `LinkedHashMap` combined with `Collections.synchronizedMap()` can work for a simple implementation of an LRU (Least Recently Used) cache. However, as you've noticed, this approach may not be optimal in a highly concurrent environment due to the potential contention and performanc...
43,637
[ { "from": "human", "value": "Please don't say EHCache or OSCache, etc. Assume for purposes of this question that I want to implement my own using just the SDK (learning by doing). Given that the cache will be used in a multithreaded environment, which datastructures would you use? I've already implemented o...
Here is what I am trying to do: Given a date, a day of the week, and an integer n, determine whether the date is the nth day of the month. For example: input of 1/1/2009,Monday,2 would be false because 1/1/2009 is not the second Monday input of 11/13/2008,Thursday,2 would return true because it is the second Thursday...
Your current implementation for determining if a given date is the nth occurrence of a specified day of the week in that month has some limitations. Here are a few points to improve and correct it: 1. **Correct Calculation of nth Occurrence**: Your logic for checking the nth occurrence of the day of the week does not ...
47,322
[ { "from": "human", "value": "Here is what I am trying to do:\nGiven a date, a day of the week, and an integer n, determine whether the date is the nth day of the month.\nFor example:\n\ninput of 1/1/2009,Monday,2\nwould be false because 1/1/2009 is not the second Monday\ninput of \n11/13/2008,Thursday,2\nwo...
How can I draw a concave corner rectangle in WPF?
To draw a concave corner rectangle in WPF, you can use a `Path` element and define a custom shape using a `Geometry`. The `PathGeometry` allows you to create complex shapes by combining different segments. Below is an example of how to create a rectangle with concave corners. ### Example Code Here’s how to create a c...
46,037
[ { "from": "human", "value": "How can I draw a concave corner rectangle in WPF?\n" }, { "from": "gpt", "value": "To draw a concave corner rectangle in WPF, you can use a `Path` element and define a custom shape using a `Geometry`. The `PathGeometry` allows you to create complex shapes by combinin...
I have a website about to launch with a forum facility. Should I put each thread into my sitemap.xml file, or will Google just find the links to each thread via the forum itself? Don't worry: it doesn't require registration to read the forum. If yes, how best to keep it up to date? Doing it by hand is obviously not an ...
When launching a website with a forum, it’s important to consider how best to ensure search engines like Google can effectively crawl and index all relevant pages, including individual threads. Here’s a breakdown of your questions: ### Should You Include Each Thread in Your Sitemap? **Yes, it’s a good idea to include...
46,931
[ { "from": "human", "value": "I have a website about to launch with a forum facility. Should I put each thread into my sitemap.xml file, or will Google just find the links to each thread via the forum itself? Don't worry: it doesn't require registration to read the forum.\nIf yes, how best to keep it up to d...
OK we are at the end of our rope here, and I’d really appreciate feedback from the SO community. Our basic issue is slow performance by our MOSS-based intranet-- Some environment info: We have a MOSS standard edition for a collaboration based site. The sitedb is 29 Gb we have two VMWare based front end servers. ...
It sounds like you’ve already taken significant steps to address performance issues with your MOSS-based intranet, but the ongoing slowness can certainly be frustrating. Here are several suggestions that may help improve performance further: ### 1. **Evaluate SQL Server Performance** - **Database Optimization**: En...
42,583
[ { "from": "human", "value": "OK we are at the end of our rope here, and I’d really appreciate feedback from the SO community.\nOur basic issue is slow performance by our MOSS-based intranet-- \nSome environment info:\nWe have a MOSS standard edition for a collaboration based site. \n\nThe sitedb is 29 Gb ...
This isn't really a programming question, more of an ideas question. Bear with me. My sister gave me a well-used Nokia N95. I don't really need it, but I wanted it to do some programming for it. It supports a few languages, of which I can do Python. My question is this: what to do with it? If I think about it, it has a...
Your enthusiasm for the potential of the Nokia N95 is infectious! There are indeed a plethora of possibilities for programming it, and your ideas are a great starting point. Here are some additional brainstormed ideas that can help you leverage its capabilities: ### 1. **Personal Assistant App** - **Smart Notificat...
44,966
[ { "from": "human", "value": "This isn't really a programming question, more of an ideas question. Bear with me.\nMy sister gave me a well-used Nokia N95. I don't really need it, but I wanted it to do some programming for it. It supports a few languages, of which I can do Python.\nMy question is this: what t...
I'm working on an useragent that logs into teamcity and I'm trying to move the password encryption from js to c#. this is the javascript the section called rsa.js and encrypt.js are important. They make a function call with rsa.setPublic(publicKey,"10001"); The exponent looks like its a hex number x10001 which is 65...
To successfully convert the RSA encryption from JavaScript to C#, we need to ensure that the public key is formatted correctly for the `RSACryptoServiceProvider`. The public key in your JavaScript code is most likely in a hexadecimal format, while `RSACryptoServiceProvider` requires the key in a specific XML or byte ar...
41,055
[ { "from": "human", "value": "I'm working on an useragent that logs into teamcity and I'm trying to move the password encryption from js to c#.\nthis is the javascript \nthe section called rsa.js and encrypt.js are important. They make a function call with \nrsa.setPublic(publicKey,\"10001\");\n\nThe exponen...
What I want to do is basically this: on ONE page, my customers can click a VIEW CART link and the contents of their cart shows below on that same page. Here is my basic link form: <FORM METHOD=post ACTION="http://www.123websiteservices.com/cgi-bin/cybercart.pl"> <INPUT TYPE=hidden NAME=merchant VALUE="jessicas"/> <I...
To achieve the functionality of displaying the contents of the cart on the same page when customers click the "VIEW CART" link, you can use JavaScript along with AJAX to make a request to your server without reloading the page. Here's a step-by-step guide on how to implement this: 1. **Set Up Your HTML Structure:** ...
44,877
[ { "from": "human", "value": "What I want to do is basically this: on ONE page, my customers can click a VIEW CART link and the contents of their cart shows below on that same page. Here is my basic link form:\n <FORM METHOD=post ACTION=\"http://www.123websiteservices.com/cgi-bin/cybercart.pl\">\n <INPUT TYP...
I wrote a function in C that converts a string to an integer and returns the integer. When I call the function I also want it to let me know if the string is not a valid number. In the past I returned -1 when this error occurred, because I didn't need to convert strings to negative numbers. But now I want it to convert...
To handle the error reporting in your `intval` function while allowing for negative number conversion, it's a good idea to use a mechanism that allows you to convey both the result of the conversion and any error status. There are a few common approaches to achieve this in C: ### Option 1: Use a Pointer to Return Erro...
42,555
[ { "from": "human", "value": "I wrote a function in C that converts a string to an integer and returns the integer. When I call the function I also want it to let me know if the string is not a valid number. In the past I returned -1 when this error occurred, because I didn't need to convert strings to negat...
I have a db2 table that contains values in many languages (including right-to-left languages.) When I export this table on a linux box using cli's ''export'' command, I get a good looking comma delimited text file (DEL file,) but when I try it on aix, it replaces all characters that are not in ascii with 0x1a. I tried...
When working with DB2 on different operating systems like Linux and AIX, you can encounter issues related to character encoding, especially when dealing with multi-language data that includes right-to-left languages (like Arabic or Hebrew). The problem you're facing with non-ASCII characters being replaced with `0x1a` ...
41,754
[ { "from": "human", "value": "I have a db2 table that contains values in many languages (including right-to-left languages.) When I export this table on a linux box using cli's ''export'' command, I get a good looking comma delimited text file (DEL file,) but when I try it on aix, it replaces all characters ...
Why would the following query return "Error converting data type varchar to bigint"? Doesn't IsNumeric make the CAST safe? I've tried every numeric datatype in the cast and get the same "Error converting..." error. I don't believe the size of the resulting number is a problem because overflow is a different error. T...
The error you are encountering, "Error converting data type varchar to bigint," is indeed puzzling at first glance, especially given that you are using `IsNumeric()` to filter the values in `myVarcharColumn`. However, there are a couple of nuances related to `IsNumeric()` and the behavior of `CAST` that may lead to thi...
48,367
[ { "from": "human", "value": "Why would the following query return \"Error converting data type varchar to bigint\"? Doesn't IsNumeric make the CAST safe? I've tried every numeric datatype in the cast and get the same \"Error converting...\" error. I don't believe the size of the resulting number is a pro...
I compiled my app in release mode. I then went ahead and 'published' the site. Copies all files and moved them to a staging server with a static ip. Restarted IIS. Went to another machine and hit my web site. It took about 4 seconds for just the default page, which is pure HTML with no custom framework usage, to show u...
If you're experiencing slow performance when accessing your website on a staging server, there are several potential reasons for the delay. Here are some common factors to consider and troubleshooting steps you can take: 1. **Cold Start**: If your application is running in a hosting environment (like IIS), it may take...
47,751
[ { "from": "human", "value": "I compiled my app in release mode. I then went ahead and 'published' the site.\nCopies all files and moved them to a staging server with a static ip. Restarted IIS.\nWent to another machine and hit my web site. It took about 4 seconds for just the default page, which is pure HTM...
I'm looking for a tool that can map the relationships in my database in mysql. I would like something like the view that is generated in MS-SQL Server Management Studio in the 'Show Diagram Pane'. Does such a thing exist? I'm in charge of the design of the database and its using rails conventions. I would not be adv...
Yes, there are several tools that can help you visualize the relationships in your MySQL database, similar to the diagram feature in MS SQL Server Management Studio. Here are some popular options you can consider: 1. **MySQL Workbench**: - MySQL Workbench is an official graphical tool from MySQL that offers data mo...
48,093
[ { "from": "human", "value": "I'm looking for a tool that can map the relationships in my database in mysql. I would like something like the view that is generated in MS-SQL Server Management Studio in the 'Show Diagram Pane'. Does such a thing exist?\nI'm in charge of the design of the database and its us...
I use Visual SourceSafe with Visual Studio. Every time I work on a project for a while, the directory structure on my harddisk gets messed up. The latest versions of the files are going to their own nested folder, so I end up with C:\VS2005\Projects\MyProject\MyProject\MyProject\MyProject What is causing this?
The issue you're experiencing with Visual SourceSafe (VSS) and Visual Studio often arises from how the projects and solutions are structured or how Visual Studio is set up to work with VSS. Here are some common reasons for the nesting issue and potential solutions: 1. **Solution and Project Structure**: - Make su...
48,527
[ { "from": "human", "value": "I use Visual SourceSafe with Visual Studio. Every time I work on a project for a while, the directory structure on my harddisk gets messed up.\nThe latest versions of the files are going to their own nested folder, so I end up with C:\\VS2005\\Projects\\MyProject\\MyProject\\MyP...
I'm curious as to what type of experiences people have had with libgd. I am looking for an alternative to GDI+ (something faster). I have tried ImageMagick, but can't get the performance out of it i need. I have heard that ligd is fast, but less feature rich, and that ImageMagick is slow, but more feature rich. I only ...
Libgd is a popular C library for the dynamic creation of images, and it's known for being lightweight and relatively fast, particularly for simpler image processing tasks. Here are some key considerations based on your requirements: ### Pros of Using libgd: 1. **Speed**: Libgd is generally faster than GDI+ for simple ...
49,857
[ { "from": "human", "value": "I'm curious as to what type of experiences people have had with libgd. I am looking for an alternative to GDI+ (something faster). I have tried ImageMagick, but can't get the performance out of it i need.\nI have heard that ligd is fast, but less feature rich, and that ImageMagi...
I am creating a script on the fly to ftp some files from a remote computer. I create a file which is then called from the command line with ftp -s:filename proxy where filename is the file I just created. The file has code similar to the following: anonymous@ip address username prompt off binary cd c:\destination di...
It sounds like you’ve made significant progress in troubleshooting your FTP script. Let's break it down further to clarify how FTP commands should be structured, particularly regarding local and remote directories. ### FTP Command Structure When using FTP from a command file (with `-s:filename`), you need to clearly ...
46,471
[ { "from": "human", "value": "I am creating a script on the fly to ftp some files from a remote computer. I create a file which is then called from the command line with\nftp -s:filename proxy\n\nwhere filename is the file I just created. The file has code similar to the following:\nanonymous@ip address\nu...
I am trying to send a user to another page using a Javascript Function: <input type="button" name="confirm" value="nextpage" onClick="message()"> And my JavaScript: function message() { ConfirmStatus = confirm("Install a Virus?"); if (ConfirmStatus == true) { //Send user to another page } } Does ...
To redirect a user to another page in JavaScript after they confirm an action, you can use the `window.location` object. Specifically, you can set `window.location.href` to the URL of the page you want to navigate to. Here is how you can modify your `message` function to accomplish this: ```html <input type="button" n...
48,110
[ { "from": "human", "value": "I am trying to send a user to another page using a Javascript Function:\n<input type=\"button\" name=\"confirm\" value=\"nextpage\" onClick=\"message()\">\n\nAnd my JavaScript:\nfunction message() {\n ConfirmStatus = confirm(\"Install a Virus?\");\n\n if (ConfirmStatus == ...
I have created an asp.net website that connects to a SQL server database. Currently on my development machine I have the connection set to a SQL server express database with the file residing in the App_Data file of the website. I now need to upload the site to my host of which I have an SQL server database set up. The...
To connect your ASP.NET website to the SQL Server database provided by your host, you'll need to modify the connection string in your `web.config` file. Here’s how to do that: 1. **Locate the `web.config` file** in your ASP.NET project. This file usually resides in the root directory of your web application. 2. **Mod...
47,215
[ { "from": "human", "value": "I have created an asp.net website that connects to a SQL server database. Currently on my development machine I have the connection set to a SQL server express database with the file residing in the App_Data file of the website.\nI now need to upload the site to my host of which...
I'm looking into using MemCached for a web application I am developing and after researching MemCached over the past few days, I have come across a question I could not find the answer to. How do you link Memcached server together or how do you replicate data between MemCached server? Additionally: Is this functionalit...
Memcached is a distributed memory caching system designed to speed up dynamic web applications by alleviating database load. However, it’s important to note that Memcached does not support data replication or persistence out of the box, and its architecture is fundamentally different from systems that provide replicati...
44,720
[ { "from": "human", "value": "I'm looking into using MemCached for a web application I am developing and after researching MemCached over the past few days, I have come across a question I could not find the answer to.\nHow do you link Memcached server together or how do you replicate data between MemCached ...
I've found this piece of code on Koders: private ServiceProvider SiteServiceProvider { get { if (serviceProvider == null) { serviceProvider = new ServiceProvider(site as VSOLE.IServiceProvider); Debug.Assert(serviceProvider != null, "Unable to get ServiceProvider from sit...
You're correct in your understanding that the `new` operator will typically either successfully create an instance of an object or throw an exception if it fails. However, the `Debug.Assert(serviceProvider != null, "Unable to get ServiceProvider from site object.");` line in the code is meant to ensure that the `servic...
49,105
[ { "from": "human", "value": "I've found this piece of code on Koders:\nprivate ServiceProvider SiteServiceProvider\n{\n get\n {\n if (serviceProvider == null)\n {\n serviceProvider = new ServiceProvider(site as VSOLE.IServiceProvider);\n Debug.Assert(serviceProvider...
I'm stumped and feeling stupid. I've tried every search combination I can think of to figure this out. It seems simple, but being new to javascript I'm not seeing anything helpful in my search for examples or demos. I'm looking to use a script like I would a python or perl script to run a simple linux command. The inte...
It sounds like you're looking to run shell commands using JavaScript on the server-side, typically with Node.js. Node.js allows you to execute shell commands through its built-in `child_process` module. This can be similar to how you would use Python or Perl to execute system commands. Here’s a simple example to get y...
44,206
[ { "from": "human", "value": "I'm stumped and feeling stupid. I've tried every search combination I can think of to figure this out. It seems simple, but being new to javascript I'm not seeing anything helpful in my search for examples or demos.\nI'm looking to use a script like I would a python or perl scri...
Is there an attribute to skip empty arrays in the xml-serialization of c#? This would increase human-readability of the xml-output.
In C#, there isn't a built-in attribute specifically for XML serialization that directly tells the serializer to skip empty arrays. However, you can achieve this behavior by using a couple of workarounds. ### Option 1: Use a Custom Property You can create a custom property that only serializes the array if it contain...
47,021
[ { "from": "human", "value": "Is there an attribute to skip empty arrays in the xml-serialization of c#? This would increase human-readability of the xml-output.\n" }, { "from": "gpt", "value": "In C#, there isn't a built-in attribute specifically for XML serialization that directly tells the se...
I have a whole bunch of POV-RAY files from a molecular dynamics simulation with the general name "frameXX.pov" where "XX" is the number of the frame. I want to render them all but I have like 500 so I really don't wanna do it by hand. I'm sure there is a way to do this from the command line or a batch file...what woul...
You can easily render multiple POV-Ray files from the command line using a script. Here's a method to do it on both Windows and Unix-based systems (like Linux or macOS). ### For Windows: You can create a batch file to automate the rendering. Here’s how: 1. Open a text editor (like Notepad) and write the following sc...
49,096
[ { "from": "human", "value": "I have a whole bunch of POV-RAY files from a molecular dynamics simulation with the general name \"frameXX.pov\" where \"XX\" is the number of the frame. I want to render them all but I have like 500 so I really don't wanna do it by hand. I'm sure there is a way to do this from...
I'm trying to figure out if Haskell uses dynamic or static scoping. I realize that, for example, if you define: let x = 10 then define the function let square x = x*x You have 2 different "x's", and does that mean it is dynamically scoped? If not, what scoping does it use, and why? Also, can Haskell variables have a...
Haskell uses **static scoping** (also known as lexical scoping). In static scoping, the scope of a variable is determined by the physical structure of the code, specifically the location where the variable is defined, rather than where it is called. In your example: ```haskell let x = 10 let square x = x * x ``` Her...
49,212
[ { "from": "human", "value": "I'm trying to figure out if Haskell uses dynamic or static scoping.\nI realize that, for example, if you define:\nlet x = 10\n\nthen define the function\nlet square x = x*x\n\nYou have 2 different \"x's\", and does that mean it is dynamically scoped? If not, what scoping does i...
I am working on some code coverage for my applications. Now, I know that code coverage is an activity linked to the type of tests that you create and the language for which you wish to do the code coverage. My question is: Is there any possible way to do some generic code coverage? Like in, can we have a set of feature...
Creating a generic framework for code coverage that can be applied to multiple applications and languages is a challenging but interesting endeavor. Here are some ideas to consider when building such a framework: ### 1. Understand Code Coverage Types First, familiarize yourself with the different types of code coverag...
43,956
[ { "from": "human", "value": "I am working on some code coverage for my applications. Now, I know that code coverage is an activity linked to the type of tests that you create and the language for which you wish to do the code coverage.\nMy question is: Is there any possible way to do some generic code cover...
I mean, can you use couchDB for: CRUD of items, users bids and auctions resolutions bidirectional califications forum items comparison
Yes, CouchDB can be used for the functionalities you've described, although there are some considerations to keep in mind for each aspect. Let's break it down: 1. **CRUD of Items and Users**: - CouchDB is a NoSQL database that stores data in JSON format, which is well-suited for managing documents like items and u...
46,816
[ { "from": "human", "value": "I mean, can you use couchDB for:\n\nCRUD of items, users\nbids and auctions resolutions\nbidirectional califications\nforum\nitems comparison\n\n" }, { "from": "gpt", "value": "Yes, CouchDB can be used for the functionalities you've described, although there are some...
Is there a function in the C Library under Linux which can set the length of a file? Under Windows I know there is a SetFileLength() function. If there is not, what is the best way of shortening a file without deleting and rewriting it?
In the C standard library under Linux, there isn't a specific function named `SetFileLength()`. However, you can achieve similar functionality using system calls provided by the POSIX standard, specifically using `ftruncate()`. ### `ftruncate()` Function The `ftruncate()` function can be used to set the length of a f...
47,303
[ { "from": "human", "value": "Is there a function in the C Library under Linux which can set the length of a file? Under Windows I know there is a SetFileLength() function.\nIf there is not, what is the best way of shortening a file without deleting and rewriting it?\n" }, { "from": "gpt", "value...
I need to learn about Postgresql. I'm trying to branch an application framework which is dependent on Oracle to use Postgresql. I can easily find communities of Java and JavaScript programmers via the web. Oracle communities a little more difficult, but between OTN and AskTom, I do pretty well. But Postgresql seems few...
PostgreSQL has a robust community, and while it may not be as large as those for Java or JavaScript, there are many excellent resources available for learning and troubleshooting. Here are some recommended resources, including forums, tutorials, and documentation: ### Official Documentation - **PostgreSQL Official Doc...
45,045
[ { "from": "human", "value": "I need to learn about Postgresql. I'm trying to branch an application framework which is dependent on Oracle to use Postgresql. I can easily find communities of Java and JavaScript programmers via the web. Oracle communities a little more difficult, but between OTN and AskTom, I...
Our build is dog slow. It uses nested gnu makefiles on linux. It creates three builds for three different targets from the same source tree. It uses symlinks to point to each of the three parallel directory trees in turn. We can do partial builds by using make inside subdirectories, which saves time, but if our work sp...
Your build system sounds complex, and there are several factors that can contribute to its slowness. Here are some suggestions and considerations for optimizing your build process, particularly with regard to nested Makefiles and symlinks: ### 1. Analyze Build Times - **Profiling Build Times**: Use tools like `make -d...
48,629
[ { "from": "human", "value": "Our build is dog slow. It uses nested gnu makefiles on linux. It creates three builds for three different targets from the same source tree. It uses symlinks to point to each of the three parallel directory trees in turn. We can do partial builds by using make inside subdirector...
We have a query that selects rows depending on the value of another, ie. the max. I don't think that really makes much sense, so here is the query: var deatched = DetachedCriteria.For<Enquiry>("e2") .SetProjection(Projections.Alias(Projections.Max("Property"), "maxProperty")) .Add(Restrictions.EqProperty("e2.Enq...
The query you've provided uses a subquery to find the maximum value of the "Property" field for each "EnquiryCode". While this approach can work, it's important to consider both readability and performance, especially if the dataset is large. Using subqueries can lead to performance issues because they may not always b...
47,703
[ { "from": "human", "value": "We have a query that selects rows depending on the value of another, ie. the max. I don't think that really makes much sense, so here is the query:\nvar deatched = DetachedCriteria.For<Enquiry>(\"e2\")\n .SetProjection(Projections.Alias(Projections.Max(\"Property\"), \"maxPro...
One CSS rule I have learned is that you should use the relative "em" font-size unit instead of the absolute "pt". The general idea is to set the font-size in your body tag to e.g. "94%" and then set all other elements with an "em" size like this. The reasoning is: you can then change the relative size of all the font...
You raise valid concerns about the use of `em` units for font sizing in CSS, and it's great that you're exploring the implications of different units. Here are detailed answers to your questions: ### 1. Is there any real-world reason why I should use "em" instead of "pt"? **Accessibility**: One of the primary reasons...
44,612
[ { "from": "human", "value": "One CSS rule I have learned is that you should use the relative \"em\" font-size unit instead of the absolute \"pt\". The general idea is to set the font-size in your body tag to e.g. \"94%\" and then set all other elements with an \"em\" size like this. The reasoning is:\n\nyo...
My team is working on a project to migrate a .com site into SharePoint. After all our look and feel assets, master pages, content types, and page layouts are created, we need to actually "move" the actual site pages into SharePoint. I'm trying to come up with the most effective way to do this. Our topology consists o...
Your project of migrating a .com site into SharePoint is a significant task, and it's great that you're considering the best approach for the initial population of your Authoring environment. Each of the options you've outlined has its pros and cons, and the choice ultimately depends on your specific requirements, reso...
49,040
[ { "from": "human", "value": "My team is working on a project to migrate a .com site into SharePoint. \nAfter all our look and feel assets, master pages, content types, and page layouts are created, we need to actually \"move\" the actual site pages into SharePoint. \nI'm trying to come up with the most effe...
I've been tasked with rewriting the Javascript engine currently powering my customer's internal website. While reviewing the code I've come across this function flvFPW1 which I do not recognize, nor can I decipher the code(my Javascript knowledge is modest at best). A Google search gives me a few hits, but most if not ...
It looks like the function name `flvFPW1` is likely generated or obfuscated JavaScript, which is common in certain scenarios, such as when code is minified for performance reasons or when developers want to protect their code from reverse engineering. Functions with names like `flvFPW1` generally do not have any intri...
49,662
[ { "from": "human", "value": "I've been tasked with rewriting the Javascript engine currently powering my customer's internal website. While reviewing the code I've come across this function flvFPW1 which I do not recognize, nor can I decipher the code(my Javascript knowledge is modest at best). A Google sea...
I was thinking along the lines of using typeid() but I don't know how to ask if that type is a subclass of another class (which, by the way, is abstract)
In C++, to check if a type is a subclass of another class (including an abstract class), you can use the `dynamic_cast` operator in combination with the `typeid` operator. The `dynamic_cast` operator is specifically designed for safely downcasting pointers or references in a polymorphic hierarchy, which means it works ...
49,952
[ { "from": "human", "value": "I was thinking along the lines of using typeid() but I don't know how to ask if that type is a subclass of another class (which, by the way, is abstract)\n" }, { "from": "gpt", "value": "In C++, to check if a type is a subclass of another class (including an abstract...
suppose I have an enum [Flags] public enum E { zero = 0, one = 1 } then I can write E e; object o = 1; e = (E) o; and it will work. BUT if I try to do that at runtime, like (o as IConvertible).ToType(typeof(E), null) it will throw InvalidCastException. So, is there something that I can invoke at runtime, an...
When working with enums in C#, particularly when you're trying to convert from an `int` or `int32` to an enum type at runtime, the simplest way to achieve this is by using the `Enum.ToObject` method. This allows you to convert an integer to an enum type safely without running into `InvalidCastException`. Here's how yo...
48,619
[ { "from": "human", "value": "suppose I have an enum\n[Flags]\npublic enum E { \n zero = 0,\n one = 1\n}\n\nthen I can write\nE e;\nobject o = 1;\ne = (E) o;\n\nand it will work.\nBUT if I try to do that at runtime, like\n(o as IConvertible).ToType(typeof(E), null)\n\nit will throw InvalidCastException...
Is there anyway to get a handle to when a laptop is going into suspend mode and do something before it actually goes into suspend mode? I assume this is not easy/possible because it would be ill-advised for the power management to honor any such software that was trying to stop it from going into suspend mode. The sp...
Yes, you can handle the suspend event in a Windows environment using various programming methods. While it’s true that you generally don’t want to prevent the system from going into suspend mode, you can still run specific actions before it does. Here’s how you can achieve that in a Windows application: ### Using Wind...
47,860
[ { "from": "human", "value": "Is there anyway to get a handle to when a laptop is going into suspend mode and do something before it actually goes into suspend mode? \nI assume this is not easy/possible because it would be ill-advised for the power management to honor any such software that was trying to st...
I need to convert several million dates stored as wide strings into boost dates The following code works. However, it generates a horrible compiler warning and does not seem efficient. Is there a better way? #include "boost/date_time/gregorian/gregorian.hpp" using namespace boost::gregorian; #include <string> using n...
You're on the right track with your use of facets and locales to efficiently convert wide strings to Boost date types. This is indeed a more streamlined approach compared to manually handling string conversions, and the performance benchmarks you provided support this. Regarding your final question about why there isn...
46,678
[ { "from": "human", "value": "I need to convert several million dates stored as wide strings into boost dates\nThe following code works. However, it generates a horrible compiler warning and does not seem efficient.\nIs there a better way?\n#include \"boost/date_time/gregorian/gregorian.hpp\"\nusing namespa...
Inspired by Units of Measure in F#, and despite asserting (here) that you couldn't do it in C#, I had an idea the other day which I've been playing around with. namespace UnitsOfMeasure { public interface IUnit { } public static class Length { public interface ILength : IUnit { } public clas...
Your exploration into implementing units of measure in C# is an interesting endeavor! It reflects a good understanding of generic programming and a desire to bring more type safety into your measurements. Here are some thoughts and suggestions regarding your approach: ### Strengths of Your Implementation: 1. **Type Sa...
44,063
[ { "from": "human", "value": "Inspired by Units of Measure in F#, and despite asserting (here) that you couldn't do it in C#, I had an idea the other day which I've been playing around with.\nnamespace UnitsOfMeasure\n{\n public interface IUnit { }\n public static class Length\n {\n public in...
When over freeing a pointer you may see an error such as "pointer being freed was not allocated" When debugging with the simulator, I add a build argument MallocStackLogging = YES - this allows me to use malloc_history in the terminal to track down where I have over freed a pointer. If I debug on the device with this b...
Debugging memory management issues, especially around freeing pointers, can be tricky, particularly when you experience discrepancies between behavior on the simulator and on actual devices. Here are some steps and strategies you can use to track down and debug over-freed pointers on a device: ### 1. **Enable Address ...
39,581
[ { "from": "human", "value": "When over freeing a pointer you may see an error such as\n\"pointer being freed was not allocated\"\nWhen debugging with the simulator, I add a build argument MallocStackLogging = YES - this allows me to use malloc_history in the terminal to track down where I have over freed a ...
I've been working with Vector2's and XNA, and I've come to find that calling the Normalize() member function on a Zero Vector normalizes it to a vector of {NaN, NaN}. This is all well and good, but in my case I'd prefer it instead just leave them as Zero Vectors. Adding this code to my project enabled a cute extension...
In C#, when you create an extension method, the instance you pass (in your case, `Vector2 v2`) is passed by value, which means that any modifications to it within the method do not affect the original instance outside of the method. To modify the instance itself, you need to pass it by reference using the `ref` keyword...
49,726
[ { "from": "human", "value": "I've been working with Vector2's and XNA, and I've come to find that calling the Normalize() member function on a Zero Vector normalizes it to a vector of {NaN, NaN}. This is all well and good, but in my case I'd prefer it instead just leave them as Zero Vectors.\nAdding this c...
I'd like to yank a line in a register: "{register}y but without overwriting what was previously in the register. I often need to copy non-contiguous lines in a register, and I'd like to use sometimes the registers like a stack. Example: line1 line2 line3 I want to copy line1, by putting the cursor on it and entering "...
In Vim, the default behavior of registers is to overwrite the contents every time you use the `y` command with a register. However, there are ways to achieve what you're looking for without using plugins by leveraging the `:put` command along with some additional steps. ### Without Plugins 1. **Using a Temporary Buf...
47,016
[ { "from": "human", "value": "I'd like to yank a line in a register: \"{register}y but without overwriting what was previously in the register. I often need to copy non-contiguous lines in a register, and I'd like to use sometimes the registers like a stack.\nExample:\nline1\nline2\nline3\n\nI want to copy l...
Can anyone recommend a good Silverlight 2.0 slide panel that takes an unknown number of user controls as children and allows the user to scroll up and down through the child list. Similar to http://www.thejamesbondmovies.com/ but vertical and not just limited to images.
If you're looking for a Silverlight 2.0 slide panel that can accommodate an unknown number of user controls and allows for vertical scrolling, you can create a custom user control for this purpose. Below is a basic example of how you can implement such a scrollable panel in Silverlight. ### Example Implementation of a...
47,470
[ { "from": "human", "value": "Can anyone recommend a good Silverlight 2.0 slide panel that takes an unknown number of user controls as children and allows the user to scroll up and down through the child list.\nSimilar to http://www.thejamesbondmovies.com/ but vertical and not just limited to images.\n" },...
I'm working with a bit of html and Javascript code that I've taken over from someone else. The page reloads a table of data (via an asynchronous request) every ten seconds, and then re-builds the table using some DOM code. The code in question looks something like this: var blah = xmlres.getElementsByTagName('blah'); f...
You're correct in your understanding of the issue. The problem arises because of how JavaScript closures work. When the `onchange` event is fired, it uses the final values of `callid` and `anotherid`, which are the last values set during the loop, rather than the values from the specific iteration where the event handl...
43,644
[ { "from": "human", "value": "I'm working with a bit of html and Javascript code that I've taken over from someone else. The page reloads a table of data (via an asynchronous request) every ten seconds, and then re-builds the table using some DOM code. The code in question looks something like this:\nvar bla...
I'm trying to do a simple erase and keep getting errors. Here is the snippet of code for my erase: std::list<Mine*>::iterator iterMines = mines.begin(); for(int i = oldSizeOfMines; i >0 ; i--, iterMines++) { if(player->distanceFrom(*iterMines) < radiusOfOnScreen) { onScreen.push_back(*iterMines); ...
The error you're encountering indicates that there's a type mismatch with the iterators you're trying to use in your `std::list` operations. Let's break down the issues and then look at how to fix them. ### Understanding the Issue 1. **Iterator Types**: Your iterator `iterMines` is of type `std::list<Mine*>::iterator...
46,790
[ { "from": "human", "value": "I'm trying to do a simple erase and keep getting errors.\nHere is the snippet of code for my erase:\nstd::list<Mine*>::iterator iterMines = mines.begin();\nfor(int i = oldSizeOfMines; i >0 ; i--, iterMines++)\n{\n if(player->distanceFrom(*iterMines) < radiusOfOnScreen)\n {...
public Int64 ReturnDifferenceA() { User[] arrayList; Int64 firstTicks; IList<User> userList; Int64 secondTicks; System.Diagnostics.Stopwatch watch; userList = Enumerable .Range(0, 1000) .Select(currentItem => new User()).ToList(); arrayList = userList.ToArray(); watch = ne...
What you're observing in your benchmarking with the `Stopwatch` is indeed influenced by several factors, including caching, Just-In-Time (JIT) compilation, and optimizations performed by the runtime. Let's break down the likely causes for the differences in timing you are seeing. ### 1. JIT Compilation When you first ...
44,745
[ { "from": "human", "value": "public Int64 ReturnDifferenceA()\n{\n User[] arrayList;\n Int64 firstTicks;\n IList<User> userList;\n Int64 secondTicks;\n System.Diagnostics.Stopwatch watch;\n\n userList = Enumerable\n .Range(0, 1000)\n .Select(currentItem => new User()).ToList(...
I don't want a "close window" menu item in the task bar context menu for my WPF window. My intention is to annoy the user. Thank you!
If your intention is to customize the context menu of the taskbar for a WPF application (or to remove the "Close Window" option), you'll need to use a combination of Windows API calls because WPF doesn't natively provide a straightforward way to manipulate the taskbar context menu. While I understand you might want to...
44,829
[ { "from": "human", "value": "I don't want a \"close window\" menu item in the task bar context menu for my WPF window. My intention is to annoy the user.\nThank you!\n" }, { "from": "gpt", "value": "If your intention is to customize the context menu of the taskbar for a WPF application (or to re...
I'm working on a web-application and need to figure out the best way to host it. I'm looking to minimize "Total Cost of Ownership," but it's more important to keep hosting costs low than labor costs in my case. Potentially, some day, it will grow quite large (in terms of user-base) with heavy traffic but, of course, it...
When considering hosting options for your web application, especially when aiming to minimize Total Cost of Ownership (TCO) while accommodating potential growth, both of your proposed options have merits and trade-offs. Here’s a breakdown of each approach along with some additional considerations: ### Option 1: Start ...
44,841
[ { "from": "human", "value": "I'm working on a web-application and need to figure out the best way to host it. I'm looking to minimize \"Total Cost of Ownership,\" but it's more important to keep hosting costs low than labor costs in my case.\nPotentially, some day, it will grow quite large (in terms of user...
I have a web app on our intranet (VS 2005). There are a couple pages that don't require the user to be logged into the app (feedback and the default page). I am trying to get the domain and username to display and/or send with the feedback. Is there a way to do this without requiring the user to log in? I've tried ...
When dealing with user authentication and identity in a web application hosted on an intranet, especially in an environment with Windows 2000 machines, there are a few things to consider when trying to retrieve the domain and username of the logged-in user. ### Common Issues 1. **Anonymous Authentication:** Ensure tha...
45,353
[ { "from": "human", "value": "I have a web app on our intranet (VS 2005). There are a couple pages that don't require the user to be logged into the app (feedback and the default page). I am trying to get the domain and username to display and/or send with the feedback. Is there a way to do this without r...
What steps do I take? Any gotchas to be aware of or tips to enhance the IDE experience that are specific to SQL Server when using Emacs?
Using Emacs as an Integrated Development Environment (IDE) for SQL Server can be a powerful choice, especially with its extensibility and customization capabilities. Here are some steps, tips, and potential gotchas to enhance your experience: ### Steps to Set Up Emacs for SQL Server 1. **Install Required Packages**: ...
42,389
[ { "from": "human", "value": "What steps do I take? Any gotchas to be aware of or tips to enhance the IDE experience that are specific to SQL Server when using Emacs?\n" }, { "from": "gpt", "value": "Using Emacs as an Integrated Development Environment (IDE) for SQL Server can be a powerful choic...
I have this Perl software that is supposed to run 24/7. It keeps open a connection to an IMAP server, checks for new mail and then classifies new messages. Now I have a user that is hibernating his XP laptop every once in a while. When this happens, the connection to the server fails and an exception is triggered. The ...
It sounds like you're running into an issue where the Perl application is unable to properly handle exceptions thrown due to the system hibernating, leading to an unhandled exception popup. Since you're using `perlapp`, this complicates things slightly, but there are still ways to tackle this issue. ### Option 1: Use ...
46,978
[ { "from": "human", "value": "I have this Perl software that is supposed to run 24/7. It keeps open a connection to an IMAP server, checks for new mail and then classifies new messages.\nNow I have a user that is hibernating his XP laptop every once in a while. When this happens, the connection to the server...
What is the best way to quickly get up to speed on Microsoft Expressions Blend 2? Are there some good web sites that can get me started or does someone have a good book that they would recommend?
To quickly get up to speed on Microsoft Expression Blend 2, you can utilize a variety of resources, including websites, tutorials, and books. Here are some recommended approaches and resources: ### Websites and Online Tutorials 1. **Microsoft Official Documentation**: - The official Microsoft documentation provide...
47,160
[ { "from": "human", "value": "What is the best way to quickly get up to speed on Microsoft Expressions Blend 2? \nAre there some good web sites that can get me started or does someone have a good book that they would recommend?\n" }, { "from": "gpt", "value": "To quickly get up to speed on Micros...
Taking advice from this post, I purchased a copy of 'The C Programming Language' and am happily reading my way through. However, all the stuff I've written in the past has been interpreted, and I have no idea where to look for a good C compiler or an IDE (is there even one?). Google searches throw up a lot of results ...
It's great to hear that you're diving into C programming! While there isn't a single "industry standard" IDE for C like you might find for other languages, there are several excellent options for C compilers and IDEs that are widely used and respected. Here are some recommendations: ### Compilers 1. **GCC (GNU Compil...
48,469
[ { "from": "human", "value": "Taking advice from this post, I purchased a copy of 'The C Programming Language' and am happily reading my way through. \nHowever, all the stuff I've written in the past has been interpreted, and I have no idea where to look for a good C compiler or an IDE (is there even one?). ...
I have nested dictionaries: {'key0': {'attrs': {'entity': 'p', 'hash': '34nj3h43b4n3', 'id': '4130'}, u'key1': {'attrs': {'entity': 'r', 'hash': '34njasd3h43b4n3', 'id': '4130-1'}, u'key2': {'attrs': {'entity': 'c', ...
To navigate through a nested dictionary structure and retrieve the dictionary corresponding to a specific ID, you can use a recursive approach. Since you mentioned that the nesting is between 1 to 4 levels and that you know the nesting before parsing, we can implement a function to perform this task. Here's a Python f...
47,266
[ { "from": "human", "value": "I have nested dictionaries:\n{'key0': {'attrs': {'entity': 'p', 'hash': '34nj3h43b4n3', 'id': '4130'},\n u'key1': {'attrs': {'entity': 'r',\n 'hash': '34njasd3h43b4n3',\n 'id': '4130-1'},\n u'k...
If you have a binary file format (or packet format) which is described as a C structure, are there any programs which will parse the structure and turn it into neat documentation on your protocol? The struct would of course contain arrays, other structures, etc., as necessary to describe the format. The documentation ...
Yes, there are several tools and libraries that can help you parse C structures and generate documentation for binary file formats or packet formats. Here are some of the notable ones: ### 1. **Doxygen** Doxygen is a widely-used documentation generator that can extract comments from C/C++ code. You can annotate your C...
47,516
[ { "from": "human", "value": "If you have a binary file format (or packet format) which is described as a C structure, are there any programs which will parse the structure and turn it into neat documentation on your protocol?\nThe struct would of course contain arrays, other structures, etc., as necessary t...
How do I hide/lock a few tables in Oracle so that only my application has access to modify those data in the table?
To hide or lock certain tables in Oracle so that only your application can modify the data, you can follow these steps: ### 1. Create a Dedicated Database User Create a separate user account for your application to use when connecting to the database. This user will have the necessary permissions to access and modify...
45,560
[ { "from": "human", "value": "How do I hide/lock a few tables in Oracle so that only my application has access to modify those data in the table?\n" }, { "from": "gpt", "value": "To hide or lock certain tables in Oracle so that only your application can modify the data, you can follow these steps...
I have a support environment where we connect to many of our customers' systems using VPN and Remote Desktop. Right now, support personnel have to manually set up the VPN connection on their workstation. Is there a way to programmatically create the VPN connection?
Yes, you can programmatically create VPN connections on a Windows workstation by using PowerShell or Windows command-line tools. This can help automate the setup process for your support personnel. Below are some methods you can use. ### Method 1: Using PowerShell PowerShell offers cmdlets to manage VPN connections o...
46,680
[ { "from": "human", "value": "I have a support environment where we connect to many of our customers' systems using VPN and Remote Desktop. Right now, support personnel have to manually set up the VPN connection on their workstation. Is there a way to programmatically create the VPN connection?\n" }, { ...
I have a server that hosts my Subversion code base. That server is currently a Windows Server 2003 box, and my IT administrator wants to update it to Windows Server 2008. This means that I'm going to need to move my Subversion repository while the server gets built up and was wondering what the best practices are for m...
Yes, the method you've outlined is one of the best practices for moving a Subversion (SVN) repository from one server to another. Using `svnadmin dump` and `svnadmin load` allows you to create a complete backup of your repository, including all its history, and then restore it on the new server. Here’s a more detailed ...
47,193
[ { "from": "human", "value": "I have a server that hosts my Subversion code base. That server is currently a Windows Server 2003 box, and my IT administrator wants to update it to Windows Server 2008.\nThis means that I'm going to need to move my Subversion repository while the server gets built up and was w...
We have an application that is built upon ADO.NET. We follow some simple best practices that allow us to make use of the connection pool. For example, a block of code that is using a database might look something like this: using( DbConnection dbConnection = GetDatabaseConnection() ) { doWork(); } FWIW, the...
The issue you're experiencing with connection pooling and the `InvalidOperationException` is a common challenge when dealing with bursty workloads in a multi-threaded application. Your observations about the connection pool and behavior under load are insightful. Here are some thoughts and potential strategies to mitig...
45,116
[ { "from": "human", "value": "We have an application that is built upon ADO.NET. We follow some simple best practices that allow us to make use of the connection pool. For example, a block of code that is using a database might look something like this:\n\nusing( DbConnection dbConnection = GetDatabaseConn...
I have a client and a server both written in .net 3.5 so I've got no interoperability issues. The server is fully accessible on port 443 (I'm hosting it so I can open other ports if needed) The client is however less accessible. It's often behind a corporate firewall, or behind a NAT, or uses an http/https proxy to con...
In your scenario, where the client is behind corporate firewalls, NATs, or proxies, and you need encrypted bi-directional communication, you may face limitations with standard WCF bindings, particularly with `NetTcpBinding` and `WSDualHttpBinding`, as you mentioned. However, you can achieve your goal by using the foll...
49,009
[ { "from": "human", "value": "I have a client and a server both written in .net 3.5 so I've got no interoperability issues.\nThe server is fully accessible on port 443 (I'm hosting it so I can open other ports if needed)\nThe client is however less accessible. It's often behind a corporate firewall, or behin...
I have this classic ASP site which has been working fine until we updated it. It was just a site-update, meaning .asp files which ran fine in our test enviroment, no service packs or patches. I can not reproduce the error at all on a test-site on the same server. The system it's running on is IIS6 on Server 2003. Someh...
It sounds like you're experiencing issues with session management in your classic ASP application after an update. In ASP, the `Session_OnStart` event is triggered when a new session is initiated. If a user revisits the site with an old session cookie that points to a session that has already expired or is not valid an...
47,543
[ { "from": "human", "value": "I have this classic ASP site which has been working fine until we updated it. It was just a site-update, meaning .asp files which ran fine in our test enviroment, no service packs or patches. I can not reproduce the error at all on a test-site on the same server.\nThe system it'...
I am working on a small team of web application developers. We edit JSPs in Eclipse on our own machines and then move them over to a shared application server to test the changes. I have an Ant script that will take ALL the JSPs on my machine and move them over to the application server, but will only overwrite JSPs ...
To achieve the ability to move only the currently edited JSP file to your shared application server from within Eclipse, you can use a combination of Eclipse's built-in features and Ant scripts. ### Method 1: Ant Script with Command Line Argument You can modify your Ant script to accept a command-line argument that s...
44,892
[ { "from": "human", "value": "I am working on a small team of web application developers. We edit JSPs in Eclipse on our own machines and then move them over to a shared application server to test the changes. I have an Ant script that will take ALL the JSPs on my machine and move them over to the applicat...
We have a semi-weird issue for our site. Consistently, from 1 anonymous* user the following error occurs: Exception type: System.FormatException Exception message: Invalid length for a Base-64 char array. After some investigation, it appears the user is using some form of load-balancing firewall, as the IIS logs show...
The issue you're facing with the `System.FormatException` indicating "Invalid length for a Base-64 char array" when the user is posting back from different IPs is likely related to how the ViewState is being handled in ASP.NET. When ViewState is enabled (which it usually is by default), it encodes data in a Base64 str...
46,540
[ { "from": "human", "value": "We have a semi-weird issue for our site.\nConsistently, from 1 anonymous* user the following error occurs:\n\nException type: System.FormatException\nException message: Invalid length for\na Base-64 char array.\n\nAfter some investigation, it appears the user is using some form ...
My schema specifies a namespace, but the documents don't. What's the simplest way to ignore namespace during JAXB unmarshalling (XML -> object)? In other words, I have <foo><bar></bar></foo> instead of, <foo xmlns="http://tempuri.org/"><bar></bar></foo>
If you want to ignore namespaces during JAXB unmarshalling, one of the simplest ways to handle it is by customizing the unmarshaller's behavior with a `NamespacePrefixMapper`. However, there isn't a built-in option to ignore namespaces directly in JAXB. Instead, you can follow these approaches: ### Option 1: Use a cus...
46,997
[ { "from": "human", "value": "My schema specifies a namespace, but the documents don't. What's the simplest way to ignore namespace during JAXB unmarshalling (XML -> object)?\nIn other words, I have\n<foo><bar></bar></foo>\n\ninstead of,\n<foo xmlns=\"http://tempuri.org/\"><bar></bar></foo>\n\n" }, { ...
How to perform validation for a radio button group (one radio button should be selected) using jQuery validation plugin?
To perform validation for a radio button group using the jQuery Validation Plugin, you can define a custom method to check if at least one radio button from the group is selected. The jQuery Validation Plugin allows you to easily add custom validation rules that can be applied to your form. Here's a step-by-step guide...
47,934
[ { "from": "human", "value": "How to perform validation for a radio button group (one radio button should be selected) using jQuery validation plugin?\n" }, { "from": "gpt", "value": "To perform validation for a radio button group using the jQuery Validation Plugin, you can define a custom method...
In rails I want to log some information in a different log file and not the standard development.log or production.log. I want to do this logging from a model class.
In a Ruby on Rails application, you can create a separate log file for specific logging purposes by configuring a new logger. Here’s how to set up a custom log file and log information from a model class. ### Step 1: Create a New Logger You can create a new logger in an initializer. This logger will write to a differ...
47,486
[ { "from": "human", "value": "In rails I want to log some information in a different log file and not the standard development.log or production.log. I want to do this logging from a model class.\n" }, { "from": "gpt", "value": "In a Ruby on Rails application, you can create a separate log file f...
My problem is that I want a grid that is populated with a set of times spent on tasks. It needs to have the days of the week at the top (these would preferably be fixed - i.e. Sun, Mon... Sat) and task names down the left column. The contents of the grid will have the individual hours spent for that day on that task....
The approach to take in creating a grid populated with times spent on tasks is largely dependent on the specific requirements of your application, including performance, maintainability, and complexity of the data. However, based on the options you've outlined, here's a recommendation: ### Recommended Approach: Use LI...
46,181
[ { "from": "human", "value": "My problem is that I want a grid that is populated with a set of times spent on tasks. It needs to have the days of the week at the top (these would preferably be fixed - i.e. Sun, Mon... Sat) and task names down the left column. The contents of the grid will have the individu...
I can successfully connect to MySQL from a DOS prompt, but when I try to connect from cygwin, it just hangs. $/cygdrive/c/Program\ Files/MySQL/MySQL\ Server\ 5.1/bin/mysql -u root -p What's wrong?
When you can connect to MySQL from the DOS prompt but encounter issues in Cygwin where it hangs, the problem may arise due to differences in how the environments handle certain configurations. Here are some steps to troubleshoot and resolve the issue: 1. **Path to MySQL**: Make sure you are correctly referencing the M...
45,627
[ { "from": "human", "value": "I can successfully connect to MySQL from a DOS prompt, but when I try to connect from cygwin, it just hangs.\n$/cygdrive/c/Program\\ Files/MySQL/MySQL\\ Server\\ 5.1/bin/mysql -u root -p\n\nWhat's wrong?\n" }, { "from": "gpt", "value": "When you can connect to MySQL ...
I'm trying to merge two main menus together, but am having problems getting the right result with sub-items. I'm using the GroupIndex property on my MenuItems to control the merging/insertion. Menu1 (with groupindices) is like this File=10 Open=11 Close=12 Edit=20 Cut=21 Paste=22 Help=90 About=91 Menu2 is li...
When merging menus in a hierarchical structure, you can encounter issues with menu items disappearing if their `GroupIndex` properties are not correctly set or if they overlap during the merge process. In your case, it seems like the issue arises from the `GroupIndex` values for the `Edit` menu and its related commands...
46,376
[ { "from": "human", "value": "I'm trying to merge two main menus together, but am having problems getting the right result with sub-items. I'm using the GroupIndex property on my MenuItems to control the merging/insertion.\nMenu1 (with groupindices) is like this\n\nFile=10\n\n\nOpen=11\nClose=12\n\nEdit=20\n...
I'm using IntelliJ-Idea to write Java daemons. We use JUnit to unit test our code and want to have automated runs on check-in to subversion. Are there any tools available that can automatically run unit tests and then send reports in email and to Hobbit?
Yes, there are several tools and approaches you can use to automate the running of JUnit tests upon check-in to Subversion (SVN) and send reports via email and to Hobbit (or any other monitoring system). Below are some commonly used tools and a possible workflow: ### Tools and Solutions 1. **Continuous Integration (C...
40,573
[ { "from": "human", "value": "I'm using IntelliJ-Idea to write Java daemons. We use JUnit to unit test our code and want to have automated runs on check-in to subversion.\nAre there any tools available that can automatically run unit tests and then send reports in email and to Hobbit?\n" }, { "from":...
With LINQ to SQL most likely going to not get as much active development as Entity Framework do you think it's best to switch to Entity Framework? I've personally found EF to be very clunky and hard to use compared to LINQ to SQL which feels very natural. EDIT: I recently posted an article on my blog about my feelings ...
It's understandable to have mixed feelings about switching from LINQ to SQL to Entity Framework (EF), especially if you're more comfortable with LINQ to SQL. Here are some points to consider when making your decision: ### Pros of Switching to Entity Framework: 1. **Active Development**: As you mentioned, Entity Frame...
48,352
[ { "from": "human", "value": "With LINQ to SQL most likely going to not get as much active development as Entity Framework do you think it's best to switch to Entity Framework?\nI've personally found EF to be very clunky and hard to use compared to LINQ to SQL which feels very natural.\nEDIT: I recently post...
I'm using Java 6 + JavaEE + Tomcat 6 + Metro for SOAP web services. In the response, the namespace prefixes are ns2, ns3, ns4, and so on. I'd like to be able to instruct the web services stack to use custom names instead. How do I do this?
In Java EE with Metro (the web service stack in Java EE), you can control the namespace prefixes in the generated WSDL and SOAP messages by configuring annotations and using a custom `@WebService` implementation. Here’s how you can specify custom namespace prefixes for your SOAP web services: 1. **Specify the Namespac...
43,770
[ { "from": "human", "value": "I'm using Java 6 + JavaEE + Tomcat 6 + Metro for SOAP web services. In the response, the namespace prefixes are ns2, ns3, ns4, and so on. I'd like to be able to instruct the web services stack to use custom names instead.\nHow do I do this?\n" }, { "from": "gpt", "va...
I like generics a lot and use them whereever I can. Every now and then I need to use one of my classes in another project which has to run on an old JVM (before 5.0), needs to run on JavaME (where generics are not allowed neither) or in Microsoft J# (which has VERY poor Support for generics). At the moment, I remove al...
If you need to convert your generic Java code to non-generic code for compatibility with older JVMs or environments that do not support generics, there isn't a widely known automated tool specifically designed for this task. However, there are a few approaches you can take to manage this situation: ### Approaches to H...
43,449
[ { "from": "human", "value": "I like generics a lot and use them whereever I can. Every now and then I need to use one of my classes in another project which has to run on an old JVM (before 5.0), needs to run on JavaME (where generics are not allowed neither) or in Microsoft J# (which has VERY poor Support ...
The following SQL separates tables according to their relationship. The problem is with the tables that sort under the 3000 series. Tables that are part of foreign keys and that use foreign keys. Anyone got some clever recursive CTE preferably or a stored procedure to do the necessary sorting?? Programs connectiong to ...
Your SQL code is a good starting point for classifying tables in a SQL Server database based on their relationships. To enhance it and correctly manage the 3000 series (i.e., tables that are both referenced by foreign keys and also referencing other tables), you can consider using a recursive CTE to gather and sort tho...
46,988
[ { "from": "human", "value": "The following SQL separates tables according to their relationship. The problem is with the tables that sort under the 3000 series. Tables that are part of foreign keys and that use foreign keys. Anyone got some clever recursive CTE preferably or a stored procedure to do the nec...
I'm brand new to Erlang. How do you do modulo (get the remainder of a division)? It's % in most C-like languages, but that designates a comment in Erlang. Several people answered with rem, which in most cases is fine. But I'm revisiting this because now I need to use negative numbers and rem gives you the remainder of ...
In Erlang, the `rem/2` function computes the remainder of a division, but as you've noted, the behavior for negative numbers can differ from what you might expect if you are familiar with modulo operations in other languages. In many programming languages, the modulo operation can return a result that is always non-ne...
49,807
[ { "from": "human", "value": "I'm brand new to Erlang. How do you do modulo (get the remainder of a division)? It's % in most C-like languages, but that designates a comment in Erlang.\nSeveral people answered with rem, which in most cases is fine. But I'm revisiting this because now I need to use negative n...
I have a list of (64-bit) addresses that represent a stack frame, and I want to hash these to a single 64-bit number to help identify those that have been seen before. There are at most 128 addresses. My current algorithm calculates the hash by iterating through the list, xor'ing each address into the hash and rotatin...
Your current approach of using XOR and rotating the hash is a reasonable starting point for creating a 64-bit hash from a list of addresses. However, there are a few alternative strategies you might consider to potentially improve the hash's distribution and reduce collisions. ### Alternative Hashing Methods 1. **FNV...
48,874
[ { "from": "human", "value": "I have a list of (64-bit) addresses that represent a stack frame, and I want to hash these to a single 64-bit number to help identify those that have been seen before. There are at most 128 addresses.\nMy current algorithm calculates the hash by iterating through the list, xor'...
I often run into code that has to perform lots of checks and ends up being indented at least five or six levels before really doing anything. I am wondering what alternatives exist. Below I've posted an example of what I'm talking about (which isn't actual production code, just something I came up with off the top of ...
You're correct that deeply nested code can be difficult to read and maintain. In your example, the function's readability suffers due to multiple layers of checks. There are several strategies to flatten the structure and improve readability: ### 1. **Early Return Pattern** One of the most common strategies is to use ...
44,595
[ { "from": "human", "value": "I often run into code that has to perform lots of checks and ends up being indented at least five or six levels before really doing anything. I am wondering what alternatives exist.\nBelow I've posted an example of what I'm talking about (which isn't actual production code, jus...
In asp.net mvc, when do we use: and Do we ever need to put a ; (colon) ?
In ASP.NET MVC, the terms you've mentioned seem to be missing from your question. However, I'll provide a brief overview of common syntax elements that you might encounter in ASP.NET MVC, particularly focusing on the use of semicolons and colons. ### Common Syntax Elements in ASP.NET MVC 1. **Semicolon (;)**: - In...
49,922
[ { "from": "human", "value": "In asp.net mvc, when do we use:\nand\nDo we ever need to put a ; (colon) ?\n" }, { "from": "gpt", "value": "In ASP.NET MVC, the terms you've mentioned seem to be missing from your question. However, I'll provide a brief overview of common syntax elements that you mig...
How can I change a key's value in web.config which is defined between appSettings tags at code behind in asp.net Thanks.. Regards...
To change a key's value in the `web.config` file from the code-behind in an ASP.NET application, you can use the `ConfigurationManager` class to read and write to the configuration file. However, it is important to note that modifying the `web.config` file at runtime requires appropriate permissions, and changes made w...
44,653
[ { "from": "human", "value": "How can I change a key's value in web.config which is defined between appSettings tags at code behind in asp.net\nThanks..\nRegards...\n" }, { "from": "gpt", "value": "To change a key's value in the `web.config` file from the code-behind in an ASP.NET application, yo...
What is the Big-O time complexity of the following nested loops: for (int i = 0; i < N; i++) { for (int j = i + 1; j < N; j++) { System.out.println("i = " + i + " j = " + j); } } Would it be O(N^2) still?
To analyze the time complexity of the nested loops provided, let's look at the structure of the loops more closely. The outer loop runs with the variable `i` ranging from `0` to `N-1`, which gives `N` iterations. The inner loop has the variable `j` starting from `i + 1` and going up to `N - 1`. This means that the n...
49,742
[ { "from": "human", "value": "What is the Big-O time complexity of the following nested loops:\nfor (int i = 0; i < N; i++) {\n for (int j = i + 1; j < N; j++) {\n System.out.println(\"i = \" + i + \" j = \" + j);\n }\n}\n\nWould it be O(N^2) still?\n" }, { "from": "gpt", "value": "T...
Java requires that you catch all possible exceptions or declare them as thrown in the method signature. This isn't the case with C# but I still feel that it is a good practice to catch all exceptions. Does anybody know of a tool which can process a C# project and point out places where an exception is thrown but not ...
In C#, while it is not mandatory to catch all exceptions or declare them in the method signature (as it is in Java), it is still a good practice to handle exceptions appropriately. Catching unhandled exceptions can lead to more robust applications and help with debugging and logging. Here are some tools and practices ...
43,366
[ { "from": "human", "value": "Java requires that you catch all possible exceptions or declare them as thrown in the method signature. This isn't the case with C# but I still feel that it is a good practice to catch all exceptions. Does anybody know of a tool which can process a C# project and point out pla...
All the examples that I can search online use the App.Config mode of specifying the context definition retrieved by contextToGetSprungObjects = ContextRegistry.GetContext(contextname) I want to use contextToGetSprungObjects = new XmlApplicationContext(sXmlFileName) (I'm calling into a DLL (that needs Spring.net) fr...
When using `XmlApplicationContext` in Spring.NET, the XML configuration you provide needs to adhere to Spring.NET's specific XML schema. The configuration structure is a little different from what you might have in an app.config file. Here’s how you can structure your XML file for Spring.NET. The outer structure shoul...
44,558
[ { "from": "human", "value": "All the examples that I can search online use the App.Config mode of specifying the context definition retrieved by \ncontextToGetSprungObjects = ContextRegistry.GetContext(contextname)\n\nI want to use \ncontextToGetSprungObjects = new XmlApplicationContext(sXmlFileName)\n\n(I'...
There are important features of Emacs which are missing in Vim, such as the comint mode, and there are no scripts/plugins which can replace them. There are also benefits of Vim over Emacs, such as modal editing and generally better default shortcuts. However, Viper mode gets me both. Vimpulse also enables visual mode. ...
While using Vim features in Emacs through modes like Viper or Vimpulse can give you a blend of both worlds, there are several Vim features that you might find particularly beneficial and that may not have direct equivalents in Emacs, even with those modes: 1. **Modal Editing**: While Viper and Vimpulse offer some leve...
45,044
[ { "from": "human", "value": "There are important features of Emacs which are missing in Vim, such as the comint mode, and there are no scripts/plugins which can replace them.\nThere are also benefits of Vim over Emacs, such as modal editing and generally better default shortcuts. However, Viper mode gets me...
I'm working on shifting our corporate technological paradigm to Agile Development. It's been a hard process but we're almost there! :) We have legacy systems for our database management (used to be Access, now ported to .NET and MS SQL) and we're developing a framework for our future vision. We want to migrate as much ...
Transitioning to Agile Development and rethinking your architectural approach is indeed a significant but rewarding challenge. The integration of your legacy systems while developing new capabilities in a web environment, particularly with technologies like Ruby on Rails, requires careful planning, especially regarding...
43,329
[ { "from": "human", "value": "I'm working on shifting our corporate technological paradigm to Agile Development.\nIt's been a hard process but we're almost there! :)\nWe have legacy systems for our database management (used to be Access, now ported to .NET and MS SQL) and we're developing a framework for our...
I need to put an LDAP contextSource into my Java EE container's JNDI tree so it can be used by applications inside the container. I'm using Spring-LDAP to perform queries against ORACLE OVD. For development, I simply set up the contextSource in the Spring xml configuration file. For production, however, I need to be ab...
To achieve your requirement of using LDAP with JNDI in a Java EE container like Oracle Application Server (OAS) / OC4J, while allowing for connection pooling and secure credential management, you can follow these steps: ### 1. Create a JNDI Resource for LDAP You need to define a JNDI resource in your OC4J configurati...
46,867
[ { "from": "human", "value": "I need to put an LDAP contextSource into my Java EE container's JNDI tree so it can be used by applications inside the container.\nI'm using Spring-LDAP to perform queries against ORACLE OVD. For development, I simply set up the contextSource in the Spring xml configuration file...
For some reason, when using two sums on a group by, i run into the error "invalid column name 'id'. When i only do one sum, it works as expected. The following fails and throws the error: from pd in PrDetails.Where(_pd => _pd.PrId == 46) group pd by new { pd.ProgramFund, pd.ProjectDetail.CostCenter, pd.ProjectDetai...
The issue you're facing seems to be related to the way the LINQ query is structured and possibly the way the relationships between your entities are defined. The error "invalid column name 'id'" typically suggests that there's a problem with the way your entity framework or LINQ to SQL is translating your query to SQL,...
47,259
[ { "from": "human", "value": "For some reason, when using two sums on a group by, i run into the error \"invalid column name 'id'. When i only do one sum, it works as expected.\nThe following fails and throws the error:\nfrom pd in PrDetails.Where(_pd => _pd.PrId == 46)\n group pd by new { pd.ProgramFund,...
Is there any plugins for Eclipse for portlet design and deployment? I have never designed portlets so are there any good tutorials on the web as well?
Yes, there are several plugins for Eclipse that can assist with portlet design and deployment, particularly for Java-based portlets using technologies like Java Portlet Specification (JSR 286) or frameworks like Liferay. Here are some popular options: 1. **Liferay IDE**: This is an Eclipse-based development environmen...
47,171
[ { "from": "human", "value": "Is there any plugins for Eclipse for portlet design and deployment? I have never designed portlets so are there any good tutorials on the web as well?\n" }, { "from": "gpt", "value": "Yes, there are several plugins for Eclipse that can assist with portlet design and ...
Is there a way to debug javascript using Safari 3.2 in Windows Vista? I found a link to a debugger named Drosera but I can't get it to work because the information seams to be outdated.
Debugging JavaScript in Safari 3.2 on Windows Vista can be quite challenging due to the age of the browser and the limited support for modern development tools. Here are a few potential solutions you can try: 1. **Using the Built-in Developer Tools:** Safari 3.2 does come with some built-in developer tools, althoug...
49,347
[ { "from": "human", "value": "Is there a way to debug javascript using Safari 3.2 in Windows Vista? \nI found a link to a debugger named Drosera but I can't get it to work because the information seams to be outdated. \n" }, { "from": "gpt", "value": "Debugging JavaScript in Safari 3.2 on Windows...
What are your favorite C++ coding style idioms? I'm asking about style or coding typography such as where you put curly braces, are there spaces after keywords, the size of indents, etc. This is opposed to best-practices or requirements such as always deleting arrays with delete[]. Here is an example of one of my f...
C++ coding style can greatly affect the readability and maintainability of your code, and there are various idioms that developers adopt to improve these aspects. Here are some of my favorite C++ coding style idioms: 1. **Consistent Bracing Style**: - Use the Allman style (also known as BSD indent style), where ope...
46,065
[ { "from": "human", "value": "What are your favorite C++ coding style idioms? I'm asking about style or coding typography such as where you put curly braces, are there spaces after keywords, the size of indents, etc. This is opposed to best-practices or requirements such as always deleting arrays with delet...
Notepad++ has a convenient feature: if you select a word in your text (not necessarily a keyword), the word is highlighted throughout the text. Can this be done in Emacs as well? And if so, how? It doesn't necessarily have to work exactly like Notepad++ (i.e., via selection); ideally, I would like to set up a key bind...
Yes, you can highlight all occurrences of a word under the cursor in Emacs and set up custom key bindings to navigate between the highlights. Here's how you can achieve this: 1. **Highlight the word under the cursor**: You can use the `highlight-symbol` package or simply use a custom function that highlights all occur...
48,193
[ { "from": "human", "value": "Notepad++ has a convenient feature: if you select a word in your text (not necessarily a keyword), the word is highlighted throughout the text. Can this be done in Emacs as well? And if so, how? \nIt doesn't necessarily have to work exactly like Notepad++ (i.e., via selection); ...
By default when viewing an account in edit mode you have access to Opportunities, Invoices, and Quotes which contain the products being shopped by the account and/or the sales department. I'm trying to determine where to store, display, and use the products that an account has a subscription too. I may not understand ...
You're correct in identifying the need to manage subscription products distinctly from traditional opportunities, quotes, and invoices, especially when dealing with recurring sales that do not follow the conventional sales processes. In Microsoft Dynamics CRM, there are several ways you can approach managing these subs...
44,183
[ { "from": "human", "value": "By default when viewing an account in edit mode you have access to Opportunities, Invoices, and Quotes which contain the products being shopped by the account and/or the sales department.\nI'm trying to determine where to store, display, and use the products that an account has ...
If I give the input from Text Box like AaBbcdCDEb the output should be ABCDE or abcde only unique characters should be there, no repeated characters. How do I do this?
To achieve the desired output of unique characters from the input string while ensuring that they are displayed in either uppercase or lowercase, you can use a programming language like Python. Below is a simple example of how you can implement this: ### Python Example ```python def get_unique_characters(input_string...
46,307
[ { "from": "human", "value": "If I give the input from Text Box like\n\nAaBbcdCDEb\n\nthe output should be\n\nABCDE or abcde\n\nonly unique characters should be there, no repeated characters.\nHow do I do this?\n" }, { "from": "gpt", "value": "To achieve the desired output of unique characters fr...
Given my new understanding of the power of "includes" with PHP, it is my guess that ALL of my pages on my site will be .php extension. Would this be considered strange? I used to think that most pages would be .htm or .html, but in looking around the net, I am noticing that there really isn't any "standard". I don't re...
It's not strange at all to use the `.php` extension for all your pages, especially if your website relies heavily on PHP for functionality such as includes, dynamic content generation, or server-side processing. Here are some considerations to help you understand the implications of using `.php` for all pages: ### Rea...
49,614
[ { "from": "human", "value": "Given my new understanding of the power of \"includes\" with PHP, it is my guess that ALL of my pages on my site will be .php extension.\nWould this be considered strange?\nI used to think that most pages would be .htm or .html, but in looking around the net, I am noticing that ...
When communicating to a SQL Server database using one of the typical systems, ODBC, OLEDB or ADO.NET, is the underlying basic protocol the same? Are all the differences between these systems basically just client side issues? Is this all just different flavors of TDS (Tabular Data Stream) transfer? [MS-TDS]: Tabular D...
When communicating with a SQL Server database, ODBC, OLE DB, and ADO.NET are indeed different data access technologies that can leverage the same underlying protocol, which is TDS (Tabular Data Stream). However, there are important distinctions and functionalities provided by each technology that can impact the way cli...
49,175
[ { "from": "human", "value": "When communicating to a SQL Server database using one of the typical systems, ODBC, OLEDB or ADO.NET, is the underlying basic protocol the same? Are all the differences between these systems basically just client side issues?\nIs this all just different flavors of TDS (Tabular ...