instruction
stringlengths
14
27.6k
completion
stringlengths
3
38.3k
__original_row_idx
int64
0
50k
conversations
listlengths
2
2
I'm developing a kind of an exchange format between instances of an application so that user could save information to file and restore it later. The whole 'exchange format' is a single class that gets serialized and written to disk. How would you suggest to store graphical/sound information inside that class? I'd like...
When designing an exchange format for your application that includes graphical or sound information, you have several options to consider that would allow you to keep your application lightweight and flexible while avoiding the direct embedding of large media files within a JAR. Here are some suggestions: ### 1. **Use...
31,606
[ { "from": "human", "value": "I'm developing a kind of an exchange format between instances of an application so that user could save information to file and restore it later. The whole 'exchange format' is a single class that gets serialized and written to disk.\nHow would you suggest to store graphical/sou...
that's it isn't there a way to see the raw text file that my browser sends to a website when I do a POST method? something like: POST /path/script.cgi HTTP/1.0 From: frog@jmarshall.com User-Agent: HTTPTool/1.0 Content-Type: application/x-www-form-urlencoded Content-Length: 32 home=Cosby&favorite+flavor=flies Thanks!...
Yes, you can see the raw text that your browser sends to a website when performing a POST request. Here are a few methods to do this: ### 1. Using Developer Tools in Your Browser Most modern browsers come with built-in developer tools that allow you to inspect network requests, including POST requests. Here’s how to ...
29,937
[ { "from": "human", "value": "that's it\nisn't there a way to see the raw text file that my browser sends to a website when I do a POST method?\nsomething like:\n\nPOST /path/script.cgi HTTP/1.0 \nFrom: frog@jmarshall.com\nUser-Agent: HTTPTool/1.0\nContent-Type: application/x-www-form-urlencoded\nContent-Len...
When I use `gqap' command to reflow a paragraph in vim, vim seems to try to be smart and adds indentation automatically, e.g. When a line ends with a ',': We protect your rights with two steps: (1) copyright the software, and (2), offer you this license which gives you legal permission to copy, distribute and/...
In Vim, when you use the `gqap` command to reflow a paragraph, Vim automatically handles indentation based on its built-in formatting rules, which can sometimes lead to unexpected results, especially in the cases you described. To prevent Vim from automatically adding indentation when reformatting text, you can adjust...
35,251
[ { "from": "human", "value": "When I use `gqap' command to reflow a paragraph in vim, vim seems to try to be smart and adds indentation automatically, e.g.\n\nWhen a line ends with a ',':\n\n\nWe protect your rights with two steps: (1) copyright the software, and (2),\n offer you this license which gives y...
How would you design a content voting mechanism that could be applied polymorphically to multiple models / classes. (in a ruby on rails context preferably, but others are fine) Given that instances of these classes can be voted on: - Article - Question - Product Voters should not be required to register. Best effort sh...
To design a content voting mechanism that can be applied polymorphically to multiple models (like `Article`, `Question`, and `Product`) in a Ruby on Rails context, we can follow a few steps. We'll use polymorphic associations, cookies, and potentially IP detection to manage the voting. ### Step 1: Set Up Your Models ...
30,039
[ { "from": "human", "value": "How would you design a content voting mechanism that could be applied polymorphically to multiple models / classes. (in a ruby on rails context preferably, but others are fine)\nGiven that instances of these classes can be voted on:\n- Article\n- Question\n- Product\nVoters shou...
Our Windows Forms application by default saves data files in a user's 'My Documents' folder (on XP) or 'Documents' folder (on Vista). We look up this location by calling: Environment.GetFolderPath( Environment.SpecialFolder.Personal ) We know for sure this works great for users whose personal folder is on a local disk...
The `Environment.GetFolderPath(Environment.SpecialFolder.Personal)` call retrieves the path to the user's "My Documents" folder (or "Documents" folder, depending on the version of Windows) based on the user's profile settings. When Folder Redirection is in effect for a user profile, Windows updates the user profile's f...
33,752
[ { "from": "human", "value": "Our Windows Forms application by default saves data files in a user's 'My Documents' folder (on XP) or 'Documents' folder (on Vista). We look up this location by calling:\nEnvironment.GetFolderPath( Environment.SpecialFolder.Personal )\n\nWe know for sure this works great for us...
Does anybody know which JSF version is most suitable to use when deploying to SunOne 6.1 SP2 Webserver? More important where I can find that type of information? Thanks, Alejo
When deploying JavaServer Faces (JSF) applications, compatibility with the server environment is crucial. Sun ONE Application Server 6.1 (also known as Sun Java System Application Server 6.1) is quite an old server, and it typically supports Java EE 1.4. Given this, the most suitable version of JSF for your needs would...
32,356
[ { "from": "human", "value": "Does anybody know which JSF version is most suitable to use when deploying to SunOne 6.1 SP2 Webserver?\nMore important where I can find that type of information?\nThanks,\nAlejo\n" }, { "from": "gpt", "value": "When deploying JavaServer Faces (JSF) applications, com...
For some reason sql server 2008 is not allowing me to add columns to an existing table. The table is empty btw. Is there a setting that prevents modifying tables in sql 2008?
In SQL Server 2008, there are no inherent settings that would prevent you from modifying a table, such as adding columns, particularly if the table is empty. However, there could be a few reasons why you are experiencing issues when trying to add columns to an existing table. Here are some potential reasons and solutio...
34,490
[ { "from": "human", "value": "For some reason sql server 2008 is not allowing me to add columns to an existing table.\nThe table is empty btw.\nIs there a setting that prevents modifying tables in sql 2008?\n" }, { "from": "gpt", "value": "In SQL Server 2008, there are no inherent settings that w...
In the past people used to wrap HTML comment tags around blocks of JavaScript in order to prevent "older" browsers from displaying the script. Even Lynx is smart enough to ignore JavaScript, so why do some people keep doing this? Are there any valid reasons these days? <script type="text/javascript"> <!-- //some js cod...
The practice of wrapping JavaScript code in HTML comment tags (like `<!--` and `//-->`) was indeed a workaround that originated during the early days of web development when some older browsers did not support JavaScript or could display it as plain text. ### Reasons Some People Might Still Use This Technique Today: ...
33,269
[ { "from": "human", "value": "In the past people used to wrap HTML comment tags around blocks of JavaScript in order to prevent \"older\" browsers from displaying the script. Even Lynx is smart enough to ignore JavaScript, so why do some people keep doing this? Are there any valid reasons these days?\n<scrip...
I have a Bluehost account where I can run Python scripts as CGI. I guess it's the simplest CGI, because to run I have to define the following in .htaccess: Options +ExecCGI AddType text/html py AddHandler cgi-script .py Now, whenever I look up web programming with Python, I hear a lot about WSGI and how most framework...
Understanding how CGI, WSGI, and web frameworks like web.py or CherryPy fit together is key to running Python web applications on shared hosting environments like Bluehost. ### CGI (Common Gateway Interface) 1. **CGI Basics**: CGI is an older standard that allows web servers to execute scripts (like Python scripts) a...
27,095
[ { "from": "human", "value": "I have a Bluehost account where I can run Python scripts as CGI. I guess it's the simplest CGI, because to run I have to define the following in .htaccess:\nOptions +ExecCGI\nAddType text/html py\nAddHandler cgi-script .py\n\nNow, whenever I look up web programming with Python, ...
I'm using the CDO.Message class to create and send an email from a Visual FoxPro application. I've tested that it works while the user is connected to the internet, and it even seems to work when I send while disconnected from the network, it simply gets sent when the client gets reconnected. One issue I have with th...
The CDO.Message class, which stands for Collaboration Data Objects, is a Microsoft API that allows for the creation and management of emails, among other functionalities. When you use the `.Send()` method on a `CDO.Message` instance, here's what happens in terms of email handling, especially concerning offline scenario...
33,893
[ { "from": "human", "value": "I'm using the CDO.Message class to create and send an email from a Visual FoxPro application. I've tested that it works while the user is connected to the internet, and it even seems to work when I send while disconnected from the network, it simply gets sent when the client ge...
I'm porting an application from php to fastcgi (c). My host runs apache. Since the fastcgi app would be running in a loop, I could open a mysql connection, and leave it open for all incoming requests. Is this recommended? I think I've read about an equal number of opinions saying the connection is way more expensive th...
When it comes to managing MySQL connections in a FastCGI application running on Apache, you have a few important factors to consider, particularly concerning performance, resource management, and best practices. Here's a breakdown of your options: ### Option 1: Persistent Connections - **Pros**: - **Performance**: O...
33,007
[ { "from": "human", "value": "I'm porting an application from php to fastcgi (c). My host runs apache.\nSince the fastcgi app would be running in a loop, I could open a mysql connection, and leave it open for all incoming requests. Is this recommended?\nI think I've read about an equal number of opinions say...
IMHO Radio buttons should retire. The ComboBox (Drop-Down list mode) should always be preferred.Drop-Down list takes minimal screen space, and you can add/remove items programmatically.No need to resize anything (hard), or disable irrelevant options (ugly). Can you think of a situation when a Radio button is still use...
While ComboBoxes (Drop-Down lists) do offer advantages in terms of screen space and flexibility, there are still scenarios where radio buttons can be particularly useful. Here are a few situations where radio buttons may be the preferred choice: 1. **Mutual Exclusivity**: Radio buttons are inherently designed for mutu...
32,688
[ { "from": "human", "value": "IMHO Radio buttons should retire. The ComboBox (Drop-Down list mode) should always be preferred.Drop-Down list takes minimal screen space, and you can add/remove items programmatically.No need to resize anything (hard), or disable irrelevant options (ugly).\nCan you think of a ...
As a side project, I am looking at creating a personal finance program. I have tried using Money and Excel to keep track of my finances but have either been unhappy with the stability or lack of features. My question is this, what tools have you used to keep track of your personal finances? Here are some requirement...
Creating a personal finance program can be a rewarding project, and using Python is a great choice given its flexibility and the variety of libraries available for data handling and financial management. Below are some suggestions and considerations to help you in your journey: ### Tools for Personal Finance Managemen...
32,053
[ { "from": "human", "value": "As a side project, I am looking at creating a personal finance program. I have tried using Money and Excel to keep track of my finances but have either been unhappy with the stability or lack of features. My question is this, what tools have you used to keep track of your pers...
This article on Microsoft's tech net site supplies an exe that will calculate your windows machine's minimum time resolution - this should be the smallest "tick" available to any application on that machine: http://technet.microsoft.com/en-us/sysinternals/bb897568.aspx The result of running this app on my current box i...
The discrepancy you're observing regarding the time resolution across different applications (like Internet Explorer and Google Chrome) is due to how they handle timing and the underlying mechanisms they utilize to measure time. ### How Applications Get Finer Time Resolutions 1. **High-Resolution Timers**: Windows pr...
25,486
[ { "from": "human", "value": "This article on Microsoft's tech net site supplies an exe that will calculate your windows machine's minimum time resolution - this should be the smallest \"tick\" available to any application on that machine:\nhttp://technet.microsoft.com/en-us/sysinternals/bb897568.aspx\nThe r...
I have created a common library at work, and it is installed in the GAC on our test server. I've recently updated it and I want all of our applications to be using the update. I created a publisher policy assembly and installed it in the GAC along with the update, but when a web app loads Leggett.Common, 1.0.0.0, it is...
It sounds like you're on the right track, but there are a few things to consider and check regarding the publisher policy and its effect on your application, especially when testing it locally: 1. **Ensure the Correct Public Key Token**: The publicKeyToken you specified in the publisher policy XML should match the...
30,978
[ { "from": "human", "value": "I have created a common library at work, and it is installed in the GAC on our test server. I've recently updated it and I want all of our applications to be using the update. I created a publisher policy assembly and installed it in the GAC along with the update, but when a web...
Is there a way to find the size of a file object that is currently open? Specifically, I am working with the tarfile module to create tarfiles, but I don't want my tarfile to exceed a certain size. As far as I know, tarfile objects are file-like objects, so I imagine a generic solution would work.
Yes, in Python, you can determine the size of a file-like object that is currently open by using the `tell()` method of the file-like object. This method returns the current position of the file pointer, which is effectively the size of the data written so far if you are writing to the file. For a `tarfile` object, whi...
35,014
[ { "from": "human", "value": "Is there a way to find the size of a file object that is currently open?\nSpecifically, I am working with the tarfile module to create tarfiles, but I don't want my tarfile to exceed a certain size. As far as I know, tarfile objects are file-like objects, so I imagine a generic...
Is there a fairly easy way to convert a datetime object into an RFC 1123 (HTTP/1.1) date/time string, i.e. a string with the format Sun, 06 Nov 1994 08:49:37 GMT Using strftime does not work, since the strings are locale-dependant. Do I have to build the string by hand?
You can convert a `datetime` object to an RFC 1123 formatted string without manually building the string by using the `strftime` method in combination with the `datetime` module in Python. While you correctly pointed out that `strftime` can be affected by the system locale, you can ensure you get the correct format by ...
34,324
[ { "from": "human", "value": "Is there a fairly easy way to convert a datetime object into an RFC 1123 (HTTP/1.1) date/time string, i.e. a string with the format\nSun, 06 Nov 1994 08:49:37 GMT\n\nUsing strftime does not work, since the strings are locale-dependant. Do I have to build the string by hand?\n" ...
Other than using raw XML, is there an easy way in .NET to open and read a config file belonging to another assembly...? I don't need to write to it, just grab a couple of values from it.
Yes, in .NET, if you want to read a configuration file (like `app.config` or `web.config`) from another assembly, you can use the `ConfigurationManager` class, which is part of the `System.Configuration` namespace. Here's a general approach to read the configuration settings from another assembly: 1. **Ensure the Co...
26,538
[ { "from": "human", "value": "Other than using raw XML, is there an easy way in .NET to open and read a config file belonging to another assembly...? I don't need to write to it, just grab a couple of values from it.\n" }, { "from": "gpt", "value": "Yes, in .NET, if you want to read a configurat...
I'd like to do something like this raiserror(concat('Error in case @isFishy =', @isFishy, ' @isSmarmy=', @isSmarmy, ' @isTasty = ', @isTasty), 10, 1) --or raiserror('Error in case @isFishy =' + @isFishy + ' @isSmarmy=' + @isSmarmy + ' @isTasty = ' + @isTasty, 10, 1) But it just isn't working. How do I accomplish th...
In SQL Server, when you want to concatenate strings and variables together to raise an error message using `RAISEERROR`, you need to ensure that all components you are concatenating are of type `varchar` or `nvarchar`. In your case, if `@isFishy`, `@isSmarmy`, and `@isTasty` are not already of the appropriate string ...
33,182
[ { "from": "human", "value": "I'd like to do something like this\n\nraiserror(concat('Error in case @isFishy =', @isFishy, ' @isSmarmy=', @isSmarmy, ' @isTasty = ', @isTasty), 10, 1)\n--or\nraiserror('Error in case @isFishy =' + @isFishy + ' @isSmarmy=' + @isSmarmy + ' @isTasty = ' + @isTasty, 10, 1)\n\n\nBu...
ok so my issue is i have the string '\222\222\223\225' which is stored as latin-1 in the db. What I get from django (by printing it) is the following string, 'ââââ¢' which I assume is the UTF conversion of it. Now I need to pass the string into a function that does this operation: strdecryptedPassword + chr(ord(c) ...
It looks like you're dealing with a string that has gone through multiple encodings and may not be in a form that your function can process properly. Let's break down the situation and try to resolve the issue step by step. ### Understanding the Problem 1. **Original String**: You have a string that appears as `'\222...
31,012
[ { "from": "human", "value": "ok so my issue is i have the string '\\222\\222\\223\\225' which is stored as latin-1 in the db. What I get from django (by printing it) is the following string, 'ââââ¢' which I assume is the UTF conversion of it. Now I need to pass the string into a function that \ndoes this ...
I would like to utilize the ASP.NET AJAX Page Methods functionality with a user control. Is there a way to be able to specify my static [WebMethod] inside the UserControl's code behind instead of the Page's code behind?
Yes, it is possible to use ASP.NET AJAX Page Methods with a user control. Although Page Methods are typically defined in a page's code-behind file, you can create a static method in a user control and expose it as a WebMethod. However, you need to make some adjustments to ensure it works properly. Here's how you can a...
26,433
[ { "from": "human", "value": "I would like to utilize the ASP.NET AJAX Page Methods functionality with a user control. Is there a way to be able to specify my static [WebMethod] inside the UserControl's code behind instead of the Page's code behind? \n" }, { "from": "gpt", "value": "Yes, it is po...
If I have a printer hooked directly to a pc (a kiosk with a printer), how would I go about creating the ability for a web page (.net web app) to print a jpg to the kiosks printer with no user intervention other than clicking a button on the page?
To enable a web page in a .NET web application to print a JPG image directly to a printer without user intervention (other than clicking a button), you will need to use a combination of server-side and client-side technologies. However, directly sending print jobs from a web browser to a printer without user interactio...
29,124
[ { "from": "human", "value": "If I have a printer hooked directly to a pc (a kiosk with a printer), how would I go about creating the ability for a web page (.net web app) to print a jpg to the kiosks printer with no user intervention other than clicking a button on the page?\n" }, { "from": "gpt", ...
What is the state generating Excel documents from a PHP application on a Linux server? I am interesting in creating Office 97 (xls) Excel files. My limited research on the subject has turned up this Pear package. It appears to be in beta status since 2006. Can you share your success or failures in generating Excel fi...
Generating Excel files from a PHP application on a Linux server can be accomplished using several libraries, including the ability to create Office 97 (XLS) files. While the PEAR package you've found may be an option, there are other libraries that are more mature and widely used in the PHP community. Here are some rec...
32,695
[ { "from": "human", "value": "What is the state generating Excel documents from a PHP application on a Linux server?\nI am interesting in creating Office 97 (xls) Excel files. My limited research on the subject has turned up this Pear package. It appears to be in beta status since 2006.\nCan you share your...
I have the following code which will ping a typical anonymous website without a problem but I receive either an unauthorized error or forbidden. Here is the code that's giving me the forbidden error. using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.W...
The "forbidden" error when trying to ping a SharePoint site indicates that the request is not authorized to access the resource. Even if the SharePoint site is configured for anonymous access, there are a few potential reasons you may still be encountering this issue. Here are several things to consider and ways to tro...
28,655
[ { "from": "human", "value": "I have the following code which will ping a typical anonymous website without a problem but I receive either an unauthorized error or forbidden. Here is the code that's giving me the forbidden error.\nusing System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing Sy...
So the question is how to distribute/offload the media files from Wordpress posts across multiple domains. The reasoning being to overcome this limitation: "Most browser will only make 2 simultaneous requests to a server, so if you page requires 16 files they will be requested 2 at a time." In relation to: http://code...
To distribute or offload media files from WordPress posts across multiple domains, you can implement a solution that changes the base URL of your media files. Here are some general approaches to achieve this without relying on specific plugins like SteadyOffloading or the Amazon S3 plugin: ### 1. **Using Custom Fields...
27,193
[ { "from": "human", "value": "So the question is how to distribute/offload the media files from Wordpress posts across multiple domains. \nThe reasoning being to overcome this limitation:\n\"Most browser will only make 2 simultaneous requests to a server, so if you page requires 16 files they will be request...
I have a full text catalog with two tables in it. tableA has 4 columns (a1, a2, a3, a4) of which 3 are indexed in the catalog, a2,a3,a4. a1 is the primary key. tableB has 3 columns (b1, b2, b3, b4), two of which are indexed in the catalog, b3 and b4. b1 is the PK of this table, b2 is the FK to tableA. I want to do some...
When working with full-text search in SQL Server using the `FREETEXTTABLE` function, it's important to ensure that the query structure allows for the correct joins and that you properly reference the keys and ranks from the full-text search results. Your issue seems to stem from the structure of the query, particularly...
29,611
[ { "from": "human", "value": "I have a full text catalog with two tables in it.\ntableA has 4 columns (a1, a2, a3, a4) of which 3 are indexed in the catalog, a2,a3,a4.\na1 is the primary key.\ntableB has 3 columns (b1, b2, b3, b4), two of which are indexed in the catalog, b3 and b4. b1 is the PK of this tabl...
Is there a way to select which TestMethods you want to execute in Visual Studio 2008 Unit Test project while debugging? I want to debug one particular test without having my other TestMethods execute during each debug session.
In Visual Studio 2008, you can selectively debug a specific test method in your unit test project by using the following steps: 1. **Run the Test Explorer**: Open the Test View by navigating to `Test` in the menu and selecting `Windows` > `Test View`. This will show you a list of all your test methods. 2. **Select a ...
32,527
[ { "from": "human", "value": "Is there a way to select which TestMethods you want to execute in Visual Studio 2008 Unit Test project while debugging? I want to debug one particular test without having my other TestMethods execute during each debug session.\n" }, { "from": "gpt", "value": "In Vis...
This code: public class WidgetPlatform { public Widget LeftmostWidget { get; set; } public Widget RightmostWidget { get; set; } public String GetWidgetNames() { return LeftmostWidget.Name + " " + RightmostWidget.Name; } } doesn't contain any repetition worth worrying about, but it isn't pa...
To enforce that certain properties of a class must be set at the time of instantiation and prevent the class from being used in an invalid state, you can use constructor injection. This approach allows you to ensure that `LeftmostWidget` and `RightmostWidget` are initialized with non-null values when an instance of `Wi...
35,483
[ { "from": "human", "value": "This code:\npublic class WidgetPlatform\n{\n public Widget LeftmostWidget { get; set; }\n public Widget RightmostWidget { get; set; }\n\n public String GetWidgetNames()\n {\n return LeftmostWidget.Name + \" \" + RightmostWidget.Name;\n }\n}\n\ndoesn't conta...
I have many articles in a database (with title,text), I'm looking for an algorithm to find the X most similar articles, something like Stack Overflow's "Related Questions" when you ask a question. I tried googling for this but only found pages about other "similar text" issues, something like comparing every article w...
To implement a real-time similarity search for articles, similar to how Stack Overflow's "Related Questions" feature works, you can leverage various techniques from natural language processing (NLP) and information retrieval. Here’s a high-level overview of how you can achieve this: ### Step 1: Text Representation 1....
28,125
[ { "from": "human", "value": "I have many articles in a database (with title,text), I'm looking for an algorithm to find the X most similar articles, something like Stack Overflow's \"Related Questions\" when you ask a question. \nI tried googling for this but only found pages about other \"similar text\" is...
There have been a couple of questions that sort of dealt with this but not covering my exact question so here we go. For site settings, if these are stored in a database do you: retrieve them from the db every time someone makes a request store them in a session variable on login ??????? For user specific settings do...
When it comes to handling site settings and user-specific settings in a web application, there are a few common strategies that can help optimize performance while ensuring that your application remains flexible and easy to manage. Here are some best practices: ### Site Settings 1. **Database Retrieval on Start-Up**:...
30,836
[ { "from": "human", "value": "There have been a couple of questions that sort of dealt with this but not covering my exact question so here we go.\nFor site settings, if these are stored in a database do you:\n\nretrieve them from the db every time someone makes a request\nstore them in a session variable on...
I have an application that uses the accelerometer. Sometimes, the application will launch without the accelerometer data updating. Relaunching the app, sometimes the problem persist, sometimes it doesn't. And even weirder, sometimes I can try 10 times and everything works as expected. Is this a bug, or maybe something ...
The issue you're experiencing with the accelerometer data not updating could be caused by several factors. Here are some possibilities and suggestions to troubleshoot and resolve the problem: ### 1. **Permission Issues** Ensure that your application has permission to access motion data. Starting from iOS 11, you need ...
26,348
[ { "from": "human", "value": "I have an application that uses the accelerometer. Sometimes, the application will launch without the accelerometer data updating. Relaunching the app, sometimes the problem persist, sometimes it doesn't. And even weirder, sometimes I can try 10 times and everything works as exp...
For instance, does the compiler know to translate string s = "test " + "this " + "function"; to string s = "test this function"; and thus avoid the performance hit with the string concatenation?
Yes, most modern compilers and programming languages, including C#, Java, and others, can optimize string concatenation at compile time when they see constant strings being concatenated. In your example: ```csharp string s = "test " + "this " + "function"; ``` The compiler recognizes that all the strings involved in ...
35,804
[ { "from": "human", "value": "For instance, does the compiler know to translate\nstring s = \"test \" + \"this \" + \"function\";\n\nto\nstring s = \"test this function\";\n\nand thus avoid the performance hit with the string concatenation?\n" }, { "from": "gpt", "value": "Yes, most modern compil...
I'm using NuSOAP on PHP 5.2.6 and I'm seeing that the max message size is only 1000 bytes (which makes it tough to do anything meaningful). Is this set in the endpoint's WSDL or is this something I can configure in NuSOAP?
In NuSOAP, the maximum message size limitation you're encountering is not directly related to the WSDL file but rather to how NuSOAP is configured and the underlying PHP settings. However, the default settings in NuSOAP can indeed impose some restrictions. Here are some steps you can take to troubleshoot and potential...
34,267
[ { "from": "human", "value": "I'm using NuSOAP on PHP 5.2.6 and I'm seeing that the max message size is only 1000 bytes (which makes it tough to do anything meaningful). Is this set in the endpoint's WSDL or is this something I can configure in NuSOAP?\n" }, { "from": "gpt", "value": "In NuSOAP, ...
I have a lot of castle xml configs where properties like connectionstring are also held under .Net configuration sections. I'd like to be able to read out the properties using the container but can't see a mechanism to do it. ie <castle> <configuration> <properties> <connectionString>Data Source=MyServer;I...
In Castle Windsor, you typically register components and their dependencies, and the container handles the resolution of those dependencies. However, direct access to properties defined within the XML configuration isn't available out of the box as part of the standard container functionality. To access properties lik...
33,124
[ { "from": "human", "value": "I have a lot of castle xml configs where properties like connectionstring are also held under .Net configuration sections.\nI'd like to be able to read out the properties using the container but can't see a mechanism to do it.\nie \n<castle>\n <configuration>\n <properties>\...
My computer at home is set up to automatically download some stuff from RSS feeds (mostly torrents and podcasts). However, I don't always keep this computer on. The sites I subscribe to have a relatively large throughput, so when I turn the computer back on it has no idea what it missed between the the time it was turn...
It sounds like you're dealing with a common problem among users of RSS feeds and content management. You want to ensure that your home computer, which isn't always on, can catch up on missed feed items when it boots up again. Since you have access to a web server, you can definitely build a more tailored solution. Here...
30,041
[ { "from": "human", "value": "My computer at home is set up to automatically download some stuff from RSS feeds (mostly torrents and podcasts). However, I don't always keep this computer on. The sites I subscribe to have a relatively large throughput, so when I turn the computer back on it has no idea what i...
We had a bad day yesterday. One of our Domain Admins deleted an OU containing 700+ users and the same amount of computers as well as assorted other useful things like groups etc. We restored from a backup, but it wasn't pretty. I know that ADUC asks you if you're sure etc... but I'd like it if it was not possible to d...
In Active Directory (AD), there is no built-in feature to make specific Organizational Units (OUs) undeletable or to require a special confirmation before deletion through the standard Active Directory Users and Computers (ADUC) interface. However, there are some strategies you can employ to help protect critical OUs f...
34,173
[ { "from": "human", "value": "We had a bad day yesterday. One of our Domain Admins deleted an OU containing 700+ users and the same amount of computers as well as assorted other useful things like groups etc.\nWe restored from a backup, but it wasn't pretty.\nI know that ADUC asks you if you're sure etc... ...
One problem I have with a modern office is that people still tend to create physical copies of digital media (such as program manuals and specifications). I understand that for somethings it is prudent to create a physical copy but many of these physical copies go mostly unused, they just sit on a shelf to maybe one da...
Promoting a paperless environment in the workplace can be a challenge, especially in organizations where traditional practices are deeply ingrained. However, there are several strategies you can implement to further encourage a shift towards digital documentation and reduce reliance on physical copies: 1. **Education ...
32,401
[ { "from": "human", "value": "One problem I have with a modern office is that people still tend to create physical copies of digital media (such as program manuals and specifications). I understand that for somethings it is prudent to create a physical copy but many of these physical copies go mostly unused,...
I am trying to setup a WCF service with multiple endpoints with one of the endpoints using the enableWebScript endpoint behavior so that a Javascript proxy will be created on the client (jsdebug/js). When adding the Service Reference to my AJAX ScriptManager, the jsdebug file is not found unless the address of the endp...
When you're setting up a WCF service with multiple endpoints and want one of them to expose a JavaScript proxy, you need to ensure that the `address` specified in the endpoint configuration aligns with how the ScriptManager constructs the URL for the JavaScript proxy files. ### Key Details: 1. **Endpoint Address**: T...
31,028
[ { "from": "human", "value": "I am trying to setup a WCF service with multiple endpoints with one of the endpoints using the enableWebScript endpoint behavior so that a Javascript proxy will be created on the client (jsdebug/js).\nWhen adding the Service Reference to my AJAX ScriptManager, the jsdebug file i...
I made a class that derives from Component: public class MyComponent: System.ComponentModel.Component { } I saw that Visual Studio put this code in for me: protected override void Dispose(bool disposing) { try { if (disposing && (components != null)) { components.Dispose(); ...
When you create a class that derives from `System.ComponentModel.Component`, you need to ensure that any resources your component uses are properly disposed of when it is no longer needed. If your `MyComponent` class has members that implement `IDisposable`, such as a `DataSet` or any other disposable objects, you shou...
34,429
[ { "from": "human", "value": "I made a class that derives from Component:\npublic class MyComponent: System.ComponentModel.Component\n{\n\n\n}\n\nI saw that Visual Studio put this code in for me:\nprotected override void Dispose(bool disposing)\n{\n try\n {\n if (disposing && (components != null...
Is there a way to find the number of lines of code used in an MS-Access database?
Yes, you can find the number of lines of code in an MS-Access database by checking the VBA (Visual Basic for Applications) modules, forms, reports, and other objects where code may be present. Here's a step-by-step guide on how to do this: ### Method 1: Manual Count 1. **Open the Database**: Start MS Access and open ...
26,948
[ { "from": "human", "value": "Is there a way to find the number of lines of code used in an MS-Access database?\n" }, { "from": "gpt", "value": "Yes, you can find the number of lines of code in an MS-Access database by checking the VBA (Visual Basic for Applications) modules, forms, reports, and ...
I'm having a quite complex model with many fields, has_many associations, images added by image_column etc... The New object will be added by a multi page form (8 steps) - How should I accomplish validation and propagation between those steps? I think validation_group could be useful for defining validations for each s...
Creating a complex multi-page form with validations and field propagation can be challenging, but it can be effectively managed with careful planning. Here’s a structured approach to help you design your multi-step form: ### 1. Model Structure Ensure your model is structured to accommodate the many fields and associa...
28,677
[ { "from": "human", "value": "I'm having a quite complex model with many fields, has_many associations, images added by image_column etc...\nThe New object will be added by a multi page form (8 steps) - How should I accomplish validation and propagation between those steps?\nI think validation_group could be...
As a follow-up to this question I am hoping someone can help with the CredEnumerate API. As I understand from the documentation the PCREDENTIALS out parameter is a "pointer to an array of pointers to credentials". I am able to successfully call the CredEnumerate API using C# but I am not sure of how to convert the PC...
It looks like you're trying to use the `CredEnumerate` API to retrieve a list of credentials, and you're encountering a problem when attempting to marshal the memory into a `Credential` structure. The issue arises from how you are calculating the offsets for each credential in the array. Here's a more detailed breakdo...
26,548
[ { "from": "human", "value": "As a follow-up to this question I am hoping someone can help with the CredEnumerate API. \nAs I understand from the documentation the PCREDENTIALS out parameter is a \"pointer to an array of pointers to credentials\". I am able to successfully call the CredEnumerate API using C...
Is there a way to create a blank solution, or some type of file-based project solution within Visual Studio so that I can point to a root folder, and have all of the sub-folders and files in that root, show up in my solution explorer? I realize I can create a blank solution and then add the individual items manually by...
Yes, you can create a solution in Visual Studio that reflects your existing folder structure and files without needing to add each one manually. Here’s how you can achieve that: ### Method 1: Use "Add Existing Project" for a Project-based Folder Structure If you have a specific project structure (like a .csproj or .vb...
32,492
[ { "from": "human", "value": "Is there a way to create a blank solution, or some type of file-based project solution within Visual Studio so that I can point to a root folder, and have all of the sub-folders and files in that root, show up in my solution explorer? I realize I can create a blank solution and ...
Does anyone else find that when they open a saved connection in Remote Desktop it sometimes sets up the login as Username@IpAddress and other times (seemingly at random) sets it up as IpAddress@Username? Does anyone know what the logic is behind the two / why this happens?
Yes, this behavior you're observing in Remote Desktop (RDP) can be somewhat confusing and may seem random, but it is generally tied to the way the Remote Desktop Client interprets and handles the login credentials based on several factors. Here are some key points that might explain this behavior: 1. **Credential For...
34,676
[ { "from": "human", "value": "Does anyone else find that when they open a saved connection in Remote Desktop it sometimes sets up the login as Username@IpAddress and other times (seemingly at random) sets it up as IpAddress@Username?\nDoes anyone know what the logic is behind the two / why this happens?\n" ...
you can request the http header to check if a web page has been edited by looking at its date but how about dynamic pages such as - php, aspx- which grabs its data from a database?
Dynamic web pages, like those generated by PHP or ASPX, do not have a static file modification date as traditional static web pages do. Instead, they are generated on the fly from data typically stored in a database. Here are a few methods to determine if the content of such dynamic pages has changed: 1. **HTTP Header...
33,496
[ { "from": "human", "value": "you can request the http header to check if a web page has been edited by looking at its date but how about dynamic pages such as - php, aspx- which grabs its data from a database?\n" }, { "from": "gpt", "value": "Dynamic web pages, like those generated by PHP or ASP...
What is the difference in the accessibility of the following variables in Java? public class Joe { public int a; protected int b; private int b; int c; } I'm most interested in what the last one is doing.
In the Java code you provided, there are several variables with different access modifiers. However, there is an issue with the code you've presented. You have declared two variables with the same name `b`, which is not allowed in Java, as it will cause a compilation error. I will explain the access modifiers and assum...
31,887
[ { "from": "human", "value": "What is the difference in the accessibility of the following variables in Java?\npublic class Joe {\n public int a;\n protected int b;\n private int b;\n int c;\n}\n\nI'm most interested in what the last one is doing.\n" }, { "from": "gpt", "value": "In t...
I have a Java Applet that uses AWT. In some (rare) circumstances, the platform does not refresh the screen properly. I can move or minimize/maximize the window and see that my applet refreshed properly. I am looking for code that will give me the fullest possible applet screen repaint, simulating the behaviour of a min...
If you're encountering screen refresh issues with a Java Applet using AWT, and previous attempts to force repainting via `paint()`, `repaint()`, `invalidate()`, and `update()` haven’t resolved the issue, you may want to consider a more aggressive approach to trigger a complete refresh of the Applet's display. Here's a ...
26,907
[ { "from": "human", "value": "I have a Java Applet that uses AWT. In some (rare) circumstances, the platform does not refresh the screen properly. I can move or minimize/maximize the window and see that my applet refreshed properly. I am looking for code that will give me the fullest possible applet screen r...
I have a large project for which I am attempting to use TDD. I am using Tut as my test framework, which has its flaws but is sufficient for what I need. I need to exploit link time test seams, each test must be in its own executable. The project for this executable then launches itself as a post build step. Unfortunat...
Using Test-Driven Development (TDD) with a large project can lead to some organizational challenges, especially when you're dealing with a lot of test executables. Here are some strategies you can consider to manage your projects in Visual Studio while still leveraging the benefits of TDD: ### 1. Organizing Projects i...
32,120
[ { "from": "human", "value": "I have a large project for which I am attempting to use TDD.\nI am using Tut as my test framework, which has its flaws but is sufficient for what I need. \nI need to exploit link time test seams, each test must be in its own executable. The project for this executable then launc...
Iv been encountering problems with disk space when deploying my app to a pocket pc emulator. So what Iv done is set up a shared directory on my pc to simulate a SD card, Iv copied the program there manually and then run it from the emulator, with this approach I still need to do the visual studio deployment as well so ...
Deploying an application to a specific directory like a shared folder in Visual Studio for a Pocket PC Emulator can indeed be a bit tricky since the options in the deployment settings are somewhat limited. However, you can manually configure the output path using a few different methods. Here are a couple of approaches...
32,829
[ { "from": "human", "value": "Iv been encountering problems with disk space when deploying my app to a pocket pc emulator.\nSo what Iv done is set up a shared directory on my pc to simulate a SD card, Iv copied the program there manually and then run it from the emulator, with this approach I still need to d...
Ok, I realize this situation is somewhat unusual, but I need to establish a TCP connection (the 3-way handshake) using only raw sockets (in C, in linux) -- i.e. I need to construct the IP headers and TCP headers myself. I'm writing a server (so I have to first respond to the incoming SYN packet), and for whatever reas...
It looks like you've figured out the issue with your raw socket implementation of a TCP connection and how to manage the kernel's automatic RST responses using `iptables`. Just to summarize and add more details, here are the steps involved in handling the TCP 3-way handshake using raw sockets in C on a Linux system: 1...
8,434
[ { "from": "human", "value": "Ok, I realize this situation is somewhat unusual, but I need to establish a TCP connection (the 3-way handshake) using only raw sockets (in C, in linux) -- i.e. I need to construct the IP headers and TCP headers myself. I'm writing a server (so I have to first respond to the in...
I have a list of articles, and each article belongs to a section. class Section(models.Model): name = models.CharField(max_length=200) def __unicode__(self): return self.name class Article(models.Model): section = models.ForeignKey(Section) headline = models.CharField(max_length=200) # ... I want to di...
To achieve the desired numbering for articles grouped by section in your Django template, you can use a combination of variables to keep track of the overall article count across sections. You'll need a variable that maintains the running total of articles as you iterate through the sections. You can modify your temp...
34,707
[ { "from": "human", "value": "I have a list of articles, and each article belongs to a section.\nclass Section(models.Model):\n name = models.CharField(max_length=200)\n\n def __unicode__(self):\n return self.name\n\nclass Article(models.Model):\n section = models.ForeignKey(Section)\n headline = mode...
I'm trying to dynamically add some textboxes (input type=text) to a page in javascript and prefill them. The textboxes are coming up, but they are coming up empty. What is the proper way to pre-fill a textbox. Ideally I'd love to use the trick of creating a child div, setting the innerhtml property, and then adding ...
To pre-fill textboxes in JavaScript after creating them dynamically, you should set the `value` property of the input elements instead of using `setAttribute` or trying to set the value through innerHTML. Using `setAttribute` may not work as expected for input elements in some browsers because the `value` property is u...
32,262
[ { "from": "human", "value": "I'm trying to dynamically add some textboxes (input type=text) to a page in javascript and prefill them. The textboxes are coming up, but they are coming up empty. What is the proper way to pre-fill a textbox. Ideally I'd love to use the trick of creating a child div, setting...
I have been given two different Microsoft Word document that my virus scanner has warned me contains macros. These should be simple text files, and the person who sent them doesn't even know what a macro is; they may be a mistake on his part, but they might be signs of a malicious infection. My installation of OpenOffi...
To safely examine the macros in the Microsoft Word documents without running any potentially harmful code, you can take the following steps: ### 1. Use a Virtual Machine or Sandbox Set up a virtual machine (VM) or a sandboxed environment (such as Sandboxie) to isolate the execution of the documents. This way, even if ...
31,158
[ { "from": "human", "value": "I have been given two different Microsoft Word document that my virus scanner has warned me contains macros. These should be simple text files, and the person who sent them doesn't even know what a macro is; they may be a mistake on his part, but they might be signs of a malicio...
I'm trying to apply a transform to a 3D object in a STL File (without creating a structured mesh object). Here is how I proceed: I read the normals and faces information one by one in the STL file, apply my transform to each vertex and to the face normal and write back the new computed values in another STL file. The v...
When transforming 3D objects, the way you handle vertex positions and normals can be different due to the nature of how normals are defined and used. ### 1. **Understanding Normals:** Normals are vectors that are perpendicular to the surface of a mesh. When you transform vertices, you generally apply a transformation ...
31,577
[ { "from": "human", "value": "I'm trying to apply a transform to a 3D object in a STL File (without creating a structured mesh object). Here is how I proceed: I read the normals and faces information one by one in the STL file, apply my transform to each vertex and to the face normal and write back the new c...
Let's say we have these tables; table user: - id - username - email table user2group: - userid - groupid table group: - id - groupname How do I make one query that returns all users, and the groups they belong to (as an array in the resultset or something..)
You can achieve this by using a SQL query that joins the `user`, `user2group`, and `group` tables and aggregates the results to create an array of group names for each user. This can be done using the `GROUP_CONCAT` function in MySQL, or using `ARRAY_AGG` in PostgreSQL. Here are examples for both databases: ### MySQL...
33,693
[ { "from": "human", "value": "Let's say we have these tables;\ntable user:\n- id\n- username\n- email\ntable user2group:\n- userid\n- groupid\ntable group:\n- id\n- groupname\nHow do I make one query that returns all users, and the groups they belong to (as an array in the resultset or something..)\n" }, ...
I am designing a simple internal framework for handling time series data. Given that LINQ is my current toy hammer, I want to hit everything with it. I want to implement methods in class TimeSeries (Select(), Where() and so on) so that I can use LINQ syntax to handle time series data Some things are straight forward, e...
To create a LINQ-like syntax for handling time series data in C#, especially for combining two or more time series, you can implement custom extension methods on your `TimeSeries` class. Given your requirement to express operations like "zip" or "join" based on a time variable, here's how you can achieve that. ### Cla...
29,579
[ { "from": "human", "value": "I am designing a simple internal framework for handling time series data.\nGiven that LINQ is my current toy hammer, I want to hit everything with it.\nI want to implement methods in class TimeSeries (Select(), Where() and so on) so that I can use LINQ syntax to handle time seri...
I want to use JMockit's incremental test runner instead of the standard JUnit test runners from within Eclipse. Is there a way to do this? Edit Received the following answer to my email to the JMockit dev: You would need to start the JVM with a command line such as "-javaagent:jmockit.jar=incjunit4", where "incj...
To use JMockit's incremental test runner (`incjunit4`) in Eclipse, you'll need to configure your run configuration to include the necessary JVM arguments. Here's a step-by-step guide to help you set it up: 1. **Download JMockit**: Make sure you have the latest version of JMockit and that you've added the `jmockit.jar`...
32,129
[ { "from": "human", "value": "I want to use JMockit's incremental test runner instead of the standard JUnit test runners from within Eclipse. Is there a way to do this?\nEdit Received the following answer to my email to the JMockit dev:\n\nYou would need to start the JVM with a\n command line such as\n \"-...
How would you render a tag cloud within a .NET 2.0+ WinForm application? One solution that I am thinking of would be using the WebBrowser control and generating to some ad-hoc HTML, but that seems to be a pretty heavy solution. Am I missing something more simple?
Creating a tag cloud in a .NET WinForms application can indeed be accomplished in various ways, and while using the WebBrowser control with HTML is one option, there are simpler and more lightweight alternatives that you can consider. ### Approach 1: Custom Drawing using GDI+ One straightforward method is to use GDI+...
30,208
[ { "from": "human", "value": "How would you render a tag cloud within a .NET 2.0+ WinForm application?\nOne solution that I am thinking of would be using the WebBrowser control and generating to some ad-hoc HTML, but that seems to be a pretty heavy solution.\nAm I missing something more simple?\n" }, { ...
I have the following code block in my xslt; <xsl:when test="StatusData/Status/Temperature > 27"> <td bgcolor="#ffaaaa"> <xsl:value-of select="StatusData/Status/Temperature" /> </td> </xsl:when> But as you might guess when the value is 34,5 instead of 34...
In XSLT, you can perform string operations, including replacing characters, using the `translate()` or `replace()` functions, depending on the version of XSLT you are using. Since you mentioned needing to replace a comma with a dot for numeric comparisons, let's first examine how you can accomplish this in both XSLT 1...
33,378
[ { "from": "human", "value": "I have the following code block in my xslt;\n <xsl:when test=\"StatusData/Status/Temperature > 27\">\n <td bgcolor=\"#ffaaaa\"> \n <xsl:value-of select=\"StatusData/Status/Temperature\" /> \n </td>\n </xsl:when>\n\nBut a...
I'm on a beginner level course in prolog, doing a map colouring problem. Here's my code. col(Colors,Map,Coloring) :- checkMap(Colors,Map,Coloring). checkMap(Colors,[Country1:Country2],Coloring) :- goodColor(Country1:Country2,Coloring,Colors). checkMap(Colors,[Country1:Country2|Rest],Coloring) :- goodColor(C...
The trailing variable you are seeing in your output (`|_G332`) is a result of how Prolog handles list unification and variable binding. In your case, you're not specifying the length of the list in your color assignments. To eliminate the trailing variable and return a complete list with the colors assigned directly,...
33,237
[ { "from": "human", "value": "I'm on a beginner level course in prolog, doing a map colouring problem. Here's my code.\ncol(Colors,Map,Coloring) :-\n checkMap(Colors,Map,Coloring).\ncheckMap(Colors,[Country1:Country2],Coloring) :-\n goodColor(Country1:Country2,Coloring,Colors).\ncheckMap(Colors,[Countr...
How to set internationalization to a DateTimepicker or Calendar WinForm control in .Net when the desire culture is different to the one installed in the PC?
To set internationalization for a `DateTimePicker` or Calendar control in a WinForms application when the desired culture differs from the installed culture on the PC, you can achieve this by programmatically setting the culture for the current thread. Here’s a step-by-step approach: ### Steps: 1. **Add Required Name...
31,661
[ { "from": "human", "value": "How to set internationalization to a DateTimepicker or Calendar WinForm control in .Net when the desire culture is different to the one installed in the PC?\n" }, { "from": "gpt", "value": "To set internationalization for a `DateTimePicker` or Calendar control in a W...
What prompts my question is this post from Jeff Atwood, and this post from Dare Obasanjo. It seems to me that there might be at least a few areas where third-party functionality is a better idea than custom code. For example, should logging always be third-party? How about encryption? Or search? I'm looking forward ...
Your question raises an interesting point about the decision-making process regarding when to use third-party libraries or services versus writing custom code for certain functionalities. Let’s break down the three areas you mentioned: logging, encryption, and search. ### Logging **Third-Party Libraries**: - Using es...
32,804
[ { "from": "human", "value": "What prompts my question is this post from Jeff Atwood, and this post from Dare Obasanjo. It seems to me that there might be at least a few areas where third-party functionality is a better idea than custom code.\nFor example, should logging always be third-party? How about en...
Is it possible to write a program that interacts with a running instance of Flash? In recent versions of Java, there is a notion of "attaching" your own process to a running JVM. By writing some somewhat ugly code using Reflection and the like, you can dig around, grab a reference to an object, print the value of a var...
Interacting with a running instance of Flash (specifically a Flash Player) to inspect or manipulate its state is indeed a challenging task, primarily because Flash is not designed for external interaction in the way that Java's instrumentation allows. However, there are several approaches you could consider, each with ...
26,813
[ { "from": "human", "value": "Is it possible to write a program that interacts with a running instance of Flash?\nIn recent versions of Java, there is a notion of \"attaching\" your own process to a running JVM. By writing some somewhat ugly code using Reflection and the like, you can dig around, grab a refe...
I'm using a groovy code snippet in an ant build file. Inside the groovy code I'm trying to reference a fileset that has been defined outside of the groovy part, like this: <target name="listSourceFiles" > <fileset id="myfileset" dir="${my.dir}"> <patternset refid="mypatterns"/> </fileset> <groovy> ...
The issue you are encountering is related to the scope of the `fileset` defined in your Ant target and how you are trying to reference it in the Groovy code. In Ant, the `fileset` is available to the Ant tasks within the same target scope, but when you go into the Groovy code block, it does not have direct access to An...
33,954
[ { "from": "human", "value": "I'm using a groovy code snippet in an ant build file. Inside the groovy code I'm trying to reference a fileset that has been defined outside of the groovy part, like this:\n<target name=\"listSourceFiles\" >\n <fileset id=\"myfileset\" dir=\"${my.dir}\">\n <patternset...
Given a model class BaseModel < ActiveRecord::Base validates_presence_of :parent_id before_save :frobnicate_widgets end and a derived model (the underlying database table has a type field - this is simple rails STI) class DerivedModel < BaseModel end DerivedModel will in good OO fashion inherit all the behaviour ...
To disable validations and callbacks for a derived model in Ruby on Rails while keeping the base model intact, you can override the validation and callback methods in the derived class. Here's how you can do that: 1. **Disable the validation for `parent_id`:** You can override the validation method in the derived clas...
34,323
[ { "from": "human", "value": "Given a model\nclass BaseModel < ActiveRecord::Base\n validates_presence_of :parent_id\n before_save :frobnicate_widgets\nend\n\nand a derived model (the underlying database table has a type field - this is simple rails STI)\nclass DerivedModel < BaseModel\nend\n\nDerivedModel...
I have a customer in Macau that uses Windows EUDC for custom Big5 glyphs. I used Fontforge on Linux to convert the .TTE into a type 11 (CID type 2) font and created a custom CMap to map the Big5 code points to the correct glyph in the font. This all works fine and dandy in GS8.60 on Windows and GS8.61 - GS8.63 on Lin...
It sounds like you're encountering a specific issue with Ghostscript when using your custom CID font on Windows, particularly with versions 8.61 and later. Here are some steps you might consider to troubleshoot and resolve the problem: 1. **Validate the CID Font and CMap**: Ensure that the CID font and the custom CMap...
33,103
[ { "from": "human", "value": "I have a customer in Macau that uses Windows EUDC for custom Big5 glyphs. I used Fontforge on Linux to convert the .TTE into a type 11 (CID type 2) font and created a custom CMap to map the Big5 code points to the correct glyph in the font. This all works fine and dandy in GS8...
I have a couple of pages working with Firefox but JSMX isn't passing the form variables through when using IE7. Has anybody experienced this?
Issues with form submissions in older browsers like Internet Explorer 7 can arise for various reasons. Here are some troubleshooting steps and considerations to help you diagnose and potentially resolve the problem with JSMX (JavaScript Markup XML): 1. **Compatibility Mode**: Ensure that IE7 is not running in compatib...
32,318
[ { "from": "human", "value": "I have a couple of pages working with Firefox but JSMX isn't passing the form variables through when using IE7. \nHas anybody experienced this?\n" }, { "from": "gpt", "value": "Issues with form submissions in older browsers like Internet Explorer 7 can arise for vari...
We are using trac and are really satisfied with it. However, out of the box, trac is best suited for single-project environments only. I'd be interested to hear about the various approaches people take to make it work with multiple projects nevertheless and their experiences with them. Are there any plugins to recommen...
Managing multiple projects in Trac can indeed be challenging, but many users have developed various approaches to accommodate their needs. Here are some strategies and tools you can consider: ### 1. Multiple Trac Instances One straightforward approach is to run separate Trac instances for each project. This allows for...
32,875
[ { "from": "human", "value": "We are using trac and are really satisfied with it. However, out of the box, trac is best suited for single-project environments only. I'd be interested to hear about the various approaches people take to make it work with multiple projects nevertheless and their experiences wit...
My hope is to one-click a shortcut, and get a grid of cygwin shells laid out before me, filling up my whole screen. Any idea where I should start looking?
Creating a setup where you can launch multiple Cygwin shell windows in a grid layout can be accomplished with a few different tools and techniques. Below are some steps and suggestions to help you get started: ### 1. Use a Terminal Multiplexer Consider using a terminal multiplexer like `tmux`. While this would typical...
30,485
[ { "from": "human", "value": "My hope is to one-click a shortcut, and get a grid of cygwin shells laid out before me, filling up my whole screen.\nAny idea where I should start looking?\n" }, { "from": "gpt", "value": "Creating a setup where you can launch multiple Cygwin shell windows in a grid ...
How can I extract the list of colors in the System.Drawing.Color struct into a collection or array? Is there a more efficient way of getting a collection of colors than using this struct as a base?
In C#, the `System.Drawing.Color` struct provides a number of predefined colors through its static properties, such as `Color.Red`, `Color.Blue`, etc. If you want to extract all these colors into a collection or an array, you can create a method that retrieves these predefined colors dynamically. Here is an example of...
34,513
[ { "from": "human", "value": "How can I extract the list of colors in the System.Drawing.Color struct into a collection or array?\nIs there a more efficient way of getting a collection of colors than using this struct as a base?\n" }, { "from": "gpt", "value": "In C#, the `System.Drawing.Color` s...
Is it possible to disable AJAX without disabling JavaScript completely?
Yes, it is possible to disable AJAX functionality without disabling JavaScript completely. AJAX (Asynchronous JavaScript and XML) is a technique that uses JavaScript to send and retrieve data asynchronously from a server without interfering with the display and behavior of the existing web page. Here are some methods t...
30,870
[ { "from": "human", "value": "Is it possible to disable AJAX without disabling JavaScript completely? \n" }, { "from": "gpt", "value": "Yes, it is possible to disable AJAX functionality without disabling JavaScript completely. AJAX (Asynchronous JavaScript and XML) is a technique that uses JavaSc...
How do I load a true color image into a CImageList? Right now I have mImageList.Create(IDB_IMGLIST_BGTASK, 16, 1, RGB(255,0,255)); Where IDB_IMGLIST_BGTASK is a 64x16 True color image. The ClistCtrl I am using it in shows 16 bpp color. I don't see a Create overload that allows me to specify both the bpp and the reso...
When working with `CImageList` in an MFC application, particularly when you want to load a true color image, you'll need to approach it differently than creating an image list from a bitmap resource directly. The `CImageList::Create` method you are using is designed to work with standard bitmaps, and it does not suppor...
32,699
[ { "from": "human", "value": "How do I load a true color image into a CImageList?\nRight now I have\nmImageList.Create(IDB_IMGLIST_BGTASK, 16, 1, RGB(255,0,255));\n\nWhere IDB_IMGLIST_BGTASK is a 64x16 True color image. The ClistCtrl I am using it in shows 16 bpp color. I don't see a Create overload that a...
Writing a JSP page, what exactly does the <c:out> do? I've noticed that the following both has the same result: <p>The person's name is <c:out value="${person.name}" /></p> <p>The person's name is ${person.name}</p>
In a JSP (JavaServer Pages) page, both `<c:out>` and the `${}` expression are used for outputting values, but they have some important differences. ### `<c:out>` Tag The `<c:out>` tag is part of the JSTL (JavaServer Pages Standard Tag Library), specifically the Core Tag library. Its primary purpose is to output a valu...
35,300
[ { "from": "human", "value": "Writing a JSP page, what exactly does the <c:out> do? I've noticed that the following both has the same result:\n<p>The person's name is <c:out value=\"${person.name}\" /></p>\n<p>The person's name is ${person.name}</p>\n\n" }, { "from": "gpt", "value": "In a JSP (Ja...
Is there a better way to keep the domain name unaltered in the adress bar besides using a main frame?
Yes, there are several alternatives to using a main frame to keep the domain name unaltered in the address bar while still displaying content from another domain. Here are a few methods: 1. **URL Masking with a Reverse Proxy**: - A reverse proxy can be set up to fetch content from another server while keeping the o...
34,170
[ { "from": "human", "value": "Is there a better way to keep the domain name unaltered in the adress bar besides using a main frame?\n" }, { "from": "gpt", "value": "Yes, there are several alternatives to using a main frame to keep the domain name unaltered in the address bar while still displayin...
I have a web application that allows a user to search on some criteria, select an object, edit it and then return to the previous search. All the editing takes place on a separate page linked to the datagrid of returned results. I was wondering what is the best way to store the previous search parameters so that when...
Storing previous search parameters to allow users to return to their previous search is a common requirement in web applications. Your approach using a NameValue collection stored in either session or cookies is a valid solution, but there are a few additional options and considerations that might help you refine your ...
27,746
[ { "from": "human", "value": "I have a web application that allows a user to search on some criteria, select an object, edit it and then return to the previous search. All the editing takes place on a separate page linked to the datagrid of returned results. I was wondering what is the best way to store th...
I'm using the MVP pattern in a windows form app. I need to change a radio button on the view. I can do this by exposing a Boolean property on the view, but should I be using events to manipulate the view instead?
When using the Model-View-Presenter (MVP) pattern, the communication between the view and the presenter should be structured in a way that maintains a clear separation of concerns. 1. **Boolean Property Approach**: - Exposing a Boolean property on the view is a straightforward way to manipulate the state of UI ele...
28,288
[ { "from": "human", "value": "I'm using the MVP pattern in a windows form app. I need to change a radio button on the view. I can do this by exposing a Boolean property on the view, but should I be using events to manipulate the view instead?\n" }, { "from": "gpt", "value": "When using the Model-...
As everyone knows, sometimes developers have to document stuff. Or capture some stuff for filing bug reports. My question is in MS Windows. I'm trying to capture the context menu (the popup menu that appears after right-clicking an item) of several areas of an application. Pressing Alt to start the Alt+PrintScreen pro...
Capturing context menus and other popup windows in Windows can be a bit tricky since the default behavior of using the `Alt` key will close them. Here are several methods you can use to capture context menus without the frustration of having them close: ### Method 1: Snipping Tool or Snip & Sketch (Windows 10/11) 1. *...
33,827
[ { "from": "human", "value": "As everyone knows, sometimes developers have to document stuff. Or capture some stuff for filing bug reports. \nMy question is in MS Windows.\nI'm trying to capture the context menu (the popup menu that appears after right-clicking an item) of several areas of an application. Pr...
I have multiple RequireFieldValidators on my aspx page. On the backend (C#) I want to be able to tell which control specifically wasn't valid so I can apply a style to that control. I use the Page.IsValid method to see if the overall page passed validation but I need to know specifically which one control failed.
To identify which specific `RequiredFieldValidator` (or any other validation control) has failed on your ASP.NET page, you can loop through the `Page.Validators` collection after you call `Page.IsValid`. Each validator has an `IsValid` property that indicates whether it passed validation. You can check the `ControlToVa...
32,636
[ { "from": "human", "value": "I have multiple RequireFieldValidators on my aspx page.\nOn the backend (C#) I want to be able to tell which control specifically wasn't valid so I can apply a style to that control.\nI use the Page.IsValid method to see if the overall page passed validation but I need to know s...
Can someone explain why there is the need to add an out or in parameter to indicate that a generic type is Co or Contra variant in C# 4.0? I've been trying to understand why this is important and why the compiler can't just figure it out.. Thanks, Josh
In C# 4.0, covariance and contravariance are introduced to allow for more flexible type relationships when dealing with generic types, particularly in the context of collections, delegates, and interfaces. Let’s break down why it's necessary to specify `out` for covariance and `in` for contravariance. ### Variance Bas...
28,455
[ { "from": "human", "value": "Can someone explain why there is the need to add an out or in parameter to indicate that a generic type is Co or Contra variant in C# 4.0?\nI've been trying to understand why this is important and why the compiler can't just figure it out..\nThanks,\nJosh\n" }, { "from":...
I've managed to get a memory 'leak' in a java application I'm developing. When running my JUnit test suite I randomly get out of memory exceptions (java.lang.OutOfMemoryError). What tools can I use to examine the heap of my java application to see what's using up all my heap so that I can work out what's keeping refere...
When dealing with memory leaks in a Java application, it's important to have the right tools and techniques to analyze the heap and identify which objects are consuming memory. Here are several tools and methods you can use to examine the heap and track down memory issues: 1. **Java VisualVM**: - Java VisualVM is i...
30,201
[ { "from": "human", "value": "I've managed to get a memory 'leak' in a java application I'm developing. When running my JUnit test suite I randomly get out of memory exceptions (java.lang.OutOfMemoryError).\nWhat tools can I use to examine the heap of my java application to see what's using up all my heap so...
Using remote desktop in full-screen, what is the shortest way to move to another app? (Without using the mouse, of course. I hate mice). I currently use one of the following: ctrl-alt-del, alt-t (get to local machine's taskmgr), alt-tab (move to desired application), or: ctrl-alt-pause (toggle remote-desktop to a windo...
If you're using Remote Desktop in full-screen and want to quickly switch between applications without using the mouse, there are a few keyboard shortcuts that might help streamline the process: 1. **Use Alt + Tab Efficiently**: While connected to the Remote Desktop, you can use `Alt + Tab` to switch between applicatio...
35,293
[ { "from": "human", "value": "Using remote desktop in full-screen, what is the shortest way to move to another app?\n(Without using the mouse, of course. I hate mice).\nI currently use one of the following:\nctrl-alt-del, alt-t (get to local machine's taskmgr), alt-tab (move to desired application), or:\nctr...
With DWR it is possible to group together several service calls into one single HTTP request : dwr batch feature This feature is very useful to reduce the latency of an ajax application. Is there a way to do something similar with GWT / GWT-RPC ? Thanks for your help
In GWT (Google Web Toolkit), there isn't a direct feature equivalent to DWR's batch processing capability for making multiple service calls in a single HTTP request. However, you can achieve similar functionality through custom approaches. Here are a few strategies you might consider: 1. **Composite Services**: Instea...
31,824
[ { "from": "human", "value": "With DWR it is possible to group together several service calls into one single HTTP request :\ndwr batch feature\n This feature is very useful to reduce the latency of an ajax application.\nIs there a way to do something similar with GWT / GWT-RPC ?\nThanks for your help\n" }...
Please excuse the large amount of background info, but this is a fairly specific question. I have a Visual Studio 2005 project that creates a .dll file. This project depends on a .dll from another company, "BigCorp", which gets installed with BigCorp's software. Ideally the dll I create should be usable with any (backw...
In .NET, the concept of assembly binding and versioning can indeed be tricky, especially when dealing with third-party assemblies. The issue you're facing is primarily related to how .NET resolves assembly references at runtime, and unfortunately, there's no straightforward method to enforce backward compatibility with...
29,209
[ { "from": "human", "value": "Please excuse the large amount of background info, but this is a fairly specific question.\nI have a Visual Studio 2005 project that creates a .dll file. This project depends on a .dll from another company, \"BigCorp\", which gets installed with BigCorp's software.\nIdeally the ...
Whilst investigating a memory leak I discovered that it was caused by calling NewRow() on a Table inside a loop many times. However the DataRow created was never added to the Table Rows collection and the Table Rows Count never got above zero. My question is why does this use up more memory every time NewRow is called ...
The behavior you're observing with `NewRow()` and memory usage is a result of how the `DataTable` and `DataRow` objects in .NET manage their resources. When you call `NewRow()` on a `DataTable`, it creates a new instance of `DataRow`. Even if you don't add this `DataRow` to the `DataTable`'s `Rows` collection, the obj...
33,905
[ { "from": "human", "value": "Whilst investigating a memory leak I discovered that it was caused by calling NewRow() on a Table inside a loop many times. However the DataRow created was never added to the Table Rows collection and the Table Rows Count never got above zero.\nMy question is why does this use u...
I need to parse recipe ingredients into amount, measurement, item, and description as applicable to the line, such as 1 cup flour, the peel of 2 lemons and 1 cup packed brown sugar etc. What would be the best way of doing this? I am interested in using python for the project so I am assuming using the nltk is the best ...
Parsing recipe ingredients into structured components like amount, measurement, item, and description can be a complex task due to the variability in how ingredients are expressed. However, using Python with the Natural Language Toolkit (NLTK) is a solid choice, though there are also other libraries and tools that can ...
26,208
[ { "from": "human", "value": "I need to parse recipe ingredients into amount, measurement, item, and description as applicable to the line, such as 1 cup flour, the peel of 2 lemons and 1 cup packed brown sugar etc. What would be the best way of doing this? I am interested in using python for the project so ...
I have a large existing c++ codebase. Typically the users of the codebase edit the source with gvim, but we'd like to start using the nifty IDE features in Eclipse. The codebase has an extensive directory hierarchy, but the source files use include directives without paths due to some voodoo we use in our build proce...
In Eclipse, you can configure the include paths for your C/C++ project without needing to add each directory manually. Here are a couple of options to help you set up your project efficiently: ### Option 1: Use the Indexer Settings 1. **Project Properties**: - Right-click your project in the Project Explorer and s...
29,451
[ { "from": "human", "value": "I have a large existing c++ codebase. Typically the users of the codebase edit the source with gvim, but we'd like to start using the nifty IDE features in Eclipse. The codebase has an extensive directory hierarchy, but the source files use include directives without paths due...
In our desktop application, we have implemented a simple search engine using an inverted index. Unfortunately, some of our users' datasets can get very large, e.g. taking up ~1GB of memory before the inverted index has been created. The inverted index itself takes up a lot of memory, almost as much as the data being i...
Optimizing the space usage of an inverted index is a common challenge, especially when dealing with large datasets. Here are several strategies and techniques you can implement to reduce the memory footprint of your inverted index: ### 1. Use More Efficient Data Structures - **Use a `HashSet` or `BitArray` for IDs**:...
31,955
[ { "from": "human", "value": "In our desktop application, we have implemented a simple search engine using an inverted index.\nUnfortunately, some of our users' datasets can get very large, e.g. taking up ~1GB of memory before the inverted index has been created. The inverted index itself takes up a lot of ...
What is the best tool / practice to enable browser history for Flash (or AJAX) websites? I guess the established practice is to set and read a hash-addition to the URL like http://example.com/#id=1 I am aware of the Flex History Manager, but was wondering if there are any good alternatives to consider. Would also be i...
Enabling browser history for Flash (or AJAX) websites is crucial for improving user experience and allowing bookmarking and sharing of specific content. The approach you mentioned, using hash fragments (e.g., `http://example.com/#id=1`), is a common and effective way to manage state in single-page applications. However...
32,110
[ { "from": "human", "value": "What is the best tool / practice to enable browser history for Flash (or AJAX) websites?\nI guess the established practice is to set and read a hash-addition to the URL like\nhttp://example.com/#id=1\n\nI am aware of the Flex History Manager, but was wondering if there are any g...
Is it possible to do a cross table join in mysql spaning different tables? in different databases. This seem to be easily possible in MSSQL, and greatly speeds up data transfer? How about mysql, do you need to use a powerful IDE to achieve this? or do you have to write a program to do something like this? UPDATE tblUse...
In MySQL, you can perform cross-database joins, similar to how you would in MSSQL, but with a different syntax. You do not need a special IDE or a program to achieve this; you can run the queries directly in a MySQL client or command-line interface. ### Syntax for Cross-Database Join in MySQL To join tables from diff...
34,467
[ { "from": "human", "value": "Is it possible to do a cross table join in mysql spaning different tables? in different databases.\nThis seem to be easily possible in MSSQL, and greatly speeds up data transfer?\nHow about mysql, do you need to use a powerful IDE to achieve this? or do you have to write a progr...
I have several strings in the rough form: [some text] [some number] [some more text] I want to extract the text in [some number] using the Java regex classes. I know roughly what regular expression I want to use (though all suggestions are welcome). What I'm really interested in are the Java calls to take the regex st...
To extract the number from a string using Java's regex classes, you can use the `Pattern` and `Matcher` classes from the `java.util.regex` package. Below is an example of how to do this: 1. First, you'll want to define a regular expression that captures the pattern you're interested in. Assuming your strings are alway...
33,307
[ { "from": "human", "value": "I have several strings in the rough form:\n[some text] [some number] [some more text]\n\nI want to extract the text in [some number] using the Java regex classes.\nI know roughly what regular expression I want to use (though all suggestions are welcome). What I'm really interest...
I'm a developer not a wordsmith and as such I'm stuck. We have a subscription based site whereby users may well come across our 401 page. We've decided that the IIS 401;2 page needs replacing. Does anyone have any examples or advise about writing a good non offensive 401 page?
Creating a user-friendly 401 Unauthorized page is important for maintaining a positive user experience. Here are some guidelines and an example to help you craft an effective message: ### Guidelines for Writing a 401 Page 1. **Clear Explanation**: Clearly explain what a 401 error is, but keep it simple. Users should ...
32,220
[ { "from": "human", "value": "I'm a developer not a wordsmith and as such I'm stuck. \nWe have a subscription based site whereby users may well come across our 401 page.\nWe've decided that the IIS 401;2 page needs replacing.\nDoes anyone have any examples or advise about writing a good non offensive 401 pag...
I have a app that I'm deploying to a development server using Capistrano. I'd like to force this deployment to use the development database. So far the only way I've managed to do it is to make my production database info in database.yml equal to the development info. But this is a complete hack. I've tried setting ...
To ensure your Capistrano deployment uses the development database without altering your `database.yml` file, you can leverage environment variables and properly configure your deployment settings. Below are the steps you can follow: ### Step 1: Set Environment Variables Instead of hardcoding the database configurati...
26,694
[ { "from": "human", "value": "I have a app that I'm deploying to a development server using Capistrano. I'd like to force this deployment to use the development database. So far the only way I've managed to do it is to make my production database info in database.yml equal to the development info. But thi...
Here's the scenario - a client uploads a Sybase dump file to (gzipped) to our local FTP server. We have an automated process which picks these up and then moves them to different server within the network where the database server resides. Unfortunately, this transfer is over a WAN, which for large files takes a long t...
To verify the integrity of a Sybase dump file without actually loading it into a Sybase database, you can take the following approaches: ### 1. **Checksum Verification:** You can create a checksum of the file immediately after it is uploaded and store it. Then, before transferring it over the WAN, you can compute the ...
34,092
[ { "from": "human", "value": "Here's the scenario - a client uploads a Sybase dump file to (gzipped) to our local FTP server. We have an automated process which picks these up and then moves them to different server within the network where the database server resides. Unfortunately, this transfer is over a ...
we can use time in a unix environment to see how long something took... shell> time some_random_command real 0m0.709s user 0m0.008s sys 0m0.012s is there an equivalent for recording memory usage of the process(es)? in particular i'm interested in peak allocation.
Yes, in a Unix-like environment, you can use various tools to measure memory usage, including peak memory allocation of a process. Here are a few methods you can use: ### 1. Using `/usr/bin/time` The `time` command you used can also report memory usage by using its `/usr/bin/time` version with the `-v` (verbose) opti...
34,059
[ { "from": "human", "value": "we can use time in a unix environment to see how long something took...\nshell> time some_random_command\nreal 0m0.709s\nuser 0m0.008s\nsys 0m0.012s\n\nis there an equivalent for recording memory usage of the process(es)?\nin particular i'm interested in peak allocatio...
I have a migration in Rails that inserts a record into the database. The Category model depends on this record. Since RSpec clears the database before each example, this record is lost and furthermore never seems to be created since RSpec does not seem to generate the database from migrations. What is the best way to ...
When working with RSpec and database migrations in Rails, it's important to understand the lifecycle of your test database and how to effectively set up the necessary data for your tests. If you have a migration that inserts a record into the database and you need that record available for your tests, here are a few s...
31,630
[ { "from": "human", "value": "I have a migration in Rails that inserts a record into the database. The Category model depends on this record. Since RSpec clears the database before each example, this record is lost and furthermore never seems to be created since RSpec does not seem to generate the database ...
I have not been able to find a way to export/import subscriptions either in the Report Manager or by SQl Server Management Studio. Anybody know if this is possible?
Exporting and importing subscriptions in SQL Server Reporting Services (SSRS) can be a bit challenging since SSRS does not provide a direct feature for this in the Report Manager or SQL Server Management Studio (SSMS). However, you can accomplish it by directly accessing the database or using scripts. Here’s how you ca...
31,808
[ { "from": "human", "value": "I have not been able to find a way to export/import subscriptions either in the Report Manager or by SQl Server Management Studio. \nAnybody know if this is possible?\n" }, { "from": "gpt", "value": "Exporting and importing subscriptions in SQL Server Reporting Servi...
alt text http://img440.imageshack.us/img440/6950/problemyd1.png (The curly lines with dots represent a network route.) Having a process called "foo.exe", is there a way to forward everything it communicates over TCP/IP to a forwarding proxy located elsewhere? This forwarding should not reflect to other processes. Anoth...
To achieve your goals of redirecting TCP/IP communications from a specific process and controlling which network adapter it uses, you can utilize several methods. Here are some suggestions: ### 1. Forwarding TCP/IP Communications for a Specific Process #### Option 1: Use a Proxy Tool You can use a tool like **Proxifi...
32,369
[ { "from": "human", "value": "alt text http://img440.imageshack.us/img440/6950/problemyd1.png\n(The curly lines with dots represent a network route.)\nHaving a process called \"foo.exe\", is there a way to forward everything it communicates over TCP/IP to a forwarding proxy located elsewhere? This forwarding...
If you have a sequence of block elements and you wanted to place margin in between them. Which do you prefer, margin-top or margin-bottom or both? Why?
When placing margins between block elements, the choice between using `margin-top`, `margin-bottom`, or both often depends on the specific layout and design requirements. Here’s a breakdown of the considerations: ### Using `margin-bottom`: - **Simplicity**: Applying `margin-bottom` on the first block element and `marg...
33,240
[ { "from": "human", "value": "If you have a sequence of block elements and you wanted to place margin in between them. \nWhich do you prefer, margin-top or margin-bottom or both? Why?\n" }, { "from": "gpt", "value": "When placing margins between block elements, the choice between using `margin-to...
i am trying to compile this very simple piece of code class myList { public: std::vector<std::string> vec; class Items { public: void Add(std::string str) { myList::vec.push_back(str); }; }items; }; int main() { myList newList; newList.items.Add("A"); } ...
The issue you're encountering stems from trying to access the member variable `vec` of the `myList` class directly within the nested `Items` class using the syntax `myList::vec`. This is incorrect since `vec` is not a static member, and also because you don't have a reference to an instance of `myList` inside `Items`. ...
33,461
[ { "from": "human", "value": "i am trying to compile this very simple piece of code\nclass myList\n{\npublic:\n std::vector<std::string> vec;\n class Items\n {\n public:\n void Add(std::string str)\n {\n myList::vec.push_back(str);\n };\n }items;\n};\n\nint main...
As a two-monitor user at work, I've noticed that applications behave differently with regards to what monitor they open on (primary or secondary monitor, the last monitor the application opened on, and so on). To be honest, some applications annoy me because I want them to open on my primary monitor and I'll move them ...
When developing applications that are intended to run on multi-monitor setups, you can implement functionality to control where the application opens. Different operating systems and programming languages provide various APIs and tools for managing window positioning and behavior across monitors. Here’s an overview of ...
32,198
[ { "from": "human", "value": "As a two-monitor user at work, I've noticed that applications behave differently with regards to what monitor they open on (primary or secondary monitor, the last monitor the application opened on, and so on). To be honest, some applications annoy me because I want them to open ...