instruction
stringlengths
14
27.6k
completion
stringlengths
3
38.3k
__original_row_idx
int64
0
50k
conversations
listlengths
2
2
If I open files I created in Windows, the lines all end with ^M. How do I delete these characters all at once?
The `^M` character you're seeing at the end of lines is a carriage return character (ASCII 13, represented as `\r`) that typically appears when Windows files are opened on UNIX-like systems, such as Linux or macOS, where lines usually end with just a newline character (ASCII 10, represented as `\n`). Here are several ...
2,940
[ { "from": "human", "value": "If I open files I created in Windows, the lines all end with ^M.\nHow do I delete these characters all at once?\n" }, { "from": "gpt", "value": "The `^M` character you're seeing at the end of lines is a carriage return character (ASCII 13, represented as `\\r`) that ...
Is there anyway to have a sort of virtual static member in C++? For example: class BaseClass { public: BaseClass(const string& name) : _name(name) {} string GetName() const { return _name; } virtual void UseClass() = 0; private: const string _name; }; class DerivedClass : publi...
In C++, if you want to have a common static member shared among all derived classes without having to redefine it in each derived class, you can use a static member function in the base class along with a mechanism to register the names or properties of each derived class. Here's a design that might meet your needs: 1...
397
[ { "from": "human", "value": "Is there anyway to have a sort of virtual static member in C++?\nFor example:\nclass BaseClass {\n public:\n BaseClass(const string& name) : _name(name) {}\n string GetName() const { return _name; }\n virtual void UseClass() = 0;\n private:\n co...
I would like to have a nice template for doing this in development. How do I reset an increment identity's starting value in SQL Server?
In SQL Server, if you need to reset the starting value of an identity column (also known as an increment identity), you can use the `DBCC CHECKIDENT` command. This command allows you to reseed the identity value for a table. Here’s a template you can follow: ### Template to Reset Identity Column Value in SQL Server `...
2,468
[ { "from": "human", "value": "I would like to have a nice template for doing this in development. How do I reset an increment identity's starting value in SQL Server?\n" }, { "from": "gpt", "value": "In SQL Server, if you need to reset the starting value of an identity column (also known as an in...
By "generate", I mean auto-generation of the code necessary for a particular selected (set of) variable(s). But any more explicit explication or comment on good practice is welcome.
Auto-generation of code for a selected set of variables can be a powerful tool in software development. It often speeds up the development process, reduces human error, and ensures consistency across the codebase. Below are some insights on how to effectively implement code auto-generation for variables, along with bes...
2,579
[ { "from": "human", "value": "By \"generate\", I mean auto-generation of the code necessary for a particular selected (set of) variable(s).\nBut any more explicit explication or comment on good practice is welcome.\n" }, { "from": "gpt", "value": "Auto-generation of code for a selected set of var...
What interrupt would you hook from DOS to get the real-time clock?
In DOS, you can access the real-time clock (RTC) using interrupt **`INT 1Ah`**. This interrupt provides various services related to the system timer and real-time clock. Here’s a brief overview of how to use it: - **Function 00h** of `INT 1Ah` retrieves the current system time in hours, minutes, and seconds. - **Funct...
3,688
[ { "from": "human", "value": "What interrupt would you hook from DOS to get the real-time clock?\n" }, { "from": "gpt", "value": "In DOS, you can access the real-time clock (RTC) using interrupt **`INT 1Ah`**. This interrupt provides various services related to the system timer and real-time cloc...
I'm having a weird issue with Visual Studio 2008. Every time I fire it up, the solution explorer is about an inch wide. It's like it can't remember it's layout settings. Every un-docked window is in the position I place it. But if I dock a window, it's position is saved, but it's size will be reset to very-narrow (arou...
It sounds frustrating to deal with this issue in Visual Studio 2008. Here are a few potential solutions you could try to resolve the problem with the Solution Explorer and other docked windows: 1. **Delete the Visual Studio User Settings:** - Close Visual Studio. - Navigate to the folder where Visual Studio stor...
2,251
[ { "from": "human", "value": "I'm having a weird issue with Visual Studio 2008. Every time I fire it up, the solution explorer is about an inch wide. It's like it can't remember it's layout settings.\nEvery un-docked window is in the position I place it. But if I dock a window, it's position is saved, but it...
I have created a PHP-script to update a web server that is live inside a local directory. I'm migrating the script into Python. It works fine for the most part, but after a PUT command, the size of the file appears to change. Thus, the size of the file is different from that of the file on the server. Once I download ...
The issue you're experiencing with the difference in file sizes after uploading via FTP with Python's `ftplib` is likely due to the handling of line endings between different operating systems. When you open the file in Python with the mode `"r"`, it reads the file as a text file, which can translate line endings (`CRL...
2,163
[ { "from": "human", "value": "I have created a PHP-script to update a web server that is live inside a local directory.\nI'm migrating the script into Python. It works fine for the most part, but after a PUT command, the size of the file appears to change. Thus, the size of the file is different from that of...
I want to open a file for reading, the C++ way. I need to be able to do it for: text files, which would involve some sort of read line function. binary files, which would provide a way to read raw data into a char* buffer.
To open and read files in C++, you can use the facilities provided by the C++ Standard Library, specifically the `<fstream>` header which contains `std::ifstream` for reading files. Below, I'll provide examples for both text files (using line reading) and binary files (reading raw data). ### Reading a Text File Line b...
737
[ { "from": "human", "value": "I want to open a file for reading, the C++ way. I need to be able to do it for:\n\ntext files, which would involve some sort of read line function.\nbinary files, which would provide a way to read raw data into a char* buffer.\n\n" }, { "from": "gpt", "value": "To op...
Is there a good way to debug errors in the Visual Studio Designer? In our project we have tons of UserControls and many complex forms. For the complex ones, the Designer often throws various exceptions which doesn't help much, and I was wondering if there's some nice way to figure out what has gone wrong. The language ...
Debugging errors in the Visual Studio Designer can indeed be challenging, especially with complex forms and UserControls. Here are several strategies to help you identify and resolve issues in the Designer: ### 1. Check the Output Window The Output window in Visual Studio can provide useful information about exception...
696
[ { "from": "human", "value": "Is there a good way to debug errors in the Visual Studio Designer?\nIn our project we have tons of UserControls and many complex forms. For the complex ones, the Designer often throws various exceptions which doesn't help much, and I was wondering if there's some nice way to fig...
We have a junior programmer that simply doesn't write enough tests. I have to nag him every two hours, "have you written tests?" We've tried: Showing that the design becomes simpler Showing it prevents defects Making it an ego thing saying only bad programmers don't This weekend 2 team members had to come to work beca...
It sounds like you're facing a challenging situation with your junior programmer. Motivating someone to write tests, especially when it feels like a chore, can be difficult. Here are some additional strategies and motivations that may encourage him to embrace testing: 1. **Pair Programming:** Consider pairing him with...
2,843
[ { "from": "human", "value": "We have a junior programmer that simply doesn't write enough tests.\nI have to nag him every two hours, \"have you written tests?\"\nWe've tried:\n\nShowing that the design becomes simpler\nShowing it prevents defects\nMaking it an ego thing saying only bad programmers don't\nTh...
The datepicker function only works on the first input box that is created. I'm trying to duplicate a datepicker by cloning the div that is containing it. <a href="#" id="dupMe">click</a> <div id="template"> input-text <input type="text" value="text1" id="txt" /> date time picker <input type="text" id="example" valu...
The issue you're experiencing arises because when you clone the `#template` div, you're also cloning the existing input elements with the same ID (`#example` and `#txt`). In HTML, the `id` attribute must be unique within a document. When you initialize the datepicker, it only applies to the first instance of an eleme...
2,118
[ { "from": "human", "value": "The datepicker function only works on the first input box that is created.\nI'm trying to duplicate a datepicker by cloning the div that is containing it.\n<a href=\"#\" id=\"dupMe\">click</a>\n<div id=\"template\">\n input-text <input type=\"text\" value=\"text1\" id=\"txt\" /...
I want to run a weekly batch process in an asp.net page. How can that be done? Thanks
Running a weekly batch process directly from an ASP.NET page is generally not recommended due to the nature of web applications being request-response oriented. However, if you need to run a batch process at a scheduled time, there are several approaches you can consider: ### 1. Use Windows Task Scheduler The simples...
917
[ { "from": "human", "value": "I want to run a weekly batch process in an asp.net page. How can that be done?\nThanks\n" }, { "from": "gpt", "value": "Running a weekly batch process directly from an ASP.NET page is generally not recommended due to the nature of web applications being request-respo...
I have been hearing a lot of good things about DVCS systems, in particular about bazaar. Apart from the concept of distributed repository, I see two main advantages being touted: the merge is better automated, and the rename is handled right. Could someone please point me at some text explaining how exactly the improve...
Distributed Version Control Systems (DVCS) like Bazaar (bzr), Git, and Mercurial have introduced significant improvements in how version control is handled, especially when it comes to merging and renaming files. Here’s a detailed explanation of how these systems improve these processes, specifically focusing on Bazaar...
1,275
[ { "from": "human", "value": "I have been hearing a lot of good things about DVCS systems, in particular about bazaar. Apart from the concept of distributed repository, I see two main advantages being touted: the merge is better automated, and the rename is handled right.\nCould someone please point me at so...
We're seeing some pernicious, but rare, deadlock conditions in the Stack Overflow SQL Server 2005 database. I attached the profiler, set up a trace profile using this excellent article on troubleshooting deadlocks, and captured a bunch of examples. The weird thing is that the deadlocking write is always the same: UPDAT...
Using a static `DataContext` like you are currently doing can lead to several issues, including the potential for deadlocks, especially in a multi-threaded web application environment. Here are some recommendations and considerations to help mitigate deadlocks and improve the overall performance and reliability of your...
1,925
[ { "from": "human", "value": "We're seeing some pernicious, but rare, deadlock conditions in the Stack Overflow SQL Server 2005 database.\nI attached the profiler, set up a trace profile using this excellent article on troubleshooting deadlocks, and captured a bunch of examples. The weird thing is that the d...
I have been trying to find an easy way to parse a search query and convert it to an SQL query for my DB. I have found two solutions: Lucene: Powerful Java-based search engine, contains a query parser but it isn't very configurable and I could find a way to easily hack/adapt it to create SQL queries. ANTLR: A veteran ...
If you're looking for alternatives to Lucene and ANTLR for parsing search queries and converting them into SQL queries, here are some options that might meet your needs: 1. **SQL Query Builder Libraries**: - Libraries such as **JOOQ** (Java Object Oriented Querying) allow you to build SQL queries programmatically ...
1,339
[ { "from": "human", "value": "I have been trying to find an easy way to parse a search query and convert it to an SQL query for my DB. \nI have found two solutions:\n\nLucene: Powerful Java-based search engine, contains a query parser but it isn't very configurable and I could find a way to easily hack/adapt...
I forgot my password for Sql Server 2005. Windows Authentication is not enabled so I cannot login. How can I remove the current instance and create a new db instance? Or is there a better solution exists?
If you have forgotten the SQL Server 2005 password and cannot log in due to Windows Authentication not being enabled, you still have a few options to recover access or remove the current instance. However, remember that removing the instance will lead to data loss unless you have backups. Here are some approaches you c...
1,520
[ { "from": "human", "value": "I forgot my password for Sql Server 2005. Windows Authentication is not enabled so I cannot login. How can I remove the current instance and create a new db instance? Or is there a better solution exists?\n" }, { "from": "gpt", "value": "If you have forgotten the SQL...
I have a binary file that I have to parse and I'm using Python. Is there a way to take 4 bytes and convert it to a single precision floating point number?
Yes, you can convert 4 bytes to a single-precision floating point number in Python using the `struct` module, which provides functionality for working with C-style data structures. For single-precision floating-point numbers, you can use the format specifier `f` in the `struct.unpack` method. Here's a step-by-step exa...
3,020
[ { "from": "human", "value": "I have a binary file that I have to parse and I'm using Python. Is there a way to take 4 bytes and convert it to a single precision floating point number?\n" }, { "from": "gpt", "value": "Yes, you can convert 4 bytes to a single-precision floating point number in Pyt...
I am creating a GUI for a machine that runs remote (WinXP) or on the machine itself (Windows CE 6.0). Right now I've created a fast visualisation (read: very simple) of the machine itself. The goal is to make a bit more complex visualisation of the machine and for that I would need a lightweight 3d engine. The engine s...
For your requirements of a lightweight 3D engine that can run on both the full .NET Framework and .NET Compact Framework (suitable for Windows CE 6.0), here are a few options that you might find useful: ### 1. **SharpGL** - **Description**: SharpGL is a wrapper around OpenGL for .NET, which allows you to create 3D app...
1,917
[ { "from": "human", "value": "I am creating a GUI for a machine that runs remote (WinXP) or on the machine itself (Windows CE 6.0).\nRight now I've created a fast visualisation (read: very simple) of the machine itself. The goal is to make a bit more complex visualisation of the machine and for that I would ...
Is it possible to get a breakdown of CPU utilization by database? I'm ideally looking for a Task Manager type interface for SQL server, but instead of looking at the CPU utilization of each PID (like taskmgr) or each SPID (like spwho2k5), I want to view the total CPU utilization of each database. Assume a single SQL in...
As of my last knowledge update in October 2023, there isn't a built-in tool in SQL Server Management Studio (SSMS) or a native SQL Server feature that provides a direct, live view of CPU utilization broken down by database in a manner similar to Task Manager. However, there are several approaches you can consider to mo...
2,359
[ { "from": "human", "value": "Is it possible to get a breakdown of CPU utilization by database?\nI'm ideally looking for a Task Manager type interface for SQL server, but instead of looking at the CPU utilization of each PID (like taskmgr) or each SPID (like spwho2k5), I want to view the total CPU utilizatio...
In one of my applications, I am querying active directory to get a list of all users below a given user (using the "Direct Reports" thing). So basically, given the name of the person, it is looked up in AD, then the Direct Reports are read. But then for every direct report, the tool needs to check the direct reports of...
Caching the results of your queries to Active Directory (AD) is indeed a good strategy to improve performance, especially when dealing with potentially large sets of data like direct reports. Below are some suggestions on how you can achieve this efficiently, along with techniques for querying and caching results. ###...
206
[ { "from": "human", "value": "In one of my applications, I am querying active directory to get a list of all users below a given user (using the \"Direct Reports\" thing). So basically, given the name of the person, it is looked up in AD, then the Direct Reports are read. But then for every direct report, th...
I have a collection of objects in a database. Images in a photo gallery, products in a catalog, chapters in a book, etc. Each object is represented as a row. I want to be able to arbitrarily order these images, storing that ordering in the database so when I display the objects, they will be in the right order. For ...
There are several approaches to storing an arbitrary order for items in a database, and each has its trade-offs. Here’s a more structured breakdown of a few methods, including their benefits and drawbacks, along with a potential solution that balances robustness and efficiency. ### 1. **Order Index (Using Integer Posi...
952
[ { "from": "human", "value": "I have a collection of objects in a database. Images in a photo gallery, products in a catalog, chapters in a book, etc. Each object is represented as a row. I want to be able to arbitrarily order these images, storing that ordering in the database so when I display the objec...
I have a list of 2-item tuples and I'd like to convert them to 2 lists where the first contains the first item in each tuple and the second list holds the second item. For example: original = [('a', 1), ('b', 2), ('c', 3), ('d', 4)] # and I want to become... result = (['a', 'b', 'c', 'd'], [1, 2, 3, 4]) Is there a bui...
Yes, you can achieve this using the `zip` function along with unpacking. The `zip` function allows you to aggregate elements from each of the tuples together. When you unpack the tuples from your list and zip them together, you can separate the first and second items into two lists. Here’s how you can do it: ```pytho...
3,592
[ { "from": "human", "value": "I have a list of 2-item tuples and I'd like to convert them to 2 lists where the first contains the first item in each tuple and the second list holds the second item.\nFor example:\noriginal = [('a', 1), ('b', 2), ('c', 3), ('d', 4)]\n# and I want to become...\nresult = (['a', ...
So I like the OpenID idea. I support it on my site, and use it wherever it's possible (like here!). But I am not clear about one thing. A site that supports OpenID basically accepts any OpenID provider out there, right? How does that work with sites that want to reduce bot-signups? What's to stop a malicious Open...
You raise a valid concern about the potential for malicious OpenID providers to facilitate bot sign-ups. While OpenID allows users to authenticate using various providers, it is important for sites that implement OpenID to consider security measures to mitigate the risks associated with bot registrations. Here are some...
3,887
[ { "from": "human", "value": "So I like the OpenID idea. I support it on my site, and use it wherever it's possible (like here!). But I am not clear about one thing. \nA site that supports OpenID basically accepts any OpenID provider out there, right? How does that work with sites that want to reduce bot...
I'm currently working on creating a new C# project that needs to interact with an older C++ application. There is an error enumeration that already exists in the C++ app that I need to use in the C# app. I don't want to just re declare the enumeration in C# because that could cause sync issues down the line if the file...
To use an enumeration defined in C++ within a C# project without duplicating the enumeration directly in C#, you can use Platform Invocation Services (P/Invoke) or create a C++/CLI wrapper. Here's how you can achieve this: ### Option 1: Using P/Invoke with an Exposed Function If the C++ application is compiled as a d...
1,501
[ { "from": "human", "value": "I'm currently working on creating a new C# project that needs to interact with an older C++ application. There is an error enumeration that already exists in the C++ app that I need to use in the C# app.\nI don't want to just re declare the enumeration in C# because that could c...
How can I find any unused functions in a PHP project? Are there features or APIs built into PHP that will allow me to analyse my codebase - for example Reflection, token_get_all()? Are these APIs feature rich enough for me not to have to rely on a third party tool to perform this type of analysis?
Finding unused functions in a PHP project can be a challenging task, as there is no built-in feature in PHP that directly identifies unused code. However, you can leverage PHP's Reflection and tokenization features, along with some custom scripting, to help analyze your codebase. Here's how you can approach it: ### Us...
2,034
[ { "from": "human", "value": "How can I find any unused functions in a PHP project?\nAre there features or APIs built into PHP that will allow me to analyse my codebase - for example Reflection, token_get_all()?\nAre these APIs feature rich enough for me not to have to rely on a third party tool to perform t...
I am using Hibernate in a Java application to access my Database and it works pretty well with MS-SQL and MySQL. But some of the data I have to show on some forms has to come from Text files, and by Text files I mean Human-Readable files, they can be CSV, Tab-Delimited, or even a key, value pair, per line since my data...
Hibernate is designed primarily for working with relational databases using the Java Persistence API (JPA). While it's a powerful tool for managing database entities, it doesn't natively support reading from text files (like CSV, TSV, or XML) as if they were database tables. You cannot directly use HQL (Hibernate Query...
356
[ { "from": "human", "value": "I am using Hibernate in a Java application to access my Database and it works pretty well with MS-SQL and MySQL. But some of the data I have to show on some forms has to come from Text files, and by Text files I mean Human-Readable files, they can be CSV, Tab-Delimited, or even ...
I have an issue that is driving me a bit nuts: Using a UserProfileManager as an non-authorized user. The problem: The user does not have "Manage User Profiles" rights, but I still want to use the UserProfileManager. The idea of using SPSecurity.RunWithElevatedPrivileges does not seem to work, as the UserProfileManager ...
You are encountering a common challenge when trying to access the User Profile Service in SharePoint as a non-authorized user. Unfortunately, the UserProfileManager class enforces its own security checks, and it does require the "Manage User Profiles" permission to access user profiles in administrator mode, which is w...
2,969
[ { "from": "human", "value": "I have an issue that is driving me a bit nuts: Using a UserProfileManager as an non-authorized user.\nThe problem: The user does not have \"Manage User Profiles\" rights, but I still want to use the UserProfileManager. The idea of using SPSecurity.RunWithElevatedPrivileges does ...
My website will be using only OpenID for authentication. I'd like to pull user details down via attribute exchange, but attribute exchange seems to have caused a lot of grief for StackOverflow. What is the current state of play in the industry? Does any OpenID provider do a decent job of attribute exchange? Should I ...
OpenID and its attribute exchange (AX) extension have indeed faced challenges and varying levels of support across different providers. Here’s an overview of the current state of play and recommendations for your situation: ### Current State of OpenID and Attribute Exchange 1. **OpenID Usage**: While OpenID was popul...
3,019
[ { "from": "human", "value": "My website will be using only OpenID for authentication. I'd like to pull user details down via attribute exchange, but attribute exchange seems to have caused a lot of grief for StackOverflow.\nWhat is the current state of play in the industry? Does any OpenID provider do a d...
Python frameworks always provide ways to handle URLs that convey the data of the request in an elegant way, like for example http://somewhere.overtherainbow.com/userid/123424/ I want you to notice the ending path /userid/123424/ How do you do this in ASP.NET?
In ASP.NET, especially in ASP.NET Core, you can handle URL routing and parameters elegantly through the use of attribute routing or conventional routing. This allows you to create clean and friendly URLs similar to the example you provided. ### Using ASP.NET Core Here’s how you can set up routing to handle a URL like...
1,828
[ { "from": "human", "value": "Python frameworks always provide ways to handle URLs that convey the data of the request in an elegant way, like for example http://somewhere.overtherainbow.com/userid/123424/\nI want you to notice the ending path /userid/123424/\nHow do you do this in ASP.NET?\n" }, { "...
Is there a good way to create a form in VB6 that can easily be embedded inside other forms? On a few occasions recently, I've wanted to design and code a Form object that I could plug into several other "parent" forms. My goal is to create a centralized piece of code for managing several UI components in a particular ...
Creating a reusable form in VB6 that can be embedded into other forms can be somewhat challenging due to the limitations of the VB6 environment. However, there are several approaches you can take to achieve the goal of encapsulating both the UI and the logic in a reusable way. ### Approach 1: UserControl One of the b...
1,854
[ { "from": "human", "value": "Is there a good way to create a form in VB6 that can easily be embedded inside other forms?\nOn a few occasions recently, I've wanted to design and code a Form object that I could plug into several other \"parent\" forms. My goal is to create a centralized piece of code for man...
Here is one trivial question, that I am not sure how to handle. I need to display list of categories on every page, and to be able to choose items from a specific category to be displayed. I use asp.net MVC, and have chosen to create a user control that will display categories. My question is: what is the best approach...
When working with user controls (or partial views, as they're commonly referred to in ASP.NET MVC) to display categories in your application, there are several effective approaches to pass data to them. Here are some of the best practices and recommendations: ### 1. **ViewModels** Using a ViewModel is the most straigh...
690
[ { "from": "human", "value": "Here is one trivial question, that I am not sure how to handle.\nI need to display list of categories on every page, and to be able to choose items from a specific category to be displayed. I use asp.net MVC, and have chosen to create a user control that will display categories....
When I try to run a .NET assembly (boo.exe) from a network share (mapped to a drive), it fails since it's only partially trusted: Unhandled Exception: System.Security.SecurityException: That assembly does not allow partially trusted callers. at System.Security.CodeAccessSecurityEngine.ThrowSecurityException(Assembly...
Running .NET assemblies from a network share can sometimes trigger security issues, especially if they are not marked as "partially trusted" or if your security policies aren't configured to allow it. The error message you encountered indicates that the `boo.exe` assembly does not allow partially trusted callers, which...
661
[ { "from": "human", "value": "When I try to run a .NET assembly (boo.exe) from a network share (mapped to a drive), it fails since it's only partially trusted:\nUnhandled Exception: System.Security.SecurityException: That assembly does not allow partially trusted callers.\n at System.Security.CodeAccessSec...
I've got an upcoming project wherein I will need to connect our website (PHP5/Apache 1.3/OpenBSD 4.1) to our back-end system running on an iSeries with OS400 V5R3 so that I can access some tables stored there. I've done some checking around but am running into some roadblocks. From what I've seen the DB2 extensions and...
Given the constraints and requirements of your project, your second option of setting up a CentOS server with DB2 seems like a reasonable approach. Here are some considerations and alternatives to help you weigh your options: ### Option 1: Using CentOS with DB2 - **Pros**: - You would be using a supported environmen...
2,930
[ { "from": "human", "value": "I've got an upcoming project wherein I will need to connect our website (PHP5/Apache 1.3/OpenBSD 4.1) to our back-end system running on an iSeries with OS400 V5R3 so that I can access some tables stored there. I've done some checking around but am running into some roadblocks.\n...
Are there good reasons why it's a better practice to have only one return statement in a function? Or is it okay to return from a function as soon as it is logically correct to do so, meaning there may be many return statements in the function?
The question of whether to use one return statement or multiple return statements in a function is a topic of debate among programmers, and there are valid arguments for both approaches. Here are some considerations for each perspective: ### Arguments for a Single Return Statement 1. **Simplicity and Readability**: A...
3,046
[ { "from": "human", "value": "Are there good reasons why it's a better practice to have only one return statement in a function? \nOr is it okay to return from a function as soon as it is logically correct to do so, meaning there may be many return statements in the function?\n" }, { "from": "gpt", ...
Using LINQ to SQL, I have an Order class with a collection of OrderDetails. The Order Details has a property called LineTotal which gets Qnty x ItemPrice. I know how to do a new LINQ query of the database to find the order total, but as I already have the collection of OrderDetails from the DB, is there a simple meth...
Yes, you can easily calculate the sum of the `LineTotal` directly from the collection of `OrderDetails` using LINQ without the need for a loop. You can achieve this using the `Sum` extension method provided by LINQ. Here’s how you can define a property for the order total in your `Order` class: ```csharp public class...
3,305
[ { "from": "human", "value": "Using LINQ to SQL, I have an Order class with a collection of OrderDetails. The Order Details has a property called LineTotal which gets Qnty x ItemPrice. \nI know how to do a new LINQ query of the database to find the order total, but as I already have the collection of OrderD...
I've ran into a problem while trying to test following IRepository based on NHibernate: public class NHibernateRepository<T>: Disposable, IRepository<T> where T : IdentifiableObject { ... public IQueryable<T> Query() { return NHibernateSession.Linq<T>(); } } How on the Hell to mock return...
When dealing with `IQueryable<T>` and mocking it for testing purposes, you have to understand that `IQueryable<T>` represents a query that can be executed against a data source, typically using LINQ (Language Integrated Query). The challenge comes from needing to mock the behavior of this queryable collection in a way ...
907
[ { "from": "human", "value": "I've ran into a problem while trying to test following IRepository based on NHibernate:\npublic class NHibernateRepository<T>: Disposable, IRepository<T> \n where T : IdentifiableObject\n{\n ...\n\n public IQueryable<T> Query()\n {\n return NHibernateSession.L...
I have created a database model in Visio Professional (2003). I know that the Enterprise version has the ability to create a DB in SQL Server based on the data in Visio. I do not have the option to install Enterprise. Aside from going through the entire thing one table and relationship at a time and creating the whole ...
Converting a Visio database model into a SQL script can be a bit challenging, especially without the Enterprise version. However, there are a few approaches and tools you might consider to facilitate this process: 1. **Export to XML or Other Formats**: - Check if you can export the Visio model to an XML format. Vis...
3,044
[ { "from": "human", "value": "I have created a database model in Visio Professional (2003). I know that the Enterprise version has the ability to create a DB in SQL Server based on the data in Visio. I do not have the option to install Enterprise. Aside from going through the entire thing one table and relat...
Preferred languages: C/C++, Java, and Ruby. I am looking for some helpful books/tutorials on how to write your own compiler simply for educational purposes. I am most familiar with C/C++, Java, and Ruby, so I prefer resources that involve one of those three, but any good resource is acceptable.
Writing a compiler can be a rewarding and educational experience. Here are some resources tailored to your preferred languages (C/C++, Java, and Ruby), as well as some general resources that can help you get started: ### Books 1. **"Compilers: Principles, Techniques, and Tools" by Alfred V. Aho, Monica S. Lam, Ravi S...
465
[ { "from": "human", "value": "Preferred languages: C/C++, Java, and Ruby.\nI am looking for some helpful books/tutorials on how to write your own compiler simply for educational purposes. I am most familiar with C/C++, Java, and Ruby, so I prefer resources that involve one of those three, but any good resour...
The topic says the most of it - what is the reason for the fact that static methods can't be declared in an interface? public interface ITest { public static String test(); } The code above gives me the following error (in Eclipse, at least): "Illegal modifier for the interface method ITest.test(); only public & a...
The error message you are encountering in your Java code is due to the fact that, according to the Java language specifications prior to Java 8, static methods are not permitted in interfaces. In earlier versions, all interface methods were implicitly public and abstract, meaning they were intended to be implemented by...
2,286
[ { "from": "human", "value": "The topic says the most of it - what is the reason for the fact that static methods can't be declared in an interface?\npublic interface ITest {\n public static String test();\n}\n\nThe code above gives me the following error (in Eclipse, at least): \"Illegal modifier for the...
How do you write code that is easily read by other people and who have had no hand in writing any part of it?
Writing code that is easily readable by others is an essential skill for any developer, as it enhances maintainability, collaboration, and overall software quality. Here are some best practices to consider: ### 1. **Use Meaningful Naming Conventions** - **Variables and Functions:** Use descriptive names that convey...
470
[ { "from": "human", "value": "How do you write code that is easily read by other people and who have had no hand in writing any part of it?\n" }, { "from": "gpt", "value": "Writing code that is easily readable by others is an essential skill for any developer, as it enhances maintainability, coll...
I have my Wordpress install and MediaWiki sharing the same login information. Unfortunately, users need to log into both separately, but at least they use the same credentials. What I would like to do is cause a successful login on the Wordpress blog to also cause a login for MediaWiki (ideally both directions). Th...
Integrating WordPress and MediaWiki for seamless authentication can indeed enhance user experience by allowing single sign-on (SSO) functionality. Below are two common approaches to achieving this, focusing on the second option you mentioned—automatically logging users in based on shared cookies. ### 1. Shared Cookie ...
1,095
[ { "from": "human", "value": "I have my Wordpress install and MediaWiki sharing the same login information. Unfortunately, users need to log into both separately, but at least they use the same credentials. \nWhat I would like to do is cause a successful login on the Wordpress blog to also cause a login fo...
The DOI system places basically no useful limitations on what constitutes a reasonable identifier. However, being able to pull DOIs out of PDFs, web pages, etc. is quite useful for citation information, etc. Is there a reliable way to identify a DOI in a block of text without assuming the 'doi:' prefix? (any language a...
Identifying a DOI (Digital Object Identifier) in a block of text without the "doi:" prefix can be done using regular expressions (regex). A DOI typically has a specific format, which helps in crafting an accurate regex pattern to minimize false positives. ### DOI Format 1. A DOI begins with the prefix "10." followed b...
1,370
[ { "from": "human", "value": "The DOI system places basically no useful limitations on what constitutes a reasonable identifier. However, being able to pull DOIs out of PDFs, web pages, etc. is quite useful for citation information, etc.\nIs there a reliable way to identify a DOI in a block of text without a...
I'm exploring the possibility of writing an application in Erlang, but it would need to have a portion written in Cocoa (presumably Objective-C). I'd like the front-end and back-end to be able to communicate easily. How can this best be done? I can think of using C ports and connected processes, but I think I'd like a ...
Integrating an Erlang back-end with a Cocoa front-end (Objective-C) can be accomplished through various methods, each with its own advantages and trade-offs. Given your desire for the front-end to connect to the back-end, here are several viable approaches: ### 1. **Using TCP Sockets** This is probably the most straig...
1,117
[ { "from": "human", "value": "I'm exploring the possibility of writing an application in Erlang, but it would need to have a portion written in Cocoa (presumably Objective-C). I'd like the front-end and back-end to be able to communicate easily. How can this best be done?\nI can think of using C ports and co...
I am consuming the Twitter API and want to convert all URLs to hyperlinks. What is the most effective way you've come up with to do this? from string myString = "This is my tweet check it out http://tinyurl.com/blah"; to This is my tweet check it out <a href="http://tinyurl.com/blah">http://tinyurl.com/>blah</a>
To convert URLs in a string into hyperlinks in C#, you can use regular expressions to find URLs and then format them accordingly. Below is an example of how to achieve this: ```csharp using System; using System.Text.RegularExpressions; class Program { static void Main() { string myString = "This is my...
4,551
[ { "from": "human", "value": "I am consuming the Twitter API and want to convert all URLs to hyperlinks. \nWhat is the most effective way you've come up with to do this?\nfrom\nstring myString = \"This is my tweet check it out http://tinyurl.com/blah\";\n\nto\nThis is my tweet check it out <a href=\"http://t...
I'm trying to verify when the OAB (Offline Address Book) root folder for a new OAB is created with powershell. Is there a WMI class that exposes this? I'm using powershell, but any examples or links will do.
To check when the Offline Address Book (OAB) root folder is created in an Exchange environment, you can typically rely on PowerShell cmdlets rather than WMI classes. The creation and management of OABs are usually handled through Exchange Management Shell commands. Unfortunately, there isn't a specific WMI class direc...
2,722
[ { "from": "human", "value": "I'm trying to verify when the OAB (Offline Address Book) root folder for a new OAB is created with powershell. Is there a WMI class that exposes this? I'm using powershell, but any examples or links will do.\n" }, { "from": "gpt", "value": "To check when the Offlin...
I'm trying to write a stored procedure to select employees who have birthdays that are upcoming. SELECT * FROM Employees WHERE Birthday > @Today AND Birthday < @Today + @NumDays This will not work because the birth year is part of Birthday, so if my birthday was '09-18-1983' that will not fall between '09-18-2008' an...
To select employees with upcoming birthdays while ignoring the year part of the birthday, you can use the `MONTH` and `DAY` functions available in SQL. By extracting the month and day from the `Birthday` field, you can compare them to the current date and the number of days you want to look ahead. The challenge is to...
3,554
[ { "from": "human", "value": "I'm trying to write a stored procedure to select employees who have birthdays that are upcoming. \nSELECT * FROM Employees WHERE Birthday > @Today AND Birthday < @Today + @NumDays\nThis will not work because the birth year is part of Birthday, so if my birthday was '09-18-1983'...
When running a vim instance in gnu screen hitting shift enter in insert mode adds an 'M' and then a newline, rather than just a newline. Does anybody know what the problem might be, or where to look? Relevant system info: Ubuntu 8.04.1 Screen version 4.00.03 (FAU) 23-Oct-06 VIM - Vi IMproved 7.1 (2007 May 12, compiled...
It looks like you've already diagnosed and resolved your issue with Vim and GNU Screen by adjusting the `$TERM` variable. To summarize and provide additional insights: ### Issue: When using Vim within a GNU Screen session, pressing Shift + Enter in insert mode would insert an 'M' followed by a newline instead of just ...
2,493
[ { "from": "human", "value": "When running a vim instance in gnu screen hitting shift enter in insert mode adds an 'M' and then a newline, rather than just a newline.\nDoes anybody know what the problem might be, or where to look?\nRelevant system info:\n\nUbuntu 8.04.1\nScreen version 4.00.03 (FAU) 23-Oct-0...
I am looking for good methods of manipulating HTML in PHP. For example, the problem I currently have is dealing with malformed HTML. I am getting input that looks something like this: <div>This is some <b>text As you noticed, the HTML is missing closing tags. I could use regex or an XML Parser to solve this problem. H...
When working with malformed HTML in PHP, you can utilize libraries that are designed to handle HTML parsing and manipulation gracefully. Here are some recommended methods and libraries: ### 1. **DOMDocument** PHP's built-in `DOMDocument` class can handle HTML parsing and manipulation. It has some ability to correct m...
104
[ { "from": "human", "value": "I am looking for good methods of manipulating HTML in PHP. For example, the problem I currently have is dealing with malformed HTML.\nI am getting input that looks something like this:\n<div>This is some <b>text\n\nAs you noticed, the HTML is missing closing tags. I could use re...
Given a URL, what would be the most efficient code to download the contents of that web page? I am only considering the HTML, not associated images, JS and CSS.
To download the HTML content of a web page efficiently using Python, you can use the `requests` library, which is simple and straightforward for making HTTP requests. Below is an example code snippet that demonstrates how to do this: ```python import requests def download_html(url): try: # Send a GET requ...
3,218
[ { "from": "human", "value": "Given a URL, what would be the most efficient code to download the contents of that web page? I am only considering the HTML, not associated images, JS and CSS.\n" }, { "from": "gpt", "value": "To download the HTML content of a web page efficiently using Python, you ...
I would like to add the following MIME type to a site run by Apache: <mime-mapping> <extension>jnlp</extension> <mime-type>application/x-java-jnlp-file</mime-type> </mime-mapping> That is the Tomcat format. I'm on a shared host, so I can only create an .htaccess file. Would someone please specify the complete cont...
To add a custom MIME type for the `.jnlp` file extension using an `.htaccess` file on an Apache web server, you can use the `AddType` directive. Here’s how you would write the complete contents of your `.htaccess` file: ```apache # Add custom MIME type for JNLP files AddType application/x-java-jnlp-file .jnlp ``` ###...
1,451
[ { "from": "human", "value": "I would like to add the following MIME type to a site run by Apache:\n<mime-mapping>\n <extension>jnlp</extension>\n <mime-type>application/x-java-jnlp-file</mime-type>\n</mime-mapping>\n\nThat is the Tomcat format.\nI'm on a shared host, so I can only create an .htaccess file...
I want to log onto Stack Overflow using OpenID, but I thought I'd set up my own OpenID provider, just because it's harder :) How do you do this in Ubuntu? Edit: Replacing 'server' with the correct term OpenID provider (Identity provider would also be correct according to wikipedia).
Setting up your own OpenID provider (Identity Provider) on Ubuntu can be a bit challenging, but it’s a great way to learn about OpenID and identity management. Below is a step-by-step guide to help you set up an OpenID provider on Ubuntu using the popular software **OpenID Connect**. ### Step 1: Update Your System St...
590
[ { "from": "human", "value": "I want to log onto Stack Overflow using OpenID, but I thought I'd set up my own OpenID provider, just because it's harder :) How do you do this in Ubuntu?\nEdit: Replacing 'server' with the correct term OpenID provider (Identity provider would also be correct according to wikipe...
What is the the best way to write a form to submit some data in ASP.NET MVC? Is it as Scott Guthrie demonstrates here? Are there better approaches? Perhaps with less using of strings?
In ASP.NET MVC, creating a form for data submission typically involves a combination of HTML, Razor syntax, and model binding to handle user input efficiently. Scott Guthrie's examples often illustrate foundational concepts, but there are various approaches to improve the maintainability, type safety, and readability o...
1,076
[ { "from": "human", "value": "What is the the best way to write a form to submit some data in ASP.NET MVC? Is it as Scott Guthrie demonstrates here? Are there better approaches? Perhaps with less using of strings?\n\n" }, { "from": "gpt", "value": "In ASP.NET MVC, creating a form for data submiss...
I have the next function: function setImagesWidth(id,width) { var images = document.getElementById(id).getElementsByTagName("img"); for(var i = 0; i < images.length;i++) { // If the real width is bigger than width parameter images[i].style.width=width; //} } }...
It appears that you want to set the width of your images only when their intrinsic width (the actual width of the image file) is greater than the specified width. The discrepancy you're experiencing with `images[i].offsetWidth` is likely due to styling, margins, borders, or padding applied to the images or their parent...
2,508
[ { "from": "human", "value": "I have the next function:\nfunction setImagesWidth(id,width) {\n var images = document.getElementById(id).getElementsByTagName(\"img\");\n for(var i = 0; i < images.length;i++) {\n // If the real width is bigger than width parameter\n images[i].style.widt...
Is there a built in way to convert an integer in Ruby into its hexadecimal equivalent? Something like the opposite of String#to_i: "0A".to_i(16) #=>10 Like perhaps: "0A".hex #=>10 I know how to roll my own, but it's probably more efficient to use a built in Ruby function.
Yes, Ruby provides a built-in method to convert an integer into its hexadecimal string representation. You can use the `Integer#to_s` method with an argument of `16` to convert an integer to a hexadecimal string. Here's how you can do it: ```ruby number = 10 hex_string = number.to_s(16) # "a" ``` If you want the hex...
4,150
[ { "from": "human", "value": "Is there a built in way to convert an integer in Ruby into its hexadecimal equivalent?\nSomething like the opposite of String#to_i:\n\"0A\".to_i(16) #=>10\n\nLike perhaps:\n\"0A\".hex #=>10\n\nI know how to roll my own, but it's probably more efficient to use a built in Ruby fun...
Is there a better way to forcefully disconnect all users from an Oracle 10g database schema than restarting the Oracle database services? We have several developers using SQL Developer connecting to the same schema on a single Oracle 10g server. The problem is that when we want to drop the schema to rebuild it, inevit...
To forcefully disconnect all users from a specific schema in Oracle 10g without restarting the database, you can use the following approach. This process involves querying the database to identify active sessions and then killing those sessions that belong to the specific schema you want to drop. Here are the steps to ...
3,715
[ { "from": "human", "value": "Is there a better way to forcefully disconnect all users from an Oracle 10g database schema than restarting the Oracle database services?\nWe have several developers using SQL Developer connecting to the same schema on a single Oracle 10g server. The problem is that when we wan...
Does anyone know how IE7 determines what Security Zone to use for a site? I see the basics for IE6 here, but I can't find the equivalent for IE7.
Internet Explorer 7 (IE7) uses a combination of methods to determine the appropriate Security Zone for a website. The security zones help to manage settings and security for different types of content. Here's how IE7 typically determines the Security Zone: 1. **URL Evaluation**: The first step involves evaluating the ...
3,095
[ { "from": "human", "value": "Does anyone know how IE7 determines what Security Zone to use for a site? I see the basics for IE6 here, but I can't find the equivalent for IE7.\n" }, { "from": "gpt", "value": "Internet Explorer 7 (IE7) uses a combination of methods to determine the appropriate Se...
I have the following html.erb code that I'm looking to move to Haml: <span class="<%= item.dashboardstatus.cssclass %>" ><%= item.dashboardstatus.status %></span> What it does is associate the CSS class of the currently assigned status to the span. How is this done in Haml? I'm sure I'm missing something really simple...
To convert the provided ERB code to Haml, you can follow these steps. In Haml, you can use `#{}` interpolation to insert Ruby code directly into your attributes. Here’s how you can represent your ERB code in Haml: ```haml %span{ class: item.dashboardstatus.cssclass }= item.dashboardstatus.status ``` Here's a breakdo...
4,881
[ { "from": "human", "value": "I have the following html.erb code that I'm looking to move to Haml:\n<span class=\"<%= item.dashboardstatus.cssclass %>\" ><%= item.dashboardstatus.status %></span>\n\nWhat it does is associate the CSS class of the currently assigned status to the span.\nHow is this done in Ham...
If I have an HTML helper like so: Name:<br /> <%=Html.TextBox("txtName",20) %><br /> How do I apply a CSS class to it? Do I have to wrap it in a span? Or do I need to somehow utilize the HtmlAttributes property of the helper?
You can apply a CSS class directly to the HTML helper without needing to wrap it in a span or another element. The `Html.TextBox` method includes an overload that accepts an additional parameter for HTML attributes, which allows you to specify a CSS class. Here's how you can do it: ```html Name:<br /> <%= Html.TextB...
4,697
[ { "from": "human", "value": "If I have an HTML helper like so:\nName:<br />\n<%=Html.TextBox(\"txtName\",20) %><br />\n\nHow do I apply a CSS class to it? Do I have to wrap it in a span? Or do I need to somehow utilize the HtmlAttributes property of the helper?\n" }, { "from": "gpt", "value": "Y...
I've been developing a "Form Builder" in Javascript, and coming up to the part where I'll be sending the spec for the form back to the server to be stored. The builder maintains an internal data structure that represents the fields, label, options (for select/checkbox/radio), mandatory status, and the general sorting o...
When sending data from your "Form Builder" to the server, the best format to use is JSON (JavaScript Object Notation). JSON is lightweight, easy to read and write for humans, and easy for machines to parse and generate. Since your internal data structure likely consists of nested objects and arrays, JSON will naturally...
1,165
[ { "from": "human", "value": "I've been developing a \"Form Builder\" in Javascript, and coming up to the part where I'll be sending the spec for the form back to the server to be stored. The builder maintains an internal data structure that represents the fields, label, options (for select/checkbox/radio), ...
I am implementing exception handling for our BizTalk services, and have run into a fairly major stumbling block. In order to make the exception processing as generic as possible, and therefore to allow us to use it for any BizTalk application, our XML error schema includes an xs:any node, into which we can place a vari...
Working with InfoPath 2003 and XML schemas containing `xs:any` can be challenging, as you've discovered. Since InfoPath does not handle `xs:any` well, here are several strategies you could consider to work around this limitation and achieve your goal of generic exception handling in BizTalk: ### 1. Use a Custom XML Fr...
1,914
[ { "from": "human", "value": "I am implementing exception handling for our BizTalk services, and have run into a fairly major stumbling block.\nIn order to make the exception processing as generic as possible, and therefore to allow us to use it for any BizTalk application, our XML error schema includes an x...
I'm trying to add support for stackoverflow feeds in my rss reader but SelectNodes and SelectSingleNode have no effect. This is probably something to do with ATOM and xml namespaces that I just don't understand yet. I have gotten it to work by removing all attributes from the feed tag, but that's a hack and I would lik...
You're on the right track by using an `XmlNamespaceManager` to handle the namespaces in your Atom feeds. The key point is that when your XML elements are in a namespace, you need to use the correct prefix (in this case, `atom`) to reference those elements when calling `SelectNodes` or `SelectSingleNode`. Here’s a step...
1,627
[ { "from": "human", "value": "I'm trying to add support for stackoverflow feeds in my rss reader but SelectNodes and SelectSingleNode have no effect. This is probably something to do with ATOM and xml namespaces that I just don't understand yet.\nI have gotten it to work by removing all attributes from the f...
I need to modify the MBR of Windows, and I would really like to do this from Windows. Here are my questions. I know that I can get a handle on a physical device with a call to CreateFile. Will the MBR always be on \\.\PHYSICALDRIVE0? Also, I'm still learning the Windows API to read directly from the disk. Is readabsolu...
Modifying the Master Boot Record (MBR) from within Windows is a complex task and can be risky if you're not familiar with disk structures and Windows APIs. Let's address your questions and provide some clarity: 1. **MBR Location**: The MBR is indeed typically found on the first physical drive, which corresponds to `\\...
600
[ { "from": "human", "value": "I need to modify the MBR of Windows, and I would really like to do this from Windows.\nHere are my questions. I know that I can get a handle on a physical device with a call to CreateFile. Will the MBR always be on \\\\.\\PHYSICALDRIVE0? Also, I'm still learning the Windows API ...
In an application that heavily relies on .htaccess RewriteRules for its PrettyURLs (CakePHP in my case), how do I correctly set up directives to exclude certain directories from this rewriting? That is: /appRoot/.htaccess app/ static/ By default, every request to /appRoot/* is being rewritten to be p...
To set up your `.htaccess` file in a CakePHP application so that certain directories, like `static/`, are excluded from being rewritten to `app/webroot/index.php`, you need to properly configure the `RewriteCond` and `RewriteRule`. The goal is to ensure that requests for the excluded directories are served normally, wh...
643
[ { "from": "human", "value": "In an application that heavily relies on .htaccess RewriteRules for its PrettyURLs (CakePHP in my case), how do I correctly set up directives to exclude certain directories from this rewriting? That is:\n/appRoot/.htaccess\n app/\n static/\n\nBy default, every re...
I need to periodically download, extract and save the contents of http://data.dot.state.mn.us/dds/det_sample.xml.gz to disk. Anyone have experience downloading gzipped files with C#?
Yes, you can download gzipped files in C# using the `HttpClient` class to fetch the file and `GZipStream` to decompress it. Below is a sample code that demonstrates how to download a gzipped XML file, decompress it, and save the contents to disk. Make sure you have the following using directives at the top of your cod...
1,906
[ { "from": "human", "value": "I need to periodically download, extract and save the contents of http://data.dot.state.mn.us/dds/det_sample.xml.gz to disk. Anyone have experience downloading gzipped files with C#?\n" }, { "from": "gpt", "value": "Yes, you can download gzipped files in C# using the...
I needed some simple string encryption, so I wrote the following code (with a great deal of "inspiration" from here): // create and initialize a crypto algorithm private static SymmetricAlgorithm getAlgorithm(string password) { SymmetricAlgorithm algorithm = Rijndael.Create(); Rfc2898DeriveBytes...
Yes, the behavior you're observing is indeed expected and is a consequence of the way symmetric encryption algorithms and padding mechanisms work. When you encrypt data using a symmetric algorithm, such as Rijndael (AES), the algorithm performs a series of transformations on the plaintext to produce ciphertext. This p...
2,792
[ { "from": "human", "value": "I needed some simple string encryption, so I wrote the following code (with a great deal of \"inspiration\" from here):\n // create and initialize a crypto algorithm\n private static SymmetricAlgorithm getAlgorithm(string password) {\n SymmetricAlgorithm algorithm =...
I just saw this mentioned in Stack Overflow question Best WYSIWYG CSS editor and didn't know it could be done. I'm a Visual Studio newbie, so how do you do it? Is there a separate debugger for JavaScript? I know how to work the one for code-behind pages... I usually use Firebug to deal with debugging JavaScript code. ...
In Visual Studio 2005, you can debug JavaScript within your ASP.NET applications, though it might not be as robust as modern IDEs. Here’s how you can do it: ### 1. Use the Built-in Internet Explorer Debugger Visual Studio 2005 allows you to debug JavaScript directly in Internet Explorer using the built-in debugger. H...
2,160
[ { "from": "human", "value": "I just saw this mentioned in Stack Overflow question Best WYSIWYG CSS editor and didn't know it could be done. I'm a Visual Studio newbie, so how do you do it?\nIs there a separate debugger for JavaScript? I know how to work the one for code-behind pages... I usually use Firebu...
A reliable coder friend told me that Python's current multi-threading implementation is seriously buggy - enough to avoid using altogether. What can said about this rumor?
The rumor that Python's multithreading implementation is "seriously buggy" and should be avoided altogether is somewhat misleading. Here's a clearer breakdown of the situation: 1. **Global Interpreter Lock (GIL)**: One of the main characteristics of CPython (the standard implementation of Python) is the Global Interpr...
3,517
[ { "from": "human", "value": "A reliable coder friend told me that Python's current multi-threading implementation is seriously buggy - enough to avoid using altogether. What can said about this rumor?\n" }, { "from": "gpt", "value": "The rumor that Python's multithreading implementation is \"se...
I added a custom install action to my installer to add one of my installation directories to the System PATH environment variable. After I run the installer, the PATH variable reflects the changes (when I access it through the Control Panel::System applet), but when I start a new command shell, the PATH variable does n...
When you modify the System PATH environment variable using an installer, the changes may not be reflected in new command shells immediately due to how the Windows environment variables are managed. Here are some important points to consider and potential solutions: 1. **Session Awareness**: Environment variables in W...
1,565
[ { "from": "human", "value": "I added a custom install action to my installer to add one of my installation directories to the System PATH environment variable. After I run the installer, the PATH variable reflects the changes (when I access it through the Control Panel::System applet), but when I start a ne...
In SQL Server 2005, we can create similar tables in two different ways. We can use a table variable: declare @tmp table (Col1 int, Col2 int); Or we can use a temporary table: create table #tmp (Col1 int, Col2 int); What are the differences between these two? I have read conflicting opinions on whether @tmp still uses...
In SQL Server 2005, both table variables (declared with the `DECLARE` statement) and temporary tables (created with the `CREATE TABLE` statement prefixed with `#`) can be used to store temporary data, but there are key differences between the two. Here's a detailed comparison, including where each might outperform the ...
1,284
[ { "from": "human", "value": "In SQL Server 2005, we can create similar tables in two different ways.\nWe can use a table variable:\ndeclare @tmp table (Col1 int, Col2 int);\n\nOr we can use a temporary table:\ncreate table #tmp (Col1 int, Col2 int);\n\nWhat are the differences between these two? I have read...
Wrote the following in PowersHell as a quick iTunes demonstration: $iTunes = New-Object -ComObject iTunes.Application $LibrarySource = $iTunes.LibrarySource foreach ($PList in $LibrarySource.Playlists) { write-host $PList.name } This works well and pulls back a list of playlist names. However on trying to close iTun...
To properly close the iTunes application and release the COM object, you need to release any references you have to the iTunes application in your PowerShell script. In your case, you're creating a COM object and holding a reference to it, which is why iTunes is still active when you try to close it. Here's how you ca...
2,229
[ { "from": "human", "value": "Wrote the following in PowersHell as a quick iTunes demonstration:\n$iTunes = New-Object -ComObject iTunes.Application\n$LibrarySource = $iTunes.LibrarySource\nforeach ($PList in $LibrarySource.Playlists)\n{\n write-host $PList.name\n}\n\nThis works well and pulls back a list o...
Error: ORA-00161: transaction branch length 103 is illegal (maximum allowed 64… I'm using the DAC from Oracle, any idea if there is a patch for this?
The error message "ORA-00161: transaction branch length 103 is illegal (maximum allowed 64)" indicates that your Oracle database is encountering an issue with the maximum length of a transaction branch in a distributed transaction. Specifically, the length of the transaction branch exceeds the maximum limit set by Orac...
3,264
[ { "from": "human", "value": "Error:\nORA-00161: transaction branch length 103 is illegal (maximum allowed 64…\n\nI'm using the DAC from Oracle, any idea if there is a patch for this?\n" }, { "from": "gpt", "value": "The error message \"ORA-00161: transaction branch length 103 is illegal (maximum...
The CodePlex team has a Slack time policy, and it's worked out very well for them. Jim Newkirk and myself used it to work on the xUnit.net project. Jonathan Wanagel used it to work on SvnBridge. Scott Densmore and myself used it to work on an ObjectBuilder 2.0 prototype. For others, it was a great time to explore thi...
It sounds like you’ve had some fantastic experiences with the Slack time policy, and it's great to see the positive impact it had on both your projects and team culture. The concept of dedicating time for exploration and creativity—similar to Google’s "20% time"—can indeed lead to innovative ideas and solutions that be...
214
[ { "from": "human", "value": "The CodePlex team has a Slack time policy, and it's worked out very well for them.\n\nJim Newkirk and myself used it to work on the xUnit.net project.\nJonathan Wanagel used it to work on SvnBridge.\nScott Densmore and myself used it to work on an ObjectBuilder 2.0 prototype.\n\...
There are a couple of things that I am having a difficult time understanding with regards to developing custom components in JSF. For the purposes of these questions, you can assume that all of the custom controls are using valuebindings/expressions (not literal bindings), but I'm interested in explanations on them as...
Understanding the JSF lifecycle, especially with regard to custom components, can indeed be challenging. Let's break down the questions you have regarding value bindings, the decode phase, and action listeners in the JSF lifecycle. ### 1. Setting the Value for Value Binding In JSF, the lifecycle has several phases: R...
390
[ { "from": "human", "value": "There are a couple of things that I am having a difficult time understanding with regards to developing custom components in JSF. For the purposes of these questions, you can assume that all of the custom controls are using valuebindings/expressions (not literal bindings), but ...
From time to time I see an enum like the following: [Flags] public enum Options { None = 0, Option1 = 1, Option2 = 2, Option3 = 4, Option4 = 8 } I don't understand what exactly the [Flags] attribute does. Anyone have a good explanation or example they could post?
The `[Flags]` attribute in C# indicates that an enumeration can be treated as a bit field, meaning that the enumeration can hold a combination of its member values. This is particularly useful when you want to represent a set of options or features that can be combined in various ways. In the example you provided, ea...
2,178
[ { "from": "human", "value": "From time to time I see an enum like the following:\n[Flags]\npublic enum Options \n{\n None = 0,\n Option1 = 1,\n Option2 = 2,\n Option3 = 4,\n Option4 = 8\n}\n\nI don't understand what exactly the [Flags] attribute does.\nAnyone have a good explanation or exa...
How can I pipe the new password to smbpasswd so I can automate my installation process.
You can automate the process of setting a password for a Samba user by piping the new password directly to the `smbpasswd` command. Here’s how you can do this safely and effectively. ### Using `echo` and a pipe You can use `echo` to send the password to `smbpasswd` using a pipe. However, be aware that this might expo...
3,303
[ { "from": "human", "value": "How can I pipe the new password to smbpasswd so I can automate my installation process.\n" }, { "from": "gpt", "value": "You can automate the process of setting a password for a Samba user by piping the new password directly to the `smbpasswd` command. Here’s how you...
I have a function that gives me the following warning: [DCC Warning] filename.pas(6939): W1035 Return value of function 'function' might be undefined The function, however, is clean, small, and does have a known, expected, return value. The first statement in the function is: Result := ''; and there is no local vari...
In Delphi 2007, there is no direct pragma directive that can be used to suppress specific compiler warnings like W1035. However, there are a few approaches you can take to handle this situation: 1. **Ensure Proper Initialization**: Make sure that your function always initializes the `Result` variable before returning....
3,028
[ { "from": "human", "value": "I have a function that gives me the following warning:\n\n[DCC Warning] filename.pas(6939): W1035 Return value of function 'function' might be undefined\n\nThe function, however, is clean, small, and does have a known, expected, return value. The first statement in the function ...
I'm wondering how to use a VideoDisplay object (defined in MXML) to display video streamed from FMS via a NetStream. The Flex3 docs suggest this is possible: The Video Display ... supports progressive download over HTTP, streaming from the Flash Media Server, and streaming from a Camera object. However, later in the ...
In Flex 3, the `VideoDisplay` component is designed to work with video streams, but you are correct that it does not have a method like `attachStream()` as the older `Video` object does. However, you can still use `VideoDisplay` with `NetStream` in MXML by setting the `source` property with the `NetStream` object progr...
2,530
[ { "from": "human", "value": "I'm wondering how to use a VideoDisplay object (defined in MXML) to display video streamed from FMS via a NetStream.\nThe Flex3 docs suggest this is possible:\n\nThe Video Display ... supports progressive download over HTTP, streaming from the Flash Media Server, and streaming f...
I ran into an issue with an IIS web app shutting down an idle worker process! The next request would then have to re-initialize the application, leading to delays. I disabled the IIS shutdown of idle worker processes on the application pool to resolve this. Are there any issues associated with turning this off? If...
Disabling the idle timeout for worker processes in IIS can indeed resolve issues with cold starts and improve response times for your web application. However, there are both pros and cons to consider when making this decision. ### Pros of Disabling Idle Shutdown 1. **Improved Performance**: You eliminate the delay a...
1,564
[ { "from": "human", "value": "I ran into an issue with an IIS web app shutting down an idle worker process! The next request would then have to re-initialize the application, leading to delays. \nI disabled the IIS shutdown of idle worker processes on the application pool to resolve this. Are there any is...
Maybe I just don't know .NET well enough yet, but I have yet to see a satisfactory way to implement this simple VB6 code easily in .NET (assume this code is on a form with N CommandButtons in array Command1() and N TextBoxes in array Text1()): Private Sub Command1_Click(Index As Integer) Text1(Index).Text = Timer ...
In VB6, control arrays were a common feature, allowing you to manage multiple controls of the same type using a single array. While .NET (C# and VB.NET) does not support control arrays in the same way, you can achieve a similar effect using collections, lists, or arrays of controls. Here's how you can implement a sim...
615
[ { "from": "human", "value": "Maybe I just don't know .NET well enough yet, but I have yet to see a satisfactory way to implement this simple VB6 code easily in .NET (assume this code is on a form with N CommandButtons in array Command1() and N TextBoxes in array Text1()):\nPrivate Sub Command1_Click(Index A...
I have written an AIR Application that downloads videos and documents from a server. The videos play inside of the application, but I would like the user to be able to open the documents in their native applications. I am looking for a way to prompt the user to Open / Save As on a local file stored in the Application S...
In Adobe AIR, if you want to prompt the user to open or save a file from the Application Storage Directory, you can use the `File` and `FileStream` classes to create a proper file reference and then use the `FileReference` class to allow users to interact with that file. However, the `FileReference` class is primarily ...
1,921
[ { "from": "human", "value": "I have written an AIR Application that downloads videos and documents from a server. The videos play inside of the application, but I would like the user to be able to open the documents in their native applications.\nI am looking for a way to prompt the user to Open / Save As o...
My company has developed a long standing product using MFC in Visual C++ as the defacto standard for UI development. Our codebase contains ALOT of legacy/archaic code which must be kept operational. Some of this code is older than me (originally written in the late 70s) and some members of our team are still on Visual ...
You're facing a classic dilemma in legacy software development where the trade-offs between modernity, compatibility, and long-term maintainability come into play. Here’s a breakdown of your situation and some recommendations: ### MFC Considerations **Pros:** - **Familiarity:** The existing team has a deep understandi...
798
[ { "from": "human", "value": "My company has developed a long standing product using MFC in Visual C++ as the defacto standard for UI development. Our codebase contains ALOT of legacy/archaic code which must be kept operational. Some of this code is older than me (originally written in the late 70s) and some...
What techniques can be applied effectively to improve the performance of SQL queries? Are there any general rules that apply?
Improving the performance of SQL queries can be achieved through various techniques and best practices. Here are some key strategies and general rules to consider: ### 1. **Indexing** - **Use Indexes**: Create indexes on columns that are frequently used in WHERE clauses, JOIN conditions, or ORDER BY clauses to spee...
228
[ { "from": "human", "value": "What techniques can be applied effectively to improve the performance of SQL queries? Are there any general rules that apply?\n" }, { "from": "gpt", "value": "Improving the performance of SQL queries can be achieved through various techniques and best practices. Here...
Debugging asp.net websites/web projects in visual studio.net 2005 with Firefox is loads slower than using IE. I've read something somewhere that there is a way of fixing this but i can't for the life of me find it again. Does anyone know what i'm on about and can point me in the right direction please? Cheers John edi...
When it comes to debugging ASP.NET applications in Firefox using Visual Studio 2005, there are a few things you can try to improve the performance and reduce the delays you're experiencing. While Firefox is known for its debugging tools like Firebug, there are some settings and practices that can potentially help speed...
2,924
[ { "from": "human", "value": "Debugging asp.net websites/web projects in visual studio.net 2005 with Firefox is loads slower \nthan using IE.\nI've read something somewhere that there is a way of fixing this but i can't for the life of me find it again.\nDoes anyone know what i'm on about and can point me in...
I am about to reenter the MFC world after years away for a new job. What resources to people recommend for refreshing the memory? I have been doing mainly C# recently. Also any MFC centric websites or blogs that people recommend?
Reentering the MFC (Microsoft Foundation Classes) world after a long absence can be challenging, especially if you've been working primarily with C#. Here are some resources and strategies to help refresh your memory and get you back up to speed: ### Books 1. **"Programming Windows with MFC" by Jeff Prosise** - This ...
659
[ { "from": "human", "value": "I am about to reenter the MFC world after years away for a new job. What resources to people recommend for refreshing the memory? I have been doing mainly C# recently.\nAlso any MFC centric websites or blogs that people recommend?\n" }, { "from": "gpt", "value": "Ree...
I've just heard the term covered index in some database discussion - what does it mean?
A "covered index" in database terminology refers to a type of index that includes all the columns needed to satisfy a specific query, meaning the query can be fulfilled entirely using the index without needing to access the actual table data. When a database query is executed, if the required columns for that query (...
3,434
[ { "from": "human", "value": "I've just heard the term covered index in some database discussion - what does it mean?\n" }, { "from": "gpt", "value": "A \"covered index\" in database terminology refers to a type of index that includes all the columns needed to satisfy a specific query, meaning th...
I would like to have a VM to look at how applications appear and to develop OS-specific applications, however, I want to keep all my code on my Windows machine so if I decide to nuke a VM or anything like that, it's all still there. If it matters, I'm using VirtualBox.
Using VirtualBox to set up a virtual machine (VM) for OS-specific development while keeping your code on your Windows machine is a great strategy. Here’s a step-by-step guide on how to achieve that: ### Step 1: Set Up VirtualBox 1. **Install VirtualBox**: If you haven't already, download and install [VirtualBox](http...
1,240
[ { "from": "human", "value": "I would like to have a VM to look at how applications appear and to develop OS-specific applications, however, I want to keep all my code on my Windows machine so if I decide to nuke a VM or anything like that, it's all still there.\nIf it matters, I'm using VirtualBox.\n" }, ...
Reading through this question on multi-threaded javascript, I was wondering if there would be any security implications in allowing javascript to spawn mutliple threads. For example, would there be a risk of a malicious script repeatedly spawning thread after thread in an attempt to overwhelm the operating system or i...
Allowing JavaScript to spawn multiple threads could indeed introduce various security implications, and it's important to understand the potential risks associated with multithreading in a web environment. Here are some considerations: ### 1. Resource Exhaustion Attacks **Denial of Service (DoS)**: A malicious script...
1,450
[ { "from": "human", "value": "Reading through this question on multi-threaded javascript, I was wondering if there would be any security implications in allowing javascript to spawn mutliple threads. For example, would there be a risk of a malicious script repeatedly spawning thread after thread in an attem...
Is it possible to configure xampp to serve up a file outside of the htdocs directory? For instance, say I have a file located as follows: C:\projects\transitCalculator\trunk\TransitCalculator.php and my xampp files are normally served out from: C:\xampp\htdocs\ (because that's the default configuration) Is there some w...
Yes, it is indeed possible to configure Apache in XAMPP to serve files from outside the `htdocs` directory. This can be done by creating a new Apache configuration file or modifying the existing configuration to include an alias or virtual host that points to your desired directory. Here’s how to do it step by step: #...
225
[ { "from": "human", "value": "Is it possible to configure xampp to serve up a file outside of the htdocs directory?\nFor instance, say I have a file located as follows:\nC:\\projects\\transitCalculator\\trunk\\TransitCalculator.php\nand my xampp files are normally served out from:\nC:\\xampp\\htdocs\\\n(beca...
If you're using Opera 9.5x you may notice that our client-side JQuery.Validate code is disabled here at Stack Overflow. function initValidation() { if (navigator.userAgent.indexOf("Opera") != -1) return; $("#post-text").rules("add", { required: true, minlength: 5 }); } That's because it generates an exception ...
It sounds like you're dealing with a frustrating situation involving browser compatibility, particularly with Opera 9.5x and its handling of jQuery Validate. Given the era of that version of Opera, it's understandable that there may be quirks or bugs that interfere with modern JavaScript libraries. If you're experienc...
3,907
[ { "from": "human", "value": "If you're using Opera 9.5x you may notice that our client-side JQuery.Validate code is disabled here at Stack Overflow.\nfunction initValidation() {\n if (navigator.userAgent.indexOf(\"Opera\") != -1) return;\n $(\"#post-text\").rules(\"add\", { required: true, minlength: ...
When I subscribe for a report, I may chose to have a subject like: @ReportName was executed at: @ExecutionTime I would like a name like this: Your "@ReportName" report covering Sep 10 2008 - Sep 16 2008 Sep 10 2008 - Sep 16 2008 are values of the two report parameters: @DateFrom and @DateTo, respectively. Can I specify...
In the context of report subscriptions in tools like SQL Server Reporting Services (SSRS), you cannot directly use parameter expressions like `@ReportParameters!DateFrom` in the subject line of your email subscription. However, you can achieve your desired result by using the expressions available in the subscription p...
3,116
[ { "from": "human", "value": "When I subscribe for a report, I may chose to have a subject like: @ReportName was executed at: @ExecutionTime\nI would like a name like this: Your \"@ReportName\" report covering Sep 10 2008 - Sep 16 2008\nSep 10 2008 - Sep 16 2008 are values of the two report parameters: @Date...
I'm new to windows programming and I'm trying to get notified of all changes to the file system (similar to the information that FileMon from SysInternals displays, but via an API). Is a FindFirstChangeNotification for each (non-network, non-substed) drive my best bet or are there other more suitable C/C++ APIs?
Welcome to Windows programming! If you're looking to get notified of changes to the file system in a more comprehensive and efficient way than using `FindFirstChangeNotification` for each drive, there are more suitable APIs you can utilize. ### Recommended Approach: Using the `ReadDirectoryChangesW` API One of the m...
1,360
[ { "from": "human", "value": "I'm new to windows programming and I'm trying to get notified of all changes to the file system (similar to the information that FileMon from SysInternals displays, but via an API). Is a FindFirstChangeNotification for each (non-network, non-substed) drive my best bet or are the...
I'm asking with regards to C#, but I assume it's the same in most other languages. Does anyone have a good definition of expressions and statements and what the differences are?
Yes, the distinction between expressions and statements is a fundamental concept in many programming languages, including C#. Here's a concise definition of each along with their differences: ### Expressions: - **Definition**: An expression is a piece of code that evaluates to a value. It can consist of variables, ope...
3,319
[ { "from": "human", "value": "I'm asking with regards to C#, but I assume it's the same in most other languages.\nDoes anyone have a good definition of expressions and statements and what the differences are?\n" }, { "from": "gpt", "value": "Yes, the distinction between expressions and statements...
I've written PL/SQL code to denormalize a table into a much-easer-to-query form. The code uses a temporary table to do some of its work, merging some rows from the original table together. The logic is written as a pipelined table function, following the pattern from the linked article. The table function uses a PRAGMA...
Denormalizing data in a way that makes it easier to query is a common task, especially when dealing with historical data and statuses that can change over time. However, your current approach using a temporary table and a pipelined table function might be more complex than necessary. Let's explore a potential simplific...
1,989
[ { "from": "human", "value": "I've written PL/SQL code to denormalize a table into a much-easer-to-query form. The code uses a temporary table to do some of its work, merging some rows from the original table together.\nThe logic is written as a pipelined table function, following the pattern from the linked...
What software is recommended for working with and editing large XML schemas? I'm looking for both Windows and Linux software (doesn't have to be cross platform, just want suggestions for both) that help with dealing with huge XML files.
When working with large XML schemas, it's important to use software that can handle large files efficiently and provide features like schema validation, editing, and visualization. Here are some recommended tools for both Windows and Linux: ### Windows 1. **Altova XMLSpy**: - A comprehensive XML editor that suppor...
433
[ { "from": "human", "value": "What software is recommended for working with and editing large XML schemas? I'm looking for both Windows and Linux software (doesn't have to be cross platform, just want suggestions for both) that help with dealing with huge XML files.\n" }, { "from": "gpt", "value"...
I have a asp.net page, and would like to know whether "script1" is already registered as a startup script or not?
In ASP.NET Web Forms, you can check whether a specific startup script has already been registered by checking the `Page.ClientScript` or `ScriptManager` depending on whether you're using Web Forms or AJAX. However, there is no direct method to determine if a script with a specific key is registered, but you can impleme...
3,562
[ { "from": "human", "value": "I have a asp.net page, and would like to know whether \"script1\" is already registered as a startup script or not?\n" }, { "from": "gpt", "value": "In ASP.NET Web Forms, you can check whether a specific startup script has already been registered by checking the `Pag...
I'm using the Repeater control on my site to display data from the database. I need to do pagination ("now displaying page 1 of 10", 10 items per page, etc) but I'm not sure I'm going about it the best way possible. I know the Repeater control doesn't have any built-in pagination, so I'll have to make my own. Is there ...
When dealing with pagination in SQL Server 2005, you need to implement a mechanism to return a specific subset of your data. SQL Server 2005 does not support the `OFFSET` and `FETCH NEXT` syntax introduced in SQL Server 2012, so we need to use alternative techniques to achieve pagination. ### Using `ROW_NUMBER()` The...
1,838
[ { "from": "human", "value": "I'm using the Repeater control on my site to display data from the database. I need to do pagination (\"now displaying page 1 of 10\", 10 items per page, etc) but I'm not sure I'm going about it the best way possible.\nI know the Repeater control doesn't have any built-in pagina...
I'm currently writing an ASP.Net app from the UI down. I'm implementing an MVP architecture because I'm sick of Winforms and wanted something that had a better separation of concerns. So with MVP, the Presenter handles events raised by the View. Here's some code that I have in place to deal with the creation of users: ...
It sounds like you're implementing an MVP architecture well, but you're facing some common issues regarding error handling in your service layer, specifically with exceptions and how to effectively communicate those to the UI via the Presenter. ### Exception Handling Strategy Using exceptions to handle business rule ...
1,424
[ { "from": "human", "value": "I'm currently writing an ASP.Net app from the UI down. I'm implementing an MVP architecture because I'm sick of Winforms and wanted something that had a better separation of concerns.\nSo with MVP, the Presenter handles events raised by the View. Here's some code that I have in ...
a little new to the windows workflow stuff so go easy :) I wish to design a workflow host environment that has high availability - a minimum of 2 WF runtime hosts on separate hardware both pointing to the same persistance or tracking SQL database. I am looking for a pattern whereby I can asynchronously create new workf...
Designing a highly available Windows Workflow Foundation (WF) environment that is responsive to external events while ensuring that instances are not lost is definitely a challenging yet manageable task. Given your requirements and considerations, here’s a more structured approach to help you achieve the desired archit...
1,209
[ { "from": "human", "value": "a little new to the windows workflow stuff so go easy :)\nI wish to design a workflow host environment that has high availability - a minimum of 2 WF runtime hosts on separate hardware both pointing to the same persistance or tracking SQL database.\nI am looking for a pattern wh...
I'm looking into using Visual Studio 2008's built in unit test projects instead of NUnit and I was wondering if anyone has any experience in trying to integrate this type of unit test project with Cruise Control.Net.
Integrating Visual Studio 2008's built-in unit test projects with CruiseControl.NET can be a bit different from using NUnit, but it is definitely possible. Here’s a general approach to get you started: ### Steps to Integrate Visual Studio 2008 Unit Tests with CruiseControl.NET 1. **Ensure Your Environment is Set Up**...
281
[ { "from": "human", "value": "I'm looking into using Visual Studio 2008's built in unit test projects instead of NUnit and I was wondering if anyone has any experience in trying to integrate this type of unit test project with Cruise Control.Net.\n" }, { "from": "gpt", "value": "Integrating Visua...
Some Eclipse plugins are mandated by your environment. The appropriate source code management plugin, for example - and I'm not interested in those. Some provide useful enhancements, but in a specific niche. I'm not interested in those. Some are great, but cost money. I'm not interested in those. Some were really usefu...
One essential plugin for every Java SE developer is **EclEmma**. ### EclEmma **Description**: EclEmma is a free Java code coverage tool for Eclipse. It provides an intuitive way to measure the effectiveness of your unit tests by showing which parts of your code are covered by tests and which are not. It integrates se...
4,413
[ { "from": "human", "value": "Some Eclipse plugins are mandated by your environment. The appropriate source code management plugin, for example - and I'm not interested in those.\nSome provide useful enhancements, but in a specific niche. I'm not interested in those.\nSome are great, but cost money. I'm not ...