instruction
stringlengths
14
27.6k
completion
stringlengths
3
38.3k
__original_row_idx
int64
0
50k
conversations
listlengths
2
2
I interested in knowing what fields people actual capture and use when logging within their applications when using loggers like log4net. This can range from debugging to testing to production and can be for thick client apps but I am thinking more about semantics of web apps (i.e. asp.net). Also, in the context of we...
Hi Anthony, You’ve already compiled a robust list of fields for logging, particularly in the context of web applications. Here are some additional fields and practices that might enhance your logging strategy, especially in ASP.NET and similar environments: ### Additional Fields for Logging 1. **RequestId / Correlat...
25,807
[ { "from": "human", "value": "I interested in knowing what fields people actual capture and use when logging within their applications when using loggers like log4net. \nThis can range from debugging to testing to production and can be for thick client apps but I am thinking more about semantics of web apps ...
I'm looking to add a tooltip to each row in a bound datagrid in vb.net winforms. How can this be done?
To add tooltips to each row in a bound DataGridView in a VB.NET Windows Forms application, you can use the `DataGridView`'s `CellMouseEnter` event to display tooltips when the mouse hovers over a cell or row. You can utilize the `ToolTip` class to show the tooltips. Here's a step-by-step guide on how to do this: 1. *...
31,560
[ { "from": "human", "value": "I'm looking to add a tooltip to each row in a bound datagrid in vb.net winforms. How can this be done?\n" }, { "from": "gpt", "value": "To add tooltips to each row in a bound DataGridView in a VB.NET Windows Forms application, you can use the `DataGridView`'s `CellM...
When running the following code it leaves out one row. When I do a files.Count it says there are 4 rows but there is no data stored for the 4th row. When I run the stored procedure from within SQL Manager it returns all 4 rows and all the data. Any help? List<File> files = new List<File>(); SqlC...
The issue you're experiencing, where the SQL stored procedure returns all rows when run directly in SQL Server Management Studio (SSMS), but your C# code only captures three rows while counting four, may be due to a few reasons. Here are several troubleshooting steps and suggestions to resolve the problem: ### 1. Chec...
34,930
[ { "from": "human", "value": "When running the following code it leaves out one row. When I do a files.Count it says there are 4 rows but there is no data stored for the 4th row. When I run the stored procedure from within SQL Manager it returns all 4 rows and all the data. Any help?\n List<File> ...
In Excel VBA (2003), I've noticed that any Public or Friend Sub method in either a module or ThisWorkbook that doesn't have any arguments will show up as a Macro that can be run by the user. I.e. when the user goes to Tools --> Macro --> Macros... (or Alt+F8) the method will show up in the list that can be run. For san...
In Excel VBA, controlling the visibility of procedures from the Macro dialog can indeed be a challenge, especially when you want to maintain a clean and organized code structure. Your observations about Public and Friend Subs being listed as macros are accurate, and the workarounds you've mentioned are commonly used me...
35,127
[ { "from": "human", "value": "In Excel VBA (2003), I've noticed that any Public or Friend Sub method in either a module or ThisWorkbook that doesn't have any arguments will show up as a Macro that can be run by the user. I.e. when the user goes to Tools --> Macro --> Macros... (or Alt+F8) the method will sho...
Let's take a very simple example: In my window1.xaml, i have a label control named 'lblProduct'. In my window1.xaml.cs, i have a public method called CalculateProduct(Int Var1, Int Var2). CalculateProduct will, as you may have guessed, calculate the product of the variables passed in. I'd like to simply bind the res...
In WPF, binding a method directly to a UI element like a Label isn't straightforward, as bindings are generally designed for properties. However, you can achieve the desired result using data binding and by implementing the `INotifyPropertyChanged` interface. This approach involves creating a property in your `Window1`...
34,309
[ { "from": "human", "value": "Let's take a very simple example:\n\nIn my window1.xaml, i have a label\ncontrol named 'lblProduct'.\nIn my window1.xaml.cs, i have a\npublic method called\nCalculateProduct(Int Var1, Int\nVar2). CalculateProduct will, as\nyou may have guessed, calculate the\nproduct of the var...
I would like to read/write encrypted XML files using LINQ to XML. Does anyone know how to use encryption algorithms built into the .NET Framework to encrypt the Stream used by the XDocument object? I did try it, but you can't set the CryptoStream to Read/Write access. It only support Read or Write, which causes LINQ to...
To read and write encrypted XML files using LINQ to XML in .NET, you can use the `CryptoStream` class in combination with a `MemoryStream`. The idea is to first read the encrypted data, decrypt it, load it into an `XDocument`, manipulate it, and then re-encrypt it before saving it back to the file. Here is an example ...
30,246
[ { "from": "human", "value": "I would like to read/write encrypted XML files using LINQ to XML. Does anyone know how to use encryption algorithms built into the .NET Framework to encrypt the Stream used by the XDocument object?\nI did try it, but you can't set the CryptoStream to Read/Write access. It only s...
I'm going to try to ask my question in the context of a simple example... Let's say I have an abstract base class Car. Car has-a basic Engine object. I have a method StartEngine() in the abstract Car class that delegates the starting of the engine to the Engine object. How do I allow subclasses of Car (like Ferrari) ...
In your scenario, you want to create a flexible structure where subclasses of the `Car` class can have different types of engines, including custom behaviors specific to those engines, like the `TurboEngine`. There are a couple of ways to achieve this while still adhering to good design principles like encapsulation an...
34,460
[ { "from": "human", "value": "I'm going to try to ask my question in the context of a simple example...\nLet's say I have an abstract base class Car. Car has-a basic Engine object. I have a method StartEngine() in the abstract Car class that delegates the starting of the engine to the Engine object.\nHow d...
I'm trying to get Wininet to ignore Internet Explorer's "Work Offline" mode, for both HTTP and FTP. So I'm trying to use InternetSetOption() with INTERNET_OPTION_IGNORE_OFFLINE. The documentation says "This is used by InternetQueryOption and InternetSetOption with a request handle." However, you can't get a request h...
When dealing with Internet Explorer's "Work Offline" mode and the `Wininet` API, you may encounter some limitations due to how the API interacts with the system's networking state. To summarize your situation: 1. **INTERNET_OPTION_IGNORE_OFFLINE**: This option is designed to allow requests to be sent even when the sy...
32,404
[ { "from": "human", "value": "I'm trying to get Wininet to ignore Internet Explorer's \"Work Offline\" mode, for both HTTP and FTP.\nSo I'm trying to use InternetSetOption() with INTERNET_OPTION_IGNORE_OFFLINE. The documentation says \"This is used by InternetQueryOption and InternetSetOption with a request...
As far as I know only a subset of WS-Security version 1.0 is supported in NETCF and it uses X.509 certificates. How can I obtain such a certificate to implement it in my application and prevent others to use my WCF service?
To implement WS-Security with X.509 certificates in your WCF service, you will need to obtain an X.509 certificate. There are several ways to obtain such a certificate: ### 1. **Self-Signed Certificate** For development and testing purposes, you can create a self-signed certificate. Here’s how you can do it using the...
31,800
[ { "from": "human", "value": "As far as I know only a subset of WS-Security version 1.0 is supported in NETCF and it uses X.509 certificates.\nHow can I obtain such a certificate to implement it in my application and prevent others to use my WCF service?\n" }, { "from": "gpt", "value": "To implem...
I am currently building a small website where the content of the main div is being filled through an Ajax call. I basically have a php script that returns the content like this: (simplified php script...) if(isset($_POST["id_tuto"])){ PrintHtml($_POST["id_tuto"]); } function PrintHtml($id) { switch($id) { c...
Yes, putting your HTML content in separate files is a great idea, especially when dealing with large amounts of HTML. This approach not only keeps your PHP script cleaner but also makes it easier to manage and update the HTML content later on. Here’s how you can do it: ### Step 1: Create Separate HTML Files Create in...
34,294
[ { "from": "human", "value": "I am currently building a small website where the content of the main div is being filled through an Ajax call. I basically have a php script that returns the content like this:\n(simplified php script...)\n\nif(isset($_POST[\"id_tuto\"])){\n PrintHtml($_POST[\"id_tuto\"]);\n}\...
Over the years, I think I have seen and tried every conceivable way of generating stub data structures (fake data) for complex object graphs. It always gets hairy in java. * * * * A---B----C----D----E (Pardon cheap UML) The key issue is that there are certain relationships between the values, so a certain...
Generating complex stub data structures in Java can indeed be quite challenging, especially as the relationships and dependencies between various classes increase. Using dynamic languages like Groovy or Scala can potentially simplify this task, thanks to features like closures, concise syntax, and higher-order function...
35,013
[ { "from": "human", "value": "Over the years, I think I have seen and tried every conceivable way of generating stub data structures (fake data) for complex object graphs. It always gets hairy in java.\n * * * *\nA---B----C----D----E\n\n(Pardon cheap UML) \nThe key issue is that there are certain ...
What is the best way to count the time between two datetime values fetched from MySQL when I need to count only the time between hours 08:00:00-16:00:00. For example if I have values 2008-10-13 18:00:00 and 2008-10-14 10:00:00 the time difference should be 02:00:00. Can I do it with SQL or what is the best way to do it...
To calculate the time difference between two `datetime` values only during specified working hours (08:00:00 to 16:00:00) in MySQL, you can create a function or a series of steps to perform the required calculations. Unfortunately, MySQL doesn't have built-in support for this kind of calculation, so you will typically ...
28,221
[ { "from": "human", "value": "What is the best way to count the time between two datetime values fetched from MySQL when I need to count only the time between hours 08:00:00-16:00:00.\nFor example if I have values 2008-10-13 18:00:00 and 2008-10-14 10:00:00 the time difference should be 02:00:00.\nCan I do i...
I inherited a project that uses SQL Server 200x, wherein a column that stores a value that is always considered as a percentage in the problem domain is stored as its greater than 1 decimal equivalent. For example, 70% (0.7, literally) is stored as 70, 100% as 100, etc. Aside from the need to remember to * 0.01 on retr...
Storing percentage values as whole numbers (e.g., storing 70% as 70) is a common practice in some legacy systems, and it can sometimes be justified based on historical decisions, performance considerations, or conventions at the time the system was designed. Here are a few potential reasons why this might have been don...
34,067
[ { "from": "human", "value": "I inherited a project that uses SQL Server 200x, wherein a column that stores a value that is always considered as a percentage in the problem domain is stored as its greater than 1 decimal equivalent. For example, 70% (0.7, literally) is stored as 70, 100% as 100, etc. Aside fr...
I've just completed a Silverlight project and it's time to have a little clean up. I'd like to take my core files and put them into a separate project which I will reference from my main Silverlight app. Some of these classes are compatible with WPF and I would quite like to be able to have Silverlight / WPF code all i...
Yes, it's definitely possible to have a single project that targets multiple platforms (like Silverlight and WPF) by using compiler directives to separate platform-specific code. Here's a simple guide on how to achieve this: ### 1. Create a Single Project Instead of creating separate projects, you can create a single...
31,486
[ { "from": "human", "value": "I've just completed a Silverlight project and it's time to have a little clean up. I'd like to take my core files and put them into a separate project which I will reference from my main Silverlight app.\nSome of these classes are compatible with WPF and I would quite like to be...
I have a two years of experience of programming in Visual C# and Visual C++. I would like to know some good online sources to start learning ASP.NET or anything else I should/need to learn before diving into ASP.NET. I found some online videos that are proving to be quite useful. Perhaps I would like to know about some...
It's great to hear that you have experience with Visual C# and Visual C++, as that will give you a solid foundation for diving into ASP.NET. Here are some recommended resources to help you get started, along with suggestions for open-source projects to explore. ### Online Learning Resources for ASP.NET: 1. **Microsof...
33,951
[ { "from": "human", "value": "I have a two years of experience of programming in Visual C# and Visual C++. I would like to know some good online sources to start learning ASP.NET or anything else I should/need to learn before diving into ASP.NET. I found some online videos that are proving to be quite useful...
Our installation program is written using InstallShield2009, and as part of certification requirements we have to support Unicode throughout. The application itself is .NET, so supports Unicode natively, however on testing our installation with a Chinese character set we can see problems thrown up by InstallShield dial...
InstallShield 2009 does have some limitations regarding Unicode support, which can indeed cause issues when creating installers for applications that need to support non-Latin character sets. Here are a few steps and tips you can try to address the Unicode issues: 1. **Verify InstallShield Version**: Ensure you are us...
34,310
[ { "from": "human", "value": "Our installation program is written using InstallShield2009, and as part of certification requirements we have to support Unicode throughout.\nThe application itself is .NET, so supports Unicode natively, however on testing our installation with a Chinese character set we can se...
I'm trying to integrate a public message board service into an existing web site. The handshaking between the apps goes like this: 1) File on my web site loads a flash file. The Flash reads a local variable that is the Session ID, or some other GUID unique to the user session. 2) Flash app connects with the remote ser...
In Classic ASP, the built-in `Session` object is inherently tied to the current user’s session, and there's no direct way to query session data based on a `SessionID` from outside that session. Each session's data is stored in a way that is isolated from other sessions, so retrieving session data for a specific `Sessio...
33,582
[ { "from": "human", "value": "I'm trying to integrate a public message board service into an existing web site. \nThe handshaking between the apps goes like this:\n1) File on my web site loads a flash file. The Flash reads a local variable that is the Session ID, or some other GUID unique to the user session...
We are ready to start a brand new project at work, no legacy code. We did use Subsonic in the past and we pretty happy with it. But that was before Linq. Has anyone had to face this same issue (Linq x Subsonic)? What was your decision? What were the reasons? Any insight appreciated.
When deciding between continuing to use Subsonic or adopting LINQ (Language Integrated Query) for a new project, there are several factors to consider. Both approaches have their strengths and weaknesses, and the best choice will depend on your project's specific requirements, your team's expertise, and your long-term ...
34,363
[ { "from": "human", "value": "We are ready to start a brand new project at work, no legacy code. We did use Subsonic in the past and we pretty happy with it. But that was before Linq.\nHas anyone had to face this same issue (Linq x Subsonic)? \nWhat was your decision? What were the reasons?\nAny insight appr...
I'd like to know how to - if even possible - reflect what method calls are executed inside the method during execution. I'm especially interested in either external method calls (that is, methods in other classes) or calling some specific method like getDatabaseConnection(). My intention would be to monitor predefined ...
Reflecting on method calls and executing additional code based on specific conditions can be a complex task, especially in languages like Java, C#, or Python, where reflection has limitations and there are performance considerations. However, there are ways to approach this, depending on the language you're using. Belo...
31,465
[ { "from": "human", "value": "I'd like to know how to - if even possible - reflect what method calls are executed inside the method during execution. I'm especially interested in either external method calls (that is, methods in other classes) or calling some specific method like getDatabaseConnection().\nMy...
I've been trying to build subversion (on a limited account) for a long time but without any luck :( The instructions I'm following: http://wiki.dreamhost.com/Subversion_Installation Running this: ./configure --prefix=${RUN} --without-berkeley-db --with-ssl --with-zlib --enable-shared Gives me this error: checking for ...
It looks like you are trying to build Subversion and encountering issues related to the Neon library and OpenSSL's cryptographic library (`libcrypto`). Let's break down your question: ### Possible Reasons for the Error 1. **Missing OpenSSL Development Libraries**: The `RSA_new` function is part of the OpenSSL library...
32,407
[ { "from": "human", "value": "I've been trying to build subversion (on a limited account) for a long time but without any luck :(\nThe instructions I'm following: http://wiki.dreamhost.com/Subversion_Installation\nRunning this:\n./configure --prefix=${RUN} --without-berkeley-db --with-ssl --with-zlib --enabl...
I am using MulticastSocket to receive UDP Multicast packets. How can I determine to which address such a packet was sent? With the methods provided, I am only able to determine the sender address. Of course, I am the one who sets the To-Address when creating the listening socket, but can I really be sure about this? Wh...
When using `MulticastSocket` to receive multicast packets in Java, it can indeed be challenging to determine if a packet is genuinely a multicast packet, especially since the socket can receive unicast packets sent to the same port. To address your concerns and distinguish between multicast and unicast packets, you ca...
35,363
[ { "from": "human", "value": "I am using MulticastSocket to receive UDP Multicast packets. How can I determine to which address such a packet was sent? With the methods provided, I am only able to determine the sender address.\nOf course, I am the one who sets the To-Address when creating the listening socke...
I'm trying to make a class that will execute any one of a number of stored procedures with any amount of variables Im using php and mysqli My class enumerates an array and constructs a string based on the number of elements if any giving something like this CALL spTestLogin(?,?) for example I now need to bind the inpu...
Certainly! To create a PHP class that can execute stored procedures with dynamic parameters using `mysqli`, you'll want to follow these steps: 1. Construct the `CALL` statement with the correct number of placeholders based on the parameters provided. 2. Bind the parameters dynamically to the prepared statement. 3. Exe...
34,452
[ { "from": "human", "value": "I'm trying to make a class that will execute any one of a number of stored procedures with any amount of variables\nIm using php and mysqli\n\nMy class enumerates an array and constructs a string based on the number of elements if any\ngiving something like this CALL spTestLogin...
I noticed that EStackOverflow, as defined in SysUtils.pas is marked as deprecated in Delphi 2009. I checked and it was also marked as deprecated in 2007. I have a Delphi 7 install disk here, but I thought I would ask if anyone knows when it was deprecated. Additionally, does anyone know why, and what replaces it? I ...
The `EStackOverflow` exception in Delphi has indeed been marked as deprecated starting from Delphi 2007, and it continues to be deprecated in later versions, including Delphi 2009. This means that while the exception is still available for use, it is not recommended for new development and may be removed in future vers...
34,691
[ { "from": "human", "value": "I noticed that EStackOverflow, as defined in SysUtils.pas is marked as deprecated in Delphi 2009. I checked and it was also marked as deprecated in 2007. I have a Delphi 7 install disk here, but I thought I would ask if anyone knows when it was deprecated.\nAdditionally, does ...
I need to be able to take an arbitrary text input that may have a byte order marker (BOM) on it to mark its encoding, and output it as ASCII. We have some old tools that don't understand BOM's and I need to send them ASCII-only data. Now, I just got done writing this code and I just can't quite believe the inefficiency...
Yes, there's a more efficient way to handle the conversion of an input byte array with a BOM to an ASCII string while avoiding multiple copies of the data. You can use the `StreamReader` to read the input with its BOM detection and then directly convert the result to ASCII without the unnecessary intermediate steps. H...
36,223
[ { "from": "human", "value": "I need to be able to take an arbitrary text input that may have a byte order marker (BOM) on it to mark its encoding, and output it as ASCII. We have some old tools that don't understand BOM's and I need to send them ASCII-only data.\nNow, I just got done writing this code and I...
I am on Vista 64 bits and I have a project built with x86 configuration. All work fine. Now, we are at the time to create test. We have NUnit 2.4.8 but we have a lot of problem. The test are loading trough the Nunit.exe (gui) when we select the .dll directly but when executing we have a system.badimageformatexception. ...
It sounds like you're experiencing a number of issues while trying to run NUnit tests on a project that is built with an x86 configuration. The `System.BadImageFormatException` typically indicates that there is a mismatch between the architecture of the NUnit executable and the assemblies you are trying to load. Here a...
34,229
[ { "from": "human", "value": "I am on Vista 64 bits and I have a project built with x86 configuration. All work fine. Now, we are at the time to create test. We have NUnit 2.4.8 but we have a lot of problem.\nThe test are loading trough the Nunit.exe (gui) when we select the .dll directly but when executing ...
What are the downsides to using static methods in a web site business layer versus instantiating a class and then calling a method on the class? What are the performance hits either way?
When designing a web application, choosing between static methods and instance methods in your business layer can significantly affect your application's architecture, maintainability, and performance. Here are some of the downsides and considerations for using static methods versus instantiating a class: ### Downside...
32,654
[ { "from": "human", "value": "What are the downsides to using static methods in a web site business layer versus instantiating a class and then calling a method on the class? What are the performance hits either way?\n" }, { "from": "gpt", "value": "When designing a web application, choosing bet...
I am using Visual C++ 2005 Express Edition and get the following linker errors: 19>mylib1.lib(mylibsource1.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall std::exception::_Raise(void)const " (__imp_?_Raise@exception@std@@QBEXXZ) referenced in function "protected: static v...
The linker errors you're encountering are related to the use of C++ standard library exceptions in your project. The `_HAS_EXCEPTIONS` preprocessor directive controls how exceptions are handled in the Microsoft implementation of the C++ standard library, but it doesn’t turn off exceptions globally—rather, it controls s...
30,550
[ { "from": "human", "value": "I am using Visual C++ 2005 Express Edition and get the following linker errors:\n19>mylib1.lib(mylibsource1.obj) : error LNK2019: unresolved external symbol \"__declspec(dllimport) public: void __thiscall std::exception::_Raise(void)const \" (__imp_?_Raise@exception@std@@QBEXXZ)...
I'm a Python novice, trying to use pyCurl. The project I am working on is creating a Python wrapper for the twitpic.com API (http://twitpic.com/api.do). For reference purposes, check out the code (http://pastebin.com/f4c498b6e) and the error I'm getting (http://pastebin.com/mff11d31). Pay special attention to line 27 o...
It sounds like you're on the right track with using pyCurl, but you're right that the `.perform()` method does not return the response directly. Instead, you need to set up a callback function to capture the output from the request. Here's how you can modify your code to handle the response from TwitPic properly. You'...
35,819
[ { "from": "human", "value": "I'm a Python novice, trying to use pyCurl. The project I am working on is creating a Python wrapper for the twitpic.com API (http://twitpic.com/api.do). For reference purposes, check out the code (http://pastebin.com/f4c498b6e) and the error I'm getting (http://pastebin.com/mff1...
I'm scanning through a file looking for lines that match a certain regex pattern, and then I want to print out the lines that match but in alphabetical order. I'm sure this is trivial but vbscript isn't my background my array is defined as Dim lines(10000) if that makes any difference, and I'm trying to execute my scr...
Certainly! Below is a VBScript that scans through lines in a file, checks for a specified regex pattern, and prints matching lines in alphabetical order. Since you've defined an array `lines(10000)` to hold the lines, we'll use it to store the matched lines before sorting and displaying them. Here's a sample VBScript:...
34,834
[ { "from": "human", "value": "I'm scanning through a file looking for lines that match a certain regex pattern, and then I want to print out the lines that match but in alphabetical order. I'm sure this is trivial but vbscript isn't my background\nmy array is defined as\nDim lines(10000)\n\nif that makes any...
Let's say that I have a site where once the user selects a few options, the following (should) happen: Grabs files (in a directory) off of the local machine - works fine so far Moves them to a remote server - this is where I need help Details: The remote server will be found via UNC path (\servername\xyz) I have acc...
Given the scenario you've described, where you need to upload files from a local machine to a remote server via a UNC path, and you have credentials to access that path but are on a different domain, you have a few options. Since you mentioned that you're using .NET 1.1, some of the more modern approaches may not be av...
28,394
[ { "from": "human", "value": "Let's say that I have a site where once the user selects a few options, the following (should) happen:\n\nGrabs files (in a directory) off of the local machine - works fine so far\nMoves them to a remote server - this is where I need help\n\nDetails:\n\nThe remote server will be...
I need to be able to schedule a job on the 10th of each month and have it run for a set number of days or until a specified date. Is there any way to customize sql server agent jobs using some sort of API or something? Thanks.
Yes, you can customize SQL Server Agent jobs to run on a specific schedule and with various conditions using T-SQL, PowerShell, and SQL Server Management Studio (SSMS). Here’s how you can achieve your requirements: ### Scheduling a Job for the 10th of Each Month To schedule a SQL Server Agent job to run on the 10th o...
27,926
[ { "from": "human", "value": "I need to be able to schedule a job on the 10th of each month and have it run for a set number of days or until a specified date.\nIs there any way to customize sql server agent jobs using some sort of API or something?\nThanks.\n" }, { "from": "gpt", "value": "Yes, ...
I am using glDrawPixels to display an image. I know, I should probably be using textures but there are reasons I'm not. Well at least not for now. Anyways, image being displayed is frequently being updated as if it is being scanned in. This works fine as long as I let it sit and finish the "scanning", however, if I cli...
The `AccessViolationException` you're encountering when calling `glDrawPixels` while updating your image could be related to how you're managing the state of your `mDisplayBuffer` and how OpenGL interacts with the threading and rendering contexts. Here are some potential issues and solutions to consider: ### 1. **Thr...
35,424
[ { "from": "human", "value": "I am using glDrawPixels to display an image. I know, I should probably be using textures but there are reasons I'm not. Well at least not for now. Anyways, image being displayed is frequently being updated as if it is being scanned in. This works fine as long as I let it sit and...
How does one go about converting an image to black and white in PHP? Not just turning it into greyscale but every pixel made black or white?
To convert an image to strictly black and white (binarization) in PHP, you can use the GD library, which is commonly available in PHP installations. The idea is to iterate through each pixel of the image, calculate its brightness, and set it to black or white based on a threshold. Here’s a step-by-step guide along wit...
30,244
[ { "from": "human", "value": "How does one go about converting an image to black and white in PHP?\nNot just turning it into greyscale but every pixel made black or white?\n" }, { "from": "gpt", "value": "To convert an image to strictly black and white (binarization) in PHP, you can use the GD li...
We're in the process of packaging combinations of our products/modules. Some of them are stand-alone some are interdependent. All versions must be deployable side-by-side. As it is we're considering two choices: One MSI per package and version One MSI per product/module and version The first alternative would mean th...
When deciding between the two approaches for packaging your products/modules, there are several key factors to consider that could impact both your immediate deployment process and long-term maintainability. Let’s break down the pros and cons of each alternative: ### Alternative 1: One MSI per Package and Version **P...
34,925
[ { "from": "human", "value": "We're in the process of packaging combinations of our products/modules. Some of them are stand-alone some are interdependent. All versions must be deployable side-by-side. As it is we're considering two choices:\n\nOne MSI per package and version\nOne MSI per product/module and ...
I have a unit test which contains the following line of code Site.objects.get(name="UnitTest").delete() and this has worked just fine until now. However, that statement is currently hanging. It'll sit there forever trying to execute the delete. If I just say print Site.objects.get(name="UnitTest") then it works, s...
It sounds like you're experiencing a situation where your delete operation is being blocked by another session in Oracle. Here are some steps you can take to diagnose and resolve locking issues in the future without resorting to restarting your database. ### Understanding Locks in Oracle 1. **DBA_WAITERS**: This tabl...
35,625
[ { "from": "human", "value": "I have a unit test which contains the following line of code\nSite.objects.get(name=\"UnitTest\").delete()\n\nand this has worked just fine until now. However, that statement is currently hanging. It'll sit there forever trying to execute the delete. If I just say\nprint Site...
I have a Datagrid which is getting its data from CSV. No file is sorted in any order, but I want to order the gridview by Username (a field). How could this be done? My XML/gridview code looks like the following: Streamwriter for writing to csv and populating gridview: string filename = @"D:\www\isolated\LocalUser\...
To sort a DataGrid (or GridView) by a specific field such as "Username" when binding data from a CSV file, you will need to follow a few steps. First, you will read the CSV data into a data structure (like a `DataTable` or a `List`), sort the data, and then bind the sorted data to the GridView. Here is a simplified ap...
31,461
[ { "from": "human", "value": "I have a Datagrid which is getting its data from CSV. No file is sorted in any order, but I want to order the gridview by Username (a field). How could this be done? My XML/gridview code looks like the following:\nStreamwriter for writing to csv and populating gridview:\n str...
I'm looking for a table or list of standard time estimations for developments in ABAP, something customizable in some variables according to the development team, complexity of project, etc... Something similar to: Simple Module Pool -> 10 hours Complex Module Pool -> 30 hours Definition of Dictionary -> (0,4 * number_...
Estimating development time in SAP ABAP can indeed be challenging due to the various factors involved, such as the complexity of the task, the experience of the development team, and the specific requirements of the project. While there is no universally accepted standard for time estimation, I can provide you with a b...
35,153
[ { "from": "human", "value": "I'm looking for a table or list of standard time estimations for developments in ABAP, something customizable in some variables according to the development team, complexity of project, etc...\nSomething similar to:\nSimple Module Pool -> 10 hours\nComplex Module Pool -> 30 hour...
When i navigate to an ASP.NET page, the browser displays a "Page Not Found" message. The page exists and is in a virtual directory, I am able to browse it on the IIS on my local development machine. What could be causing this problem on the server? When i replace one of the class libraries that iam using, with an olde...
When you encounter a "Page Not Found" message on your server while the page works fine in your local development environment, there could be several reasons for this issue. Below are some steps and considerations to troubleshoot the problem: 1. **Check the Virtual Directory Configuration**: - Make sure that the vi...
34,767
[ { "from": "human", "value": "When i navigate to an ASP.NET page, the browser displays a \"Page Not Found\" message. The page exists and is in a virtual directory, I am able to browse it on the IIS on my local development machine. What could be causing this problem on the server? \nWhen i replace one of the ...
I am evaluating VintaSoft .net control and Atalasoft DotTwain Image Capture. And I am very but very lost with the most of the definitions and keywords. So I am asking this because I think I am in Lala land. Is it possible to listen or have the scanner tell my app that there is a scanned image and I can process it? The ...
Yes, it is definitely possible to implement a solution where your application listens for events from a scanner and processes scanned images. Both VintaSoft .NET Control and Atalasoft DotTwain Image Capture provide functionalities that can be leveraged to achieve this. ### General Approach: 1. **TWAIN Protocol**: Bot...
32,243
[ { "from": "human", "value": "I am evaluating VintaSoft .net control and Atalasoft DotTwain Image Capture. And I am very but very lost with the most of the definitions and keywords.\nSo I am asking this because I think I am in Lala land. Is it possible to listen or have the scanner tell my app that there is ...
I'm trying to put a Message back into an MSMQ when an exception is thrown. The following code appears to work but the Message is not put back in the queue? Message msg = null; try { MessageQueue MQueue = new MessageQueue(txtMsgQPath.Text); msg = MQueue.ReceiveById(txtQItemToRead.Text); lblMsgRead.Text = msg...
It looks like you are trying to requeue a message in MSMQ (Microsoft Message Queuing) when an exception occurs while processing it. However, the way you are using the `msg` object could lead to issues when trying to reinsert the message into the queue. In particular, when you receive a message from MSMQ, it is marked a...
33,420
[ { "from": "human", "value": "I'm trying to put a Message back into an MSMQ when an exception is thrown. The following code appears to work but the Message is not put back in the queue?\nMessage msg = null;\ntry\n{\n MessageQueue MQueue = new MessageQueue(txtMsgQPath.Text);\n msg = MQueue.ReceiveById(t...
I am using drupal for the first time. I have successfully developed my first drupal website to a certain extent. I have used my own custom theme for the front-end and blue marine theme for administrator. Now my client's requirement is that when he clicks on preview button before submitting the page in admin panel, he w...
To achieve the requirement of displaying a preview of the content in a pop-up window with your front-end theme in Drupal, you'll need to implement a custom solution that combines a few elements of Drupal's functionality along with some JavaScript for handling the pop-up. Here's a step-by-step guide on how to approach t...
32,540
[ { "from": "human", "value": "I am using drupal for the first time. I have successfully developed my first drupal website to a certain extent. I have used my own custom theme for the front-end and blue marine theme for administrator. Now my client's requirement is that when he clicks on preview button before...
I am building a modular application. Through configuration you can turn these application modules on and off. I'm trying to determine what database structure (mssql2005) I should use for the tables that hold data for each of the modules. The two options that I've thought of are: Put all the tables into one big data...
When considering how to structure your database for a modular application, you need to weigh the benefits and trade-offs of each approach based on your requirements, maintainability, performance, and deployment processes. Let's explore the two options you mentioned: ### Option 1: Single Database with Prefixed Tables *...
33,664
[ { "from": "human", "value": "I am building a modular application. Through configuration you can turn these application modules on and off. I'm trying to determine what database structure (mssql2005) I should use for the tables that hold data for each of the modules. The two options that I've thought of a...
The code goes something like this: protected bool IsOKToSend() { bool IsOK = true; lblErrorSending.Visible = false; if (txtUserName.Text == "" ) { lblErrorSending.Text = "Please enter your username before sending."; IsOK = false; } return IsOK; } protected void btnSubmit_Cl...
The issue you're experiencing seems to be related to ViewState management in ASP.NET. Here are a few possibilities that could explain why you're encountering this behavior only on the live server: 1. **ViewState Disabled**: Ensure that ViewState is enabled for the controls involved (e.g., `txtUserName`, `lblErrorSendi...
35,174
[ { "from": "human", "value": "The code goes something like this:\nprotected bool IsOKToSend()\n{\n bool IsOK = true; \n lblErrorSending.Visible = false;\n if (txtUserName.Text == \"\" )\n { \n lblErrorSending.Text = \"Please enter your username before sending.\";\n IsOK = false;\n ...
I'm trying to write a quick little java application to read the contents of a pcap file (from Wireshark) and play the data back on the network on a linux box. The file will only contain UDP broadcast packets, so my application only really needs the timestamp, port number, and data from the packet to do what I need. M...
To ensure that your Java application uses IPv4 for UDP sockets, you can explicitly specify the `InetAddress` to bind the socket to the IPv4 address. Here's how to do that: 1. **Use the `InetAddress` for IPv4**: When creating your `DatagramSocket`, you can bind it to the IPv4 address by using `InetAddress.getByName("0....
34,923
[ { "from": "human", "value": "I'm trying to write a quick little java application to read the contents of a pcap file (from Wireshark) and play the data back on the network on a linux box. The file will only contain UDP broadcast packets, so my application only really needs the timestamp, port number, and d...
I'm trying to run a command-line process (which is extraction of a .7z archive) on a file that lies in a temporary folder on the windows user temp directory (C:\Documents and Settings\User\Local Settings\Temp), using Process in my c# app. I think the process return error that happens because of "access denied" because ...
Running processes that interact with files in the user temporary directory on Windows can indeed lead to issues like "access denied" due to permission settings, especially if the application is running with different user privileges than the file's location or if the antivirus software is intervening. Here are a few t...
31,023
[ { "from": "human", "value": "I'm trying to run a command-line process (which is extraction of a .7z archive) on a file that lies in a temporary folder on the windows user temp directory\n(C:\\Documents and Settings\\User\\Local Settings\\Temp), using Process in my c# app.\nI think the process return error t...
I am trying to store a large amount of boolean information that is determined at run-time. I was wondering what the best method might be. I have currently been trying to allocate the memory using: pStatus = malloc((<number of data points>/8) + 1); thinking that this will give me enough bits to work with. I could th...
Using a bitmask to store a large amount of boolean information is indeed a good approach, as it saves memory by using bits rather than full bytes for each boolean value. Here are some points and guidance to help you with your implementation: ### 1. Memory Allocation Your calculation for memory allocation is on the ri...
35,491
[ { "from": "human", "value": "I am trying to store a large amount of boolean information that is determined at run-time. I was wondering what the best method might be.\nI have currently been trying to allocate the memory using: \npStatus = malloc((<number of data points>/8) + 1); \nthinking that this will g...
Is it possible to insert a row, but only if one of the values already in the table does not exist? I'm creating a Tell A Friend with referral points for an ecommerce system, where I need to insert the friend's email into the database table, but only if it doesn't already exist in the table. This is because I don't want...
Yes, it is possible to insert a row into a MySQL database only if a specific value (in your case, the friend's email) does not already exist in the table. You can achieve this using a combination of an `INSERT` statement and a `SELECT` statement, or by using `INSERT ... IGNORE` or `INSERT ... ON DUPLICATE KEY UPDATE` i...
33,285
[ { "from": "human", "value": "Is it possible to insert a row, but only if one of the values already in the table does not exist?\nI'm creating a Tell A Friend with referral points for an ecommerce system, where I need to insert the friend's email into the database table, but only if it doesn't already exist ...
I need to use feature stapler to add some text columns to Posts list inside OOTB blog site definition. I plan not to use site columns, but only to add those columns to list (I don't use site columns because I have multiple site collections and there will be only one Posts list per site collection, so site columns are n...
To add custom text columns to the Posts list in an out-of-the-box (OOTB) blog site definition using Feature Stapler in SharePoint, you will need to follow these steps. Feature Stapler allows you to modify and extend existing features without creating new ones from scratch. ### Steps to Add Text Columns to Posts List U...
29,768
[ { "from": "human", "value": "I need to use feature stapler to add some text columns to Posts list inside OOTB blog site definition. I plan not to use site columns, but only to add those columns to list (I don't use site columns because I have multiple site collections and there will be only one Posts list p...
We are running a website using Active Server Pages & COM+ components. The ASP pages call COM+ components which in turn communicates with external systems and respond to ASP page requests. We find that the application becomes slow over a period of time and requires restarts (like in couple of days). The website runs on ...
To troubleshoot performance issues in your ASP and COM+ application, you can monitor a range of performance counters that can give insight into the application’s performance, resource usage, and potential bottlenecks. Here’s a detailed guide on what to monitor, how to log it, and analyze the results: ### Performance C...
34,986
[ { "from": "human", "value": "We are running a website using Active Server Pages & COM+ components. The ASP pages call COM+ components which in turn communicates with external systems and respond to ASP page requests.\nWe find that the application becomes slow over a period of time and requires restarts (lik...
I have my main web project and a common project which houses my tag files. Currently I use jetty in exploded structure and I jar up my common project with my tag files and place into web-inf/lib. When I make a change to my tag file, I can rejar and place into web-inf/lib again, though jetty is failing. javax.servlet.Se...
To enable hot deployment of JSP tag files in Jetty without restarting the server, you can follow these steps: ### Step 1: Use Jetty's Development Mode Jetty has a development mode that can help you with hot redeploying of JSP files. Make sure you’re running Jetty in a way that it automatically detects changes to JSP ...
32,412
[ { "from": "human", "value": "I have my main web project and a common project which houses my tag files. Currently I use jetty in exploded structure and I jar up my common project with my tag files and place into web-inf/lib.\nWhen I make a change to my tag file, I can rejar and place into web-inf/lib again,...
I created the setup project for the application and I can see that the later modifications of the configuration file (Application.exe.config) don't affect the application execution. I am developing an application with the database file included and I want to enable users to move the database file and modify connection ...
When deploying an application that uses a database file, it's crucial to set up your configuration in a way that allows for flexibility in the database's location and connection strings. Here are some best practices to consider: ### 1. Use Relative Paths for Database Files Instead of hard-coding absolute paths in your...
31,060
[ { "from": "human", "value": "I created the setup project for the application and I can see that the later modifications of the configuration file (Application.exe.config) don't affect the application execution.\nI am developing an application with the database file included and I want to enable users to mov...
In Delphi 2006, I am showing a modal form. User input in that form can change data that might be displayed currently on the parent form which is the mainform. To reflect those changes I need to force a repaint of some ownerdrawn components on the mainform. I tried to do that like this from the modal form: MainForm := A...
It sounds like you are dealing with owner-drawn components and need to ensure that they repaint correctly when data changes in a modal form. You are on the right track with using `Invalidate` and `Refresh`, but it's important to apply them correctly based on the context of the components that need repainting. Here are ...
36,107
[ { "from": "human", "value": "In Delphi 2006, I am showing a modal form. User input in that form can change data that might be displayed currently on the parent form which is the mainform. To reflect those changes I need to force a repaint of some ownerdrawn components on the mainform. I tried to do that lik...
I've got a database with three tables: Books (with book details, PK is CopyID), Keywords (list of keywords, PK is ID) and KeywordsLink which is the many-many link table between Books and Keywords with the fields ID, BookID and KeywordID. I'm trying to make an advanced search form in my app where you can search on vario...
To achieve the desired functionality of including tags in your search while preventing the Cartesian product caused by joining the `Keywords` and `KeywordsLink` tables directly, you can modify your SQL query to use proper JOIN clauses. Here's how you can structure the query to combine your conditions correctly using ...
36,369
[ { "from": "human", "value": "I've got a database with three tables: Books (with book details, PK is CopyID), Keywords (list of keywords, PK is ID) and KeywordsLink which is the many-many link table between Books and Keywords with the fields ID, BookID and KeywordID.\nI'm trying to make an advanced search fo...
I have a query which is starting to cause some concern in my application. I'm trying to understand this EXPLAIN statement better to understand where indexes are potentially missing: +----+-------------+-------+--------+---------------+------------+---------+-------------------------------+------+----------...
Based on the `EXPLAIN` output and the query you provided, we can analyze the potential optimizations, particularly focusing on the `c` table that is causing an `ALL` scan, indicating that it is likely performing a full table scan. ### Understanding the `EXPLAIN` Output 1. **Table Scans (`ALL`)**: The `c` table is bein...
32,522
[ { "from": "human", "value": "I have a query which is starting to cause some concern in my application. I'm trying to understand this EXPLAIN statement better to understand where indexes are potentially missing:\n\n +----+-------------+-------+--------+---------------+------------+---------+------...
I'm looking for an example of a TCustomDataSet implementation in C++ beyond the TTextDataset example that ships as an example project within C++ Builder. The TTextDataset is hard to learn from because the code is not documented very well and it only shows a single field example. I've created my own class that descends ...
Implementing a custom dataset in C++ Builder that descends from `TCustomDataSet` can be quite challenging, especially when you want to support various field types and integrate with GUI controls like grids. Below are a few resources and guidance to help you understand how to create a custom dataset implementation beyon...
23,396
[ { "from": "human", "value": "I'm looking for an example of a TCustomDataSet implementation in C++ beyond the TTextDataset example that ships as an example project within C++ Builder.\nThe TTextDataset is hard to learn from because the code is not documented very well and it only shows a single field example...
I'm using a series of ToolStrips in an Excel 2007 Actions Pane. I'm programatically adding buttons to each ToolStrip and then adding each ToolStrip to the actions pane. So far so good; my ToolStrips appear, with their associated ToolStripButtons. The problem comes with displaying the entire contents of the ToolStrip....
The behavior you're experiencing with the `ToolStrip` in an Excel 2007 Actions Pane can indeed be a bit confusing due to how the `ToolStrip` and its `AutoSize` property are designed to function, especially when used within a more constrained environment like an Actions Pane. ### Understanding ToolStrip Behavior 1. **...
33,057
[ { "from": "human", "value": "I'm using a series of ToolStrips in an Excel 2007 Actions Pane. I'm programatically adding buttons to each ToolStrip and then adding each ToolStrip to the actions pane. So far so good; my ToolStrips appear, with their associated ToolStripButtons.\nThe problem comes with displa...
I would like to provide two different versions of my iPhone app on the App Store -- one free that is limited by the number of items displayed through the application, and another one completely unlimited. The source code for both apps will be exactly the same, the only difference would be the SQLite database that store...
Yes, you can achieve this by utilizing a technique called "target configurations" in Xcode, which allows you to manage multiple app versions (free and paid) from a single codebase. Here's a step-by-step guide to set up your project for this purpose: ### 1. Create Separate Targets 1. **Open Your Project** in Xcode. 2....
32,775
[ { "from": "human", "value": "I would like to provide two different versions of my iPhone app on the App Store -- one free that is limited by the number of items displayed through the application, and another one completely unlimited.\nThe source code for both apps will be exactly the same, the only differen...
At the moment, I have some functions which look like this: private bool inFunction1 = false; public void function1() { if (inFunction1) return; inFunction1 = true; // do stuff which might cause function1 to get called ... inFunction1 = false; } I'd like to be able to declare them like this: [NoRe...
To achieve the desired behavior where you can prevent re-entry into a method using an attribute like `[NoReEntry]`, you can create a custom attribute and use Aspect-Oriented Programming (AOP) to intercept method calls. Here's a general approach on how to accomplish this in C#. ### Step 1: Create the Custom Attribute ...
36,564
[ { "from": "human", "value": "At the moment, I have some functions which look like this:\nprivate bool inFunction1 = false;\npublic void function1()\n{\n if (inFunction1) return;\n inFunction1 = true;\n\n // do stuff which might cause function1 to get called\n ...\n\n inFunction1 = false;\n}\n...
This is probably a simple question but how can I best use an AJAX loader in ASP.NET to provide a loading dialog whilst the page is being built? I currently have an UpdatePanel with an associated UpdateProgressPanel which contains the loading message and gif in a ProgressTemplate. Currently I have a page that onLoad() ...
Using an AJAX loader in an ASP.NET web application with an UpdatePanel and UpdateProgressPanel is a great way to enhance the user experience by providing feedback while data is being loaded. Here's a general approach you can take to implement this functionality effectively. ### Recommended Approach 1. **Use an `Updat...
33,824
[ { "from": "human", "value": "This is probably a simple question but how can I best use an AJAX loader in ASP.NET to provide a loading dialog whilst the page is being built?\nI currently have an UpdatePanel with an associated UpdateProgressPanel which contains the loading message and gif in a ProgressTemplat...
private JButton jBtnDrawCircle = new JButton("Circle"); private JButton jBtnDrawSquare = new JButton("Square"); private JButton jBtnDrawTriangle = new JButton("Triangle"); private JButton jBtnSelection = new JButton("Selection"); How do I add action listeners to these buttons, so that from a main method I can call act...
To add action listeners to your buttons, you can define action listeners for each button and override the `actionPerformed` method. In a Swing application, you typically set up your buttons and action listeners in the constructor of your main frame class. Below is a complete example demonstrating how to set up the but...
33,343
[ { "from": "human", "value": "private JButton jBtnDrawCircle = new JButton(\"Circle\");\nprivate JButton jBtnDrawSquare = new JButton(\"Square\");\nprivate JButton jBtnDrawTriangle = new JButton(\"Triangle\");\nprivate JButton jBtnSelection = new JButton(\"Selection\");\n\nHow do I add action listeners to th...
I know that buffer overruns are one potential hazard to using C-style strings (char arrays). If I know my data will fit in my buffer, is it okay to use them anyway? Are there other drawbacks inherent to C-style strings that I need to be aware of? EDIT: Here's an example close to what I'm working on: char buffer[1024]...
Using C-style strings (character arrays) in C has its pros and cons, and while it's possible to work with them safely under certain conditions, there are other considerations beyond just the risk of buffer overruns. ### Key Considerations 1. **Buffer Overruns**: As you mentioned, the primary risk is that if you mises...
35,567
[ { "from": "human", "value": "I know that buffer overruns are one potential hazard to using C-style strings (char arrays). If I know my data will fit in my buffer, is it okay to use them anyway? Are there other drawbacks inherent to C-style strings that I need to be aware of?\nEDIT: Here's an example close...
How can I write an ASP.NET (C#) application that will render a page can be permanently cached on the iPhone when it is bookmarked as a "Homescreen Icon"? I have tried setting this on the code behind "Response.ExpiresAbsolute = DateTime.MaxValue;" but to no avail. The server code is still executed every time the home ...
To achieve the behavior of rendering a page that can be permanently cached on an iPhone when it is bookmarked as a "Homescreen Icon," you’ll need to consider several aspects. Simply setting the response expiration is not sufficient. Below are steps and methods you can follow to help ensure that your page is cached effe...
30,787
[ { "from": "human", "value": "How can I write an ASP.NET (C#) application that will render a page can be permanently cached on the iPhone when it is bookmarked as a \"Homescreen Icon\"? I have tried setting this on the code behind \"Response.ExpiresAbsolute = DateTime.MaxValue;\" but to no avail. The serve...
I know that there at least two approaches to leverage the web.config file: using the configSource attribute which was introduced in .NET 2.0 - here is a good blog entry about it. The file attribute of the appSettings tag which lets you point to an external file with a relative path. Described in the MSDN documentation...
To address your requirement of using a configuration file located in a virtual directory while working with ASP.NET applications, there are a few strategies you can employ. Since you cannot use the `configSource` attribute or the `file` attribute for your specific case, consider the following approaches: ### 1. Custom...
33,078
[ { "from": "human", "value": "I know that there at least two approaches to leverage the web.config file:\n\nusing the configSource attribute which was introduced in .NET 2.0 - here is a good blog entry about it.\nThe file attribute of the appSettings tag which lets you point to an external file with a relati...
When serializing/de-serializing certain classes I've come across the need to flag or mark certain properties as CDATA elements (due to their content). I am currently handling this like so: <XmlElement("MessageText")> _ Public Property XmlContentLeft() As XmlCDataSection Get Dim doc As New X...
To simplify your handling of CDATA elements without duplicating properties in your classes, you can create a custom serialization attribute that allows you to flag properties you want to serialize as CDATA. This approach will require creating a custom serializer, but it will enable you to streamline your code. Here’s ...
35,358
[ { "from": "human", "value": "When serializing/de-serializing certain classes I've come across the need to flag or mark certain properties as CDATA elements (due to their content). I am currently handling this like so:\n <XmlElement(\"MessageText\")> _\n Public Property XmlContentLeft() As XmlCDataSec...
In our office, we regularly enjoy some rounds of foosball / table football after work. I have put together a small java program that generates random 2vs2 lineups from the available players and stores the match results in a database afterwards. The current prediction of the outcome uses a simple average of all previous...
To create a function `predictResult(blueDef, blueAtk, redDef, redAtk)` that predicts the outcome of a foosball match using historical data stored in your MySQL database, you can approach the problem using a weighted scoring system. Here, we will consider various factors like individual player performance in different r...
27,811
[ { "from": "human", "value": "In our office, we regularly enjoy some rounds of foosball / table football after work. I have put together a small java program that generates random 2vs2 lineups from the available players and stores the match results in a database afterwards.\nThe current prediction of the out...
We have a git project which has quite a big history. Specifically, early in the project there were quite a lot of binary resource files in the project, these have now been removed as they're effectively external resources. However, the size of our repository is >200MB (the total checkout is currently ~20MB) due to havi...
Yes, you can effectively "collapse" your Git repository's history by using a technique called "squashing." However, the specific approach will depend on what you aim to achieve, including how much history you want to retain and how you want to manage the repository going forward. One common method to remove large bin...
34,098
[ { "from": "human", "value": "We have a git project which has quite a big history.\nSpecifically, early in the project there were quite a lot of binary resource files in the project, these have now been removed as they're effectively external resources.\nHowever, the size of our repository is >200MB (the tot...
Have you ever wanted to test and quantitatively show whether your application would perform better as a static build or shared build, stripped or non-stripped, upx or no upx, gcc -O2 or gcc -O3, hash or btree, etc etc. If so this is the thread for you. There are hundreds of ways to tune an application, but how do we co...
It sounds like you're embarking on a comprehensive and ambitious project to build a performance profiling and analysis framework tailored to your application's specific needs. Here’s a structured approach to developing such a system, addressing your requirements and exploring potential technologies: ### Framework Desi...
32,300
[ { "from": "human", "value": "Have you ever wanted to test and quantitatively show whether your application would perform better as a static build or shared build, stripped or non-stripped, upx or no upx, gcc -O2 or gcc -O3, hash or btree, etc etc. If so this is the thread for you. There are hundreds of ways...
No I'm not being a wise guy ... For those fortunate enough to not know the My class: It's something that was added in VB 2005 (and doesn't exist in C#) and is best described as a 'speeddial for the .net framework'. Supposed to make life easier for newbies who won't read which framework classes they should be using Dim...
You're right in identifying that `My` is a feature in VB.NET designed to provide simplified access to commonly used objects and functionality within the .NET Framework, which is not available in C#. While there isn't a direct equivalent to `My` in C#, you can achieve similar functionality using the core classes in the ...
35,622
[ { "from": "human", "value": "No I'm not being a wise guy ...\nFor those fortunate enough to not know the My class: It's something that was added in VB 2005 (and doesn't exist in C#) and is best described as a 'speeddial for the .net framework'. \nSupposed to make life easier for newbies who won't read which...
How does one lock the focus of a .net application to a specific control? For example, if I have a form with 5 text boxes, and I want them filled out in a specific order, how can I stop someone who is in box 1 from tabbing/clicking to box 2, or hitting OK or Cancel or anything else? Is there an easy way, or do I have ...
To lock the focus on a specific control in a Windows Forms application, you can use a combination of event handling and state management. Instead of trying to set focus directly within events that can lead to potential deadlocks, a common approach is to disable the other controls during the process and re-enable them a...
32,937
[ { "from": "human", "value": "How does one lock the focus of a .net application to a specific control? For example, if I have a form with 5 text boxes, and I want them filled out in a specific order, how can I stop someone who is in box 1 from tabbing/clicking to box 2, or hitting OK or Cancel or anything e...
I am new to Sharepoint Server, Do we have any utility to upload files from ASP.NET application. Could you please provide your valuable answers?
Yes, you can upload files to SharePoint Server from an ASP.NET application using the SharePoint Client Object Model (CSOM) or by utilizing the SharePoint REST API. Below are two common approaches to achieve this: ### Using SharePoint Client Object Model (CSOM) 1. **Install the CSOM NuGet Package**: You need to add...
34,011
[ { "from": "human", "value": "I am new to Sharepoint Server, Do we have any utility to upload files from ASP.NET application.\nCould you please provide your valuable answers?\n" }, { "from": "gpt", "value": "Yes, you can upload files to SharePoint Server from an ASP.NET application using the Shar...
So I need to update a text field. Neither the UPDATE statement or the WRITETEXT statement work when used below CREATE TABLE MyTable (IDField int, MyField text) INSERT INTO MyTable (IDField) SELECT 1 DECLARE @Data1 varchar(8000), @Data2 varchar(8000), @ptrval binary(16) SELECT @Data1 = REPLICATE('1',8000) SELECT @Dat...
In SQL Server versions prior to 2005, the `TEXT` data type has some limitations, especially regarding the manipulation of its contents using standard string operations. Since you're dealing with `TEXT` and trying to concatenate large strings, you'll need to work around these limitations. 1. **Using `WRITETEXT`**: The ...
29,927
[ { "from": "human", "value": "So I need to update a text field. Neither the UPDATE statement or the WRITETEXT statement work when used below\nCREATE TABLE MyTable (IDField int, MyField text)\nINSERT INTO MyTable (IDField) SELECT 1\n\nDECLARE @Data1 varchar(8000), @Data2 varchar(8000), @ptrval binary(16)\n\n...
I'm trying to figure out a decent solution (especially from the SEO side) for embedding fonts in web pages. So far I have seen the W3C solution, which doesn't even work on Firefox, and this pretty cool solution. The second solution is for titles only. Is there a solution available for full text? I'm tired of the standa...
Embedding custom fonts in web pages can greatly enhance your website's aesthetics and branding. To ensure both proper functionality across different browsers (including Firefox) and optimal SEO practices, you can consider the following approaches: ### 1. **Using @font-face in CSS** The `@font-face` rule in CSS is the...
34,031
[ { "from": "human", "value": "I'm trying to figure out a decent solution (especially from the SEO side) for embedding fonts in web pages. So far I have seen the W3C solution, which doesn't even work on Firefox, and this pretty cool solution. The second solution is for titles only. Is there a solution availab...
i know this is an age old question, but this is my scenario This is in C# 2.0 Have a windows application which has a datagridview control. This needs to be populates by making a webservice call. I want to achive the same functionality on the data if i were to use a direct connection and if i were using datasets, namely...
In your scenario, you're looking to populate a `DataGridView` in a C# Windows Forms application by fetching data from a web service, while also implementing features like paging and filtering. Since you are using C# 2.0, you will need to work within its constraints. Here’s how you can accomplish this without returning ...
30,310
[ { "from": "human", "value": "i know this is an age old question, but this is my scenario\nThis is in C# 2.0\nHave a windows application which has a datagridview control. This needs to be populates by making a webservice call.\nI want to achive the same functionality on the data if i were to use a direct con...
Following techniques from 'Modern C++ Design', I am implementing a persistence library with various compile-time optimisations. I would like the ability to dispatch a function to a templated member variable if that variable derives from a given class: template<class T, template <class> class Manager = DefaultManager> c...
To achieve the desired compile-time behavior you need, you can utilize template specialization along with SFINAE (Substitution Failure Is Not An Error) to conditionally compile the `Dispatch` function based on whether `T` derives from `Container`. Here's how you can do that using `std::enable_if` and `std::is_base_of` ...
29,684
[ { "from": "human", "value": "Following techniques from 'Modern C++ Design', I am implementing a persistence library with various compile-time optimisations. I would like the ability to dispatch a function to a templated member variable if that variable derives from a given class:\ntemplate<class T, template...
What tweaks / addins / themes do you have rigged up to make your IDE awesome? For example, in Visual Studio I color themes, CodeRush draws lines between braces, I always install and use the Consolas font and I have it setup to sync my settings across computers for when I change hotkeys and whatnot with the help of Fol...
Certainly! Here’s a rundown of popular tweaks, add-ins, and themes across various IDEs that can help enhance your development experience. ### Visual Studio 1. **Color Themes**: - **Visual Studio Marketplace** has a plethora of themes; popular ones include "Solarized" and "One Dark Pro". 2. **Productivity Tools*...
23,554
[ { "from": "human", "value": "What tweaks / addins / themes do you have rigged up to make your IDE awesome? For example, in Visual Studio I color themes, CodeRush draws lines between braces, I always install and use the Consolas font and I have it setup to sync my settings across computers for when I change...
When Xdebug is installed/enabled, standard PHP errors (when set to display in the browser) are replaced with more informative messages that include stack traces for each. Also, I've noticed that it also seems to improve output in other areas such as the var_dump() function, formatting/color-coding the output to make it...
If you're looking for third-party packages that can enhance PHP's error reporting and debugging output similar to what Xdebug offers, but without relying on Xdebug itself, there are several options available. Here are some libraries and tools that you can consider: 1. **Whoops**: - [Whoops](https://filp.github.io/w...
35,405
[ { "from": "human", "value": "When Xdebug is installed/enabled, standard PHP errors (when set to display in the browser) are replaced with more informative messages that include stack traces for each. Also, I've noticed that it also seems to improve output in other areas such as the var_dump() function, form...
I'm currently performing a migration operation from a legacy database. I need to perform migration of millions of originating rows, breaking the original content apart into multiple destination parent / child rows. As it's not a simple 1 to 1 migration and the the resulting rows are parent / children row based on iden...
Migrating a large volume of data from a legacy database to a new structure that involves parent-child relationships can be challenging, especially when dealing with identity-generated keys. Here are some steps and considerations for performing this migration effectively: ### General Strategy 1. **Understanding Data R...
31,809
[ { "from": "human", "value": "I'm currently performing a migration operation from a legacy database. I need to perform migration of millions of originating rows, breaking the original content apart into multiple destination parent / child rows. \nAs it's not a simple 1 to 1 migration and the the resulting ro...
I am trying to get LINQ to SQL to persist changes to an attached object wherein the backing table has a DateTime column that I think should function for row versioning, as described here. The table looks like this: CREATE TABLE [dbo].[client]( [client_id] [int] IDENTITY(1,1) NOT NULL, [client_address1] varchar(100) NUL...
The issue you're encountering is likely related to how you're managing the `modified_date` property, especially in conjunction with LINQ to SQL's behavior regarding concurrency checks and row versioning. When you specify the `modified_date` property as a `Timestamp` or a version column in LINQ to SQL, it is expected t...
34,039
[ { "from": "human", "value": "I am trying to get LINQ to SQL to persist changes to an attached object wherein the backing table has a DateTime column that I think should function for row versioning, as described here.\nThe table looks like this:\nCREATE TABLE [dbo].[client](\n[client_id] [int] IDENTITY(1,1) ...
Morning all, Bit of a language theory question here... I've found some references online suggesting that exception handling and delegates in C# have some different behaviour in some cases but I cannot find any concrete documentation on the matter. We recently had some big problems with exceptions inside delegates for a...
You've raised an interesting point regarding exception handling, delegates, and their behavior in the context of COM interop, particularly with Excel as the host. There are indeed nuances when it comes to exception handling in delegates, especially within the COM environment. ### Overview 1. **Delegates and Exception...
32,164
[ { "from": "human", "value": "Morning all,\nBit of a language theory question here... I've found some references online suggesting that exception handling and delegates in C# have some different behaviour in some cases but I cannot find any concrete documentation on the matter.\nWe recently had some big prob...
I have an auditing trigger that automatically places the time something was updated and the user that updated in fields in all my tables. I have another set of triggers that write event information from updates to an events table. The issue is when someone updates something, the event information is fired twice because...
To prevent duplicate entries in your events table due to the cascading effects of triggers, you need to implement a way to distinguish between the original update and the secondary updates caused by your auditing triggers. Here are a few approaches you can consider: ### 1. Use a Flag or Session Variable You can introd...
35,400
[ { "from": "human", "value": "I have an auditing trigger that automatically places the time something was updated and the user that updated in fields in all my tables. I have another set of triggers that write event information from updates to an events table. The issue is when someone updates something, the...
I have one autocomplete search, in which by typing few characters it will show all the names, which matches the entered character. I am populating this data in the jsp using DIV tag, by using mouse I'm able to select the names. But I want to select the names in the DIV tag to be selected using the keyboard up and down ...
To implement keyboard navigation for an autocomplete search using arrow keys in a JSP page, you'll need to use JavaScript (or jQuery) to handle key events and update the selected item in your dropdown accordingly. Below is a basic example of how you can achieve this. ### Example Implementation Here's a simple HTML st...
32,925
[ { "from": "human", "value": "I have one autocomplete search, in which by typing few characters it will show all the names, which matches the entered character. I am populating this data in the jsp using DIV tag, by using mouse I'm able to select the names. But I want to select the names in the DIV tag to be...
I frequently run into large, non-template classes in C++ where simple methods are defined directly in the class body in the header file instead of separately in the implementation file. For example: class Foo { int getBar() const { return bar; } ... }; Why do this? It seems like there are disadvantages. The implem...
You've raised a number of good points regarding the use of inline methods in C++ classes, and it's a topic that has been debated among developers for quite some time. Let's break down the various aspects of this practice: ### Reasons for Defining Methods in Class Body 1. **Inlining**: - As you noted, one of the p...
33,972
[ { "from": "human", "value": "I frequently run into large, non-template classes in C++ where simple methods are defined directly in the class body in the header file instead of separately in the implementation file. For example:\nclass Foo {\n int getBar() const { return bar; }\n ...\n};\n\nWhy do this? It...
I am trying to get my development environment up and running, and I am having trouble with Tomcat trying to load JSF classes for some reason. My application does not use JSF; in fact, I haven't even deployed my application to tomcat yet. I am getting a number of stack traces in the startup logs and I cannot load the ...
The issue you encountered with Tomcat and the JSF classes is related to the default applications that come bundled with your Tomcat distribution. Specifically, it appears that the default web applications, such as `host-manager`, `balancer`, and `jsp-examples`, are designed to use JavaServer Faces (JSF), but the necess...
33,801
[ { "from": "human", "value": "I am trying to get my development environment up and running, and I am having trouble with Tomcat trying to load JSF classes for some reason. My application does not use JSF; in fact, I haven't even deployed my application to tomcat yet. I am getting a number of stack traces i...
I've done development in both VB6 and VB.NET, and I've used ADODB objects in VB6 to handle recordset navigation (i.e. the MoveFirst, MoveNext, etc. methods), and I have used ADO.NET to handle queries in a row-by-row nature (i.e For Each Row In Table.Rows ...) But now I seem to have come to a dilemma. I am now building...
In VB.NET, the `DataTable` and `DataView` classes provide a way to work with data in a manner similar to the way you used recordsets in VB6, but they do not have direct methods like `MoveFirst`, `MoveNext`, etc. However, you can achieve similar functionality using a combination of a `DataTable` or a `DataView` with a c...
35,272
[ { "from": "human", "value": "I've done development in both VB6 and VB.NET, and I've used ADODB objects in VB6 to handle recordset navigation (i.e. the MoveFirst, MoveNext, etc. methods), and I have used ADO.NET to handle queries in a row-by-row nature (i.e For Each Row In Table.Rows ...)\nBut now I seem to ...
We have a .NET web service API. Currently, people use the SOAP definition to consume the API, because we require authentication through a custom Authentication element in the SOAP header. Works perfectly. fine. SOAP requires the request to be a POST. We want to allow the users to use a the GET verb (so it can be cachea...
Offering a simple GET API while maintaining authentication can be achieved in various ways. Here are some common practices you could consider, along with their advantages and disadvantages. Since you want to avoid using SSL or additional software, some of these approaches may be limited in security. ### 1. Query Param...
31,550
[ { "from": "human", "value": "We have a .NET web service API. Currently, people use the SOAP definition to consume the API, because we require authentication through a custom Authentication element in the SOAP header. Works perfectly. fine.\nSOAP requires the request to be a POST. We want to allow the users ...
I think it important to have an "undo" method ala gmail when destroying records instead of displaying an annoying popup that says, "Are you sure?". The way that I've implemented this is to have a "deleted_at" timestamp column in the model which gets timestamped when destroy method is called def destroy @foo = Foo.fin...
Your approach to implementing a soft delete feature using a `deleted_at` timestamp is a solid and common pattern in Ruby on Rails applications. It allows you to mark records as deleted without permanently removing them from the database, which is useful for data recovery and auditing purposes. There are a few considera...
26,240
[ { "from": "human", "value": "I think it important to have an \"undo\" method ala gmail when destroying records instead of displaying an annoying popup that says, \"Are you sure?\".\nThe way that I've implemented this is to have a \"deleted_at\" timestamp column in the model which gets timestamped when destr...
I am writing a lib and a demo project. The project doesn't care which version of the lib I use (I can use sdl, directx or whatever I like as the gfx backend). To get the object I do Obj *obj = libname_newDevice(); Now, should I use delete or should I do obj->deleteMe();? I ask because I am not exactly doing new so I ...
In the scenario you've described, you have two main options for resource management of your `Obj` instance created with `libname_newDevice()`. Whether to use `delete` or a member function like `obj->deleteMe()` depends on how you've designed your library and how you want users to interact with your API. Let's analyze b...
35,516
[ { "from": "human", "value": "I am writing a lib and a demo project. The project doesn't care which version of the lib I use (I can use sdl, directx or whatever I like as the gfx backend). To get the object I do \nObj *obj = libname_newDevice();\n\nNow, should I use delete or should I do obj->deleteMe();? I ...
The .NET standard of prefixing an interface name with an I seems to be becoming widespread and isn't just limited to .NET any more. I have come across a lot of Java code that uses this convention (so it wouldn't surprise me if Java used it before C# did). Also Flex uses it, and so on. The placing of an I at the start o...
The convention of prefixing interface names with an "I" (e.g., `IUser`, `IShape`) has indeed become widespread in various programming languages, particularly in .NET and C#. While it can resemble Hungarian notation, which was designed to encode type information into variable names, the use of "I" for interfaces is prim...
34,276
[ { "from": "human", "value": "The .NET standard of prefixing an interface name with an I seems to be becoming widespread and isn't just limited to .NET any more. I have come across a lot of Java code that uses this convention (so it wouldn't surprise me if Java used it before C# did). Also Flex uses it, and ...
I'm using WebORB as a remote gateway for Flex projects. I was wondering what would be the best architecture to use on the Server .NET side. At this moment we are using SubSonic to generate a Data Access Layer. Besides that each call from Flex uses a little bit a transaction script pattern because the server side really...
When building a Rich Internet Application (RIA) with Flex and using WebORB as a gateway to a .NET backend, it is important to consider a number of best practices and architectural patterns that can help ensure maintainability, performance, and scalability. Here are some recommendations based on your current setup and c...
30,047
[ { "from": "human", "value": "I'm using WebORB as a remote gateway for Flex projects. I was wondering what would be the best architecture to use on the Server .NET side. At this moment we are using SubSonic to generate a Data Access Layer. Besides that each call from Flex uses a little bit a transaction scri...
A problem I've encountered a few time in my career is in a tiered service architecture a single downstream system can bring down the entire client application if it gets into a state where all its threads are consumed on a deadlock or some sort of infinite loop bug in that system. Under these conditions the server sock...
Your situation presents a classic challenge in managing the dependencies and inter-service communication in a distributed system. Here are a few additional strategies you might consider to alleviate the impact of a downstream service failing: 1. **Circuit Breaker Pattern**: Implement a circuit breaker mechanism, which...
36,460
[ { "from": "human", "value": "A problem I've encountered a few time in my career is in a tiered service architecture a single downstream system can bring down the entire client application if it gets into a state where all its threads are consumed on a deadlock or some sort of infinite loop bug in that syste...
I'd like to store an image in a business object. In MSDN I saw that the System.Drawing-namespace provides lots of GDI+-features, etc. Is it okay to store an Image in an System.Drawing.Image class in business layer (which is a class library "only"), and thus including a reference to System.Drawing too? I slightly feel j...
Storing images as `System.Drawing.Image` in your business layer is a topic that raises valid concerns about separation of concerns and platform dependency. Here are some considerations and alternative approaches to help you make a more informed decision: ### Concerns with Using `System.Drawing.Image` in Business Layer...
31,325
[ { "from": "human", "value": "I'd like to store an image in a business object. In MSDN I saw that the System.Drawing-namespace provides lots of GDI+-features, etc.\nIs it okay to store an Image in an System.Drawing.Image class in business layer (which is a class library \"only\"), and thus including a refere...
I would like to be able to change the active pane of an accordion using javascript. I see a behavior set_SelectedIndex but I can not seem to get it to work. How can I find out what the supported methods are for this control? How can I set the selected index from the page?
To change the active pane of an accordion using JavaScript, you'll first need to identify the library or framework that you are using for the accordion component, as methods for interacting with the accordion can vary between different libraries (e.g., jQuery UI, Bootstrap, etc.). ### Finding Supported Methods 1. **D...
32,903
[ { "from": "human", "value": "I would like to be able to change the active pane of an accordion using javascript.\nI see a behavior set_SelectedIndex but I can not seem to get it to work.\nHow can I find out what the supported methods are for this control?\nHow can I set the selected index from the page?\n" ...
We have a web service that uses up more and more private bytes until that application stops responding. The managed heap (mostly Gen2) will show some 200-250 MB, while private bytes shows over 1GB. What are possible causes of a memory leak outside of the managed heap? I've already checked for the following: Prolific...
Memory leaks that lead to an increase in private bytes without a corresponding rise in the managed heap can be quite challenging to diagnose. Since you've already checked several common causes, here are some additional sources you could investigate: 1. **Unmanaged Resources**: Check if your application is holding onto...
36,120
[ { "from": "human", "value": "We have a web service that uses up more and more private bytes until that application stops responding. The managed heap (mostly Gen2) will show some 200-250 MB, while private bytes shows over 1GB. What are possible causes of a memory leak outside of the managed heap?\nI've al...
On my current project, I came across our master DB script. Taking a closer look at it, I noticed that all of our original primary keys have a data type of numeric(38,0). We are running SQL Server 2005 as our primary DB platform. For a little context, we support both Oracle and SQL Server as our back-end. In Oracle, our...
Using `numeric(38,0)` as a primary key in SQL Server (or any relational database) can have several implications, both in terms of performance and best practices. Here’s a breakdown of the considerations: ### Pros and Cons of Using `numeric(38,0)`: #### Pros: 1. **Consistency Across Platforms**: Since you are supporti...
33,234
[ { "from": "human", "value": "On my current project, I came across our master DB script. Taking a closer look at it, I noticed that all of our original primary keys have a data type of numeric(38,0).\nWe are running SQL Server 2005 as our primary DB platform.\nFor a little context, we support both Oracle and...
I need to read an Excel 2007 XLSX file in a Java application. Does anyone know of a good API to accomplish this task?
Yes, there are several libraries available for reading XLSX files in Java. One of the most popular and widely used libraries is **Apache POI**. Apache POI is a powerful Java library that provides support for reading and writing Microsoft Office documents, including Excel files. Here's a quick guide on how to use Apach...
35,229
[ { "from": "human", "value": "I need to read an Excel 2007 XLSX file in a Java application. Does anyone know of a good API to accomplish this task?\n" }, { "from": "gpt", "value": "Yes, there are several libraries available for reading XLSX files in Java. One of the most popular and widely used l...
We have an internal .NET case management application that automatically creates a new case from an email. I want to be able to identify other emails that are related to the original email so we can prevent duplicate cases from being created. I have observed that many, but not all, emails have a thread-index header tha...
To identify related emails based on the `Thread-Index` header and potentially other email headers (like `In-Reply-To` or `References`), you can follow these steps: ### 1. **Extract Relevant Headers** Start by extracting the `Thread-Index`, `In-Reply-To`, and `References` headers from the emails. These headers can prov...
35,589
[ { "from": "human", "value": "We have an internal .NET case management application that automatically creates a new case from an email. I want to be able to identify other emails that are related to the original email so we can prevent duplicate cases from being created. \nI have observed that many, but not ...
We have YouTube videos on a site and want to detect if it is likely that they will not be able to view them due to (mostly likely) company policy or otherwise. We have two sites: 1) Flex / Flash 2) HTML I think with Flex I can attempt to download http://youtube.com/crossdomain.xml and if it is valid XML assume the site...
Detecting whether users can view YouTube videos on your site due to restrictions (like company policies or network settings) can be challenging, especially if you want to avoid intrusive methods. Here are some strategies you can consider for both Flex/Flash and HTML: ### 1. For Flex/Flash: Your idea of checking the `c...
33,426
[ { "from": "human", "value": "We have YouTube videos on a site and want to detect if it is likely that they will not be able to view them due to (mostly likely) company policy or otherwise.\nWe have two sites:\n1) Flex / Flash\n2) HTML\nI think with Flex I can attempt to download http://youtube.com/crossdoma...
I basically need a queueing technology that will enable to queue messages. These messages will then later be transmitted as SMS texts. RabbitMQ seems to be quite a good fit after I glossed over the apis. My current architecture plans: clients queue messages in RabbitMQ. Another daemon will reads messages off RabbitMQ...
Your architecture plan using RabbitMQ for queuing messages and subsequently sending them as SMS texts via a daemon is fundamentally sound. However, there are several considerations and potential challenges you should keep in mind when moving forward. Here are some points to consider: ### 1. RabbitMQ Configuration - *...
34,525
[ { "from": "human", "value": "I basically need a queueing technology that will enable to queue messages. These messages will then later be transmitted as SMS texts. RabbitMQ seems to be quite a good fit after I glossed over the apis. \nMy current architecture plans:\n\nclients queue messages in RabbitMQ.\nAn...
First, I am Linq to Sql newbie, so please be gentle :). I have existing ASP.Net application developed over last 3.5 years. It has pretty big data model underneath, around 350 tables. I am trying to do some new things with Linq to SQL. First impression is that linq designer and SqlMetal are built for databases not bigg...
It's great to see you diving into LINQ to SQL, and I understand your concerns, especially when working with a large data model like yours. Let's go through your questions and challenges one by one. ### 1. Single Class Representation for Common Tables You're correct that if you include the same table (like `Products`) ...
33,279
[ { "from": "human", "value": "First, I am Linq to Sql newbie, so please be gentle :).\nI have existing ASP.Net application developed over last 3.5 years. It has pretty big data model underneath, around 350 tables. I am trying to do some new things with Linq to SQL. \nFirst impression is that linq designer an...
I'm installing SVN with Apache 2.2 on windows 2003 everything seems good but when I try to login no username/password works. Here is some info I load this module in httpd.conf LoadModule auth_basic_module modules/mod_auth_basic.so and in svnserv.conf I have [general] anon-access=read auth-access=write password-db=pass...
It looks like you're on the right track with your configuration, but there are a few things to check and ensure that everything is set up correctly for authentication with Apache and SVN. Here are some steps and suggestions: 1. **Check Apache Configuration**: Make sure that you've configured the appropriate `<Location...
35,755
[ { "from": "human", "value": "I'm installing SVN with Apache 2.2 on windows 2003 everything seems good but when I try to login no username/password works.\nHere is some info\nI load this module in httpd.conf\nLoadModule auth_basic_module modules/mod_auth_basic.so\nand in svnserv.conf I have\n[general]\nanon-...