instruction
stringlengths
14
27.6k
completion
stringlengths
3
38.3k
__original_row_idx
int64
0
50k
conversations
listlengths
2
2
This might seem like a stupid question I admit. But I'm in a small shop me plus two designers. Our backups are getting out of hand because they just copy/paste files if they need to make a change (version). I was all set to try Subversion to handle all of our files my text (code) files and their photoshop/illustrator ...
It's not a stupid question at all! Managing version control, especially in a creative environment with multiple designers and types of files, can be challenging. Here are some insights on your options, including Adobe Version Cue and other tools for version control: ### Adobe Version Cue - **Version Cue 3** is an impr...
175
[ { "from": "human", "value": "This might seem like a stupid question I admit. But I'm in a small shop me plus two designers. Our backups are getting out of hand because they just copy/paste files if they need to make a change (version). \nI was all set to try Subversion to handle all of our files my text (co...
I'm in the process of maintaining a Ruby on Rails app and am looking for an easy way to find the hostname or IP address of the box I'm on (since it's a VM and new instances may have different hostnames or IP addresses). Is there a quick and easy way to do this in Ruby on Rails? Edit: The answer below is correct but the...
You can easily find the hostname or IP address of your VM within a Ruby on Rails application by using socket programming. Here's a simple method to obtain the local hostname and IP address: 1. **Getting the Hostname**: You can use `Socket.gethostname` to retrieve the hostname of the machine. 2. **Getting the IP Addre...
4,404
[ { "from": "human", "value": "I'm in the process of maintaining a Ruby on Rails app and am looking for an easy way to find the hostname or IP address of the box I'm on (since it's a VM and new instances may have different hostnames or IP addresses). Is there a quick and easy way to do this in Ruby on Rails?\...
Does anyone have a good way to build MSI (vdproj) projects using MsBuild or Nant? I know one answer was to install Visual Studio on the build server and just use devenv.exe to build the project, but, I prefer not to install Visual Studio on our build servers.
Building MSI projects (specifically those created with Visual Studio's setup and deployment projects, often referred to as vdproj) can be a bit challenging since these projects are not natively supported by MSBuild or NAnt without Visual Studio installed. However, there are a few workarounds that you can consider to bu...
1,843
[ { "from": "human", "value": "Does anyone have a good way to build MSI (vdproj) projects using MsBuild or Nant? \nI know one answer was to install Visual Studio on the build server and just use devenv.exe to build the project, but, I prefer not to install Visual Studio on our build servers.\n" }, { ...
When I load my iPhone app it always loads a black screen first then pops up the main window. This happens even with a simple empty app with a single window loaded. I've noticed that when loading, most apps zoom in on the main window (or scale it to fit the screen, however you want to think about it) and then load the ...
The black screen you're seeing when launching your iPhone app is often the result of the app not having a properly configured launch screen or launch storyboard. To achieve a seamless transition and avoid a black screen when your app loads, follow these steps: ### 1. Configure Launch Screen iOS allows you to create a...
2,504
[ { "from": "human", "value": "When I load my iPhone app it always loads a black screen first then pops up the main window. This happens even with a simple empty app with a single window loaded. \nI've noticed that when loading, most apps zoom in on the main window (or scale it to fit the screen, however you ...
I've worked on a number of different embedded systems. They have all used typedefs (or #defines) for types such as UINT32. This is a good technique as it drives home the size of the type to the programmer and makes you more conscious of chances for overflow etc. But on some systems you know that the compiler and proce...
Your question touches on several important considerations for managing types in embedded systems programming, especially in a team environment with varying levels of experience. Here are some guidelines to help set a project policy regarding type usage: ### 1. **Establish Clear Typedefs for Fixed-width Types** - Us...
2,189
[ { "from": "human", "value": "I've worked on a number of different embedded systems. They have all used typedefs (or #defines) for types such as UINT32.\nThis is a good technique as it drives home the size of the type to the programmer and makes you more conscious of chances for overflow etc.\nBut on some s...
For example; with the old command prompt it would be: cmd.exe /k mybatchfile.bat
The command you've mentioned, `cmd.exe /k mybatchfile.bat`, is used to open a new Command Prompt window and execute a batch file named `mybatchfile.bat`. The `/k` switch tells the Command Prompt to run the specified command (in this case, the batch file) and then remain open, allowing you to see the output or run addit...
2,209
[ { "from": "human", "value": "For example; with the old command prompt it would be:\ncmd.exe /k mybatchfile.bat\n\n" }, { "from": "gpt", "value": "The command you've mentioned, `cmd.exe /k mybatchfile.bat`, is used to open a new Command Prompt window and execute a batch file named `mybatchfile.ba...
Is there a way to enforce constraint checking in MSSQL only when inserting new rows? I.e. allow the constraints to be violated when removing/updating rows? Update: I mean FK constraint.
In SQL Server (MSSQL), foreign key (FK) constraints are typically enforced during all operations, including inserts, updates, and deletes. However, if you want to enforce the foreign key constraint only when inserting new rows while allowing updates and deletes that might violate the constraint, you can use a couple of...
15
[ { "from": "human", "value": "Is there a way to enforce constraint checking in MSSQL only when inserting new rows? I.e. allow the constraints to be violated when removing/updating rows?\nUpdate: I mean FK constraint.\n" }, { "from": "gpt", "value": "In SQL Server (MSSQL), foreign key (FK) constr...
When using Resharper to encapsulate a class's properties, is there a way to get it to do more than one property at a time?
Yes, ReSharper allows you to encapsulate multiple properties at once, although the exact steps may vary slightly depending on the version of ReSharper you are using. Here’s a general way to encapsulate multiple properties: 1. **Select the Properties**: First, open the class containing the properties you want to encaps...
4,676
[ { "from": "human", "value": "When using Resharper to encapsulate a class's properties, is there a way to get it to do more than one property at a time?\n" }, { "from": "gpt", "value": "Yes, ReSharper allows you to encapsulate multiple properties at once, although the exact steps may vary slightl...
When executing SubmitChanges to the DataContext after updating a couple properties with a LINQ to SQL connection (against SQL Server Compact Edition) I get a "Row not found or changed." ChangeConflictException. var ctx = new Data.MobileServerDataDataContext(Common.DatabasePath); var deviceSessionRecord = ctx.Sessions.F...
The `ChangeConflictException` you are experiencing, specifically with the `WHERE 0 = 1` condition in your generated SQL, indicates that the LINQ to SQL framework is not able to find the record you are trying to update based on the criteria it is using. This behavior is generally caused by one of the following reasons: ...
1,006
[ { "from": "human", "value": "When executing SubmitChanges to the DataContext after updating a couple properties with a LINQ to SQL connection (against SQL Server Compact Edition) I get a \"Row not found or changed.\" ChangeConflictException.\nvar ctx = new Data.MobileServerDataDataContext(Common.DatabasePat...
Is it possible to get UI text from an external application in C#. In particular, is there a way to read Unicode text from a label (I assume it's a normal Windows label control) from an external Win32 app that was written by a 3rd party? The text is visible, but not selectable by mouse in the UI. I assume there is some...
Yes, it is indeed possible to get UI text from an external application in C# by utilizing Windows accessibility APIs. In particular, you can use the Microsoft Active Accessibility (MSAA) or UI Automation framework to retrieve information from UI elements of other applications, including text from label controls. ### U...
1,222
[ { "from": "human", "value": "Is it possible to get UI text from an external application in C#. \nIn particular, is there a way to read Unicode text from a label (I assume it's a normal Windows label control) from an external Win32 app that was written by a 3rd party? The text is visible, but not selectable ...
Why is there a hardcoded chunk limit (.5 meg after compression) in memcached? Has anyone recompiled theirs to up it? I know I should not be sending big chunks like that around, but these extra heavy chunks happen for me from time to time and wreak havoc.
The default chunk size limit in Memcached (1 MB before compression, which is roughly .5 MB after compression depending on the data) is primarily designed to maintain performance, memory efficiency, and network throughput. Here are a few reasons for this limit: 1. **Memory Efficiency**: Memcached is optimized for quick...
2,957
[ { "from": "human", "value": "Why is there a hardcoded chunk limit (.5 meg after compression) in memcached? Has anyone recompiled theirs to up it? I know I should not be sending big chunks like that around, but these extra heavy chunks happen for me from time to time and wreak havoc.\n" }, { "from": ...
In Perl, you can execute system commands using system() or `` (backticks). You can even capture the output of the command into a variable. However, this hides the program execution in the background so that the person executing your script can't see it. Normally this is useful but sometimes I want to see what is going...
In Perl, you can execute system commands while also printing the commands and their output to the terminal by using a combination of the `system` function and `open` to create a file handle. This way, you can capture the output and also print both the command being executed and its output in real-time. Here's one appr...
4,448
[ { "from": "human", "value": "In Perl, you can execute system commands using system() or `` (backticks). You can even capture the output of the command into a variable. However, this hides the program execution in the background so that the person executing your script can't see it. \nNormally this is useful...
Let's say I'm creating a chess program. I have a function void foreachMove( void (*action)(chess_move*), chess_game* game); which will call the function pointer action on each valid move. This is all well and good, but what if I need to pass more parameters to the action function? For example: chess_move getNextMove(...
To solve the problem of passing additional parameters to a function pointer without changing the signature of the original function, you can use a technique called **closure** by encapsulating the parameters you want to pass in a structure and then passing a pointer to that structure along with your function pointer. T...
1,954
[ { "from": "human", "value": "Let's say I'm creating a chess program. I have a function\nvoid foreachMove( void (*action)(chess_move*), chess_game* game); \n\nwhich will call the function pointer action on each valid move. This is all well and good, but what if I need to pass more parameters to the action fu...
If I have a query like: Select EmployeeId From Employee Where EmployeeTypeId IN (1,2,3) and I have an index on the EmployeeTypeId field, does SQL server still use that index?
Yes, SQL Server can still utilize the index on the `EmployeeTypeId` field when executing your query. When you perform a `SELECT` query with a `WHERE` clause that includes an `IN` operator, SQL Server's query optimizer will evaluate whether using the index on `EmployeeTypeId` can help retrieve the rows more efficiently....
4,748
[ { "from": "human", "value": "If I have a query like:\nSelect EmployeeId \nFrom Employee \nWhere EmployeeTypeId IN (1,2,3)\n\nand I have an index on the EmployeeTypeId field, does SQL server still use that index?\n" }, { "from": "gpt", "value": "Yes, SQL Server can still utilize the index on the ...
I am working on a collection of classes used for video playback and recording. I have one main class which acts like the public interface, with methods like play(), stop(), pause(), record() etc... Then I have workhorse classes that do the video decoding and video encoding. I just learned about the existence of nested ...
Using nested classes in C++ can indeed be a useful approach, especially in cases like yours where you want to encapsulate implementation details that should not be exposed to users of your main class. Here are some benefits and drawbacks of using nested classes that may help you make your decision: ### Benefits of Nes...
2,267
[ { "from": "human", "value": "I am working on a collection of classes used for video playback and recording. I have one main class which acts like the public interface, with methods like play(), stop(), pause(), record() etc... Then I have workhorse classes that do the video decoding and video encoding.\nI j...
I have a file in the following format: Data Data Data [Start] Data I want [End] Data I'd like to grab the Data I want from between the [Start] and [End] tags using a Regex. Can anyone show me how this might be done?
You can use the following regular expression to capture the data between the `[Start]` and `[End]` tags: ```regex (?<=\[Start\]\n)(.*?)(?=\n\[End\]) ``` ### Explanation: - `(?<=\[Start\]\n)`: This is a positive lookbehind that asserts what immediately precedes the match is `[Start]` followed by a newline character. ...
3,647
[ { "from": "human", "value": "I have a file in the following format:\n\nData Data\nData\n[Start]\nData I want\n[End]\nData\n\nI'd like to grab the Data I want from between the [Start] and [End] tags using a Regex. Can anyone show me how this might be done?\n" }, { "from": "gpt", "value": "You can...
So I'm using an app that stores images heavily in the DB. What's your outlook on this? I'm more of a type to store the location in the filesystem, than store it directly in the DB. What do you think are the pros/cons?
Storing images directly in a database versus storing file paths in the filesystem is a common debate in software architecture. Here’s a breakdown of the pros and cons for each approach: ### Storing Images in the Database **Pros:** 1. **Atomicity:** Transactions are easier to manage. If an image and its associated dat...
2,629
[ { "from": "human", "value": "So I'm using an app that stores images heavily in the DB. What's your outlook on this? I'm more of a type to store the location in the filesystem, than store it directly in the DB.\nWhat do you think are the pros/cons? \n" }, { "from": "gpt", "value": "Stori...
I use rsync to synchronize files to Windows clients in a server agnostic way. What methods are available to send the progress of rsync to the parent process for display in a gui progress bar? I imagine two or three choices exist. (1) Watch STDOUT (2) Watch rsync.exe log file, similar to unix tail (3) Watch rsync consol...
When integrating `rsync` with a GUI progress bar, you indeed have several methods to capture and display progress information. Each of the methods you mentioned has its own advantages and drawbacks. Here's a breakdown: ### 1. Watching STDOUT - **Pros:** - Directly captures the output of `rsync` in real time. - Ea...
1,264
[ { "from": "human", "value": "I use rsync to synchronize files to Windows clients in a server agnostic way. What methods are available to send the progress of rsync to the parent process for display in a gui progress bar?\nI imagine two or three choices exist. (1) Watch STDOUT (2) Watch rsync.exe log file, s...
How do you specify that a foreign key constraint should be a 1:1 relationship in transact sql? Is declaring the column UNIQUE enough? Below is my existing code.! CREATE TABLE [dbo].MyTable( [MyTablekey] INT IDENTITY(1,1) NOT FOR REPLICATION NOT NULL, [OtherTableKey] INT NOT NULL UNIQUE CONSTRAINT [FK_My...
In Transact-SQL, to enforce a 1:1 relationship between two tables using a foreign key constraint, it is indeed necessary to declare the foreign key column as `UNIQUE` in the referencing table. This ensures that each value in the foreign key column corresponds to only one row in the referenced table. However, it is also...
2,908
[ { "from": "human", "value": "How do you specify that a foreign key constraint should be a 1:1 relationship in transact sql? Is declaring the column UNIQUE enough? Below is my existing code.!\nCREATE TABLE [dbo].MyTable(\n [MyTablekey] INT IDENTITY(1,1) NOT FOR REPLICATION NOT NULL,\n [OtherTableKey] I...
In subclipse, the Team > Update menu option performs an "svn update -r HEAD". I want to run "svn update -r [revision number]" but can't find a menu option which will let me update to anything besides the HEAD revision.
In Subclipse, while there is a straightforward menu option for performing an update to the HEAD revision, you can still perform an update to a specific revision number through the context menu. Here's how you can do that: 1. **Right-click on the Project**: In the Package Explorer or the Project Explorer, right-click o...
3,498
[ { "from": "human", "value": "In subclipse, the Team > Update menu option performs an \"svn update -r HEAD\".\nI want to run \"svn update -r [revision number]\" but can't find a menu option which will let me update to anything besides the HEAD revision.\n" }, { "from": "gpt", "value": "In Subclip...
Without local access to the server, is there any way to duplicate/clone a MySQL db (with content and without content) into another without using mysqldump? I am currently using MySQL 4.0.
If you do not have local access to the server and are restricted from using `mysqldump`, you may have limited options for duplicating or cloning a MySQL database, especially considering that you are using MySQL 4.0, which is an older version with certain limitations. Here are a few alternative approaches: ### 1. Use S...
1,446
[ { "from": "human", "value": "Without local access to the server, is there any way to duplicate/clone a MySQL db (with content and without content) into another without using mysqldump?\nI am currently using MySQL 4.0.\n" }, { "from": "gpt", "value": "If you do not have local access to the server...
I'm using Visual C++ 2003 to debug a program remotely via TCP/IP. I had set the Win32 exception c00000005, "Access violation," to break into the debugger when thrown. Then, I set it back to "Use parent setting." The setting for the parent, Win32 Exceptions, is to continue when the exception is thrown. Now, when I debug...
In Visual C++ 2003, if you've set the Win32 exception `c00000005` (Access Violation) to break on its occurrence, and it's now behaving differently after changing back to "Use parent setting," you might need to check the settings again to ensure everything is correctly configured. Here's a step-by-step guide to help yo...
2,098
[ { "from": "human", "value": "I'm using Visual C++ 2003 to debug a program remotely via TCP/IP.\nI had set the Win32 exception c00000005, \"Access violation,\" to break into the debugger when thrown. Then, I set it back to \"Use parent setting.\" The setting for the parent, Win32 Exceptions, is to continue w...
We used the "undocumented" xp_fileexist stored procedure for years in SQL Server 2000 and had no trouble with it. In 2005, it seems that they modified the behavior slightly to always return a 0 if the executing user account is not a sysadmin. It also seems to return a zero if the SQL Server service is running under the...
You're right that `xp_fileexist` has limitations, especially regarding permissions and execution context. Starting with SQL Server 2005, there are better alternatives that you can use to check for the existence of a file, particularly if you want to avoid the security issues associated with `xp_fileexist`. One common ...
1,380
[ { "from": "human", "value": "We used the \"undocumented\" xp_fileexist stored procedure for years in SQL Server 2000 and had no trouble with it. In 2005, it seems that they modified the behavior slightly to always return a 0 if the executing user account is not a sysadmin. It also seems to return a zero if ...
I would like to rename files and folders recursively by applying a string replacement operation. E.g. The word "shark" in files and folders should be replaced by the word "orca". C:\Program Files\Shark Tools\Wire Shark\Sharky 10\Shark.exe should be moved to: C:\Program Files\Orca Tools\Wire Orca\Orcay 10\Orca.exe The ...
To perform a recursive rename of files and folders in C#, you can utilize the `System.IO` namespace effectively. The key steps involved are to retrieve all directories and files, then rename them using the `MoveTo` method. Below is an example of how to implement this functionality: ```csharp using System; using System...
2,316
[ { "from": "human", "value": "I would like to rename files and folders recursively by applying a string replacement operation.\nE.g. The word \"shark\" in files and folders should be replaced by the word \"orca\".\nC:\\Program Files\\Shark Tools\\Wire Shark\\Sharky 10\\Shark.exe \nshould be moved to:\nC:\\Pr...
If I am given a MemoryStream that I know has been populated with a String, how do I get a String back out?
To retrieve a `String` from a `MemoryStream` in C#, you can use the `StreamReader` class, which provides methods to read from a stream in a convenient way. Below are the steps you would typically follow to convert the contents of a `MemoryStream` back into a `String`: 1. Set the position of the `MemoryStream` back to ...
3,785
[ { "from": "human", "value": "If I am given a MemoryStream that I know has been populated with a String, how do I get a String back out?\n" }, { "from": "gpt", "value": "To retrieve a `String` from a `MemoryStream` in C#, you can use the `StreamReader` class, which provides methods to read from a...
Are there any open source (or I guess commercial) packages that you can plug into your site for monitoring purposes? I'd like something that we can hook up to our ASP.NET site and use to provide reporting on things like: performance over time current load page traffic SQL performance PU time monitoring Ideally in c#...
There are several open-source and commercial solutions that you can integrate into your ASP.NET application for monitoring purposes. Here are some noteworthy packages that meet your criteria: ### Open Source Options 1. **Prometheus & Grafana** - **Description**: Prometheus is an open-source systems monitoring and ...
198
[ { "from": "human", "value": "Are there any open source (or I guess commercial) packages that you can plug into your site for monitoring purposes? I'd like something that we can hook up to our ASP.NET site and use to provide reporting on things like:\n\nperformance over time\ncurrent load\npage traffic\nSQL ...
I'm connecting to an AS/400 stored procedure layer using the IBM iSeries Access for Windows package. This provides a .NET DLL with classes similar to those in the System.Data namespace. As such we use their implementation of the connection class and provide it with a connection string. Does anyone know how I can amend ...
To specify a default library in your connection string when connecting to an AS/400 (IBM iSeries) using the IBM iSeries Access for Windows .NET DLL, you can use the `DefaultLibrary` parameter in the connection string. Here’s an example of how you might construct your connection string: ```csharp string connectionStri...
4,044
[ { "from": "human", "value": "I'm connecting to an AS/400 stored procedure layer using the IBM iSeries Access for Windows package. This provides a .NET DLL with classes similar to those in the System.Data namespace. As such we use their implementation of the connection class and provide it with a connection ...
How do you delete a cookie in rails that was set with a wild card domain: cookies[:foo] = {:value => 'bar', :domain => '.acme.com'} When, following the docs, you do: cookies.delete :foo the logs say Cookie set: foo=; path=/; expires=Thu, 01 Jan 1970 00:00:00 GMT Notice that the domain is missing (it seems to use the...
To delete a cookie in Rails that was set with a wildcard domain (e.g., `.acme.com`), you need to specify the same domain and path parameters when you delete the cookie. If you don't provide these parameters, Rails will use the default values, which won't match the original cookie settings, and thus the cookie won't be ...
5,155
[ { "from": "human", "value": "How do you delete a cookie in rails that was set with a wild card domain:\ncookies[:foo] = {:value => 'bar', :domain => '.acme.com'}\n\nWhen, following the docs, you do:\ncookies.delete :foo\n\nthe logs say\nCookie set: foo=; path=/; expires=Thu, 01 Jan 1970 00:00:00 GMT\n\nNoti...
When developing whether its Web or Desktop at which point should a developer switch from SQLite, MySQL, MS SQL, etc
Choosing the right database for your application is crucial and often depends on several factors. Here are some considerations that can help determine when to switch from SQLite to a more robust database management system like MySQL, MS SQL Server, or others: ### 1. **Data Volume** - **SQLite**: Best suited for sma...
1,571
[ { "from": "human", "value": "When developing whether its Web or Desktop at which point should a developer switch from SQLite, MySQL, MS SQL, etc\n" }, { "from": "gpt", "value": "Choosing the right database for your application is crucial and often depends on several factors. Here are some consid...
I need to create a linked server to a DB2 database on a mainframe. Has anyone done this successfully on a 64-bit version of SQL Server 2005? If so, which provider and settings were used? It's important that the linked server work whether we are using a Windows authenticated account to login to SQL Server or a SQL Serve...
Creating a linked server to a DB2 database on a mainframe in SQL Server 2005 (64-bit) can be achieved using the IBM DB2 OLE DB Provider. Below are the general steps you can follow, including necessary settings: ### Prerequisites 1. **IBM DB2 OLE DB Provider**: Ensure you have the IBM DB2 OLE DB Provider installed on ...
797
[ { "from": "human", "value": "I need to create a linked server to a DB2 database on a mainframe. Has anyone done this successfully on a 64-bit version of SQL Server 2005? If so, which provider and settings were used?\nIt's important that the linked server work whether we are using a Windows authenticated acc...
When using host headers to host multiple websites on the same IP address in IIS, is there any way of accessing that website from a browser running on the local machine? This is normally required when a given web component only allows configuration from the local machine. It's also useful when things like ASP.Net's buil...
When hosting multiple websites on the same IP address using host headers in IIS, you can indeed access those sites from a browser running on the local machine. However, there are some configurations needed to avoid the 400 error when using host headers. Here’s how to properly configure your local machine to access the...
3,048
[ { "from": "human", "value": "When using host headers to host multiple websites on the same IP address in IIS, is there any way of accessing that website from a browser running on the local machine?\nThis is normally required when a given web component only allows configuration from the local machine. It's a...
My company is in the process of starting down the Grails path. The reason for that is that the current developers are heavy on Java but felt the need for a MVC-style language for some future web development projects. Personally, I'm coming from the design/usability world, but as I take more "front-end" responsibilities...
Your situation presents an interesting intersection of personal and professional development, and there are several factors to consider in your decision-making process. ### Learning Path Considerations 1. **Immediate Relevance**: Since your company is adopting Grails for upcoming projects, focusing on Grails would be...
1,950
[ { "from": "human", "value": "My company is in the process of starting down the Grails path. The reason for that is that the current developers are heavy on Java but felt the need for a MVC-style language for some future web development projects. Personally, I'm coming from the design/usability world, but as...
What is the difference between the following types of endianness? byte (8b) invariant big and little endianness half-word (16b) invariant big and little endianness word (32b) invariant big and little endianness double-word (64b) invariant big and little endianness Are there other types/variations?
Endianness refers to the order in which bytes are arranged within larger data types in computer memory. The two primary types of endianness are **big-endian** and **little-endian**. Understanding the differences in endianness for various data sizes is important, especially when dealing with data interchange between sys...
987
[ { "from": "human", "value": "What is the difference between the following types of endianness?\n\nbyte (8b) invariant big and little endianness\nhalf-word (16b) invariant big and little endianness\nword (32b) invariant big and little endianness\ndouble-word (64b) invariant big and little endianness\n\nAre t...
Since Graduating from a very small school in 2006 with a badly shaped & outdated program (I'm a foreigner & didn't know any better school at the time) I've come to realize that I missed a lot of basic concepts from a mathematical & software perspective that are mostly the foundations of other higher concepts. I.e. I tr...
It's great that you're looking to strengthen your foundational knowledge in mathematics and algorithms, as these are crucial for becoming a proficient software engineer. Here are some core mathematical concepts and areas that are particularly useful: ### Core Mathematical Concepts 1. **Discrete Mathematics:** - Se...
2,061
[ { "from": "human", "value": "Since Graduating from a very small school in 2006 with a badly shaped & outdated program (I'm a foreigner & didn't know any better school at the time) I've come to realize that I missed a lot of basic concepts from a mathematical & software perspective that are mostly the founda...
I want to make a table in SqlServer that will add, on insert, a auto incremented primary key. This should be an autoincremented id similar to MySql auto_increment functionality. (Below) create table foo ( user_id int not null auto_increment, name varchar(50) ) Is there a way of doing this with out creating ...
Yes, in SQL Server, you can achieve the functionality of an auto-incremented primary key similar to MySQL's `auto_increment` using the `IDENTITY` property on a column. Here's how you can create a table in SQL Server with an auto-incrementing primary key: ```sql CREATE TABLE foo ( user_id INT IDENTITY(1,1) PR...
4,615
[ { "from": "human", "value": "I want to make a table in SqlServer that will add, on insert, a auto incremented primary key. This should be an autoincremented id similar to MySql auto_increment functionality. (Below)\ncreate table foo \n( \nuser_id int not null auto_increment, \nname varchar(50) \n) \n\...
Reading through the Flickr API documentation it keeps stating I require an API key to use their REST protocols. I am only building a photo viewer, gathering information available from Flickr's public photo feed (For instance, I am not planning on writing an upload script, where a API key would be required). Is there an...
While you may be able to access some public Flickr data without an API key, obtaining an API key generally offers several advantages and enhanced functionality: 1. **Increased Rate Limits**: API keys often come with higher rate limits, allowing you to make more requests in a shorter period. This can be crucial if your...
3,971
[ { "from": "human", "value": "Reading through the Flickr API documentation it keeps stating I require an API key to use their REST protocols. I am only building a photo viewer, gathering information available from Flickr's public photo feed (For instance, I am not planning on writing an upload script, where ...
I need to generate a random integer between 1 and n (where n is a positive whole number) to use for a unit test. I don't need something overly complicated to ensure true randomness - just an old-fashioned random number. How would I do that?
To generate a random integer between 1 and a positive whole number \( n \), you can use various programming languages. Below are some examples in different languages to help you get started. ### Python In Python, you can use the `random` module: ```python import random n = 10 # Replace this with your desired value ...
1,305
[ { "from": "human", "value": "I need to generate a random integer between 1 and n (where n is a positive whole number) to use for a unit test. I don't need something overly complicated to ensure true randomness - just an old-fashioned random number.\nHow would I do that?\n" }, { "from": "gpt", "v...
I wrote myself a little downloading application so that I could easily grab a set of files from my server and put them all onto a new pc with a clean install of Windows, without actually going on the net. Unfortunately I'm having problems creating the folder I want to put them in and am unsure how to go about it. I w...
To create a function in your application that checks if a folder exists and creates it if it doesn't, you can use Python's built-in libraries. Below is a simple implementation using the `os` and `os.path` libraries: ```python import os def ensure_directory_exists(directory): """Check if the directory exists and c...
3,855
[ { "from": "human", "value": "I wrote myself a little downloading application so that I could easily grab a set of files from my server and put them all onto a new pc with a clean install of Windows, without actually going on the net. Unfortunately I'm having problems creating the folder I want to put them...
We have a requirement in project to store all the revisions(Change History) for the entities in the database. Currently we have 2 designed proposals for this: e.g. for "Employee" Entity Design 1: -- Holds Employee Entity "Employees (EmployeeId, FirstName, LastName, DepartmentId, .., ..)" -- Holds the Employee Revision...
Storing revision history for entities in a database can be challenging, especially when considering factors like efficiency, data integrity, and maintainability. Here are a few alternative approaches you might consider: ### Design 3: **Separate History Tables with a Generic Structure** Instead of duplicating all the f...
135
[ { "from": "human", "value": "We have a requirement in project to store all the revisions(Change History) for the entities in the database. Currently we have 2 designed proposals for this:\ne.g. for \"Employee\" Entity\nDesign 1:\n-- Holds Employee Entity\n\"Employees (EmployeeId, FirstName, LastName, Depart...
I'd like to take an existing application (written in OCaml) and create an Emacs "interface" for it (like, for example, the Emacs GDB mode). I would prefer to do this without writing a ton of Lisp code. In MVC terms, I'd like for the View to be Emacs, but for the Model and Controller to remain (primarily) OCaml. Does an...
Creating an Emacs interface for an existing OCaml application without extensively using Emacs Lisp can be challenging, but there are some potential approaches you can take. ### 1. Using `emacsclient` and Sockets One option is to run your OCaml application as a server that communicates with Emacs using sockets. You can...
1,258
[ { "from": "human", "value": "I'd like to take an existing application (written in OCaml) and create an Emacs \"interface\" for it (like, for example, the Emacs GDB mode). I would prefer to do this without writing a ton of Lisp code. In MVC terms, I'd like for the View to be Emacs, but for the Model and Cont...
I'm trying to call a function after I load some XML into Actionscript, and I'm just wondering how I call that function. Example: //Function Declarations function parentFunction() { function callMe() { textField.text = "lawl"; } } Now, how do I call the "callMe()" function in a different part of the co...
In ActionScript 2.0, functions defined within another function are local to that function and cannot be accessed directly from outside. This means that you won't be able to call `callMe()` from outside `parentFunction()` as you attempted. To solve your problem, you can declare `callMe()` outside of `parentFunction()`,...
3,241
[ { "from": "human", "value": "I'm trying to call a function after I load some XML into Actionscript, and I'm just wondering how I call that function. Example:\n//Function Declarations\nfunction parentFunction()\n{\n function callMe()\n {\n textField.text = \"lawl\";\n }\n}\n\nNow, how do I call ...
Using VS2005 and VB.NET. I have a project that is an API for a data-store that I created. When compiled creates api.dll. I have a second project in the same solution that has a project reference to the API project which when compiled will create wrapper.dll. This is basically a wrapper for the API that is specific to a...
To create a single DLL that contains both your `wrapper.dll` and `api.dll`, you can use a technique called "ILMerge". This tool can merge multiple .NET assemblies into a single assembly. Here’s how you can set it up in Visual Studio 2005 with VB.NET: ### Step 1: Download and Install ILMerge 1. Download ILMerge from t...
2,210
[ { "from": "human", "value": "Using VS2005 and VB.NET.\nI have a project that is an API for a data-store that I created. When compiled creates api.dll.\nI have a second project in the same solution that has a project reference to the API project which when compiled will create wrapper.dll. This is basically ...
I'm not clear on the differences between the "current" version of Ruby (1.8) and the "new" version (1.9). Is there an "easy" or a "simple" explanation of the differences and why it is so different?
Certainly! Ruby 1.9 introduced several significant changes and improvements over Ruby 1.8, both in terms of performance and language features. Here’s a simple breakdown of the main differences: ### Key Differences Between Ruby 1.8 and Ruby 1.9 1. **Performance Improvements**: - Ruby 1.9 includes a new YARV (Yet An...
1,043
[ { "from": "human", "value": "I'm not clear on the differences between the \"current\" version of Ruby (1.8) and the \"new\" version (1.9). Is there an \"easy\" or a \"simple\" explanation of the differences and why it is so different?\n" }, { "from": "gpt", "value": "Certainly! Ruby 1.9 introduc...
We have a Windows Server Web Edition 2003 Web Farm. What can we use that handles replication across the servers for: Content & IIS Configuration (App Pools, Virtual Directories, etc...) We will be moving to Windows 2008 in the near future, so I guess what options are there on Windows 2008 as well.
To manage replication and synchronization across servers in a web farm, especially when transitioning from Windows Server 2003 to Windows Server 2008, you have several options for handling content and IIS configurations, including application pools and virtual directories. ### For Windows Server 2003: 1. **File Repli...
800
[ { "from": "human", "value": "We have a Windows Server Web Edition 2003 Web Farm. \nWhat can we use that handles replication across the servers for:\nContent & IIS Configuration (App Pools, Virtual Directories, etc...)\nWe will be moving to Windows 2008 in the near future, so I guess what options are there o...
Specifically, is the following legal C++? class A{}; void foo(A*); void bar(const A&); int main(void) { foo(&A()); // 1 bar(A()); // 2 } It appears to work correctly, but that doesn't mean it's necessarily legal. Is it? Edit - changed A& to const A&
The provided code contains some interesting points regarding the legality of using temporary objects in C++. ```cpp class A{}; void foo(A*); void bar(const A&); int main(void) { foo(&A()); // 1 bar(A()); // 2 } ``` 1. **`foo(&A());`**: - Here, `A()` creates a temporary object of type `A`. The expressio...
4,152
[ { "from": "human", "value": "Specifically, is the following legal C++?\nclass A{};\n\nvoid foo(A*);\nvoid bar(const A&);\n\nint main(void)\n{\n foo(&A()); // 1\n bar(A()); // 2\n}\nIt appears to work correctly, but that doesn't mean it's necessarily legal. Is it?\nEdit - changed A& to const A&\n" ...
I'd like to script, preferably in rake, the following actions into a single command: Get the version of my local git repository. Git pull the latest code. Git diff from the version I extracted in step #1 to what is now in my local repository. In other words, I want to get the latest code form the central repository a...
Certainly! You can create a Rake task that encapsulates the desired actions. Here’s how you can set it up. 1. **Create a `Rakefile`** (if you don't have one already) in the root of your repository. 2. **Add the following Rake task** to your `Rakefile`: ```ruby require 'rake' require 'open3' namespace :git do desc...
2,724
[ { "from": "human", "value": "I'd like to script, preferably in rake, the following actions into a single command:\n\nGet the version of my local git repository.\nGit pull the latest code.\nGit diff from the version I extracted in step #1 to what is now in my local repository.\n\nIn other words, I want to ge...
I have a project that utilizes the javax.mail.internet.MimeMessage and other related classes that does mime parsing for emails that we receive. This needs to be ported to .NET. What .Net 3rd party or built in library can I use to replace the Java classes that I'm using? EDIT: Anything change in the last 9 months since ...
As of my last knowledge update in October 2023, there are several options available in .NET for handling MIME email parsing and sending, which can serve as alternatives to the `javax.mail.internet.MimeMessage` and related classes in Java. Here are some popular choices: 1. **MailKit**: - **Description**: MailKit is ...
3,306
[ { "from": "human", "value": "I have a project that utilizes the javax.mail.internet.MimeMessage and other related classes that does mime parsing for emails that we receive. This needs to be ported to .NET.\nWhat .Net 3rd party or built in library can I use to replace the Java classes that I'm using?\nEDIT: ...
How should widgets in GWT inform other widgets to refresh themselfs or perform some other action. Should I use sinkEvent / onBrowserEvent? And if so is there a way to create custom Events?
In Google Web Toolkit (GWT), there are several ways to handle communication between widgets, and creating a flexible and efficient mechanism for widgets to inform each other to refresh or perform actions is essential. Here are some common approaches: ### 1. **Using Events and Event Bus** GWT provides a robust event h...
3,255
[ { "from": "human", "value": "How should widgets in GWT inform other widgets to refresh themselfs or perform some other action. \nShould I use sinkEvent / onBrowserEvent?\nAnd if so is there a way to create custom Events?\n" }, { "from": "gpt", "value": "In Google Web Toolkit (GWT), there are sev...
I've recently started work on the Compact Framework and I was wondering if anyone had some recommendations for unit testing beyond what's in VS 2008. MSTest is ok, but debugging the tests is a nightmare and the test runner is so slow. I see that NUnitLite on codeplex is an option, but it doesn't look very active; it's ...
If you're working with the .NET Compact Framework and looking for unit testing alternatives to MSTest, you have a few options to consider beyond NUnitLite. Here are some recommendations: 1. **NUnitLite**: While you mentioned it looks inactive, many developers have reported success using NUnitLite for unit testing in C...
3,977
[ { "from": "human", "value": "I've recently started work on the Compact Framework and I was wondering if anyone had some recommendations for unit testing beyond what's in VS 2008. MSTest is ok, but debugging the tests is a nightmare and the test runner is so slow.\nI see that NUnitLite on codeplex is an opti...
This error message had me stumped for a while: invalid conversion from 'objc_object* to 'int' The line in question was something like this: int iResult = [MyUtils utilsMemberFunc:param1,param2];
The error message you're encountering indicates that there is an issue with type conversion in your code. Specifically, it suggests that you are trying to assign the result of a method call (which returns an Objective-C object) to an integer (`int`), which is not directly possible without proper conversion. In Objecti...
4,038
[ { "from": "human", "value": "This error message had me stumped for a while:\n\ninvalid conversion from 'objc_object* to 'int'\n\nThe line in question was something like this:\nint iResult = [MyUtils utilsMemberFunc:param1,param2];\n\n" }, { "from": "gpt", "value": "The error message you're encou...
Here is the scenario: I have a table with a margin-bottom of 19px. Below that I have a form that contains some fieldsets. One of them is floated right. The problem is that the margin-bottom is not getting the full 19px in IE7. I've gone through all of the IE7 css/margin/float bugs that I can think of and have tried re...
It sounds like you are running into a common issue with margin collapsing and float behavior in IE7. Here are some strategies you could try to resolve the margin-bottom issue you are experiencing: 1. **Clearfix on the Form**: Add a clearfix class to the form element to prevent margin collapse. The clearfix can be defi...
2,471
[ { "from": "human", "value": "Here is the scenario: \nI have a table with a margin-bottom of 19px. Below that I have a form that contains some fieldsets. One of them is floated right. The problem is that the margin-bottom is not getting the full 19px in IE7. I've gone through all of the IE7 css/margin/float ...
Is there any way, in any language, to hook my program when a user renames a file? For example: A user renames a file and presses enter (or clicks away) to confirm the rename action. BEFORE the file is actually renamed, my program "listens" to this event and pops up a message saying "Are you sure you want to rename C:\t...
Yes, it is possible to hook your program into file system events like renaming a file using the Windows API, particularly by utilizing the `FileSystemWatcher` class in C# or the Windows Hooks API in C++. Below, I'll outline methods for both C# and C++. ### C# Approach In C#, you can use the `FileSystemWatcher` class ...
1,313
[ { "from": "human", "value": "Is there any way, in any language, to hook my program when a user renames a file?\nFor example:\nA user renames a file and presses enter (or clicks away) to confirm the rename action. BEFORE the file is actually renamed, my program \"listens\" to this event and pops up a message...
I am trying to code TDD style in PHP and one of my biggest stumbling blocks (other than lack of a decent IDE) is that I have to make my own hacked together IoC container just to inject all my mock objects properly. Has anyone used an Ioc container in PHP? All I've been able to find is PHP IOC on the ever-annoying phpc...
Using an Inversion of Control (IoC) container can greatly help with implementing Test-Driven Development (TDD) in PHP, as it allows for easier dependency injection and better organization of your code. Fortunately, there are several well-established IoC containers available for PHP that come with good documentation and...
1,717
[ { "from": "human", "value": "I am trying to code TDD style in PHP and one of my biggest stumbling blocks (other than lack of a decent IDE) is that I have to make my own hacked together IoC container just to inject all my mock objects properly.\nHas anyone used an Ioc container in PHP? All I've been able to...
I'm currently building a Java app that could end up being run on many different platforms, but primarily variants of Solaris, Linux and Windows. Has anyone been able to successfully extract information such as the current disk space used, CPU utilisation and memory used in the underlying OS? What about just what the Ja...
Certainly! In Java, you can gather system resource information without resorting to JNI by using the `OperatingSystemMXBean` interface provided by the Java Management Extensions (JMX). Additionally, for more detailed information, you can use libraries such as **SIGAR** or **OSHI**, which provide a cross-platform soluti...
569
[ { "from": "human", "value": "I'm currently building a Java app that could end up being run on many different platforms, but primarily variants of Solaris, Linux and Windows.\nHas anyone been able to successfully extract information such as the current disk space used, CPU utilisation and memory used in the ...
I'm trying to use the CoreCon API in Visual Studio 2008 to programmatically launch device emulators. When I call device.Connect(), I inexplicably get a DirectoryNotFoundException. I get it if I try it in PowerShell or in C# Console Application. Here's the code I'm using: static void Main(string[] args) { Datastore...
The `DirectoryNotFoundException` you are encountering when trying to use the CoreCon API to connect to device emulators likely indicates that the API is unable to locate a required file or directory necessary for the device connection process. Here are some potential causes and solutions that you can explore: ### Poss...
1,853
[ { "from": "human", "value": "I'm trying to use the CoreCon API in Visual Studio 2008 to programmatically launch device emulators. When I call device.Connect(), I inexplicably get a DirectoryNotFoundException. I get it if I try it in PowerShell or in C# Console Application. Here's the code I'm using:\nstatic...
At my work we are running a group of tests that consist of about 3,000 separate test cases. Previously we were running this entire test suite on one machine, which took about 24-72 hours to complete the entire test run. We now have created our own system for grouping and distributing the tests among about three separat...
Distributing tests across multiple machines is an effective strategy to reduce overall execution time, especially with a large test suite like yours. Here are some approaches and tools that can help you achieve this without rewriting your existing JUnit 3.x tests. ### 1. **TestNG** While you mentioned that TestNG is ...
1,979
[ { "from": "human", "value": "At my work we are running a group of tests that consist of about 3,000 separate test cases. Previously we were running this entire test suite on one machine, which took about 24-72 hours to complete the entire test run. We now have created our own system for grouping and distrib...
.NET Framework: 2.0 Preferred Language: C# I am new to TDD (Test Driven Development). First of all, is it even possible to unit test Windows Service? Windows service class is derived from ServiceBase, which has overridable methods, OnStart OnStop How can I trigger those methods to be called as if unit test is an ac...
Welcome to the world of Test Driven Development (TDD)! It’s great to hear that you’re exploring unit testing, particularly with Windows Services in .NET. Your question about unit testing Windows Services is common and insightful. Let's delve into it. ### Unit Testing vs. Integration Testing 1. **Unit Testing**: This ...
1,336
[ { "from": "human", "value": ".NET Framework: 2.0\nPreferred Language: C#\nI am new to TDD (Test Driven Development).\nFirst of all, is it even possible to unit test Windows Service?\nWindows service class is derived from ServiceBase, which has overridable methods, \n\nOnStart \nOnStop\n\nHow can I trigger t...
Given a handle of type HWND is it possible to confirm that the handle represents a real window?
Yes, you can confirm that an `HWND` handle represents a real window in Windows programming by using several methods provided by the Windows API. Here are a few ways to check the validity of an `HWND` handle: 1. **Check if the handle is NULL**: You can first check if the handle is `NULL`, which indicates that it is ...
2,868
[ { "from": "human", "value": "Given a handle of type HWND is it possible to confirm that the handle represents a real window?\n" }, { "from": "gpt", "value": "Yes, you can confirm that an `HWND` handle represents a real window in Windows programming by using several methods provided by the Window...
Should I use Named Pipes, or .NET Remoting to communicate with a running process on my machine?
When deciding between Named Pipes and .NET Remoting for inter-process communication (IPC) in your application, particularly for communication between processes on the same machine, consider the following factors: ### Named Pipes - **Performance**: Named Pipes are generally faster than .NET Remoting for local communica...
4,466
[ { "from": "human", "value": "Should I use Named Pipes, or .NET Remoting to communicate with a running process on my machine?\n" }, { "from": "gpt", "value": "When deciding between Named Pipes and .NET Remoting for inter-process communication (IPC) in your application, particularly for communicat...
I have the following textarea in a table: <table width="300"><tr><td> <textarea style="width:100%"> longstringlongstringlongstringlongstringlongstringlongstringlongstringlongstringlongstringlongstringlongstringlongstringlongstring </textarea> </td></tr></table> With a long string in the textarea, the textarea stretc...
This issue arises because Internet Explorer 7 handles the resizing of the `<textarea>` differently than other modern browsers. In IE7, the `<textarea>` expands to fit the content instead of respecting the specified width. To resolve this issue, you can use CSS to apply a fixed width to the `<textarea>`. Here are a cou...
2,839
[ { "from": "human", "value": "I have the following textarea in a table:\n<table width=\"300\"><tr><td>\n\n<textarea style=\"width:100%\">\nlongstringlongstringlongstringlongstringlongstringlongstringlongstringlongstringlongstringlongstringlongstringlongstringlongstring\n</textarea>\n\n</td></tr></table>\n\nW...
Anyone have a decent example, preferably practical/useful, they could post demonstrating the concept?
Absolutely! It would be helpful to know which concept you’re referring to. However, I can provide a practical example using a common concept in programming: **Object-Oriented Programming (OOP)**. ### Example: Simple Inventory Management System This example will demonstrate how to use OOP principles such as encapsulat...
2,179
[ { "from": "human", "value": "Anyone have a decent example, preferably practical/useful, they could post demonstrating the concept?\n" }, { "from": "gpt", "value": "Absolutely! It would be helpful to know which concept you’re referring to. However, I can provide a practical example using a common...
I'm in an environment with a lot of computers that haven't been properly inventoried. Basically, no one knows which IP goes with which mac address and which hostname. So I wrote the following: # This script goes down the entire IP range and attempts to # retrieve the Hostname and mac address and outputs them # into a f...
It seems like you're facing an issue with retrieving the hostname using `Socket.gethostbyname` for the IP addresses you're scanning. The method you're using is attempting to look up the hostname based on the IP address directly, but since these addresses might not be resolvable through the normal DNS mechanism, you mig...
2,569
[ { "from": "human", "value": "I'm in an environment with a lot of computers that haven't been\nproperly inventoried. Basically, no one knows which IP goes with which\nmac address and which hostname. So I wrote the following:\n# This script goes down the entire IP range and attempts to\n# retrieve the Hostnam...
I'm needing to access Excel workbooks from .Net. I know all about the different ways of doing it (I've written them up in a blog post), and I know that using a native .Net component is going to be the fastest. But the question is, which of the components wins? Has anybody benchmarked them? I've been using Syncfusion Xl...
There are several .NET libraries available for working with Excel files, and performance can vary based on the specific operations you need to perform. Here's a brief overview of some popular .NET libraries for Excel file manipulation: 1. **EPPlus**: This library is known for its ease of use and good performance when ...
2,749
[ { "from": "human", "value": "I'm needing to access Excel workbooks from .Net. I know all about the different ways of doing it (I've written them up in a blog post), and I know that using a native .Net component is going to be the fastest. But the question is, which of the components wins? Has anybody benchm...
In GWT I have to specify what locales are supported in my application. The code get compiled in various files, one for each locale (beside other versions), but I have to give my clients one only URL. This URL is supposed to be a page that should be displayed according to the locale preferred by the browser. I dont't wa...
In GWT (Google Web Toolkit), handling different locales based on the user's browser preferences is a common requirement. To achieve this without relying on HTTP parameters and using a single URL, you can implement a server-side solution that detects the locale from the incoming request and serves the appropriate GWT mo...
1,492
[ { "from": "human", "value": "In GWT I have to specify what locales are supported in my application. The code get compiled in various files, one for each locale (beside other versions), but I have to give my clients one only URL. This URL is supposed to be a page that should be displayed according to the loc...
I'm trying to write some PHP to upload a file to a folder on my webserver. Here's what I have: <?php if ( !empty($_FILES['file']['tmp_name']) ) { move_uploaded_file($_FILES['file']['tmp_name'], './' . $_FILES['file']['name']); header('Location: http://www.mywebsite.com/dump/'); exit; } ?...
The errors you are encountering indicate that there is a problem with permissions when trying to move the uploaded file to the destination directory. Here are a few steps you can take to troubleshoot and resolve these issues: 1. **Check File Permissions**: - On Windows, file permissions are different from UNIX-bas...
2,476
[ { "from": "human", "value": "I'm trying to write some PHP to upload a file to a folder on my webserver. Here's what I have:\n<?php\n if ( !empty($_FILES['file']['tmp_name']) ) {\n move_uploaded_file($_FILES['file']['tmp_name'], './' . $_FILES['file']['name']);\n header('Location: http://www...
I just started thinking about creating/customizing a web crawler today, and know very little about web crawler/robot etiquette. A majority of the writings on etiquette I've found seem old and awkward, so I'd like to get some current (and practical) insights from the web developer community. I want to use a crawler to ...
Creating a web crawler can indeed feel "iffy" at first, especially in a world where privacy, security, and web etiquette are critical. Here are some current and practical insights into web crawler etiquette, as well as considerations to keep in mind when developing your crawler: ### Acceptability 1. **Purpose and Tra...
2,910
[ { "from": "human", "value": "I just started thinking about creating/customizing a web crawler today, and know very little about web crawler/robot etiquette. A majority of the writings on etiquette I've found seem old and awkward, so I'd like to get some current (and practical) insights from the web develop...
How can I find what databases I have a minimum of read access to in either basic SQL, MySQL specific or in PHP?
To find out which databases you have at least read access to, you can use several approaches in SQL and PHP. Below are methods for both MySQL and general SQL. ### Method 1: Using SQL Commands in MySQL If you are using MySQL, you can check the databases you have access to by querying the `information_schema` database....
2,704
[ { "from": "human", "value": "How can I find what databases I have a minimum of read access to in either basic SQL, MySQL specific or in PHP?\n" }, { "from": "gpt", "value": "To find out which databases you have at least read access to, you can use several approaches in SQL and PHP. Below are met...
The RFC for a Java class is set of all methods that can be invoked in response to a message to an object of the class or by some method in the class. RFC = M + R where M = Number of methods in the class. R = Total number of other methods directly invoked from the M. Thinking C is the .class and J is the .java file of...
The calculation of RFC (Response for a Class) can indeed be challenging if you want to rely purely on regular expressions to parse Java source code. You've already identified some useful patterns for method calls, but there are a few more considerations and patterns to keep in mind. ### Additional Patterns for Method...
1,824
[ { "from": "human", "value": "The RFC for a Java class is set of all methods that can be invoked in response to a message to an object of the class or by some method in the class. \nRFC = M + R where \nM = Number of methods in the class.\nR = Total number of other methods directly invoked from the M.\nThinki...
I have class method that returns a list of employees that I can iterate through. What's the best way to return the list? Typically I just return an ArrayList. However, as I understand, interfaces are better suited for this type of action. Which would be the best interface to use? Also, why is it better to return an i...
Returning an interface instead of a specific implementation like `ArrayList` is generally considered a good practice in software design, especially in Java, for several reasons: 1. **Flexibility**: By returning an interface, you allow the caller to be agnostic about the specific implementation. If you decide later to ...
2,126
[ { "from": "human", "value": "I have class method that returns a list of employees that I can iterate through. What's the best way to return the list? Typically I just return an ArrayList. However, as I understand, interfaces are better suited for this type of action. Which would be the best interface to u...
I want to write a Swing application in Griffon but I am not sure what versions of Java I can support.
Griffon is a framework for building desktop applications on the JVM, and it supports multiple versions of Java. As of my last knowledge update in October 2023, Griffon typically supports Java versions from 8 onward, with specific versions being more prevalent depending on the Griffon version you are using. Here's a ge...
5,131
[ { "from": "human", "value": "I want to write a Swing application in Griffon but I am not sure what versions of Java I can support.\n" }, { "from": "gpt", "value": "Griffon is a framework for building desktop applications on the JVM, and it supports multiple versions of Java. As of my last knowle...
I'm going to guess that the answer is "no" based on the below error message (and this Google result), but is there anyway to perform a cross-database query using PostgreSQL? databaseA=# select * from databaseB.public.someTableName; ERROR: cross-database references are not implemented: "databaseB.public.someTableName"...
In PostgreSQL, you cannot perform direct cross-database queries. The error message you encountered confirms that cross-database references are not supported in PostgreSQL, meaning that you cannot access tables from another database directly within a SQL query. However, there are a few alternatives you can consider to ...
1,376
[ { "from": "human", "value": "I'm going to guess that the answer is \"no\" based on the below error message (and this Google result), but is there anyway to perform a cross-database query using PostgreSQL?\ndatabaseA=# select * from databaseB.public.someTableName;\nERROR: cross-database references are not i...
How do you scan a directory for folders and files in C? It needs to be cross-platform.
To create a cross-platform solution for scanning a directory for folders and files in C, you can use the following libraries: 1. **POSIX Standard (Unix-like systems)**: On Unix-like systems (Linux, macOS), you can use the `dirent.h` library. 2. **Windows API**: On Windows, you can use the `windows.h` library. To crea...
1,711
[ { "from": "human", "value": "How do you scan a directory for folders and files in C? It needs to be cross-platform.\n" }, { "from": "gpt", "value": "To create a cross-platform solution for scanning a directory for folders and files in C, you can use the following libraries:\n\n1. **POSIX Standar...
Does anyone know of a good method for editing PDFs in PHP? Preferably open-source/zero-license cost methods. :) I am thinking along the lines of opening a PDF file, replacing text in the PDF and then writing out the modified version of the PDF? On the front-end
Editing PDFs in PHP can be accomplished using several open-source libraries that allow you to manipulate PDF files, including replacing text. Here are some popular options: ### 1. **TCPDF** - **Description**: TCPDF is a powerful PHP library for generating PDF documents. However, it does not support editing existing PD...
2,879
[ { "from": "human", "value": "Does anyone know of a good method for editing PDFs in PHP? Preferably open-source/zero-license cost methods. :)\nI am thinking along the lines of opening a PDF file, replacing text in the PDF and then writing out the modified version of the PDF?\nOn the front-end\n" }, { ...
I'm using ASP.NET MVC Preview 4 and would like to know how to use the routing engine for form submissions. For example, I have a route like this: routes.MapRoute( "TestController-TestAction", "TestController.mvc/TestAction/{paramName}", new { controller = "TestController", action = "...
To achieve the desired URL format (i.e., `localhost/TestController.mvc/TestAction/value`), you need to implement a mechanism that allows the form submission to create a URL based on the parameters you want to include in the route. In ASP.NET MVC, standard form submissions typically generate query string parameters (lik...
2,344
[ { "from": "human", "value": "I'm using ASP.NET MVC Preview 4 and would like to know how to use the routing engine for form submissions.\nFor example, I have a route like this:\nroutes.MapRoute(\n \"TestController-TestAction\",\n \"TestController.mvc/TestAction/{paramName}\",\n ...
I have taken over the development of a web application that is targeted at the .net 1.0 framework and is written in C# and Visual Basic. I decided that the first thing we need to do is refine the build process, I wrote build files for the C# projects, but am having tons of problems creating a build file for Visual Bas...
When working with Visual Basic in an older version like VB.NET 1.0, you might encounter some challenges due to the language's requirements for imports and references in your build process, especially when using a tool like NAnt. While C# often allows for more flexibility in this area, Visual Basic typically requires mo...
1,253
[ { "from": "human", "value": "I have taken over the development of a web application that is targeted at the .net 1.0 framework and is written in C# and Visual Basic. \nI decided that the first thing we need to do is refine the build process, I wrote build files for the C# projects, but am having tons of pro...
Any good recommendations for a platform agnostic (i.e. Javascript) grid control/plugin that will accept pasted Excel data and can emit Excel-compliant clipboard data during a Copy? I believe Excel data is formatted as CSV during "normal" clipboard operations. dhtmlxGrid looks promising, but the online demo's don't act...
If you're looking for a platform-agnostic JavaScript grid control or plugin that supports pasting from Excel and copying data in a format compatible with Excel, there are several options to consider. Here are some recommendations that meet your requirements: 1. **AG Grid**: - **Description**: A powerful and flexibl...
2,386
[ { "from": "human", "value": "Any good recommendations for a platform agnostic (i.e. Javascript) grid control/plugin that will accept pasted Excel data and can emit Excel-compliant clipboard data during a Copy?\nI believe Excel data is formatted as CSV during \"normal\" clipboard operations.\n\ndhtmlxGrid lo...
Note: I am using SQL's Full-text search capabilities, CONTAINS clauses and all - the * is the wildcard in full-text, % is for LIKE clauses only. I've read in several places now that "leading wildcard" searches (e.g. using "*overflow" to match "stackoverflow") is not supported in MS SQL. I'm considering using a CLR fun...
You're correct that SQL Server's Full-Text Search does not support leading wildcard searches, meaning that you can't use the asterisk (`*`) at the beginning of the search term in a `CONTAINS` clause. However, there are several potential workarounds you can consider to achieve similar functionality: ### 1. Use `LIKE` C...
1,389
[ { "from": "human", "value": "Note: I am using SQL's Full-text search capabilities, CONTAINS clauses and all - the * is the wildcard in full-text, % is for LIKE clauses only.\nI've read in several places now that \"leading wildcard\" searches (e.g. using \"*overflow\" to match \"stackoverflow\") is not suppo...
I would like to have an iframe take as much vertical space as it needs to display its content and not display a scrollbar. Is it at all possible ? Are there any workarounds?
Making an iframe dynamically adjust its height based on its content can be a bit tricky, especially due to cross-origin issues and the inherent nature of iframes. However, there are several methods and workarounds that can be employed, depending on your specific use case. ### Method 1: Same-Origin Content If the cont...
1,166
[ { "from": "human", "value": "I would like to have an iframe take as much vertical space as it needs to display its content and not display a scrollbar. Is it at all possible ?\nAre there any workarounds?\n" }, { "from": "gpt", "value": "Making an iframe dynamically adjust its height based on its...
I've been using Subversion for a few years and after using SourceSafe, I just love Subversion. Combined with TortoiseSVN, I can't really imagine how it could be any better. Yet there's a growing number of developers claiming that Subversion has problems and that we should be moving to the new breed of distributed ve...
Both Subversion (SVN) and Git are popular version control systems, but they have different approaches and philosophies that cater to different development workflows. Here are some of the ways Git improves upon Subversion: 1. **Distributed Nature**: - **Git** is a distributed version control system, meaning every de...
3,090
[ { "from": "human", "value": "I've been using Subversion for a few years and after using SourceSafe, I just love Subversion. Combined with TortoiseSVN, I can't really imagine how it could be any better. \nYet there's a growing number of developers claiming that Subversion has problems and that we should be...
For some strange, bizarre reason, my images in my website just will not display on webkit based languages (such as safari and chrome). This is the image tag <img src="images/dukkah.jpg" class="imgleft"/> Not only does it not display in the website, it wont display when accessed directly at http://kilkin.massiveatom.co...
If your image is not displaying in webkit-based browsers (such as Safari and Chrome) and also cannot be accessed directly via the URL you provided, there are a few possible reasons to consider: ### 1. **File Path Issues** - Ensure that the file path is correct. Make sure that the image `dukkah.jpg` is actually loca...
3,341
[ { "from": "human", "value": "For some strange, bizarre reason, my images in my website just will not display on webkit based languages (such as safari and chrome).\nThis is the image tag\n<img src=\"images/dukkah.jpg\" class=\"imgleft\"/>\n\nNot only does it not display in the website, it wont display when ...
For those of us who use standard shared hosting packages, such as GoDaddy or Network Solutions, how do you handle datetime conversions when your hosting server (PHP) and MySQL server are in different time zones? Also, does anybody have some best practice advice for determining what time zone a visitor to your site is i...
Handling datetime conversions when your hosting server (PHP) and MySQL server are in different time zones can be a bit tricky, but there are best practices to make this process smoother. Here's how you can manage it effectively: ### 1. Use UTC as the Default Time Zone The best practice is to store all your timestamps...
605
[ { "from": "human", "value": "For those of us who use standard shared hosting packages, such as GoDaddy or Network Solutions, how do you handle datetime conversions when your hosting server (PHP) and MySQL server are in different time zones?\nAlso, does anybody have some best practice advice for determining ...
I've got a new varchar(10) field in a database with 1000+ records. I'd like to update the table so I can have random data in the field. I'm looking for a SQL solution. I know I can use a cursor, but that seems inelegant. MS-SQL 2000,BTW
You can achieve this without using a cursor by utilizing the `NEWID()` function to generate random values. The `NEWID()` function generates a uniqueidentifier, which you can then convert to a string of your desired length. Since you're using SQL Server 2000, you can run an `UPDATE` statement to set your `varchar(10)` ...
3,836
[ { "from": "human", "value": "I've got a new varchar(10) field in a database with 1000+ records. I'd like to update the table so I can have random data in the field. I'm looking for a SQL solution.\nI know I can use a cursor, but that seems inelegant.\nMS-SQL 2000,BTW\n" }, { "from": "gpt", "va...
On my Windows XP machine Visual Studio 2003 2005 and 2008 all complain that I cannot start debugging my web application because I must either be a member of the Debug Users group or of the Administrators group. So, I am an Administrator and I added Debug Users just in case, and it still complains. Short of reformatting...
The issue you're encountering is related to Windows XP's security model, particularly the way it handles permissions for debugging web applications. Here are several steps you can take to resolve the problem without needing to reformat your machine: 1. **Verify User Group Membership**: Ensure that your user account is...
2,758
[ { "from": "human", "value": "On my Windows XP machine Visual Studio 2003 2005 and 2008 all complain that I cannot start debugging my web application because I must either be a member of the Debug Users group or of the Administrators group. So, I am an Administrator and I added Debug Users just in case, and ...
I've only done a bit of Flex development thus far, but I've preferred the approach of creating controls programmatically over mxml files, because (and please, correct me if I'm wrong!) I've gathered that you can't have it both ways -- that is to say, have the class functionality in a separate ActionScript class file bu...
You're correct that in Flex, you can create components either through MXML or programmatically in ActionScript. Both approaches have their merits, and it's often a matter of preference or project requirements. When it comes to data binding in ActionScript, you can indeed use a programmatic approach without facing too ...
2,023
[ { "from": "human", "value": "I've only done a bit of Flex development thus far, but I've preferred the approach of creating controls programmatically over mxml files, because (and please, correct me if I'm wrong!) I've gathered that you can't have it both ways -- that is to say, have the class functionality...
I have a basic form with controls that are databound to an object implementing the INotifyPropertyChanged interface. I would like to add some validation to a couple of properties but dont want to go through implementing IDataErrorInfo for the sake of validating a couple of properties. I have created the functions that...
To perform validation after the data binding has updated the underlying object properties, you can utilize the `Binding` class's `BindingComplete` event. This event occurs after a binding operation is completed, which means the property has already been updated with the value from the control. Here's a quick overview...
1,891
[ { "from": "human", "value": "I have a basic form with controls that are databound to an object implementing the INotifyPropertyChanged interface. I would like to add some validation to a couple of properties but dont want to go through implementing IDataErrorInfo for the sake of validating a couple of prop...
Within c#, I need to be able to Connect to a remote system, specifying username/password as appropriate List the members of a localgroup on that system Fetch the results back to the executing computer So for example I would connect to \SOMESYSTEM with appropriate creds, and fetch back a list of local administrators i...
To connect to a remote Windows system, list the members of a local group, and fetch the results back using C#, you might want to use the Windows Management Instrumentation (WMI) service or invoke PowerShell scripts through the `System.Management.Automation` namespace. WMI will allow you to execute remote commands witho...
996
[ { "from": "human", "value": "Within c#, I need to be able to\n\nConnect to a remote system, specifying username/password as appropriate\nList the members of a localgroup on that system\nFetch the results back to the executing computer\n\nSo for example I would connect to \\SOMESYSTEM with appropriate creds,...
I'm using ColdFusion to populate a template that includes HTML unordered lists (<ul>s). Most of these aren't that long, but a few have ridiculously long lengths and could really stand to be in 2-3 columns. Is there an HTML, ColdFusion or perhaps JavaScript (I'm accepting jQuery solutions) way to do this easily? It's n...
Certainly! You can achieve a multi-column layout for long unordered lists using a combination of CSS and possibly some JavaScript or jQuery for dynamic responsiveness. Below are a couple of approaches you can take. ### CSS Flexbox Approach You can use CSS Flexbox to create a responsive multi-column layout easily. Her...
1,620
[ { "from": "human", "value": "I'm using ColdFusion to populate a template that includes HTML unordered lists (<ul>s).\nMost of these aren't that long, but a few have ridiculously long lengths and could really stand to be in 2-3 columns.\nIs there an HTML, ColdFusion or perhaps JavaScript (I'm accepting jQuer...
When I create a new project (or even when I edit the Sample Project) there is no way to add Description to the project. Or am I blind to the obvious?
It sounds like you're trying to add a description to a project in a specific application or software, but you're having difficulty finding the option to do so. The ability to add a description can vary depending on the software or platform you're using. Here are a few general suggestions: 1. **Check Project Settings**...
4,796
[ { "from": "human", "value": "When I create a new project (or even when I edit the Sample Project) there is no way to add Description to the project.\nOr am I blind to the obvious?\n" }, { "from": "gpt", "value": "It sounds like you're trying to add a description to a project in a specific applic...
I'd like to script FlexBuilder so that I can run debug or profile without having to switch to FlexBuilder and manually clicking the button (or using the key combo). Is this possible without writing an extension? To be more specific, this is exactly what I want to do: I want to create a TextMate command that talks to Fl...
Creating a TextMate command that triggers a specific action in FlexBuilder (Adobe Flex Builder) without writing an extension can be quite challenging since FlexBuilder does not have built-in support for external scripting or automation. However, there are a few approaches you might consider to achieve similar results: ...
3,649
[ { "from": "human", "value": "I'd like to script FlexBuilder so that I can run debug or profile without having to switch to FlexBuilder and manually clicking the button (or using the key combo). Is this possible without writing an extension?\nTo be more specific, this is exactly what I want to do: I want to ...
Let's say that we have an ARGB color: Color argb = Color.FromARGB(127, 69, 12, 255); //Light Urple. When this is painted on top of an existing color, the colors will blend. So when it is blended with white, the resulting color is Color.FromARGB(255, 162, 133, 255); The solution should work like this: Color blend = Col...
To blend two colors (the ARGB color and the background color), you can implement the `ToRGB` function using the alpha compositing formula. The key to this implementation is understanding how the alpha value affects the blending process. The formula for alpha blending is as follows: 1. Convert the colors from ARGB to ...
2,490
[ { "from": "human", "value": "Let's say that we have an ARGB color:\nColor argb = Color.FromARGB(127, 69, 12, 255); //Light Urple.\n\nWhen this is painted on top of an existing color, the colors will blend. So when it is blended with white, the resulting color is Color.FromARGB(255, 162, 133, 255);\nThe solu...
I'm looking to create favicon.ico files programatically from Python, but PIL only has support for reading ico files.
Creating a `.ico` file programmatically in Python can be achieved by using the Python Imaging Library (PIL), specifically its fork, Pillow. While you mentioned that Pillow only supports reading `.ico` files, it does support writing images in various formats, including creating `.ico` files from scratch. Here is a ste...
2,140
[ { "from": "human", "value": "I'm looking to create favicon.ico files programatically from Python, but PIL only has support for reading ico files.\n" }, { "from": "gpt", "value": "Creating a `.ico` file programmatically in Python can be achieved by using the Python Imaging Library (PIL), specific...
This seems like odd behaviour from SQL's full-text-index. FTI stores number in its index with an "NN" prefix, so "123" is saved as "NN123". Now when a user searches for words beginning with N (i.e. contains "n*" ) they also get all numbers. So: select [TextField] from [MyTable] where contains([TextField], '"n*"') Re...
This behavior in SQL Server's full-text indexing is indeed a known peculiarity when using wildcard searches, especially regarding how numbers are indexed. The "NN" prefix for numeric values causes them to be matched unintentionally when searching for words beginning with "N". To address this issue, you want to exclude ...
2,004
[ { "from": "human", "value": "This seems like odd behaviour from SQL's full-text-index.\nFTI stores number in its index with an \"NN\" prefix, so \"123\" is saved as \"NN123\".\nNow when a user searches for words beginning with N (i.e. contains \"n*\" ) they also get all numbers.\nSo:\nselect [TextField]\nfr...
I have a method that where I want to redirect the user back to a login page located at the root of my web application. I'm using the following code: Response.Redirect("~/Login.aspx?ReturnPath=" + Request.Url.ToString()); This doesn't work though. My assumption was that ASP.NET would automatically resolve the URL into...
The code you provided should actually work for redirecting to the Login page from anywhere in the application using the `~` operator to represent the root of the application. However, if it's not functioning as expected, there are a few things to consider. 1. **Ensure the Login page exists**: Double-check that `Login....
3,671
[ { "from": "human", "value": "I have a method that where I want to redirect the user back to a login page located at the root of my web application.\nI'm using the following code:\nResponse.Redirect(\"~/Login.aspx?ReturnPath=\" + Request.Url.ToString());\n\nThis doesn't work though. My assumption was that A...
I know I must be missing something, but in a while statement how does the variable hold the data, when it finishes the first pass and goes into the second pass? { int num1 = 0 ; int num2 = 0; int num3 = 0; while (num1 < 10) {cout << "enter your first number: "; cin >> num1; cout << "Enter your second number: "...
The issue you're encountering is related to the condition that controls your `while` loop. Let's analyze your code step-by-step: ```cpp #include <iostream> using namespace std; int main() { int num1 = 0; int num2 = 0; int num3 = 0; while (num1 < 10) { cout << "Enter your first number: "; ...
376
[ { "from": "human", "value": "I know I must be missing something, but in a while statement how does the variable hold the data, when it finishes the first pass and goes into the second pass?\n\n{\nint num1 = 0 ;\nint num2 = 0;\nint num3 = 0;\n\nwhile (num1 < 10) \n\n{cout << \"enter your first number: \";...
Is it possible to configure Visual Studio 2008 to automatically remove whitespace characters at the end of each line when saving a file? There doesn't seem to be a built-in option, so are there any extensions available to do this?
Visual Studio 2008 does not have a built-in feature to automatically remove whitespace at the end of each line when saving a file. However, you can achieve this functionality by using an extension or by manually configuring a macro. ### Using Extensions Although Visual Studio 2008 has limited support for modern extens...
3,126
[ { "from": "human", "value": "Is it possible to configure Visual Studio 2008 to automatically remove whitespace characters at the end of each line when saving a file? There doesn't seem to be a built-in option, so are there any extensions available to do this?\n" }, { "from": "gpt", "value": "Vis...
any idea how if the following is possible in PHP as a single line ?: <?php $firstElement = functionThatReturnsAnArray()[0]; ... It doesn't seem to 'take'. I need to do this as a 2-stepper: <?php $allElements = functionThatReturnsAnArray(); $firstElement = $allElements[0]; ... just curious - other languages I play wit...
In PHP, you can indeed achieve this in a single line using the array access syntax directly on the return value of the function. The problem you're facing might not be about the syntax itself but rather how PHP handles function calls and array access. Here's how you can do it in one line: ```php $firstElement = (func...
4,984
[ { "from": "human", "value": "any idea how if the following is possible in PHP as a single line ?:\n<?php\n$firstElement = functionThatReturnsAnArray()[0];\n\n... It doesn't seem to 'take'. I need to do this as a 2-stepper:\n<?php\n$allElements = functionThatReturnsAnArray();\n$firstElement = $allElements[0]...
The system I am currently working on requires some role-based security, which is well catered for in the Java EE stack. The system intends to be a framework for business domain experts to write their code on top of. However, there is also a requirement for data security. That is, what information is visible to an end u...
Implementing role-based security and data visibility constraints (row and column-level security) in a Hibernate-based application can be quite challenging but can be approached systematically. Below are some strategies for implementing both row-based and column-based security, as well as considerations for caching and ...
1,162
[ { "from": "human", "value": "The system I am currently working on requires some role-based security, which is well catered for in the Java EE stack. The system intends to be a framework for business domain experts to write their code on top of.\nHowever, there is also a requirement for data security. That i...
I'm currently creating an explicit reference to this in the outer class so that I have a name to refer to in the anonymous inner class. Is there a better way to do this?
Using an explicit reference to the outer class in an anonymous inner class is a common practice in Java, especially when you want to access instance variables or methods of the outer class. However, there might be simpler ways to achieve your goal, depending on what you want to accomplish. ### 1. Using `OuterClassName...
3,646
[ { "from": "human", "value": "I'm currently creating an explicit reference to this in the outer class so that I have a name to refer to in the anonymous inner class. Is there a better way to do this?\n" }, { "from": "gpt", "value": "Using an explicit reference to the outer class in an anonymous ...
I've been wanting to teach myself Lisp for a while. However, all the interpreters of which I've heard involve some flavor of emacs. Are there any command line interpreters, such that I could type this into the command line: lispinterpret sourcefile.lisp just like I can run perl or python. While I'd also like to beco...
Certainly! If you're looking to learn Scheme and follow the Structure and Interpretation of Computer Programs (SICP), there are several command-line interpreters you can use without requiring Emacs. Here are some popular ones that you can easily run from the command line: 1. **Racket**: Racket is a popular Scheme dial...
2,531
[ { "from": "human", "value": "I've been wanting to teach myself Lisp for a while. However, all the interpreters of which I've heard involve some flavor of emacs.\nAre there any command line interpreters, such that I could type this into the command line:\n\nlispinterpret sourcefile.lisp\n\njust like I can r...
Does anyone know how to debug JSP in IntelliJ IDEA? When I set breakpoint in my JSP files, those breakpoints never seem to take effect. The debugger never hits them. IDEA seems to think that the breakpoints are valid. I do see a red dot placed to the left of the line where I place my breakpoint. I read in IntelliJ foru...
Debugging JSP files in IntelliJ IDEA can sometimes be tricky due to the way JSP files are compiled and served by the web server. Here are some steps and considerations that might help you debug JSP files effectively in IntelliJ: ### 1. Project Structure - **Location of JSP files**: Typically, JSP files should be place...
1,345
[ { "from": "human", "value": "Does anyone know how to debug JSP in IntelliJ IDEA?\nWhen I set breakpoint in my JSP files, those breakpoints never seem to take effect. The debugger never hits them. IDEA seems to think that the breakpoints are valid. I do see a red dot placed to the left of the line where I pl...