instruction
stringlengths
14
27.6k
completion
stringlengths
3
38.3k
__original_row_idx
int64
0
50k
conversations
listlengths
2
2
I'm looking into both of them, and while I have been quite pleased with NetAdvantage at my previous employer, I find the price point (plus testimonials like at What is the best winform UI component set?) to make me hesitate and consider DXExperience. That said, I'm wondering: What your experiences are in field with ...
When comparing NetAdvantage (Infragistics) and DXperience (DevExpress) for WinForms development, both libraries offer robust sets of components that can significantly enhance productivity and UI quality. Here are some insights based on common experiences and features: ### General Experiences 1. **Performance and Usab...
40,280
[ { "from": "human", "value": "I'm looking into both of them, and while I have been quite pleased with NetAdvantage at my previous employer, I find the price point (plus testimonials like at What is the best winform UI component set?) to make me hesitate and consider DXExperience.\nThat said, I'm wondering: ...
Would like to get a list of advantages and disadvantages of using Stored Procedures. The main advantage of SPs seems to be precompiled and an abstraction of data from the application. Give me your thoughts....
Stored Procedures (SPs) are a powerful feature of relational database management systems (RDBMS) that allow developers to encapsulate complex logic in a manageable way. Here are some advantages and disadvantages of using stored procedures: ### Advantages of Stored Procedures 1. **Performance Improvement**: Stored pro...
39,231
[ { "from": "human", "value": "Would like to get a list of advantages and disadvantages of using Stored Procedures. The main advantage of SPs seems to be precompiled and an abstraction of data from the application. Give me your thoughts....\n" }, { "from": "gpt", "value": "Stored Procedures (SPs...
How do you add a Hyperlink to a word document using an existing bookmark. I have been testing using IRB but continue to get Command Failed. I have attached to a running word application have text selected that I want to tie to the hyperlink. For testing I have been trying to just add a google hyperlnk. I figure once I...
It looks like you're trying to create a hyperlink in a Word document using Ruby's Interactive Ruby Shell (IRB) with the Word automation interface. There are a few things to check and adjust in your command. Here's how to properly add a hyperlink to the currently selected text in a Word document using a reference to a ...
39,807
[ { "from": "human", "value": "How do you add a Hyperlink to a word document using an existing bookmark. I have been testing using IRB but continue to get Command Failed. \nI have attached to a running word application have text selected that I want to tie to the hyperlink. For testing I have been trying to j...
I have long been wondering why lazy evaluation is useful. I have yet to have anyone explain to me in a way that makes sense; mostly it ends up boiling down to "trust me". Note: I do not mean memoization.
Lazy evaluation is a programming technique where the computation of a value is deferred until it is actually needed. This can lead to several useful properties and benefits, which can sometimes be a bit abstract, but I'll do my best to explain why lazy evaluation is valuable in a more concrete manner. ### Benefits of ...
37,964
[ { "from": "human", "value": "I have long been wondering why lazy evaluation is useful. I have yet to have anyone explain to me in a way that makes sense; mostly it ends up boiling down to \"trust me\".\nNote: I do not mean memoization. \n" }, { "from": "gpt", "value": "Lazy evaluation is a progr...
I'm thinking about exploring the idea of having our client software run as a service on a high port and listen for simple http GET requests from 127.0.0.1. The theory is that I would be able to access this service via js from a web page that is served from my site. 1) User installs client software that installs itself...
The concept you're exploring is technically feasible, but there are significant considerations and potential pitfalls you need to be aware of: ### Technical Feasibility 1. **Running a Local Service**: The idea of running a client software as a service listening for HTTP requests on `127.0.0.1` is common for local appl...
39,865
[ { "from": "human", "value": "I'm thinking about exploring the idea of having our client software run as a service on a high port and listen for simple http GET requests from 127.0.0.1. The theory is that I would be able to access this service via js from a web page that is served from my site.\n1) User ins...
I have spent a long time searching for a product that would bring functionality similar to matplotlib to the .NET framework. From what I can tell, nothing really measures up. Is this an accurate assessment? Here is what I have found: Commercial: ChartFX Dundas KitWare's ActiViz (basically a managed version of VTK) ...
Your assessment of the available options for data visualization in the .NET framework is largely accurate. While there are several commercial and open-source libraries available, none quite replicate the full functionality and flexibility of Matplotlib in Python. ### Commercial Options 1. **ChartFX**: A well-known com...
39,855
[ { "from": "human", "value": "I have spent a long time searching for a product that would bring functionality similar to matplotlib to the .NET framework. From what I can tell, nothing really measures up. Is this an accurate assessment? Here is what I have found:\nCommercial:\n\nChartFX\nDundas\nKitWare's...
I am trying to wrap my head around this. I am making a business specific messaging application, it is going to connect between 5000 and 10,000 machines back to our datacenter via WCF (no vpns, all over the net). It is mainly for alerts and I need to be able to send message direclty to specific clients, and WCF allows ...
You’ve raised an interesting question regarding the scalability and port usage of a WCF (Windows Communication Foundation) application, especially with a large number of clients. Let’s break this down: ### Understanding Port Usage 1. **TCP Port Space**: The total number of available TCP ports for a single IP address ...
37,046
[ { "from": "human", "value": "I am trying to wrap my head around this. I am making a business specific messaging application, it is going to connect between 5000 and 10,000 machines back to our datacenter via WCF (no vpns, all over the net). It is mainly for alerts and I need to be able to send message dire...
How do I set up a hyperlink on my page that will recognize a landing page from another source (web page) and change my link destination temporarily? In other words: Page one. Someone clicks a link on page (1) and it brings them to my page. On my page there is a link that goes to another page specifically a sign up page...
To accomplish what you're looking to do, you can use JavaScript to detect the referrer (the web page that brought the user to your page) and then dynamically change the link based on that referrer. Here's how you can set it up: ### Steps to Implement 1. **HTML Structure**: Create a basic HTML structure with the hyper...
38,753
[ { "from": "human", "value": "How do I set up a hyperlink on my page that will recognize a landing page from another source (web page) and change my link destination temporarily?\nIn other words:\nPage one. Someone clicks a link on page (1) and it brings them to my page.\nOn my page there is a link that goes...
I have run into a bit of a desgin issue with some code that I have been working on: My code basic looks like this: Main COM wrapper: public class MapinfoWrapper { public MapinfoWrapper() { Publics.InternalMapinfo = new MapinfoWrapper(); } public void Do(string cmd) { //Call COM do...
Yes, there are several design considerations in your current implementation that could lead to issues, and there may be better ways to structure your code. Here are a few points to consider: 1. **Global State**: The use of a static class to hold the `InternalMapinfo` instance creates a form of global state, which can ...
36,192
[ { "from": "human", "value": "I have run into a bit of a desgin issue with some code that I have been working on:\nMy code basic looks like this:\nMain COM wrapper:\npublic class MapinfoWrapper \n{\n public MapinfoWrapper()\n {\n Publics.InternalMapinfo = new MapinfoWrapper();\n }\n\n publ...
I understand that floating point calculations have accuracy issues and there are plenty of questions explaining why. My question is if I run the same calculation twice, can I always rely on it to produce the same result? What factors might affect this? Time between calculations? Current state of the CPU? Different h...
In general, if you run the same floating-point calculations twice under the same conditions, you can expect to get the same result. However, there are several factors that can affect this consistency, particularly when it comes to floating-point arithmetic. Here’s a breakdown of potential factors that might influence t...
39,198
[ { "from": "human", "value": "I understand that floating point calculations have accuracy issues and there are plenty of questions explaining why. My question is if I run the same calculation twice, can I always rely on it to produce the same result? What factors might affect this?\n\nTime between calculat...
My Views dataContext is bounded to a presentationModel with two observableCollections Members. In the View I have one listView which ItemSource is bound to is the first observableCollection. In one of the LilstViews column I want to present values from the second obeservable Colletion in my presentationModel. I cant fi...
To achieve this, you'll need to bind your ComboBox to the second `ObservableCollection` in your ViewModel while still displaying it as part of the first `ObservableCollection` in the ListView. This is a common scenario in WPF when you want to display related data in a grid-like structure. Here’s how you can set this u...
38,838
[ { "from": "human", "value": "My Views dataContext is bounded to a presentationModel with two observableCollections Members. In the View I have one listView which ItemSource is bound to is the first observableCollection. In one of the LilstViews column I want to present values from the second obeservable Col...
We have two web servers with load balancing. We need to share some files between those servers. These would be uploaded files, session files, various files that php applications create. We don't want to use a heavyweight, no longer maintained or a commercial solution. We're looking for some lightweight open-source soft...
For your requirements of sharing files between web servers in a load-balanced setup without relying on heavyweight, commercial, or no longer maintained solutions, there are several lightweight open-source options to consider. Here are a few recommendations: ### 1. **NFS (Network File System)** - **Overview**: NFS is a...
36,776
[ { "from": "human", "value": "We have two web servers with load balancing. We need to share some files between those servers. These would be uploaded files, session files, various files that php applications create.\nWe don't want to use a heavyweight, no longer maintained or a commercial solution. We're loo...
I've been working a while with a project aiming to integrate AX with the Web. The company who delivered AX has chosen to use Business Connector (BC.net) directly on my side of the backend. I've searched a bit, and for me it looks like we must use Application Integration Framework (AIF) / Enterprise portal (EP) - this d...
It sounds like you are encountering some significant challenges with the integration of Microsoft Dynamics AX and your web application using Business Connector (BC.net). Here are some thoughts and considerations that may help clarify your approach and address the issues you're facing: ### Business Connector (BC.net) ...
39,734
[ { "from": "human", "value": "I've been working a while with a project aiming to integrate AX with the Web.\nThe company who delivered AX has chosen to use Business Connector (BC.net) directly on my side of the backend.\nI've searched a bit, and for me it looks like we must use Application Integration Framew...
I am using a nested html unordered list styled as a drop down. When the a tag within the inner lists list item is clicked it trigger some javascript which is supposed to set the value of a hidden field to the text for the link that was clicked. The javascript seems to work - I used an alert to read the value from the h...
You're correct in observing that the JavaScript you are using to set the value of the hidden input field is executed on the client side, while the server-side C# code executes when the page is processed on the server, which means it will not see any changes made by JavaScript after the page has been loaded. To capture...
38,795
[ { "from": "human", "value": "I am using a nested html unordered list styled as a drop down. When the a tag within the inner lists list item is clicked it trigger some javascript which is supposed to set the value of a hidden field to the text for the link that was clicked.\nThe javascript seems to work - I ...
My company is redesigning our intranet site and decided to go with DotNetNuke as the solution to implement. Now for the past year I've been trying to drive changes here about keeping development, testing, and production environments separate. I also want all changes that are relevant to the site to go into SVN, this in...
Using DotNetNuke (DNN) to redesign your intranet site and establishing a solid development workflow with separate environments is a great approach. Here are some insights and best practices that could help you with your project: ### Managing Environments 1. **Separate Environments**: - **Development**: This is wh...
39,599
[ { "from": "human", "value": "My company is redesigning our intranet site and decided to go with DotNetNuke as the solution to implement. Now for the past year I've been trying to drive changes here about keeping development, testing, and production environments separate. I also want all changes that are rel...
I've come across a couple of popular PHP-related answers recently that suggested using the superglobal $_REQUEST, which I think of as code smell, because it reminds me of register_globals. Can you provide a good explanation/evidence of why $_REQUEST is bad practice? I'll throw out a couple of examples I've dug up, and ...
You're absolutely right to be cautious about the use of the `$_REQUEST` superglobal in PHP. There are several reasons why it's considered a bad practice, particularly in terms of security and maintainability. Let's break this down: ### Theoretical Concerns with `$_REQUEST` 1. **Inconsistent Source**: `$_REQUEST` comb...
32,782
[ { "from": "human", "value": "I've come across a couple of popular PHP-related answers recently that suggested using the superglobal $_REQUEST, which I think of as code smell, because it reminds me of register_globals.\nCan you provide a good explanation/evidence of why $_REQUEST is bad practice? I'll throw ...
I was always wondering why it is a big deal having version control support inside an IDE. I always preferred to use a command-line/standalone version of the version control of choice and never found IDE integration helpful. I know it can be helpful sometimes, for example to automatically keep track of renames, but I wa...
Your perspective on version control and IDE integration is a valid one, and many developers share your preference for command-line tools over IDE-integrated solutions. Here are some points to consider regarding the advantages and disadvantages of version control integration in an IDE: ### Advantages of IDE Integration...
38,277
[ { "from": "human", "value": "I was always wondering why it is a big deal having version control support inside an IDE.\nI always preferred to use a command-line/standalone version of the version control of choice and never found IDE integration helpful.\nI know it can be helpful sometimes, for example to au...
I have got a simple page with a HtmlInputHidden field. I use Javascript to update that value and, when posting back the page, I want to read the value of that HtmlInputHidden field. The Value property of that HtmlInputHidden field is on postback the default value (the value it had when the page was created, not the val...
It seems like you're encountering an issue with the `HtmlInputHidden` field not retaining the updated value set by JavaScript during a postback in an ASP.NET Web Forms application. Here are some suggestions to troubleshoot and fix the issue: 1. **Ensure Correct ID Reference**: Make sure that when you're referencing th...
39,110
[ { "from": "human", "value": "I have got a simple page with a HtmlInputHidden field. I use Javascript to update that value and, when posting back the page, I want to read the value of that HtmlInputHidden field. The Value property of that HtmlInputHidden field is on postback the default value (the value it h...
Ok, so I have VS 2008 and SVN. When I "rebuild all" a handful of my .dll's disappear from my bin folder. I have these .dll's in a library folder and that's where I am referencing them from. When I go to publish the app the publish fails, I think they are related. When I reboot my web.config (change something and save...
It sounds like you're experiencing a couple of issues with your Visual Studio 2008 project and SVN (Subversion) related to the handling of .dll files during the build and publish process. Here are some steps you can take to troubleshoot and resolve the problems: ### 1. **Check Project References:** Ensure that all ...
38,670
[ { "from": "human", "value": "Ok, so I have VS 2008 and SVN. When I \"rebuild all\" a handful of my .dll's disappear from my bin folder. \nI have these .dll's in a library folder and that's where I am referencing them from. \nWhen I go to publish the app the publish fails, I think they are related. When I re...
I'm making a game and one of the methods calculates a character's base hit numbers based on skill values. The method currently calculates each value individually, since each skill can be used at short, medium, and long range. I originally thought I could combine the skills into a tuple and iterate over it, dynamically ...
It's great that you're thinking about making your code more dynamic and maintainable! To achieve this, you can use a combination of lists (or tuples) and dictionaries to store the skills and their respective modifiers for different ranges. This way, you can iterate over the skills and their modifiers to calculate the b...
36,992
[ { "from": "human", "value": "I'm making a game and one of the methods calculates a character's base hit numbers based on skill values. The method currently calculates each value individually, since each skill can be used at short, medium, and long range.\nI originally thought I could combine the skills into...
I've inherited a rather large application that really could use some cleanup. There is data access code littered throughout the application. In code behinds, some in business logic classes, some inline in in classic asp pages. What I'd like to do is refactor this code, removing all the data access code into a few DAL ...
Refactoring a legacy application to clean up data access code is a great project, and you have a couple of options to achieve this goal. Since you are working with a large number of stored procedures and want to create a Data Access Layer (DAL) that generates methods dynamically, there are a few approaches you can cons...
39,206
[ { "from": "human", "value": "I've inherited a rather large application that really could use some cleanup. There is data access code littered throughout the application. In code behinds, some in business logic classes, some inline in in classic asp pages. \nWhat I'd like to do is refactor this code, removin...
If you read other people's source code, how do you approach the code? What patterns are you looking for (datatypes, loops, use of control flow, ...)? How long can you read other people's code without getting bored? What is the most exciting patterns that you have discovered so far?
Reading other people's source code can be both an enlightening and enjoyable experience. Here’s how I generally approach it: ### 1. **Context and Purpose** - **Understand the Context:** Before diving into the code, I try to gather information about the project, such as its purpose, architecture, and intended use. T...
36,545
[ { "from": "human", "value": "If you read other people's source code, how do you approach the code? What patterns are you looking for (datatypes, loops, use of control flow, ...)? How long can you read other people's code without getting bored? What is the most exciting patterns that you have discovered so f...
How can I configure WCF service and client to completely bypass proxy settings configured in IE. My application works in a LAN and I use both BasicHttp and NetTcp endpoints.
To configure your WCF service and client to bypass the proxy settings configured in Internet Explorer (IE), you can take the following steps. By default, WCF clients may pick up the proxy settings from IE, which can lead to connectivity issues if your service should directly connect to a service within a LAN. Here's h...
34,369
[ { "from": "human", "value": "How can I configure WCF service and client to completely bypass proxy settings configured in IE.\nMy application works in a LAN and I use both BasicHttp and NetTcp endpoints.\n" }, { "from": "gpt", "value": "To configure your WCF service and client to bypass the prox...
When debugging an asp.net web application in VS2008 IDE, i feel it takes 'long' to launch the application because it my app is not big (about six pages). I am not using the in-built VS web-server, I'm using the standard IIS web-server on my development machine. (That is, on the 'Start Options' dialog, I have set to 'Us...
Debugging an ASP.NET web application in Visual Studio 2008 using IIS can sometimes be slower than expected, even for smaller applications. Here are several steps you can take to optimize the process and improve performance: 1. **Enable Precompilation**: If your application is configured to precompile before it is run,...
38,878
[ { "from": "human", "value": "When debugging an asp.net web application in VS2008 IDE, i feel it takes 'long' to launch the application because it my app is not big (about six pages).\nI am not using the in-built VS web-server, I'm using the standard IIS web-server on my development machine. (That is, on the...
I've got a particular SQL statement which takes about 30 seconds to perform, and I'm wondering if anyone can see a problem with it, or where I need additional indexing. The code is on a subform in Access, which shows results dependent on the content of five fields in the master form. There are nearly 5000 records in th...
Based on your provided SQL statements, there are several potential areas for optimization to help reduce the execution time of your queries. Here’s a breakdown of suggestions and areas to consider: ### 1. **Indexing**: Indexes can greatly improve query performance, especially when filtering and joining tables. For you...
36,932
[ { "from": "human", "value": "I've got a particular SQL statement which takes about 30 seconds to perform, and I'm wondering if anyone can see a problem with it, or where I need additional indexing.\nThe code is on a subform in Access, which shows results dependent on the content of five fields in the master...
I do some C# fat application on Citrix/Terminal Server. How to measure actual memory usage per-session? What can I do to reduce the memory usage in total? We still working on .NET 1.1. Does it have a difference if we upgrade our .NET runtime?
Measuring memory usage per session in a Citrix or Terminal Server environment can be done using several tools and methods. Below are some approaches to measure and reduce memory usage, along with information about the impact of upgrading from .NET 1.1. ### Measuring Memory Usage Per Session 1. **Task Manager**: You c...
36,386
[ { "from": "human", "value": "I do some C# fat application on Citrix/Terminal Server.\nHow to measure actual memory usage per-session?\nWhat can I do to reduce the memory usage in total?\nWe still working on .NET 1.1. Does it have a difference if we upgrade our .NET runtime?\n" }, { "from": "gpt", ...
At every company I have worked at, I have found that people are still writing their SQL queries in the ANSI-89 standard: select a.id, b.id, b.address_1 from person a, address b where a.id = b.id rather than the ANSI-92 standard: select a.id, b.id, b.address_1 from person a inner join address b on a.id = b.id For an e...
The debate between ANSI-89 and ANSI-92 SQL syntax often centers on readability, maintainability, and clarity of intent rather than direct performance benefits. Here are some key points that you can use to advocate for ANSI-92 syntax: ### 1. **Readability and Maintainability** - **Separation of Concerns**: ANSI-92 s...
40,116
[ { "from": "human", "value": "At every company I have worked at, I have found that people are still writing their SQL queries in the ANSI-89 standard:\nselect a.id, b.id, b.address_1\nfrom person a, address b\nwhere a.id = b.id\n\nrather than the ANSI-92 standard:\nselect a.id, b.id, b.address_1\nfrom person...
What sort of mathematics do you use in your .NET application, excluding everything that's in System.Math? I think that System.Math is woefully inadequate. For example, in several official .NET frameworks, I can count three different implementations of matrices. The same goes for vectors. One implementation of a comple...
Creating a hypothetical `System.Mathematics` namespace in .NET would indeed address the inadequacies of the current `System.Math` class and provide a more robust and flexible framework for mathematical computations. Here are some ideas for what such a namespace could include: ### 1. **Linear Algebra** - **Matrix Clas...
38,487
[ { "from": "human", "value": "What sort of mathematics do you use in your .NET application, excluding everything that's in System.Math? \nI think that System.Math is woefully inadequate. For example, in several official .NET frameworks, I can count three different implementations of matrices. The same goes f...
I am using jQuery to make an AJAX request to a remote endpoint. That endpoint will return a JSON object if there is a failure and that object will describe the failure. If the request is successful it will return HTML or XML. I see how to define the expected request type in jQuery as part of the $.ajax() call. Is th...
In jQuery, you can determine the response type inside the `success` handler by inspecting the content type of the response. The server should return a `Content-Type` header that indicates the format of the response (like `application/json`, `text/html`, or `application/xml`). You can check this header through the `jqXH...
39,236
[ { "from": "human", "value": "I am using jQuery to make an AJAX request to a remote endpoint. That endpoint will return a JSON object if there is a failure and that object will describe the failure. If the request is successful it will return HTML or XML.\nI see how to define the expected request type in j...
I am using freeglut for opengl rendering... I need to draw an envelop looking like a cone (2D) that has to be filled with some color and some transparency applied. Is the freeglut toolkit equipped with such an inbuilt functionality to draw filled geometries(or some trick)? or is there some other api that has an inbuilt...
To fill custom geometries in OpenGL using FreeGLUT, you generally need to follow a straightforward approach where you draw the filled shape using triangles, or you can use alternative methods like creating a filled polygon with a series of triangles. The `GL_TRIANGLE_FAN` and `GL_TRIANGLE_STRIP` primitive types can als...
37,083
[ { "from": "human", "value": "I am using freeglut for opengl rendering...\nI need to draw an envelop looking like a cone (2D) that has to be filled with some color and some transparency applied.\nIs the freeglut toolkit equipped with such an inbuilt functionality to draw filled geometries(or some trick)?\nor...
I am absolutely new to the .NET world, and started with C# on friday. I have some experience with database apps, though. We will go with LINQ-to-SQL for a medium scale project. I am used to generating my schema from classes and keep track of changes with subversion and equivalents to Ruby's Migrations. There obviously ...
Welcome to the .NET world and to C#! It sounds like you have a good plan for handling your project. Let's break down your questions and concerns step by step. ### 1. Generating the Database Schema from Classes Using Castle Project's ActiveRecord is a valid approach, especially if you are comfortable with that style o...
39,704
[ { "from": "human", "value": "I am absolutely new to the .NET world, and started with C# on friday. I have some experience with database apps, though.\nWe will go with LINQ-to-SQL for a medium scale project. I am used to generating my schema from classes and keep track of changes with subversion and equivale...
I try to keep it brief and concise. I have to write a program that takes queries in SQL form and searches an XML. Right now I am trying to disassemble a string into logical pieces so I can work with them. I have a string as input and want to get a MatchCollection as output. Please not that the test string below is of a...
It looks like there are a few issues in your regular expression that prevent it from matching the expected patterns in your input string. Let's break it down and correct it step by step. 1. **Anchors and Word Boundaries**: The `^` anchor (to match the start of a line) should be used appropriately, and the `\b` (word b...
39,547
[ { "from": "human", "value": "I try to keep it brief and concise. I have to write a program that takes queries in SQL form and searches an XML. Right now I am trying to disassemble a string into logical pieces so I can work with them. I have a string as input and want to get a MatchCollection as output.\nPle...
When I believed in American dream about encapsulation and polymorphism, intrusion of Web Services washed my objects off with RPC calls... When I cherished my resurrected PONOs, ugly army of barbarians called proxy objects conquered my lands... Later, peace seemed to come back with DDD and NHibernate on the server side,...
It sounds like you're experiencing a common dilemma many developers face when trying to maintain object-oriented principles in a world increasingly dominated by service-oriented architectures (SOA) and API-centric designs. The fears and frustrations you've expressed highlight the tension between the purity of object-or...
37,124
[ { "from": "human", "value": "When I believed in American dream about encapsulation and polymorphism, intrusion of Web Services washed my objects off with RPC calls...\nWhen I cherished my resurrected PONOs, ugly army of barbarians called proxy objects conquered my lands...\nLater, peace seemed to come back ...
I am trying to write an installer (by creating a .vdproj) that will work on both Windows Vista and XP. The only thing I am finding is that when I try to run it on Vista, the files that I include in the installer are installed with Read-only permissions for the Users groups. This is a problem because the application n...
To address the issue of file permissions in your installer created using `.vdproj` on Windows Vista and XP, you can consider the following approaches: 1. **Change Permissions in the Installer**: While the Visual Studio Setup and Deployment projects (which produce `.vdproj` files) do not provide a straightforward wa...
39,554
[ { "from": "human", "value": "I am trying to write an installer (by creating a .vdproj) that will work on both Windows Vista and XP. The only thing I am finding is that when I try to run it on Vista, the files that I include in the installer are installed with Read-only permissions for the Users groups. Th...
I'm now trying to create a xml-rpc server with the CodeIgniter Framework. <?php $this->load->library('xmlrpc'); $this->load->library('xmlrpcs'); $config['functions']['weblogUpdates.ping'] = array('function' => 'weblogUpdates.ping'); $config['functions']['ping'] = array('function' => 'weblogUpdates.ping'); $config['fu...
To set up an XML-RPC server in CodeIgniter that can respond to pings from WordPress, you need to define the functions that WordPress will call when it sends the ping. The ping that WordPress sends typically has a method named `weblogUpdates.ping`, which you will need to define in your CodeIgniter controller. Here’s an...
39,550
[ { "from": "human", "value": "I'm now trying to create a xml-rpc server with the CodeIgniter Framework. \n<?php\n$this->load->library('xmlrpc');\n$this->load->library('xmlrpcs');\n\n$config['functions']['weblogUpdates.ping'] = array('function' => 'weblogUpdates.ping');\n$config['functions']['ping'] = array('...
I'm writing a script to display the 10 most recently "active" WordPress blog posts (i.e. those with the most recent comments). Problem is, the list has a lot of duplicates. I'd like to weed out the duplicates. Is there an easy way to do this by changing the MySQL query (like IGNORE, WHERE) or some other means? Here's ...
To ensure that the query returns unique posts while still retrieving the most recently active ones based on comments, you can adjust your SQL query to utilize the `DISTINCT` clause combined with a `GROUP BY` on `comment_post_ID`. This will allow you to get only one entry per post while sorting by the latest comment dat...
39,908
[ { "from": "human", "value": "I'm writing a script to display the 10 most recently \"active\" WordPress blog posts (i.e. those with the most recent comments). Problem is, the list has a lot of duplicates. I'd like to weed out the duplicates. Is there an easy way to do this by changing the MySQL query (like I...
I'm attempting to bind a DependancyProperty in one of my usercontrols to the Width property of a Column in a Grid. I have code similar to this: <Grid x:Name="MyGridName"> <Grid.ColumnDefinitions> <ColumnDefinition x:Name="TitleSection" Width="100" /> <ColumnDefinition Width="*" /> </Grid.Column...
It seems like you're experiencing difficulties in binding a `DependencyProperty` in your user control to the `ActualWidth` of a `ColumnDefinition`. You're correct that directly binding to a `ColumnDefinition` using its `x:Name` won't work in the way you're expecting. In WPF, `ColumnDefinition` does not inherit from `...
38,496
[ { "from": "human", "value": "I'm attempting to bind a DependancyProperty in one of my usercontrols to the Width property of a Column in a Grid. \nI have code similar to this:\n<Grid x:Name=\"MyGridName\">\n <Grid.ColumnDefinitions>\n <ColumnDefinition x:Name=\"TitleSection\" Width=\"100\" />\n ...
I'm sure that all of us have had to deal with telecommuters at some point in time, and I'm facing a situation now where my new project will have a "core" group of office workers and some off-site telecommuters. Not wanting to repeat past mistakes, I'd really like to know what ways people have tried in the past to effe...
Integrating telecommuters into an Agile process like Scrum can indeed be challenging, but there are various strategies that teams have successfully employed to foster inclusion, accountability, and effective communication. Here are some best practices to consider: ### 1. **Establish Clear Communication Channels** -...
17,945
[ { "from": "human", "value": "I'm sure that all of us have had to deal with telecommuters at some point in time, and I'm facing a situation now where my new project will have a \"core\" group of office workers and some off-site telecommuters. Not wanting to repeat past mistakes, I'd really like to know what...
I'm looking to setup video uploads for users on a site and want to have them viewed through a Flash player. The site is already partially built (by someone else) and I'm wondering what kind of technologies there are to deal with the video files, specifically in PHP. I'm thinking the files need to be converted to an FLV...
Setting up video uploads on your site and ensuring they can be viewed through a Flash player involves several steps. However, it's important to note that Flash has been officially discontinued as of December 2020, so relying on Flash for video playback is not advisable for future-proofing your application. That said, i...
38,516
[ { "from": "human", "value": "I'm looking to setup video uploads for users on a site and want to have them viewed through a Flash player. The site is already partially built (by someone else) and I'm wondering what kind of technologies there are to deal with the video files, specifically in PHP.\nI'm thinkin...
Say I have 2 tables: Customers and Orders. A Customer can have many Orders. Now, I need to show any Customers with his latest Order. This means if a Customer has more than one Orders, show only the Order with the latest Entry Time. This is how far I managed on my own: SELECT a.*, b.Id FROM Customer a INNER JOIN Order b...
To achieve your goal of displaying each customer along with their latest order, you'll want to use a subquery or a common table expression (CTE) to identify the latest order for each customer. You can then join this result with the `Customers` table to get the desired information. Here’s how you can do it using a subqu...
38,657
[ { "from": "human", "value": "Say I have 2 tables: Customers and Orders. A Customer can have many Orders.\nNow, I need to show any Customers with his latest Order. This means if a Customer has more than one Orders, show only the Order with the latest Entry Time.\nThis is how far I managed on my own:\nSELECT ...
I am using Zend_Db to insert some data inside a transaction. My function starts a transaction and then calls another method that also attempts to start a transaction and of course fails(I am using MySQL5). So, the question is - how do I detect that transaction has already been started? Here is a sample bit of code: ...
In Zend_Db, there is no built-in method to check if a transaction has already been started. However, you can implement a mechanism to track the transaction state yourself. One common approach is to use a static property to maintain the transaction state, allowing you to determine whether to start a new transaction or n...
38,038
[ { "from": "human", "value": "I am using Zend_Db to insert some data inside a transaction. My function starts a transaction and then calls another method that also attempts to start a transaction and of course fails(I am using MySQL5). So, the question is - how do I detect that transaction has already been ...
When I plug my HP Laserjet 3015, Windows detects the correct model and then tries to install the appropriate drivers. How can I detect the model of connected printer(s)? I don't want to use the list of installed printers because a Zebra printer can be installed with a Generic/Text only driver. I'm a Delphi and C# progr...
To detect the model of connected printers, especially in a way that works regardless of the driver used, you can leverage the Windows API to access printer information. Below, I'll provide examples in both Delphi and C# to demonstrate how to enumerate the connected printers and retrieve their properties, including the ...
32,541
[ { "from": "human", "value": "When I plug my HP Laserjet 3015, Windows detects the correct model and then tries to install the appropriate drivers.\nHow can I detect the model of connected printer(s)? I don't want to use the list of installed printers because a Zebra printer can be installed with a Generic/T...
I have a file (called "number.txt") which I want to read to an array in Java. How exactly do I go ahead and do this? It is a straight-forward "1-dimensional" file, containing 100 numbers. The problem is that I get an exception every time. Apparently it can't find it (I am sure its spelled correctly). When looking throu...
To read a file in Java and store its contents in an array, you can use the `BufferedReader` class, which is part of the Java I/O package. The `BufferedReader` class allows you to read text from a character input stream efficiently. Here’s how you can do this step by step: ### 1. File Path If the file `number.txt` is ...
38,321
[ { "from": "human", "value": "I have a file (called \"number.txt\") which I want to read to an array in Java. How exactly do I go ahead and do this? It is a straight-forward \"1-dimensional\" file, containing 100 numbers.\nThe problem is that I get an exception every time. Apparently it can't find it (I am s...
Does anyone ever develop some application to control the spi device on OMAP3? I can load the spi driver "mcspi", but I don't know how to use it.
Yes, there are applications and frameworks that can help you control SPI devices on the OMAP3 platform using the `mcspi` driver. Here's a general guide on how you can interact with SPI devices once the `mcspi` driver is loaded. ### Prerequisites 1. **Kernel Module**: Make sure the `mcspi` kernel module is loaded. You ...
38,114
[ { "from": "human", "value": "Does anyone ever develop some application to control the spi device on OMAP3? I can load the spi driver \"mcspi\", but I don't know how to use it.\n" }, { "from": "gpt", "value": "Yes, there are applications and frameworks that can help you control SPI devices on the...
It turns out this whole misunderstanding of the open() versus fopen() stems from a buggy I2C driver in the Linux 2.6.14 kernel on an ARM. Backporting a working bit bashed driver solved the root cause of the problem I was trying to address here. I'm trying to figure out an issue with a serial device driver in Linux (...
In your situation, you are dealing with a low-level device communication issue, and it’s understandable that you want to ensure that your write transactions are being completed before moving on to reads. Using I2C, where timing can be critical, you need a reliable way to synchronize your reads and writes. ### Flush Me...
35,407
[ { "from": "human", "value": "\nIt turns out this whole misunderstanding of the open() versus fopen() stems from a buggy I2C driver in the Linux 2.6.14 kernel on an ARM. Backporting a working bit bashed driver solved the root cause of the problem I was trying to address here.\n\nI'm trying to figure out an ...
The simple question is: how to find out the location of an executable file in a Cocoa application. Remember that, in many Unix-like OS people use PATH environment to assign the preferred location for their executables, especially when they have several versions of same application in their system. As a good practice, ...
In a Cocoa application, the environment variables, including `PATH`, can differ from those in your terminal environment. This is primarily because GUI applications in macOS (Cocoa applications) do not inherit the same shell environment variables that you set in your shell configuration files (like `.bash_profile` or `....
34,125
[ { "from": "human", "value": "The simple question is: how to find out the location of an executable file in a Cocoa application. \nRemember that, in many Unix-like OS people use PATH environment to assign the preferred location for their executables, especially when they have several versions of same applica...
I'm using JSF/Facelets, and I'm trying to iterate over some Document objects (custom object) that I'm keeping in a HashMap. When the page is loaded, I'm getting the error "Property 'name' not found on type java.util.HashMap$Values". Here's what's in my backing bean: private Map<String, Document> documents = new HashM...
The issue you are encountering stems from the way JSF handles the `Collection` returned by `documents.values()`. When you return a `Collection<Document>` directly from the `getDocuments()` method, JSF is working with an object of type `java.util.Collection`, which does not have a defined iterator that exposes the prope...
36,805
[ { "from": "human", "value": "I'm using JSF/Facelets, and I'm trying to iterate over some Document objects (custom object) that I'm keeping in a HashMap. When the page is loaded, I'm getting the error \"Property 'name' not found on type java.util.HashMap$Values\". Here's what's in my backing bean:\nprivate...
I have an installer that deploys web services to IIS. After this has finshed a custom action fires that updates the database with the scripts required by the webservices. The scripts are currently deploying to IIS aswell because they are part of the .net project. How can I configure the installation process so the s...
To configure your installation process so that the scripts are unpacked from the MSI but not included in your .NET project for deployment to IIS, you can follow these general steps: ### Step 1: Modify Your Project File 1. **Exclude Scripts from Deployment**: First, ensure that your database scripts are not part of th...
36,945
[ { "from": "human", "value": "I have an installer that deploys web services to IIS. After this has finshed a custom action fires that updates the database with the scripts required by the webservices. The scripts are currently deploying to IIS aswell because they are part of the .net project. How can I co...
We are using C#, ASP.NET & WCF. I am trying to send form data to a web service which in turn inserts/updates a database with the data from my form. How should I send over my data? We have the forms populated fine but are having some issues with sending updates back to the web service. We have determined that it is not ...
To send form data to a WCF web service in an efficient and effective manner, it's important to choose a structured approach that avoids unnecessary complexity while ensuring type safety and clear data contracts. ### Recommended Approach 1. **Define a Data Contract**: Create a data contract that represents the data yo...
39,810
[ { "from": "human", "value": "We are using C#, ASP.NET & WCF. I am trying to send form data to a web service which in turn inserts/updates a database with the data from my form. How should I send over my data?\nWe have the forms populated fine but are having some issues with sending updates back to the web s...
I'd like to strip out occurrences of a specific tag, leaving the inner XML intact. I'd like to do this with one pass (rather than searching, replacing, and starting from scratch again). For instance, from the source: <element> <RemovalTarget Attribute="Something"> Content Here </RemovalTarget> </element...
You're on the right track using LINQ to XML for manipulating your XML structure, but the way you're modifying the collection while iterating over it can indeed lead to issues like null references or invalid states. To efficiently remove a specific tag while keeping its inner XML intact in one pass, you can use the `R...
40,753
[ { "from": "human", "value": "I'd like to strip out occurrences of a specific tag, leaving the inner XML intact. I'd like to do this with one pass (rather than searching, replacing, and starting from scratch again). For instance, from the source:\n<element>\n <RemovalTarget Attribute=\"Something\">\n ...
I have a web application I'm deploying at multiple clients. Each client will be consuming a web service that was developed by a third party and is hosted at each client location. The soap.location will be different for each deployment. I am looking to avoid having to do separate compiles foe each client. This blog po...
To avoid separate compiles for each client while allowing your web application to dynamically choose the appropriate SOAP endpoint for each deployment, you can follow a strategy that utilizes a derived class for the SOAP client. This approach typically involves creating a base class that represents your web service cli...
40,171
[ { "from": "human", "value": "I have a web application I'm deploying at multiple clients. Each client will be consuming a web service that was developed by a third party and is hosted at each client location. The soap.location will be different for each deployment.\nI am looking to avoid having to do separ...
I want to write a simple utility to upload images to various free image hosting websites like TinyPic or Imageshack via a right-click context menu for the file. How can I do this using .NET? I've seen some linux scripts that use cURL to post images to these website but I'm not sure how I could create the post request,...
Creating a utility to upload images to various image hosting sites using .NET is a great idea! Since you've found a resource that may be helpful (the Cropper tool and its plugins), I'll provide you with some guidance on how to create a simple application that uploads images via POST requests in C#. ### Steps to Creat...
39,202
[ { "from": "human", "value": "I want to write a simple utility to upload images to various free image hosting websites like TinyPic or Imageshack via a right-click context menu for the file.\nHow can I do this using .NET? I've seen some linux scripts that use cURL to post images to these website but I'm not...
What are profound advantages that one get when using COM for developing components over the WCF? Is there anything that can be done with COM and not with WCF?
When considering the advantages of using COM (Component Object Model) versus WCF (Windows Communication Foundation) for developing components, it's essential to understand the intended use cases and capabilities of each technology. Here are some profound advantages of using COM, along with distinctions that may allow y...
38,200
[ { "from": "human", "value": "What are profound advantages that one get when using COM for developing components over the WCF? Is there anything that can be done with COM and not with WCF?\n" }, { "from": "gpt", "value": "When considering the advantages of using COM (Component Object Model) versu...
I've got a message contained in an byte[], encrypted with "RSA/ECB/PKCS1Padding". To decrypt it I create a Cipher c and initiate it with c = Cipher.getInstance("RSA/ECB/PKCS1Padding"); Untill now I have only decrypted small messages, using the doFinal() method, returning an byte[] with the decrypted bytes. c.init(Cip...
In RSA encryption, especially when using PKCS#1 v1.5 padding (as in your case with `RSA/ECB/PKCS1Padding`), the maximum size of the data that can be encrypted in one operation is determined by the key size. For example, with a typical RSA key size of 1024 bits (128 bytes), you can only encrypt up to 117 bytes of data, ...
38,116
[ { "from": "human", "value": "I've got a message contained in an byte[], encrypted with \"RSA/ECB/PKCS1Padding\". To decrypt it I create a Cipher c and initiate it with\nc = Cipher.getInstance(\"RSA/ECB/PKCS1Padding\");\n\nUntill now I have only decrypted small messages, using the doFinal() method, returning...
I develop one application using VB.net (200%) that connects to MS-Access Database, I use TableAdapter and Dataset for connection to the Access DB file. I need to implement a simple transaction method (commit, rollback) in saving to the DB? Is there a way to do that without the need to use inline SQL statement? Thanks,
In VB.NET, when using a DataSet with TableAdapters to connect to a Microsoft Access database, implementing transactions can be a bit more complex than when working with ADO.NET directly. However, it is possible to implement transactions using TableAdapters by leveraging the underlying ADO.NET functionality. Here's a s...
39,538
[ { "from": "human", "value": "I develop one application using VB.net (200%) that connects to MS-Access Database, I use TableAdapter and Dataset for connection to the Access DB file.\nI need to implement a simple transaction method (commit, rollback) in saving to the DB?\nIs there a way to do that without the...
It's kind of a C puzzle. You have to tell if the program finish its execution, if so, how much time it takes to run and what it returns to the OS. static unsigned char buffer[256]; int main(void) { unsigned char *p, *q; q = (p = buffer) + sizeof(buffer); while (q - p) { p = buffer; while (!++*...
To analyze this C program and determine whether it finishes execution, how long it takes to run, and what it returns to the operating system, let's break down the code step by step. ### Code Analysis The provided code is: ```c static unsigned char buffer[256]; int main(void) { unsigned char *p, *q; q = (p = buff...
38,222
[ { "from": "human", "value": "It's kind of a C puzzle. You have to tell if the program finish its execution, if so, how much time it takes to run and what it returns to the OS.\nstatic unsigned char buffer[256];\n\nint main(void)\n{\n unsigned char *p, *q;\n q = (p = buffer) + sizeof(buffer);\n while (q -...
I'm trying to build a method that will receive a Linq table, and should return a List<> of values that will be a DropDownList Datasource. This is what I've got till now: public static List<Structs.NameValuePair> GenDropDownItens<T>(string ValueField , string TextField ) where T: class What i don't know how to do is, q...
To create a method that generates a dropdown list datasource from a LINQ table, you can use reflection to access the properties of the class dynamically based on the `ValueField` and `TextField` parameters provided. Below is a possible implementation of your method: ```csharp using System; using System.Collections.Gen...
34,328
[ { "from": "human", "value": "I'm trying to build a method that will receive a Linq table, and should return a List<> of values that will be a DropDownList Datasource.\nThis is what I've got till now:\npublic static List<Structs.NameValuePair> GenDropDownItens<T>(string ValueField , string TextField ) where ...
I have an application that needs to send a moderately high volume of messages between a number of AppDomains. I know that I could implement this using remoting, but I have also noticed that there are cross-domain delegates. Has anyone looked at this kind of problem?
Yes, cross-domain communication in .NET applications can be accomplished using various methods, including .NET Remoting and cross-domain delegates. Each approach has its pros and cons, and the best choice often depends on the specific requirements of your application, such as performance, complexity, scalability, and e...
36,801
[ { "from": "human", "value": "I have an application that needs to send a moderately high volume of messages between a number of AppDomains. I know that I could implement this using remoting, but I have also noticed that there are cross-domain delegates. Has anyone looked at this kind of problem?\n" }, ...
The PropertyGrid control is very useful for editing objects at run-time. I'm using it as follows: Form form = new Form(); form.Parent = this; form.Text = "Editing MyMemberVariable"; PropertyGrid p = new PropertyGrid(); p.Parent = form; p.Dock = DockStyle.Fill; p.SelectedObject = _MyMemberVariable; p.PropertyValueChang...
To achieve what you want, you'll need to implement a workaround since you cannot modify the original class `_MyMemberVariable`. However, you can use an adapter or wrapper class that provides the necessary notifications. Here's how you can do it: 1. Create a wrapper class that holds the original `_MyMemberVariable` and...
36,578
[ { "from": "human", "value": "The PropertyGrid control is very useful for editing objects at run-time. I'm using it as follows:\nForm form = new Form();\nform.Parent = this;\nform.Text = \"Editing MyMemberVariable\";\n\nPropertyGrid p = new PropertyGrid();\np.Parent = form;\np.Dock = DockStyle.Fill;\np.Selec...
I have an iframe inside my main page. There is a modalpopup inside the iframe page. So when the modalpopup is shown, the parent of the modalpopup is the iframe body and the main page parent body. Thus the overlay only covers the iframe and not the entire page. I tried moving the modalpopup from the iframe to the parent...
It looks like you’ve come up with a solid solution to the problem of showing a modal popup from within an iframe that needs to cover the entire parent document. Your approach of moving the modal popup to the main page and triggering it via JavaScript from the iframe is a well-structured workaround that avoids cross-dom...
39,388
[ { "from": "human", "value": "I have an iframe inside my main page. There is a modalpopup inside the iframe page. So when the modalpopup is shown, the parent of the modalpopup is the iframe body and the main page parent body. Thus the overlay only covers the iframe and not the entire page.\nI tried moving th...
Suppose the following data schema: Usage ====== client_id resource type amount Billing ====== client_id usage_resource usage_type rate In this example, suppose I have multiple resources, each of which can be used in many ways. For example, one resource is a widget. Widgets can be fooed and they can be bared. Gizmo...
Based on the schema you've provided, you can certainly model the relationships using Ruby on Rails and ActiveRecord. Given your requirements, you can set up a `has_many :through` relationship, although it may require a bit of additional logic to connect the `Usage` and `Billing` models based on the `client_id`, `resour...
37,833
[ { "from": "human", "value": "Suppose the following data schema:\nUsage\n======\nclient_id\nresource\ntype\namount\n\nBilling\n======\nclient_id\nusage_resource\nusage_type\nrate\n\nIn this example, suppose I have multiple resources, each of which can be used in many ways. For example, one resource is a wid...
Scott Hanselman recently posted a blog article describing how to compress strings stored in the session / cache. This looks fairly promising, but the majority of data that I am storing in the session / cache are not strings but custom classes. How would you go about compressing these? My initial thought would be to u...
To compress custom class objects when storing them in the session or cache while still allowing for mutable access (as shown in your example), you can follow these steps: 1. **Serialize and Compress**: First, serialize the object to a byte array and then compress that byte array. 2. **Decompress and Deserialize**: Wh...
38,677
[ { "from": "human", "value": "Scott Hanselman recently posted a blog article describing how to compress strings stored in the session / cache. This looks fairly promising, but the majority of data that I am storing in the session / cache are not strings but custom classes. How would you go about compressin...
So, when playing with the development I can just set settings.DEBUG to True and if an error occures I can see it nicely formatted, with good stack trace and request information. But on kind of production site I'd rather use DEBUG=False and show visitors some standard error 500 page with information that I'm working on ...
To achieve your logging requirements in a Django application running in a production environment, you can use Python's built-in `logging` module along with Django's logging configuration settings. Here's a step-by-step guide to help you set this up: ### 1. Set `DEBUG` to `False` In your Django settings file (e.g., `se...
37,631
[ { "from": "human", "value": "So, when playing with the development I can just set settings.DEBUG to True and if an error occures I can see it nicely formatted, with good stack trace and request information.\nBut on kind of production site I'd rather use DEBUG=False and show visitors some standard error 500 ...
I'm trying to use LinqToEntities and just noticed that there are no foreign key fields in the data model. That seems to cause some trouble when trying to add a record. Reading around I found that when adding a record you can do something like this (Product has a foreign key to the Categories table). Product myProduct ...
When working with LINQ to Entities (Entity Framework), it's true that you can manage relationships between entities using navigation properties, as you've demonstrated in your example. However, you can also work with foreign key properties directly, which simplifies the code when you're just looking to add a record wit...
40,531
[ { "from": "human", "value": "I'm trying to use LinqToEntities and just noticed that there are no foreign key fields in the data model. That seems to cause some trouble when trying to add a record.\nReading around I found that when adding a record you can do something like this (Product has a foreign key to...
I have this java code: <script src="http://www.google.com/jsapi"></script> <script type="text/javascript"> google.load("jquery", "1.2.6"); $("a#more").click(function() { $("#info_box").show("blind", { direction: "vertical" }, 800); }); </script> And this link: <a href="#" id="more">More Info...</a> info_box is jus...
The issue you're facing likely stems from several factors related to the jQuery version you are using, the `visibility` property of your `#info_box` div, and potentially how you have included jQuery in your HTML. ### Issues 1. **jQuery Version**: You are using jQuery 1.2.6, which is quite outdated and may not support...
37,156
[ { "from": "human", "value": "I have this java code:\n<script src=\"http://www.google.com/jsapi\"></script>\n<script type=\"text/javascript\">\ngoogle.load(\"jquery\", \"1.2.6\");\n\n$(\"a#more\").click(function() {\n\n$(\"#info_box\").show(\"blind\", { direction: \"vertical\" }, 800);\n\n});\n</script>\n\nA...
I'd like to send mail without bothering with the SMTP-Server which is used for delivery. So JavaMail API doesn't work for me because I have to specify a SMTP server to connect to. I'd like the library to find out on its own which SMTP server is responsible for which email address by querying the MX record of the mail a...
If you're looking for a library that can send emails without explicitly configuring an SMTP server, you can use libraries that can automatically discover the correct SMTP server by querying the MX (Mail Exchange) records of the domain associated with the email address. One option you could consider is using **Apache C...
34,712
[ { "from": "human", "value": "I'd like to send mail without bothering with the SMTP-Server which is used for delivery.\nSo JavaMail API doesn't work for me because I have to specify a SMTP server to connect to.\nI'd like the library to find out on its own which SMTP server is responsible for which email addr...
I have a view using a master page that contains some javascript that needs to be executed using the OnLoad of the Body. What is the best way to set the OnLoad on my MasterPage only for certain views? On idea I tried was to pass the name of the javascript function as ViewData. But I dont really want my Controllers to ha...
You are correct in thinking that relying on `ViewData` to pass JavaScript function names can tightly couple your views with the JavaScript implementation. Using jQuery's `document.ready` is a good alternative since it allows for more flexibility and doesn't require passing JavaScript function names directly through the...
31,265
[ { "from": "human", "value": "I have a view using a master page that contains some javascript that needs to be executed using the OnLoad of the Body. What is the best way to set the OnLoad on my MasterPage only for certain views?\nOn idea I tried was to pass the name of the javascript function as ViewData. B...
So let's say I'm using Python 2.5's built-in default sqlite3 and I have a Django model class with the following code: class SomeEntity(models.Model): some_field = models.CharField(max_length=50, db_index=True, unique=True) I've got the admin interface setup and everything appears to be working fine except that I c...
By default, SQLite is case-sensitive when it comes to string comparisons, which is why you are experiencing the behavior where 'some value' and 'Some Value' are considered different when enforcing the unique constraint on your `some_field`. To achieve case-insensitive uniqueness in your Django model, you can implement ...
38,226
[ { "from": "human", "value": "So let's say I'm using Python 2.5's built-in default sqlite3 and I have a Django model class with the following code:\nclass SomeEntity(models.Model):\n some_field = models.CharField(max_length=50, db_index=True, unique=True)\n\nI've got the admin interface setup and everythi...
Perhaps I am not asking or searching for this correctly: I want to have a desktop script (currently using python) that will update a list on a sharepoint site. The current script reads various file shares, ftp sites and a ArcGIS database to determine which metadata files have been updated and published. The script the...
You can achieve your goal of updating a SharePoint list using Python with the `Office365-REST-Python-Client` library, which allows you to interact with SharePoint Online and modify lists and libraries easily. Here's a step-by-step guide on how to do this: ### Prerequisites 1. **Python Environment**: Ensure you have P...
36,154
[ { "from": "human", "value": "Perhaps I am not asking or searching for this correctly:\nI want to have a desktop script (currently using python) that will update a list on a sharepoint site.\nThe current script reads various file shares, ftp sites and a ArcGIS database to determine which metadata files have ...
A couple of weeks ago, my piano teacher and I were bouncing ideas off of each other concerning meta-composing music software. The idea was this: There is a system taking midi input from a bunch of instruments, and pushes output to the speakers and lights. The software running on this system analyzes the midi data it's ...
Your concept for meta-composing music software is certainly intriguing, and you're not alone in exploring this territory! Here are some thoughts and answers to your questions: ### Are You Crazy? Not at all! Many composers and technologists are interested in exploring the intersection of live performance, improvisation...
28,365
[ { "from": "human", "value": "A couple of weeks ago, my piano teacher and I were bouncing ideas off of each other concerning meta-composing music software. The idea was this:\nThere is a system taking midi input from a bunch of instruments, and pushes output to the speakers and lights. The software running o...
I'm working with a MySQL query that writes into an outfile. I run this query once every day or two and so I want to be able to remove the outfile without having to resort to su or sudo. The only way I can think of making that happen is to have the outfile written as owned by someone other than the mysql user. Is thi...
When using `SELECT ... INTO OUTFILE` in MySQL, the file is created with the ownership and permissions of the user that the MySQL server process is running as, typically the `mysql` user. This can indeed create issues when you want to manage that file later, as you would need elevated privileges to remove or modify it. ...
39,849
[ { "from": "human", "value": "I'm working with a MySQL query that writes into an outfile. I run this query once every day or two and so I want to be able to remove the outfile without having to resort to su or sudo. The only way I can think of making that happen is to have the outfile written as owned by s...
I am new to decoding techniques and have just learnt about base64, sha-1, md5 and a few others yesterday. I have been trying to figure out what "orkut" worms actually contain. I was attacked by many orkut spammers and hackers in the past few days, and there is a similarity in the URLs that they send to us. I don't k...
It looks like the strings you provided are indeed encoded in a format similar to Base64, but they may be using a custom encoding or additional processing that is not standard Base64. Here are a few steps you can take to investigate the contents of these strings further: 1. **Check Padding**: Standard Base64 encoded ...
39,578
[ { "from": "human", "value": "I am new to decoding techniques and have just learnt about base64, sha-1, md5 and a few others yesterday. \nI have been trying to figure out what \"orkut\" worms actually contain. \nI was attacked by many orkut spammers and hackers in the past few days, and there is a similarity...
I'm wondering what are the recommended ways to handle situations where, in memory managed code, object didn't belong to any particular owner, i.e. objects released themselves. One such example could be a subclass of NSWindowController, which configures, displays and manages input and output of a single window. The cont...
Handling self-owned objects in memory-managed code, especially in the context of Objective-C and AppKit, can be quite challenging. Each approach you've outlined has its pros and cons, and the best choice often depends on the specific context and needs of your application. Here are some insights and considerations for e...
39,340
[ { "from": "human", "value": "I'm wondering what are the recommended ways to handle situations where, in memory managed code, object didn't belong to any particular owner, i.e. objects released themselves. One such example could be a subclass of NSWindowController, which configures, displays and manages inpu...
When building an application with a CLI, it is useful to avoid using tokens that are commonly used for shell features. For example, | is used for piping output of one application to input of the next. Please supply a complete list of tokens that would need to be escaped to be used? As a minimum/summary, for each token,...
When building a command-line interface (CLI) application, it's important to be aware of various shell tokens that have special meanings and can interfere with user input. Below is a list of commonly used tokens across various operating systems and shells, along with explanations and escape methods. ### Common Shell To...
39,416
[ { "from": "human", "value": "When building an application with a CLI, it is useful to avoid using tokens that are commonly used for shell features.\nFor example, | is used for piping output of one application to input of the next.\nPlease supply a complete list of tokens that would need to be escaped to be ...
I am using Delphi 7 and ICS components to communicate with php script and insert some data in mysql database... How to post unicode data using http post ? After using utf8encode from tnt controls I am doing it to post to PHP script <?php echo "Note = ". $_POST['note']; if($_POST['action'] == 'i') { /* * Th...
To post Unicode data using HTTP POST with Delphi 7 and ICS (Internet Component Suite) components, and ensure that the data is received correctly in your PHP script, you need to make sure that the data is properly encoded as UTF-8 before sending it. Here’s how you can achieve this step-by-step: ### Step 1: Ensure Unico...
36,930
[ { "from": "human", "value": "I am using Delphi 7 and ICS components to communicate with php script and insert some data in mysql database...\nHow to post unicode data using http post ?\nAfter using utf8encode from tnt controls I am doing it to post to PHP script \n<?php\necho \"Note = \". $_POST['note'];\n\...
Is there a way to reuse a 3rd party control reference? For example, I have this referenced in my App.xaml xmlns:cust="clr-namespace:ThirdParty.Controls;assembly=ThirdParty.Controls" I don't want to repeat this 3rd party control xml namespace on each page/control that needs a control from the library. Is there anyway...
In WPF, the `xmlns` declarations are scoped to the XAML file where they are defined. This means that if you want to use a custom namespace (such as a third-party control library) in multiple XAML files, you need to declare it in each file. Unfortunately, there isn't a built-in way to declare an XML namespace globally f...
40,089
[ { "from": "human", "value": "Is there a way to reuse a 3rd party control reference?\nFor example, I have this referenced in my App.xaml\nxmlns:cust=\"clr-namespace:ThirdParty.Controls;assembly=ThirdParty.Controls\"\n\nI don't want to repeat this 3rd party control xml namespace on each page/control that need...
I have two apps: Win32 Console App. MFC GUI App. I wanted to execute the console app in MFC GUI and I am want to get data from that Console app and display them in GUI. I get this error while compiling: fatal error C1189: #error : Building MFC application with /MD[d] (CRT dll version) requires MFC shared dll versio...
The error you are encountering is due to the way your MFC application is set up in terms of the runtime libraries. When you create an MFC application, you have the option to link against either the static version of the MFC libraries or the shared DLL version. The error message indicates that you are trying to build yo...
36,482
[ { "from": "human", "value": "I have two apps:\n\nWin32 Console App.\nMFC GUI App.\n\nI wanted to execute the console app in MFC GUI and I am want to get data from that Console app and display them in GUI.\nI get this error while compiling:\n\nfatal error C1189: #error : Building MFC application with /MD[d]...
I am facing strange issue on Windows CE: Running 3 EXEs 1)First exe doing some work every 8 minutes unless exit event is signaled. 2)Second exe doing some work every 5 minutes unless exit event signaled. 3)Third exe while loop is running and in while loop it do some work at random times. This while loop continues until...
What you're experiencing is likely related to how Windows CE (and other operating systems) handle process scheduling and CPU resource allocation. Here are some considerations and suggestions for troubleshooting the issue: ### Potential Causes: 1. **CPU Resource Consumption**: - If the third EXE is running an infi...
39,302
[ { "from": "human", "value": "I am facing strange issue on Windows CE:\nRunning 3 EXEs\n1)First exe doing some work every 8 minutes unless exit event is signaled.\n2)Second exe doing some work every 5 minutes unless exit event signaled.\n3)Third exe while loop is running and in while loop it do some work at ...
I am working on a simple CAD program which uses OpenGL to handle on-screen rendering. Every shape drawn on the screen is constructed entirely out of simple line segments, so even a simple drawing ends up processing thousands of individual lines. What is the best way to communicate changes in this collection of lines be...
When managing a large collection of line segments in a CAD program using OpenGL, efficiency is key for rendering performance and responsiveness. Here are several strategies for effectively communicating changes between your application and OpenGL: ### Data Structure: 1. **Vertex Buffer Objects (VBOs)**: - Use VBOs ...
39,385
[ { "from": "human", "value": "I am working on a simple CAD program which uses OpenGL to handle on-screen rendering. Every shape drawn on the screen is constructed entirely out of simple line segments, so even a simple drawing ends up processing thousands of individual lines.\nWhat is the best way to communic...
I want this method to work for any given number of arguments, i can do that with code generation(with a lot of ugly code), can it be done with recursion? if so how? I understand recursion, but i dont know how to write this. private static void allCombinations(List<String>... lists) { if (lists.length == 3) { ...
Yes, you can use recursion to generate all combinations of a variable number of lists. The idea is to keep one list fixed and recursively process the remaining lists. Here’s how you can implement this in Java: ```java import java.util.List; public class CombinationGenerator { public static void allCombinations(L...
37,201
[ { "from": "human", "value": "I want this method to work for any given number of arguments, i can do that with code generation(with a lot of ugly code), can it be done with recursion? if so how? I understand recursion, but i dont know how to write this.\nprivate static void allCombinations(List<String>... li...
I was discussing multiple inheritance vs. single inheritance with a friend of mine, and discovered that plainly, my conception of Object-Oriented design is completely different than his. I am mostly an Obj-C programmer, so Multiple Inheritance is not something I use daily. He is mostly a C++ programmer under Windows/P...
Your discussion touches on some important concepts in both object-oriented programming (OOP) and biological inheritance, and it illustrates how these ideas can be interpreted differently depending on one's background and experiences with programming languages. ### Object-Oriented Programming (OOP) Concepts 1. **Inher...
39,146
[ { "from": "human", "value": "I was discussing multiple inheritance vs. single inheritance with a friend of mine, and discovered that plainly, my conception of Object-Oriented design is completely different than his. I am mostly an Obj-C programmer, so Multiple Inheritance is not something I use daily. He is...
I need to create a way to upload a bytestream using chunked encoding. I have a byte array that contains an audio file, I would like to send that file to a server using a chunked stream. I've been able to do a chunked upload via a native socket but I would really like to do this via one of the NSURL (NSURLConnection?) l...
Yes, you can upload a byte stream using chunked encoding with `NSURLSession` in Swift, which is the modern replacement for `NSURLConnection`. You can achieve this by using a `NSURLSessionUploadTask` to send the audio file in chunks. Below is an example of how to implement this in your iOS or macOS app. ### Step-by-Ste...
34,714
[ { "from": "human", "value": "I need to create a way to upload a bytestream using chunked encoding.\nI have a byte array that contains an audio file, I would like to send that file to a server using a chunked stream.\nI've been able to do a chunked upload via a native socket but I would really like to do thi...
One of the companies required from its prospective employee to give the number of lines of code written in the life time in a certain programming language like Java, or C#. Since, most of us have a number of years of experience in different projects in multiple languages and we hardly keep record of this, what would be...
Calculating the total lines of code (LOC) you’ve written over your career can indeed be a challenge, especially if you’ve worked on numerous projects and in different programming languages. Here are some steps and considerations to help you arrive at a reasonable estimate: ### 1. **Define What Counts as Code** - **...
38,227
[ { "from": "human", "value": "One of the companies required from its prospective employee to give the number of lines of code written in the life time in a certain programming language like Java, or C#. Since, most of us have a number of years of experience in different projects in multiple languages and we ...
I know about code-behind files, but what is the best real-world way of Designers that are using DreamWeaver or other Design Tools to work with Visual Studio programmers? For example, say you have a basic website with user interface forms hitting the database... the database work is definitely done by the developer bu...
The collaboration between designers using tools like Dreamweaver and developers working in Visual Studio can indeed present challenges, especially when it comes to integrating design with functionality in web applications. To bridge this gap effectively, a structured workflow and communication strategy are essential. H...
39,312
[ { "from": "human", "value": "I know about code-behind files, but what is the best real-world way of Designers that are using DreamWeaver or other Design Tools to work with Visual Studio programmers? \nFor example, say you have a basic website with user interface forms hitting the database... the database w...
I found this site http://www.shutterfly.com/documentation/api_OrderImage.sfly but there are no examples of actually walking through the whole process. Does anyone have any good documentation on using this API to take a local photo and allow someone to order a print via shutterfly?
It appears that you are looking for documentation and guidance on using the Shutterfly API to upload a local photo and facilitate an order for prints. While the specific link you provided may not have complete examples, I can help you outline the typical steps you would take to achieve this goal using the API. ### Ste...
33,723
[ { "from": "human", "value": "I found this site\nhttp://www.shutterfly.com/documentation/api_OrderImage.sfly\nbut there are no examples of actually walking through the whole process. Does anyone have any good documentation on using this API to take a local photo and allow someone to order a print via shutte...
What are the main differences between search engines (DtSearch , Lucene.net, Sphinx, Google etc) that should influence the decision as to which to use to search proprietary data? The data to be searched consists of presentation-free data that is marked up with metadata in the form of name/value pairs. We’re not intere...
When considering search engines for proprietary data, especially when focusing on structured, presentation-free data marked with metadata in name/value pairs, it’s important to carefully evaluate your options based on the characteristics you’ve listed. Here’s a comparison of some of the main search engines (DtSearch, L...
31,601
[ { "from": "human", "value": "What are the main differences between search engines (DtSearch , Lucene.net, Sphinx, Google etc) that should influence the decision as to which to use to search proprietary data?\nThe data to be searched consists of presentation-free data that is marked up with metadata in the ...
I have a Visual Studio solution with four C# projects in it. I want to step into the code of a supporting project in the solution from my main project, but when I use the "Step into" key, it just skips over the call into that other project. I've set breakpoints in the supporting project, and they're ignored, and I can'...
It sounds like you've already checked some common settings, but there are still a few things you can verify to troubleshoot why you cannot step into the code of a supporting project in your solution. Here are several steps to help you resolve this issue: 1. **Ensure Projects are Properly Referenced:** - Make sure t...
34,265
[ { "from": "human", "value": "I have a Visual Studio solution with four C# projects in it. I want to step into the code of a supporting project in the solution from my main project, but when I use the \"Step into\" key, it just skips over the call into that other project. I've set breakpoints in the supporti...
I have a basic ajax application, which will not work, instead the php code is displayed in the browser. The javascript and html seem fine. I have copied the code verbatim from here: http://arief.aeroven.com/2008/07/30/first-ajax-script-tutorial-connecting-ajax-contain-pure-htmlphpand-javascript-to-mysql-database/ and t...
If your PHP code is being displayed in the browser instead of executing, there are a few common issues to check: 1. **PHP Installation**: Ensure that you have a web server (like Apache or Nginx) installed with PHP properly configured. If you're using XAMPP or WAMP, make sure the server is running. 2. **File Extension...
39,568
[ { "from": "human", "value": "I have a basic ajax application, which will not work, instead the php code is displayed in the browser. The javascript and html seem fine. I have copied the code verbatim from here:\nhttp://arief.aeroven.com/2008/07/30/first-ajax-script-tutorial-connecting-ajax-contain-pure-html...
It's simple enough to code up a class to store/validate something like 192.168.0.0/16, but I was curious if a native type for this already existed in .NET? I would imagine it would work a lot like IPAddress: CIDR subnet = CIDR.Parse("192.168.0.0/16"); Basically it just needs to make sure you're working with an IPv4 o...
As of my last update in October 2023, there is no built-in native type in .NET specifically for representing CIDR (Classless Inter-Domain Routing) notations like `192.168.0.0/16`. However, you can certainly create a custom class to handle CIDR notation effectively by leveraging the existing `IPAddress` class in .NET. ...
37,069
[ { "from": "human", "value": "It's simple enough to code up a class to store/validate something like 192.168.0.0/16, but I was curious if a native type for this already existed in .NET? I would imagine it would work a lot like IPAddress:\nCIDR subnet = CIDR.Parse(\"192.168.0.0/16\");\n\nBasically it just ne...
Is there any way to create - manipulate calendar events in Exchange Server 2003 ? I'm using VB.NET 2005. I don't want to use MAPI because everytime I will have to type user name and passwords. Is there any other way ? I used redemption.dll but everytime I want to add for eg. a calendar event it displays the login scree...
Creating and manipulating calendar events in Exchange Server 2003 using VB.NET can indeed be challenging, especially when you want to avoid the repeated login prompts that MAPI can trigger. However, you do have a few options to consider: ### 1. **WebDAV (Web Distributed Authoring and Versioning)** Exchange Server 2003...
37,781
[ { "from": "human", "value": "Is there any way to create - manipulate calendar events in Exchange Server 2003 ?\nI'm using VB.NET 2005. I don't want to use MAPI because everytime I will have to type user name and passwords. Is there any other way ? I used redemption.dll but everytime I want to add for eg. a ...
I am trying to use ShellExecute to open a file in Excel. I was reading about the function on MSDN forums, and I found the folowing information about the handle, which is the first parameter: "hwnd [in] A handle to the owner window used for displaying a user interface (UI) or error messages. This value can be NULL if t...
In the context of the `ShellExecute` function, the `hwnd` parameter refers to the handle of the window that will be considered the "owner" of any dialogs that may appear as a result of the operation being performed. When you specify a non-null handle, it allows any message boxes, dialogs, or error messages to be center...
39,845
[ { "from": "human", "value": "I am trying to use ShellExecute to open a file in Excel. I was reading about the function on MSDN forums, and I found the folowing information about the handle, which is the first parameter: \n\"hwnd [in] A handle to the owner window used for displaying a user interface (UI) or ...
Thanks for reading this. I am dynamically generating some data which includes a select drop-down with a text box next to it. If the user clicks the select, I am dynamically populating it (code below). I have a class on the select and I was hoping the following code would work. I tested it with an ID on the select and p...
To achieve your goal of dynamically populating multiple select elements using a class selector and updating adjacent text boxes, you need to make sure you're managing the context of `this` correctly, especially when you're inside nested functions like the success callback of the AJAX request. Here’s a revised version ...
38,741
[ { "from": "human", "value": "Thanks for reading this.\nI am dynamically generating some data which includes a select drop-down with a text box next to it. If the user clicks the select, I am dynamically populating it (code below). I have a class on the select and I was hoping the following code would work. ...
We want to share user validation configuration between a Java validation class (for sanity checking) and a Javascript-enabled form web interface (for usability). What's the best way to deploy this static file in our web application so that it is both available to the server-side code, and available via a URL accessed b...
To share user validation configuration between your Java server-side code and your JavaScript client-side code in a web application, you have a few options. Here's a common approach that balances accessibility and maintainability: ### Recommended Approach: JSON Configuration File 1. **Create a JSON Configuration File...
38,869
[ { "from": "human", "value": "We want to share user validation configuration between a Java validation class (for sanity checking) and a Javascript-enabled form web interface (for usability). What's the best way to deploy this static file in our web application so that it is both available to the server-side...
I'm creating a multi-part web form in ASP.NET that uses Panels for the different steps, making only the Panel for the current step visible. On Step 1, I have a drop-down list that uses a Javascript function to reconfigure some of the fields in the same Panel via "onchange". Obviously, since the client-side script is o...
For managing the visual state of your multi-step form in ASP.NET using Panels, you have a couple of effective approaches. Here are some suggestions that address your situation: ### 1. Use JavaScript and Local Storage One approach is to leverage the browser's local storage or session storage to maintain the state of y...
39,924
[ { "from": "human", "value": "I'm creating a multi-part web form in ASP.NET that uses Panels for the different steps, making only the Panel for the current step visible. On Step 1, I have a drop-down list that uses a Javascript function to reconfigure some of the fields in the same Panel via \"onchange\". O...
Is there any way to check if a given index of an array exists? I am trying to set numerical index but something like 1, 5, 6,10. And so I want to see if these indexes already exist and if they do just increase another counter. I normally work with php but I am trying to do this in c++, so basically I am trying to ask i...
In C++, there is no direct equivalent to PHP's `isset()` for checking if an index exists in an array. However, you can handle this by using different data structures. The most common approach would involve using either standard arrays or vectors, depending on your needs. ### 1. Using a Standard Array If you're using a...
38,005
[ { "from": "human", "value": "Is there any way to check if a given index of an array exists?\nI am trying to set numerical index but something like 1, 5, 6,10. And so I want to see if these indexes already exist and if they do just increase another counter.\nI normally work with php but I am trying to do thi...
I'm learning ASP.NET MVC and bugged by one issue. In the HomeController, the Index action has OutputCache attribute, but it seems doesn't work. [HandleError] public class HomeController : Controller { [OutputCache(Duration=5, VaryByParam="none")] public ActionResult Index() { ViewData["Title"] = "Ho...
The behavior you're observing is due to the way ASP.NET MVC handles routing and caching. When you access the default route (like `http://localhost:3573/`), it typically goes through a more complex routing mechanism, which might not be able to cache the output properly. However, when you access the action directly (like...
38,139
[ { "from": "human", "value": "I'm learning ASP.NET MVC and bugged by one issue.\nIn the HomeController, the Index action has OutputCache attribute, but it seems doesn't work.\n[HandleError]\npublic class HomeController : Controller\n{\n [OutputCache(Duration=5, VaryByParam=\"none\")]\n public ActionRes...
Lets say I need to write several functions processing some data. These functions are performing a single task - some mathematical calculations. I suppose there is no need to combine them with some data members. Shall I use: a class without data members and declare these functions as static methods so I can use them wi...
In C++, if you have a set of functions that are solely focused on performing mathematical calculations and do not require any shared state or data members, you have a few options to organize them. Each option has its own use cases and implications. Let's discuss the pros and cons of each approach: ### 1. Static Member...
39,676
[ { "from": "human", "value": "Lets say I need to write several functions processing some data. These functions are performing a single task - some mathematical calculations. I suppose there is no need to combine them with some data members.\nShall I use:\n\na class without data members and declare these func...
What is the best way to share Delphi source files among projects? Clarification: We want to use a single source file in multiple Delphi projects. We've been using our SCM tool to put the same file into multiple folders, but this is not a super-elegant experience and we are also considering migrating to a tool that doe...
Sharing Delphi source files among multiple projects can be a challenge, especially when you want to maintain a clean and manageable workflow for both code-time and compile-time scenarios. Based on your requirements and considerations, here are a few approaches that you might find helpful: ### 1. Use a Centralized Libr...
38,840
[ { "from": "human", "value": "What is the best way to share Delphi source files among projects?\nClarification: We want to use a single source file in multiple Delphi projects. We've been using our SCM tool to put the same file into multiple folders, but this is not a super-elegant experience and we are als...
I have an object that implements ArrayAccess, Iterator and Countable. That produces a nigh-perfect array masking. I can access it with offsets ($object[foo]), I can throw it into a foreach-loop, and many other things. But what I can't do is give it to the native array iterator functions (next(), reset(), current(), key...
In PHP, the native array iteration functions like `next()`, `reset()`, `current()`, and `key()` are designed to work with arrays, not objects implementing `Iterator` or `ArrayAccess`. Therefore, if you want to use these functions directly, you are somewhat limited since they are not designed to work with object instanc...
39,610
[ { "from": "human", "value": "I have an object that implements ArrayAccess, Iterator and Countable. That produces a nigh-perfect array masking. I can access it with offsets ($object[foo]), I can throw it into a foreach-loop, and many other things.\nBut what I can't do is give it to the native array iterator ...
Even on big-time sites such as Google, I sometimes make a request and the browser just sits there. The hourglass will turn indefinitely until I click again, after which I get a response instantly. So, the response or request is simply getting lost on the internet. As a developer of ASP.NET web applications, is ther...
When users experience delays in response from web applications—even when the requests are reaching the server and being processed promptly—it may not necessarily be related to server-side performance. Here are several strategies you can implement in your ASP.NET web applications to mitigate user-perceived delays and im...
39,197
[ { "from": "human", "value": "Even on big-time sites such as Google, I sometimes make a request and the browser just sits there. The hourglass will turn indefinitely until I click again, after which I get a response instantly. So, the response or request is simply getting lost on the internet. \nAs a deve...