instruction
stringlengths
14
27.6k
completion
stringlengths
3
38.3k
__original_row_idx
int64
0
50k
conversations
listlengths
2
2
how to validate letters and whitespaces using Zend Framework ?
To validate letters and whitespace characters in Zend Framework, you can utilize the built-in validators provided by the framework. One of the common validators used for this purpose is `Zend\Validator\Regex`, which allows you to create custom validation rules using regular expressions. Here’s a step-by-step guide on ...
45,938
[ { "from": "human", "value": "how to validate letters and whitespaces using Zend Framework ?\n" }, { "from": "gpt", "value": "To validate letters and whitespace characters in Zend Framework, you can utilize the built-in validators provided by the framework. One of the common validators used for t...
I have a list control where i want to show a string (thats fine) but a colored square as well. Imagine i have a "add player" button a text input with a color picker. I want to see the color + player name in the List. How could i do this ? [Bindable] public var data:ArrayCollection = new ArrayCollection(); <mx:List ...
Yes, you can achieve this by using a custom item renderer for your `List`. This will allow you to display a colored square (as a `Canvas` or `Rect`) alongside the player's name. Here’s a general outline of how you can set this up in Flex: 1. **Create a custom item renderer.** You will need to create a new MXML compon...
44,522
[ { "from": "human", "value": "I have a list control where i want to show a string (thats fine) but a colored square as well.\nImagine i have a \"add player\" button a text input with a color picker. I want to see the color + player name in the List. How could i do this ?\n[Bindable]\npublic var data:ArrayCol...
I am a part time developer (full time student) and the company I am working for uses SQL Server 2005. The thing I find strange about SQL Server that if you do a script that involves inserting, updating etc there isn't any real way to undo it except for a rollback or using transactions. You might say what's wrong with t...
You're right to be cautious about executing operations that can affect a large number of rows in SQL Server, especially without safeguards like transactions. In SQL Server, once you execute an `INSERT`, `UPDATE`, or `DELETE` statement without a transaction or a savepoint, the changes are immediately committed to the da...
45,643
[ { "from": "human", "value": "I am a part time developer (full time student) and the company I am working for uses SQL Server 2005. The thing I find strange about SQL Server that if you do a script that involves inserting, updating etc there isn't any real way to undo it except for a rollback or using transa...
I was thinking it would be nice to create a base class for NUnit test fixtures that opens a TransactionScope during the SetUp phase, then rolls back the transaction during tear down. Something like this: public abstract class TestFixtureBase { private TransactionScope _transaction; [TestFixtureSetUp] p...
Creating a base class for your NUnit test fixtures to manage transactions is a valid approach, especially when you want to ensure that your tests do not leave residual data in the database. Using a `TransactionScope` allows you to encapsulate your data operations within a transaction and roll back any changes made duri...
47,537
[ { "from": "human", "value": "I was thinking it would be nice to create a base class for NUnit test fixtures that opens a TransactionScope during the SetUp phase, then rolls back the transaction during tear down.\nSomething like this:\n public abstract class TestFixtureBase\n{\n private TransactionScop...
Here's the problem: I have to modify an existing Excel spreadsheet using .NET. The spreadsheet is hugely complex, and I just have to add data in some predefined areas. I'm investigating my options, and Excel Automation/InterOp is out of the question, as I'm implementing an ASP.NET website, and Excel probably isn't ins...
When working with Excel spreadsheets in a .NET environment without relying on Excel Automation/InterOp, you do have several options to consider. Let's explore the alternatives you mentioned as well as some additional options: 1. **ADO.NET with OleDb**: - **Pros**: Simple to implement for basic read/write operations...
45,996
[ { "from": "human", "value": "Here's the problem: \nI have to modify an existing Excel spreadsheet using .NET. The spreadsheet is hugely complex, and I just have to add data in some predefined areas.\nI'm investigating my options, and Excel Automation/InterOp is out of the question, as I'm implementing an AS...
I'm getting the error when accessing a Stored Procedure in SQL Server Server Error in '/' Application. Procedure or function 'ColumnSeek' expects parameter '@template', which was not supplied. This is happening when I call a Stored Procedure with a parameter through .net's data connection to sql (System.data.SqlClien...
The error you are encountering, "Procedure or function 'ColumnSeek' expects parameter '@template', which was not supplied," suggests that the stored procedure is not receiving the `@template` parameter properly. Based on your edit, it seems that the issue was due to the parameter `Template` being `null`, because of a m...
45,244
[ { "from": "human", "value": "I'm getting the error when accessing a Stored Procedure in SQL Server\nServer Error in '/' Application.\nProcedure or function 'ColumnSeek' expects parameter '@template', which was not supplied. \n\nThis is happening when I call a Stored Procedure with a parameter through .net's...
Is it possible to query certificate store on windows server 2008 using .net platform? I would like to get information about certificates that were issued by this system. tnx grega g
Yes, you can query the certificate store on Windows Server 2008 using the .NET Framework. The `System.Security.Cryptography.X509Certificates` namespace provides classes that allow you to work with X.509 certificates, including accessing the certificate store. Here's a simple example to retrieve certificates from the L...
44,801
[ { "from": "human", "value": "Is it possible to query certificate store on windows server 2008 using .net platform?\nI would like to get information about certificates that were issued by this system.\ntnx\ngrega g\n" }, { "from": "gpt", "value": "Yes, you can query the certificate store on Windo...
Has anyone had any experience scaling out SQL Server in a multi reader single writer fashion. If not can anyone suggest a suitable alternative for a read intensive web application, that they have experience with
Scaling out SQL Server in a multi-reader, single-writer setup can be challenging but achievable with the right strategies. Here are some common approaches and their implications: ### SQL Server Approaches 1. **Read Replicas**: - SQL Server supports read replicas through **Always On Availability Groups**, where you...
46,438
[ { "from": "human", "value": "Has anyone had any experience scaling out SQL Server in a multi reader single writer fashion. If not can anyone suggest a suitable alternative for a read intensive web application, that they have experience with\n" }, { "from": "gpt", "value": "Scaling out SQL Serve...
I am familiar with standard practices to assess performance query or stored procedure using SQL server 2000/2005/2008. How is the best way to assess MDX performance? I assume its possible to write structurely correct but poor performance MDX queries as easily as you can with standard T-SQL? Any suggestions? FYI: I ma...
Assessing MDX (Multidimensional Expressions) performance can be challenging, similar to optimizing SQL queries. Here are several strategies and best practices you can adopt to evaluate and improve the performance of your MDX queries when working with Microsoft SQL Server Analysis Services (SSAS): ### 1. **Use SQL Serv...
44,074
[ { "from": "human", "value": "I am familiar with standard practices to assess performance query or stored procedure using SQL server 2000/2005/2008. How is the best way to assess MDX performance? I assume its possible to write structurely correct but poor performance MDX queries as easily as you can with st...
How can I take full advantage of 64-bit architecture in my .NET 2.0 Web Applications and Console/Forms Applications?
Taking full advantage of 64-bit architecture in your .NET 2.0 applications (such as Web Applications, Console Applications, and Windows Forms Applications) primarily involves understanding how 64-bit architecture differs from 32-bit and optimizing your applications accordingly. Here are some steps and considerations to...
41,859
[ { "from": "human", "value": "How can I take full advantage of 64-bit architecture in my .NET 2.0 Web Applications and Console/Forms Applications?\n" }, { "from": "gpt", "value": "Taking full advantage of 64-bit architecture in your .NET 2.0 applications (such as Web Applications, Console Applica...
I have a working linker script. I want to add another data section whose contents is pulled directly from a file (ld shouldn't parse it and extract the sections and so on). How can I do that? OUTPUT_FORMAT("elf32-i386") ENTRY(start) SECTIONS { .text 0x100000 : { *(.multiboot) *(.text) *(.code) *(.roda...
To include an entire binary file directly into your linker script, you can use the `FILL` command in conjunction with `INSERT` or use the `*(EXCLUDE_FILE(...))` syntax depending on your needs. However, the simplest way to include a raw binary file into a specific section is to use the `*(.)` syntax with the `file` keyw...
45,772
[ { "from": "human", "value": "I have a working linker script. I want to add another data section whose contents is pulled directly from a file (ld shouldn't parse it and extract the sections and so on). How can I do that?\nOUTPUT_FORMAT(\"elf32-i386\")\nENTRY(start)\nSECTIONS\n{\n .text 0x100000 : {\n *(...
I want to examine the contents of a std::vector in gdb but I don't have access to _M_impl because I'm using icc, not gcc, how do I do it? Let's say it's a std::vector for the sake of simplicity. There is a very nice answer here but this doesn't work if I use icc, the error message is "There is no member or method named...
When using the Intel C++ Compiler (icc), the internal implementation details of `std::vector` may differ from that of GCC, leading to the `_M_impl` member being unavailable. Instead, you can utilize other approaches to examine the contents of a `std::vector` in GDB. Here are a few methods you can try: ### Method 1: Di...
46,940
[ { "from": "human", "value": "I want to examine the contents of a std::vector in gdb but I don't have access to _M_impl because I'm using icc, not gcc, how do I do it? Let's say it's a std::vector for the sake of simplicity.\nThere is a very nice answer here but this doesn't work if I use icc, the error mess...
I've followed every steps in here, but still, the Intellisense for JQuery simply isn't working, any ideas?
If you are experiencing issues with IntelliSense for jQuery not working, here are some steps to troubleshoot and potentially resolve the problem: 1. **Check jQuery Reference**: Make sure you have included a reference to the jQuery library in your project. The IntelliSense won't work if the library isn't properly re...
44,860
[ { "from": "human", "value": "I've followed every steps in here, but still, the Intellisense for JQuery simply isn't working, any ideas?\n" }, { "from": "gpt", "value": "If you are experiencing issues with IntelliSense for jQuery not working, here are some steps to troubleshoot and potentially re...
Relatively new to rails and trying to model a very simple family "tree" with a single Person model that has a name, gender, father_id and mother_id (2 parents). Below is basically what I want to do, but obviously I can't repeat the :children in a has_many (the first gets overwritten). class Person < ActiveRecord::Base ...
In Rails, when you're modeling relationships where a single parent can have multiple children, you indeed face the issue of having two foreign keys pointing to the same model (`Person` in this case). To solve this, you can utilize a single `has_many` association that collects all the children, regardless of whether the...
48,545
[ { "from": "human", "value": "Relatively new to rails and trying to model a very simple family \"tree\" with a single Person model that has a name, gender, father_id and mother_id (2 parents). Below is basically what I want to do, but obviously I can't repeat the :children in a has_many (the first gets overw...
public class Address { public string ZipCode {get; set;} } public class Customer { public Address Address {get; set;} } how can I access eitther "ZipCode" or "Address.ZipCode" with reflection? For example: Typeof(Customer).GetProperty("ZipCode")?
To access the `ZipCode` property of the `Address` class through the `Customer` class using reflection, you can't access it directly as `ZipCode` since it's not a property of the `Customer` class. Instead, you'll need to first get the `Address` property of the `Customer` class, then get the `ZipCode` property from the `...
47,483
[ { "from": "human", "value": "public class Address\n{\n public string ZipCode {get; set;}\n}\n\npublic class Customer\n{\n public Address Address {get; set;}\n}\n\nhow can I access eitther \"ZipCode\" or \"Address.ZipCode\" with reflection? For example: \nTypeof(Customer).GetProperty(\"ZipCode\")?\n\n"...
I am experimenting for the first time with css layouts and my experience with CSS is very basic. What I want to achieve is a 2 column layout: left panel and content. I have found this: #leftcontent { position: absolute; left: 10px; top: 10px; width: 170px; border: 1px solid #C0C0C0; padding: 2px...
The issue you're experiencing is likely due to using `position: absolute;` for your layout, which can cause elements to be positioned relative to their nearest positioned ancestor or the viewport, leading to inconsistencies across different browsers. A more modern and robust approach for a two-column layout is to use ...
43,960
[ { "from": "human", "value": "I am experimenting for the first time with css layouts and my experience with CSS is very basic. What I want to achieve is a 2 column layout: left panel and content.\nI have found this:\n#leftcontent\n{\n position: absolute;\n left: 10px;\n top: 10px;\n width: 170px;...
I have a class that inherits QTreeWidget. How can I find the currently selected row? Usually I connect signals to slots this way: connect(myButton, SIGNAL(triggered(bool)), this, SLOT(myClick())); However, I can't find anything similar for QTreeWidget->QTreeWidgetItem. The only way I found is to redefine the mousePres...
You don't need to override the `mousePressEvent` to get the currently selected item in a `QTreeWidget`. Instead, you can connect the `itemClicked` or `itemChanged` signal of `QTreeWidget` to a custom slot that will handle the selection. Here's how you can do it using the `itemClicked` signal: 1. Connect the `itemClic...
47,826
[ { "from": "human", "value": "I have a class that inherits QTreeWidget. How can I find the currently selected row?\nUsually I connect signals to slots this way:\nconnect(myButton, SIGNAL(triggered(bool)), this, SLOT(myClick()));\n\nHowever, I can't find anything similar for QTreeWidget->QTreeWidgetItem.\nThe...
I'm trying to center a page and then make it 100% in height. I have a div called "content" as the parent element of all elements in the HTML page. What do I need to do next? I'd like to stay away from any CSS-hacks. This is currently working in IE7, but not in Firefox 3. EDIT: I added height: 100%; to #content that's w...
To ensure that your `#content` div is centered and takes up 100% height, you'll need to adjust your CSS a bit. The primary issue you're encountering is likely due to the way different browsers handle `height: 100%`, particularly when it comes to percentage heights. Here’s how to resolve it: 1. **Set the parent element...
46,884
[ { "from": "human", "value": "I'm trying to center a page and then make it 100% in height.\nI have a div called \"content\" as the parent element of all elements in the HTML page.\nWhat do I need to do next? I'd like to stay away from any CSS-hacks.\nThis is currently working in IE7, but not in Firefox 3.\nE...
I'm attempting to add some text to the directions results the Google Maps API returns to the specified div (directionsPanel). This code below would work fine, except that the jQuery line fires before loadFromWaypoints has finished modifying the DOM. If I run that line by manually triggering it after the directions co...
To ensure that your jQuery code executes after the Google Maps API has finished loading the directions content into the `directionsPanel`, you can utilize the `GDirections` events provided by the API. Specifically, you can listen for the `load` event which is fired when the directions have been successfully loaded and ...
45,992
[ { "from": "human", "value": "I'm attempting to add some text to the directions results the Google Maps API returns to the specified div (directionsPanel). This code below would work fine, except that the jQuery line fires before loadFromWaypoints has finished modifying the DOM. If I run that line by manua...
I know Flex pretty good but also started to use Java FX. I am a little bit confused. Java FX seems to focus more on low level drawing operations and animations. Less on creating standard UIs like Flex. So is JavaFX more like Flash than Flex? On the other side JavaFX also supports Swing components as well as data bindin...
It's great that you're exploring both Flex and JavaFX, as they both have unique strengths and focus areas. Let's break down some of the key differences and similarities between JavaFX and Flex. ### JavaFX vs. Flex: 1. **Focus and Architecture**: - **Flex**: Primarily designed for building web applications with ric...
46,200
[ { "from": "human", "value": "I know Flex pretty good but also started to use Java FX. I am a little bit confused. Java FX seems to focus more on low level drawing operations and animations. Less on creating standard UIs like Flex.\nSo is JavaFX more like Flash than Flex?\nOn the other side JavaFX also suppo...
I've got a WCF service up and running on a server. We have a proxy class that we add all service references to, and I tried to add my service reference there. However, it's not exposing all of the methods, specifically the interface, allowing me to create an instance of it (this is VS 2008). However, when I create a ne...
It sounds like you're encountering issues with Visual Studio 2008 when adding a WCF service reference to an existing project, especially when it seems to work correctly in a new project. Here are some potential troubleshooting steps you can take to resolve the issue: 1. **Check the Service Contract**: Ensure that y...
47,518
[ { "from": "human", "value": "I've got a WCF service up and running on a server. We have a proxy class that we add all service references to, and I tried to add my service reference there. However, it's not exposing all of the methods, specifically the interface, allowing me to create an instance of it (this...
It should be easy, right? Have a listview, add an imagelist, add images to the imagelist, assign image index to the column you want. But, it doesn't work. Microsoft article states that it is a known problem in .NET 1.1. But has it been fixed since?
The issue you're referring to is a known limitation in .NET Framework 1.1 regarding the `ImageList` and `ListView` control when trying to associate images with items. Fortunately, this issue has been addressed in later versions of the .NET Framework. From .NET Framework 2.0 onward, the handling of `ImageList` and `Lis...
47,827
[ { "from": "human", "value": "It should be easy, right?\nHave a listview, add an imagelist, add images to the imagelist, assign image index to the column you want.\nBut, it doesn't work.\nMicrosoft article states that it is a known problem in .NET 1.1.\nBut has it been fixed since?\n" }, { "from": "g...
I am trying to serialize an object to a sql compact database. I am using VCS Express 2008. Every time I run a test to see if my data is sent to the database, nothing is in the database. My code: string inputForDB = null; QuizCategoryTableAdapter quizCategoryAdapter = new QuizCategoryTableAdapter(); ...
It looks like you are trying to serialize an object and store it in a SQL Compact database. While your code compiles, it may not be functioning as expected due to a few potential issues. Here's a checklist and suggestions for debugging and fixing your code: ### 1. Check the Connection String Ensure that the connection...
42,705
[ { "from": "human", "value": "I am trying to serialize an object to a sql compact database. I am using VCS Express 2008. Every time I run a test to see if my data is sent to the database, nothing is in the database. My code:\nstring inputForDB = null;\n QuizCategoryTableAdapter quizCategory...
We need to develop some kind of buffer management for an application we are developing using C#. Essentially, the application receives messages from devices as and when they come in (there could be many in a short space of time). We need to queue them up in some kind of buffer pool so that we can process them in a mana...
.NET does provide some built-in mechanisms for buffer management, but for a custom buffer pool management system as you've described, you may need to implement a solution yourself. Below are some suggestions and a simple implementation to get you started: ### Implementing a Buffer Pool in C# You can create a buffer p...
41,047
[ { "from": "human", "value": "We need to develop some kind of buffer management for an application we are developing using C#.\nEssentially, the application receives messages from devices as and when they come in (there could be many in a short space of time). We need to queue them up in some kind of buffer ...
I develop web applications and in my job so far, I have been waging battles with various browsers whenever some JS or CSS quirks happen. I believe using GWT will help me tremendously from what I understand from this description: Writing web apps today is a tedious and error-prone process. Developers can spend 90% ...
Google Web Toolkit (GWT) was quite popular in its heyday for providing a way for Java developers to create web applications with Java, which were then compiled into JavaScript. This abstraction allowed Java developers to work in a familiar environment and avoid some of the cross-browser issues associated with hand-writ...
44,571
[ { "from": "human", "value": "I develop web applications and in my job so far, I have been waging battles with various browsers whenever some JS or CSS quirks happen. I believe using GWT will help me tremendously from what I understand from this description:\n\nWriting web apps today is a tedious\n and erro...
I'm trying to debug some IE-only issues for a site I'm developing. I'm running WDE because there's no Firebug for IE. I want to see whether some changes fix a bug, but no matter what I do, IE never picks up my changes. I've tried all of the following: stopping and restarting the debug evnironment closing and re-ope...
Debugging Internet Explorer can be quite challenging, especially when it comes to caching issues. Here are several steps you can take to ensure that your changes are reflected correctly: 1. **Clear Browser Cache Completely**: Since you mentioned clearing "temporary internet files," make sure you're doing it thoroughly...
43,852
[ { "from": "human", "value": "I'm trying to debug some IE-only issues for a site I'm developing. I'm running WDE because there's no Firebug for IE. I want to see whether some changes fix a bug, but no matter what I do, IE never picks up my changes. I've tried all of the following:\n\nstopping and restarti...
I'm trying to find a way to make a list of everything between <a> and </a> tags. So I have a list of links and I want to get the names of the links (not where the links go, but what they're called on the page). Would be really helpful to me. Currently I have this: $lines = preg_split("/\r?\n|\r/", $content); // conten...
To extract the text between `<a>` and `</a>` tags (the link names) from the HTML content, you can modify your existing code. Instead of capturing the entire `<a>` tag, you will need to capture the text inside it. You can use a regular expression to find the text content between these tags, as follows: ```php $lines ...
46,007
[ { "from": "human", "value": "I'm trying to find a way to make a list of everything between <a> and </a> tags. So I have a list of links and I want to get the names of the links (not where the links go, but what they're called on the page). Would be really helpful to me.\nCurrently I have this:\n$lines = pre...
We are look at providing a method for our non-technical users to edit XML and pass it to our existing XML input functionality. I remembered InfoPath saved its data as XML, and took another look at it. It's great the way it allows you to define a form based on an XSD (XML Schema), and then allow the user to edit XML w...
There are several alternatives to InfoPath that can help non-technical users edit XML without needing to know the underlying structure. Here are some popular options: ### 1. **Web-based Form Builders** - **Google Forms**: While primarily used for collecting data, you can use Google Apps Script to convert the responses...
48,363
[ { "from": "human", "value": "We are look at providing a method for our non-technical users to edit XML and pass it to our existing XML input functionality. I remembered InfoPath saved its data as XML, and took another look at it. It's great the way it allows you to define a form based on an XSD (XML Schem...
According to this site I can simply write $user = getlogin(); but the group handling functions seem not to be able to accept a username/userid as a parameter. Should I really iterate over all the /etc/group file lines and parse the group names from it?
Yes, if you're working with group handling functions that don't accept a username or user ID as parameters, you might indeed have to parse the `/etc/group` file manually to find the groups associated with a specific user. Here's a brief overview of how you might do this in a shell script or using a programming languag...
46,012
[ { "from": "human", "value": "According to this site I can simply write \n$user = getlogin();\n\nbut the group handling functions seem not to be able to accept a username/userid as a parameter. Should I really iterate over all the /etc/group file lines and parse the group names from it?\n" }, { "from...
I am storing all my passwords in the form hashed. I need to retrieve these passwords Eg My password is "123456" I save this as hashed "3453474852dfdsfdsfdf" value. I need to retrieve the original password from the hashed value. (Get Password). How can I do that?. I am doing SHA1 hashing algorithm.
Hashing is a one-way cryptographic function, meaning that you cannot directly retrieve the original password from its hashed value. When you hash a password using a hashing algorithm like SHA-1, the algorithm produces a fixed-size string of characters that is unique to the original input. This is intended to enhance se...
44,493
[ { "from": "human", "value": "I am storing all my passwords in the form hashed. I need to retrieve these passwords\nEg\nMy password is \"123456\" I save this as hashed \"3453474852dfdsfdsfdf\" value.\nI need to retrieve the original password from the hashed value. (Get Password).\nHow can I do that?. I am do...
I am using this code to verify a behavior of a method I am testing: _repository.Expect(f => f.FindAll(t => t.STATUS_CD == "A")) .Returns(new List<JSOFile>()) .AtMostOnce() .Verifiable(); _repository is defined as: private Mock<IRepository<JSOFile>> _repository; When my test is run, I get this exceptio...
The error you're encountering indicates that the expression you're using in the `Expect` method is not supported by the mocking framework. In your code, you're trying to match a specific condition on the `STATUS_CD` property of the `JSOFile` objects within the `FindAll` method. However, the expression should be written...
46,938
[ { "from": "human", "value": "I am using this code to verify a behavior of a method I am testing:\n _repository.Expect(f => f.FindAll(t => t.STATUS_CD == \"A\"))\n .Returns(new List<JSOFile>())\n .AtMostOnce()\n .Verifiable();\n\n_repository is defined as:\nprivate Mock<IRepository<JSOFile>> _rep...
How can I implement OpenID feature in ASP NET2.0?
Implementing OpenID in ASP.NET 2.0 can be a bit challenging since this version of the framework is quite old and lacks built-in support for OpenID. However, you can still implement OpenID authentication by using an OpenID library. One popular library for OpenID that can work with .NET applications is DotNetOpenAuth. H...
42,514
[ { "from": "human", "value": "How can I implement OpenID feature in ASP NET2.0?\n" }, { "from": "gpt", "value": "Implementing OpenID in ASP.NET 2.0 can be a bit challenging since this version of the framework is quite old and lacks built-in support for OpenID. However, you can still implement Ope...
Can the alignment of a structure type be found if the alignments of the structure members are known? Eg. for: struct S { a_t a; b_t b; c_t c[]; }; is the alignment of S = max(alignment_of(a), alignment_of(b), alignment_of(c))? Searching the internet I found that "for structured types the largest alignment requirem...
Your question touches on a significant aspect of C and C++ regarding the alignment requirements of structures. The alignment of a structure does indeed depend on the alignment of its members, specifically on the most stringent alignment requirement among those members. ### Alignment of Structures According to the C s...
44,946
[ { "from": "human", "value": "Can the alignment of a structure type be found if the alignments of the structure members are known? \nEg. for:\nstruct S\n{\n a_t a;\n b_t b;\n c_t c[];\n};\n\nis the alignment of S = max(alignment_of(a), alignment_of(b), alignment_of(c))?\nSearching the internet I found that \...
I want to change the DNS IP Address programmatically to the Adapter on Compact Framework. I have checked in the NetworkInterface class of OpenNetCF 2.3 as well, but I do not want the device to be rebooted after setting. Could somebody throw a light on the please?
Changing the DNS IP address programmatically on a device running the .NET Compact Framework can be a challenge, especially since the built-in classes like `NetworkInterface` do not provide direct methods for modifying network settings such as DNS without requiring a reboot. However, you can achieve this by modifying t...
44,175
[ { "from": "human", "value": "I want to change the DNS IP Address programmatically to the Adapter on Compact Framework. I have checked in the NetworkInterface class of OpenNetCF 2.3 as well, but I do not want the device to be rebooted after setting.\nCould somebody throw a light on the please?\n" }, { ...
This question regards unit testing in Visual Studio using MSTest (this is important, because of MSTest's execution order). Both the method marked [TestInitialize] and the test class constructor will run before each test method. So, the question is, what do you tend to do in each of these areas? Do you avoid performing ...
In MSTest, understanding the roles of the `[TestInitialize]` method and the test class constructor is essential for organizing unit tests effectively. Both have their own purposes and implications, and generally, I adhere to certain practices and principles when using them. ### Test Class Constructor The constructor ...
43,578
[ { "from": "human", "value": "This question regards unit testing in Visual Studio using MSTest (this is important, because of MSTest's execution order). Both the method marked [TestInitialize] and the test class constructor will run before each test method.\nSo, the question is, what do you tend to do in eac...
I have an ActionScript 2.0 file that contains a small library. This library parses an XML file. I have assigned an onComplete function on the onLoad function of the XML. For example: ------------ mysmalllib.as -------------- r_xml = new XML(); r_xml.onLoad = onComplete; function onComplete(success:Boolean) { ...
In ActionScript 2.0, you can achieve communication between different objects (like your `mysmalllib` library and your main program) using events or a simple callback mechanism. Since ActionScript 2.0 does not have native event dispatching like ActionScript 3.0, you can implement a simple callback mechanism by passing ...
48,845
[ { "from": "human", "value": "I have an ActionScript 2.0 file that contains a small library.\nThis library parses an XML file. \nI have assigned an onComplete function on the onLoad function of the XML.\nFor example:\n------------ mysmalllib.as --------------\nr_xml = new XML();\nr_xml.onLoad = onComplete;\n...
Normalization leads to many essential and desirable characteristics, including aesthetic pleasure. Besides it is also theoretically "correct". In this context, denormalization is applied as a compromise, a correction to achieve performance. Is there any reason other than performance that a database could be denormalize...
Yes, while performance is often the primary reason for denormalizing a database, there are several other reasons that might lead to denormalization: 1. **Simplicity of Queries**: Denormalization can simplify complex queries by reducing the number of joins required. This can make it easier for developers and analysts t...
47,142
[ { "from": "human", "value": "Normalization leads to many essential and desirable characteristics, including aesthetic pleasure. Besides it is also theoretically \"correct\". In this context, denormalization is applied as a compromise, a correction to achieve performance.\nIs there any reason other than perf...
In .net (C#), If you have two types discovered through reflection is it possible to determine if one can be cast to the other? (implicit and/or explicit). What I'm trying to do is create a library that allows users to specify that a property on one type is mapped to a property on another type. Everything is fine if the...
Yes, you can determine whether one type can be cast to another using reflection in C#. This includes checking for both implicit and explicit conversions. To accomplish this, you can utilize the `TypeConverter` class, the `IConvertible` interface, and the `MethodInfo` class to identify methods that facilitate the castin...
45,199
[ { "from": "human", "value": "In .net (C#), If you have two types discovered through reflection is it possible to determine if one can be cast to the other? (implicit and/or explicit).\nWhat I'm trying to do is create a library that allows users to specify that a property on one type is mapped to a property ...
I am migrating a 1.1 winforms app to 2.0. what are the main things i should immediately change because of generics. Here what i have so far: Replace all hashtables with generic dictionaries Replace all arraylists with List<> Replace all CollectionBase derive classes with : List<> Any others that should be done imme...
Migrating a WinForms application from .NET Framework 1.1 to 2.0 opens up a number of opportunities to improve code quality, especially with the introduction of generics. You've already identified several important changes related to collections. Here are some additional considerations for your migration: ### Additiona...
46,406
[ { "from": "human", "value": "I am migrating a 1.1 winforms app to 2.0. what are the main things i should immediately change because of generics. Here what i have so far:\n\nReplace all hashtables with generic dictionaries\nReplace all arraylists with List<>\nReplace all CollectionBase derive classes with ...
Using the JW player, streaming flv via rtmp. I am also using the snell.swf skin. When I click on full screen, then return to normal I am seeing the menu for the currently playing item indent. Any ideas what is causing this? Also sometimes seeing menu items highlighted which are not the currently playing ones. Any ideas...
The issues you're experiencing with the JW Player and the Snell skin when switching to and from full screen are not uncommon. Here are a few potential causes and solutions: ### 1. CSS/HTML Structure The indentation of the menu items may be caused by incorrect CSS styles or the way the HTML is structured in the Snell s...
45,503
[ { "from": "human", "value": "Using the JW player, streaming flv via rtmp. I am also using the snell.swf skin. When I click on full screen, then return to normal I am seeing the menu for the currently playing item indent. Any ideas what is causing this?\nAlso sometimes seeing menu items highlighted which are...
I am just looking at the source code of BlogEngine.Net and was intrigued at how it stores application settings. Instead of using web.config or app.config which I am accustomed to, the source uses a static class object implemented using a singleton pattern to achieve the application settings. the information is still ...
Both the approach used in BlogEngine.Net, which employs a static class with a singleton pattern, and the traditional use of `web.config` or `app.config` for storing application settings have their own advantages and trade-offs. Here’s a breakdown of the benefits and drawbacks of each approach: ### Singleton Pattern wi...
44,448
[ { "from": "human", "value": "I am just looking at the source code of BlogEngine.Net and was intrigued at how it stores application settings.\nInstead of using web.config or app.config which I am accustomed to, the source uses a static class object implemented using a singleton pattern to achieve the appli...
From an application I'm building I need to print existing PDFs (created by another app). How can I do this in C# and provide a mechanism so the user can select a different printer or other properties. I've looked at the PrintDialog but not sure what file it is attempting to print, if any, b/c the output is always a b...
To print existing PDF files in C# while providing the user with a print dialog to select printers and other properties, you can leverage the capabilities of the `PrintDocument` class along with an existing PDF library that handles PDF files. Using a library like **iTextSharp** can help if you need to render PDF conte...
43,840
[ { "from": "human", "value": "From an application I'm building I need to print existing PDFs (created by another app). \nHow can I do this in C# and provide a mechanism so the user can select a different printer or other properties. \nI've looked at the PrintDialog but not sure what file it is attempting to ...
Say I have a rectangular string array - not a jagged array string[,] strings = new string[8, 3]; What's the best way to extract a one-dimensional array from this (either a single row or a single column)? I can do this with a for loop, of course, but I'm hoping .NET has a more elegant way built in. Bonus points for co...
In .NET, there isn't a built-in method that directly extracts a row or column from a multidimensional array into a one-dimensional array, but you can create a helper method to achieve this using LINQ for a more elegant approach. Below are examples of how to extract either a single row or a single column from a two-dime...
44,359
[ { "from": "human", "value": "Say I have a rectangular string array - not a jagged array\nstring[,] strings = new string[8, 3];\n\nWhat's the best way to extract a one-dimensional array from this (either a single row or a single column)? I can do this with a for loop, of course, but I'm hoping .NET has a mo...
What is the simplest way of copying symbolic links on the Mac? A python or perl solution would be preferred, but any solution would be a help. I am copying frameworks for an installation package, and need the links to be maintained
Copying symbolic links while maintaining their properties can be done easily with a few command-line tools. However, since you are looking for a Python or Perl solution, I'll provide you with both. ### Python Solution You can use the `shutil` module in Python to copy symbolic links. The `shutil.copy` function does no...
42,913
[ { "from": "human", "value": "What is the simplest way of copying symbolic links on the Mac?\nA python or perl solution would be preferred, but any solution would be a help.\nI am copying frameworks for an installation package, and need the links to be maintained\n" }, { "from": "gpt", "value": "...
I have a piece of Java code I can't edit which I want to debug. The issue is that one of my 10,000 records has a data error and is causing the application to crash. I can remote debug the live application and add watch which would pick up the id of the record as each is processed. The problem is when the "bad record" i...
If you're debugging a live Java application and you want to capture the ID of the "bad record" that's causing the crash, there are several strategies you can use. Since you mentioned that you can't modify the code, your options may be somewhat limited, but here are some approaches you can try while remote debugging: #...
47,927
[ { "from": "human", "value": "I have a piece of Java code I can't edit which I want to debug.\nThe issue is that one of my 10,000 records has a data error and is causing the application to crash.\nI can remote debug the live application and add watch which would pick up the id of the record as each is proces...
Ok we have a number of solutions all with a lot of shared binaries: what we do is the following. In a shared drive we have this following layout where there is a directory for every binary dependency and a sub directory for every version BinaryDep1 -----------Volatile -----------1.0 -----------1.1 -----------1.2 Bina...
You’re encountering a common problem when managing binary dependencies across multiple projects. To address your concerns about duplication, download speed, and disk space, here are a few strategies you could consider: ### 1. **Centralized Binary Repository** - **Overview**: Instead of having each solution store its o...
45,146
[ { "from": "human", "value": "Ok we have a number of solutions all with a lot of shared binaries:\nwhat we do is the following.\nIn a shared drive we have this following layout where there is a directory for every binary dependency and a sub directory for every version\nBinaryDep1\n-----------Volatile\n-----...
I am writing a game in python and have decided to create a DSL for the map data files. I know I could write my own parser with regex, but I am wondering if there are existing python tools which can do this more easily, like re2c which is used in the PHP engine. Some extra info: Yes, I do need a DSL, and even if I didn...
Creating a Domain-Specific Language (DSL) for your game's map data files is an interesting project! In Python, there are several libraries and tools that can help you build a parser for your DSL without having to implement one from scratch using regex. Here are a few options: ### 1. **PLY (Python Lex-Yacc)** PLY is a ...
40,494
[ { "from": "human", "value": "I am writing a game in python and have decided to create a DSL for the map data files. I know I could write my own parser with regex, but I am wondering if there are existing python tools which can do this more easily, like re2c which is used in the PHP engine.\nSome extra info:...
I've seen Veloedit, which seems to have good syntax highlighting but doesn't allow tab characters in the file being edited (wtf?) and also has no understanding of HTML. With a little bit of googling I've found Veloecipse, which claims to build upon Veloedit and also add HTML support - but doesn't seem to be compatible ...
It seems you're looking for a robust editor for Velocity Template Language (VTL) within Eclipse that includes syntax highlighting, auto-completion, and support for tab characters. While Veloedit and Veloecipse are popular options, their limitations can be frustrating. Here are some additional suggestions you might cons...
49,533
[ { "from": "human", "value": "I've seen Veloedit, which seems to have good syntax highlighting but doesn't allow tab characters in the file being edited (wtf?) and also has no understanding of HTML.\nWith a little bit of googling I've found Veloecipse, which claims to build upon Veloedit and also add HTML su...
I need to keep the arrow keys from being able to scroll through my various tabs. Anyone know of a way to do this?
If you want to prevent the arrow keys from switching between tabs in a web application or a specific interface, you can achieve this by overriding the default behavior of the arrow keys using JavaScript. Here are a couple of approaches depending on your setup: ### For Web Applications: You can use JavaScript to liste...
47,403
[ { "from": "human", "value": "I need to keep the arrow keys from being able to scroll through my various tabs. Anyone know of a way to do this?\n" }, { "from": "gpt", "value": "If you want to prevent the arrow keys from switching between tabs in a web application or a specific interface, you can ...
Admittedly I don't get it. Say you have a memory with a memory word of length of 1 byte. Why can't you access a 4 byte long variable in a single memory access on an unaligned address(i.e. not divisible by 4), as it's the case with aligned addresses?
When you access memory in a computer, the way that memory is organized and accessed can greatly affect performance and the ability to retrieve data correctly. The distinction between aligned and unaligned addresses is crucial in understanding why accessing a multi-byte variable (like a 4-byte integer) at an unaligned a...
47,681
[ { "from": "human", "value": "Admittedly I don't get it. Say you have a memory with a memory word of length of 1 byte. Why can't you access a 4 byte long variable in a single memory access on an unaligned address(i.e. not divisible by 4), as it's the case with aligned addresses?\n" }, { "from": "gpt"...
Some repository clones I have allow me to do this: % git pull % git push But other repositories require me to type: % git pull origin master % git push origin master I think I am missing something in the latter case - does anyone know what is (not) going on here? I am using the latest git version, just obviously not...
The behavior you're experiencing is related to the configuration of your Git repository and its default settings for branches and remotes. ### Explanation 1. **Remotes and Branches:** - In Git, a **remote** is a version of your repository that is hosted elsewhere, typically on services like GitHub, GitLab, or Bit...
48,341
[ { "from": "human", "value": "Some repository clones I have allow me to do this:\n% git pull\n% git push\n\nBut other repositories require me to type:\n% git pull origin master\n% git push origin master\n\nI think I am missing something in the latter case - does anyone know what is (not) going on here? I am...
I have a complex sharepoint deploy with multiple EventReceivers and Workflows. I also have schema changes to existing lists, adding new columns of metadata and changing existing columns. Should I package a single feature, eventreceiver or workflow, to a single solution, or should I put multiple features inside the ...
You've raised some important considerations when it comes to packaging and deploying your SharePoint solutions, especially in relation to features, EventReceivers, and workflows. ### Considerations for Solution Packaging 1. **Granularity vs. Cohesion**: - **Granularity**: If you have multiple features that could e...
47,732
[ { "from": "human", "value": "I have a complex sharepoint deploy with multiple EventReceivers and Workflows. \nI also have schema changes to existing lists, adding new columns of metadata and changing existing columns. \nShould I package a single feature, eventreceiver or workflow, to a single solution, or...
any tool to generate incremental release script for oracle database. like Redgate DBComparer for SQLServer.
For Oracle databases, there are several tools that can help you generate incremental release scripts, similar to Redgate DBComparer for SQL Server. Here are some of the options: 1. **Oracle SQL Developer**: This is a free tool provided by Oracle that allows you to compare database schemas, and it can generate DDL scri...
48,313
[ { "from": "human", "value": "any tool to generate incremental release script for oracle database.\nlike Redgate DBComparer for SQLServer.\n" }, { "from": "gpt", "value": "For Oracle databases, there are several tools that can help you generate incremental release scripts, similar to Redgate DBCo...
I've created a UserObject and RoleObject to represent users in my application. I'm trying to use hibernate for CRUD instead of raw JDBC. I've successfully retrieved the information from the data base, but I can not create new users. I get the following error. org.springframework.web.util.NestedServletException: Req...
To resolve the `DataIntegrityViolationException` you're encountering when trying to create new users, let's review the key aspects of your mappings and provide some guidance on how to properly set up your Hibernate mappings and relationships for your User and UserRole objects. ### Key Considerations: 1. **Mapping Rela...
45,729
[ { "from": "human", "value": "I've created a UserObject and RoleObject to represent users in my application. I'm trying to use hibernate for CRUD instead of raw JDBC. I've successfully retrieved the information from the data base, but I can not create new users. I get the following error.\norg.springfram...
what are your advices on building a very minimalistic version of Python(2.x) for my application's scripting needs. My main motive here is to keep the foot print (both memory and disk wise) as low as possible so that my native application won't suffer from any major performance hit. Even the Python DLL size is in consi...
Building a minimalistic version of Python 2.x tailored for your application's scripting needs is a challenging but achievable goal. However, Python 2.x is already more heavyweight compared to languages like Lua, which is specifically designed to be lightweight and embeddable. Here are some strategies you can consider t...
47,006
[ { "from": "human", "value": "what are your advices on building a very minimalistic version of Python(2.x) for my application's scripting needs. \nMy main motive here is to keep the foot print (both memory and disk wise) as low as possible so that my native application won't suffer from any major performance...
In Oracle I can declare a reference cursor... TYPE t_spool IS REF CURSOR RETURN spool%ROWTYPE; ...and use it to pass a cursor as the return value... FUNCTION end_spool RETURN t_spool AS v_spool t_spool; BEGIN COMMIT; OPEN v_spool FOR SELECT * FROM...
In MySQL, the concept of a "reference cursor" as seen in Oracle PL/SQL does not exist directly. MySQL does not support stored procedures returning cursors in the same manner as Oracle does. However, you can achieve a similar effect by using a temporary table or a regular result set returned directly from a stored proce...
45,852
[ { "from": "human", "value": "In Oracle I can declare a reference cursor...\nTYPE t_spool IS REF CURSOR RETURN spool%ROWTYPE;\n\n...and use it to pass a cursor as the return value...\nFUNCTION end_spool\n RETURN t_spool\n AS\n v_spool t_spool;\n BEGIN\n COMMIT;\n OPEN v_spool FOR\n ...
I've created a very simple app, which presents an easygui entrybox() and continues to loop this indefinitely as it receives user input. I can quit the program using the Cancel button as this returns None, but I would also like to be able to use the standard 'close' button to quit the program. (ie. top right of a Window...
Certainly! To achieve the behavior you want without modifying the `easygui` module directly, you can override the window close event in your own script. You can use the `Tkinter` library to create a main loop and bind the window close event to a custom function. Below is a simplified example of how you can implement t...
46,525
[ { "from": "human", "value": "I've created a very simple app, which presents an easygui entrybox() and continues to loop this indefinitely as it receives user input.\nI can quit the program using the Cancel button as this returns None, but I would also like to be able to use the standard 'close' button to qu...
Our development process is highly automated via a raft of bash and php scripts (including subversion hook scripts.) These scripts do a number of things to integrate with our Bugzilla 3.0 installation. But the current integration approach is a bunch of SQL calls which update the bugzilla database directly - which obvio...
It's great that you've automated your development process, but directly manipulating the Bugzilla database with SQL calls can lead to several potential issues, especially when upgrading to newer versions or when Bugzilla has updates to its database schema. ### Advantages of Using Bugzilla Web Services: 1. **Stability...
46,701
[ { "from": "human", "value": "Our development process is highly automated via a raft of bash and php scripts (including subversion hook scripts.) These scripts do a number of things to integrate with our Bugzilla 3.0 installation.\nBut the current integration approach is a bunch of SQL calls which update th...
I am currently working on converting an existing web application to support an additional language (namely Welsh). My proposed approach is to extract all displayed text into property files and then access the text using JSTL fmt tags. My question is: how should these property files be structured? I know they need to be...
Your approach to internationalization (i18n) using property files and JSTL fmt tags is a solid one, and your proposed structure for the property files can certainly work well, especially for a multilingual web application. Here are some thoughts and recommendations on your proposed strategy: ### Property File Structur...
46,290
[ { "from": "human", "value": "I am currently working on converting an existing web application to support an additional language (namely Welsh). My proposed approach is to extract all displayed text into property files and then access the text using JSTL fmt tags.\nMy question is: how should these property f...
I have an ASP .NET information and I currently have session state turned off so I can't exactly hook into the session start event within the Global.asax. I want to get at this data, when someone comes to a site, and when they would normally start a session. What is the event that is fired to start a session so that I c...
In ASP.NET, if you have session state turned off, you won't be able to use the `Session_Start` event in `Global.asax` because this event is specifically tied to the session state mechanism. However, if you want to execute some logic when a user first accesses your site, there are a few alternative options you can consi...
47,420
[ { "from": "human", "value": "I have an ASP .NET information and I currently have session state turned off so I can't exactly hook into the session start event within the Global.asax. I want to get at this data, when someone comes to a site, and when they would normally start a session. What is the event tha...
We have the following code: <asp:ScriptManager runat="server"> ... <Services> <asp:ServiceReference Path="~/JSONServices/ProfileService.svc" /> </Services> ... This results in a Javascript proxy found in /JSONServices/ProfileService.svc/js. This Javascript has content expir...
Yes, it is possible to enable caching for the JavaScript proxies generated by the ASP.NET ScriptManager. By default, the generated JavaScript proxy has a cache control setting that prevents caching on the client side. However, you can modify the cache behavior through configuration in the web server. Here are some app...
47,019
[ { "from": "human", "value": "We have the following code: \n <asp:ScriptManager runat=\"server\">\n ...\n\n <Services>\n <asp:ServiceReference Path=\"~/JSONServices/ProfileService.svc\" />\n </Services>\n ...\n\nThis results in a Javascript proxy found in /JSONServices/Pr...
i have the following two tables:- GeoShapes GeoShapeId INT IDENTITY Name VARCHAR(100) ShapeFile GEOGRAPHY [ this is a closed Polygon of Lat/Longs ] CrimeLocations CrimeLocationId INT IDENTITY LatLong GEOGRAPHY [ this is a Lat/Long Point ] Now, i have around 10K GeoShape results and around 500CrimeLocations. I'm...
Certainly! To find all the `GeoShapes` that contain the `CrimeLocations`, you can use a SQL query that joins the two tables and utilizes the `STContains` method from the `GEOGRAPHY` data type. Given your table structure, here's how you can construct your query: ```sql SELECT gs.GeoShapeId, gs.Name FROM ...
48,964
[ { "from": "human", "value": "i have the following two tables:-\nGeoShapes\n\nGeoShapeId INT IDENTITY\nName VARCHAR(100)\nShapeFile GEOGRAPHY [ this is a closed Polygon of Lat/Longs ]\n\nCrimeLocations\n\nCrimeLocationId INT IDENTITY\nLatLong GEOGRAPHY [ this is a Lat/Long Point ]\n\nNow, i have around 10...
I have a web service class that the rest of the framework depends on to grab its data, but the web service class needs to have different method attributes depending on what environment it's in. For instance... [SoapDocumentMethodAttribute("https://example",...)] public string Test() { //doSomething } See that "htt...
Your approach of having multiple `.cs` files for different environments is a common workaround when dealing with attributes that cannot be dynamic at runtime. However, there are alternative methods that can help you manage your code more cleanly without having to maintain multiple copies of the same file. Below are som...
42,139
[ { "from": "human", "value": "I have a web service class that the rest of the framework depends on to grab its data, but the web service class needs to have different method attributes depending on what environment it's in. For instance...\n[SoapDocumentMethodAttribute(\"https://example\",...)]\npublic strin...
I'm looking at adding Visual Studio Database Edition (aka. VSDE) to my version of VS2008. Q1. What's the order of install of these products? is this ok? Update: Fixed the ordering of the install, based on feedback. VS2008 (c# [no sub options], web dev, ts tools. nothing else). Team Foundation Client (found on our msdn...
### A1: Installation Order The installation order you've mentioned looks mostly fine, but there are a few points you may want to consider to ensure smooth integration and functionality: 1. **Visual Studio 2008**: This should be installed first, as it is the base for all other components. 2. **Team Foundation Client**...
45,237
[ { "from": "human", "value": "I'm looking at adding Visual Studio Database Edition (aka. VSDE) to my version of VS2008.\nQ1. What's the order of install of these products? is this ok?\nUpdate: Fixed the ordering of the install, based on feedback.\n\nVS2008 (c# [no sub options], web dev, ts tools. nothing els...
I have a JPanel full of JTextFields... for (int i=0; i<maxPoints; i++) { JTextField textField = new JTextField(); points.add(textField); } How do I later get the JTextFields in that JPanel? Like if I want their values with TextField.getText(); Thanks
To retrieve the values from the `JTextField` instances you've added to the `JPanel`, you can iterate over the `points` list (which I assume is an `ArrayList<JTextField>`) that you used to store the `JTextField` objects. Here's an example of how to do that: ```java // Assuming `points` is an ArrayList<JTextField> where...
49,404
[ { "from": "human", "value": "I have a JPanel full of JTextFields...\nfor (int i=0; i<maxPoints; i++) {\n JTextField textField = new JTextField();\n points.add(textField);\n}\n\nHow do I later get the JTextFields in that JPanel? Like if I want their values with \nTextField.getText();\n\nThanks\n" },...
I'm creating a set of enum values, but I need each enum value to be 64 bits wide. If I recall correctly, an enum is generally the same size as an int; but I thought I read somewhere that (at least in GCC) the compiler can make the enum any width they need to be to hold their values. So, is it possible to have an enum t...
In C and C++, the size of an enum is implementation-defined, which means that it can vary based on the compiler and platform being used. However, for most compilers, including GCC, the underlying type of an enum is typically the smallest integer type that can accommodate all the enumerator values. This is often `int`, ...
45,535
[ { "from": "human", "value": "I'm creating a set of enum values, but I need each enum value to be 64 bits wide. If I recall correctly, an enum is generally the same size as an int; but I thought I read somewhere that (at least in GCC) the compiler can make the enum any width they need to be to hold their val...
For those who like a good WPF binding challenge: I have a nearly functional example of two-way binding a CheckBox to an individual bit of a flags enumeration (thanks Ian Oakes, original MSDN post). The problem though is that the binding behaves as if it is one way (UI to DataContext, not vice versa). So effectively th...
It looks like you've put together a solid implementation for two-way binding a `CheckBox` to individual bits of a flags enumeration using attached properties. However, you mentioned that the `ValueChanged` method never gets called, which might be causing the binding behavior to feel one-way. To address the issue of in...
41,735
[ { "from": "human", "value": "For those who like a good WPF binding challenge:\nI have a nearly functional example of two-way binding a CheckBox to an individual bit of a flags enumeration (thanks Ian Oakes, original MSDN post). The problem though is that the binding behaves as if it is one way (UI to DataC...
You're probably a lot to be subscribers to various mailing list, some more updated than others. What are your best practices to follow all information going by these lists? What are the best clients you've used to managed that? I'm sure I'm not the only one trying to get the best signal out of this noisy way of commu...
Managing multiple mailing lists can indeed be a challenge, but with the right practices and tools, you can effectively filter through the noise and get the information you need. Here are some best practices and clients that can help you manage your subscriptions efficiently: ### Best Practices 1. **Organize Subscript...
44,554
[ { "from": "human", "value": "You're probably a lot to be subscribers to various mailing list, some more updated than others.\n\nWhat are your best practices to follow all information going by these lists?\nWhat are the best clients you've used to managed that?\n\nI'm sure I'm not the only one trying to get ...
Is there a site like "language shootout"'s (shootout.alioth.debian.org and dada.perl.it/shootout/), which show how to do simple/advanced things in different languages? I.e. how to use hashes in different languages, how to sort, how to write classes, how to connect to sites, etc.. Well, those two above ARE in fact examp...
Yes, there are several websites and resources that showcase how to perform various tasks in different programming languages. Here are some notable options: 1. **Rosetta Code** (https://rosettacode.org) - This site offers a collection of programming tasks along with their implementations in various programming language...
48,816
[ { "from": "human", "value": "Is there a site like \"language shootout\"'s (shootout.alioth.debian.org and dada.perl.it/shootout/), which show how to do simple/advanced things in different languages? I.e. how to use hashes in different languages, how to sort, how to write classes, how to connect to sites, et...
My web application (MonoRail, Windsor, ActiveRecord) has a Startable import service and one or more Startable import readers. When, for example, a file is dropped in a directory, a reader parses the file, passes the data to the service, which updates and/or creates objects through repositories. The problem I have is th...
Dealing with `LazyInitializationException` in a background processing scenario where your services operate outside of the web request context can be a challenge. Here are several strategies you could consider to manage this situation effectively without coupling your services directly to the persistence mechanism: ###...
44,842
[ { "from": "human", "value": "My web application (MonoRail, Windsor, ActiveRecord) has a Startable import service and one or more Startable import readers. When, for example, a file is dropped in a directory, a reader parses the file, passes the data to the service, which updates and/or creates objects throu...
Ctrl-Shift-B, by default, builds an entire solution. An entire solution may contain many projects. Compiling all at the same time may be very slow, especially when development is only occurring on a single project. I have tried t remap Ctrl-Shift-B to Build.BuildOnlyProject, but it does not work. Nothing happens. From...
It sounds like you're looking to customize your Visual Studio environment so that the `Ctrl+Shift+B` shortcut builds only the currently selected project instead of the entire solution. Here's how you can achieve this by customizing your keyboard shortcuts: 1. **Open the Options Menu**: - Go to `Tools` in the menu b...
49,362
[ { "from": "human", "value": "Ctrl-Shift-B, by default, builds an entire solution. An entire solution may contain many projects. Compiling all at the same time may be very slow, especially when development is only occurring on a single project.\nI have tried t remap Ctrl-Shift-B to Build.BuildOnlyProject, bu...
I have SharePoint with the local intranet link as http://shserver/Sites/LAPP/HR/LA. I want to move the site LA to the following location http://shserver/Sites/LAPP/LA. Is this possible through some tool or the only way is to recreate the site altogether in the new url location.
Moving a site within SharePoint from one URL to another can be done, but the exact method depends on the version of SharePoint you are using. Here are some common approaches: ### SharePoint Online (Microsoft 365) If you're using SharePoint Online, you can use the **"Move"** feature in the SharePoint admin center. Her...
47,013
[ { "from": "human", "value": "I have SharePoint with the local intranet link as http://shserver/Sites/LAPP/HR/LA. I want to move the site LA to the following location http://shserver/Sites/LAPP/LA.\nIs this possible through some tool or the only way is to recreate the site altogether in the new url location....
A simple problem: If i use escape characters for a property such as <mx:Image id="img" toolTip="\\foo{\\bar}" It wont validate toolTip and therefore not compile. What is the solution ?
When using escape characters in ActionScript or MXML (as seen in your example with the `<mx:Image>` component), it's important to ensure that the tooltip string is properly formatted so that it can be compiled and validated without errors. In ActionScript and MXML, the backslash `\` is an escape character, and it can ...
48,286
[ { "from": "human", "value": "A simple problem: If i use escape characters for a property such as\n<mx:Image id=\"img\" toolTip=\"\\\\foo{\\\\bar}\"\n\nIt wont validate toolTip and therefore not compile.\nWhat is the solution ?\n" }, { "from": "gpt", "value": "When using escape characters in Act...
There is not official standard dealing with the layout of about boxes, which display the credits of a computer software and other information. What should a good about box contain? And... is it okay to put an easter egg in? (source: seasip.info)
A good "About" box in a computer software application typically contains several key elements: 1. **Product Name**: The name of the software. 2. **Version Number**: Clearly state the version of the software to inform users about which iteration they are using. 3. **Developer Information**: Name of the individual or co...
49,316
[ { "from": "human", "value": "There is not official standard dealing with the layout of about boxes, which display the credits of a computer software and other information.\nWhat should a good about box contain? And... is it okay to put an easter egg in?\n\n(source: seasip.info) \n" }, { "from": "gp...
Possible Duplicate: Executing SQL Server Agent Job from a stored procedure and returning job result Is there a way to determine when a sql agent job as finished once it has been started with sp_start_job?
Yes, you can determine when a SQL Server Agent job has finished after starting it with `sp_start_job` by querying the `msdb` database. Specifically, you can check the `sysjobs`, `sysjobschedules`, and `sysjobactivity` tables to monitor the status of the job. Here’s a general approach to check the job status: 1. **Sta...
45,354
[ { "from": "human", "value": "\nPossible Duplicate:\nExecuting SQL Server Agent Job from a stored procedure and returning job result \n\nIs there a way to determine when a sql agent job as finished once it has been started with sp_start_job?\n" }, { "from": "gpt", "value": "Yes, you can determine...
As the question says, it just escaped my memory how to display xml in javascript, I want to display some source xml within an div on a page, that sits next to the processed result of the xml in another div. Can't remember if there was an equivalent to javascript's escape to convert entities on the client Note: the xml...
To display XML in a way that preserves its formatting and makes it readable in a web page, you can use a simple JavaScript function to escape the XML entities so that they are displayed as plain text. Here’s a step-by-step guide to achieve this: ### Step 1: Escape XML Entities You'll need a function that converts spec...
45,836
[ { "from": "human", "value": "As the question says, it just escaped my memory how to display xml in javascript, I want to display some source xml within an div on a page, that sits next to the processed result of the xml in another div.\nCan't remember if there was an equivalent to javascript's escape to con...
I'd like to run JSLint4Java as part of my build process. I have about 1000 JS files in a library, and don't really want to add a /*globals foo, bar, baz */ header to each of them -- especially since many of them are from an external library (Dojo). If I don't add the header, though, JSLint complains about the same f...
You have a few options to handle the situation where JSLint complains about global variables without needing to modify each individual file. Here are some suggestions that might help: 1. **Use JSLint Configuration Options**: Some versions of JSLint allow you to specify global variables directly in the command line or ...
45,517
[ { "from": "human", "value": "I'd like to run JSLint4Java as part of my build process. I have about 1000 JS files in a library, and don't really want to add a\n/*globals foo, bar, baz */\n\nheader to each of them -- especially since many of them are from an external library (Dojo). If I don't add the heade...
If I have the code: int f(int a) { return a; } double f(double g) { return g; } int main() { int which = f(1.0f); } Which overload of f is called, and why?
In your code, you have two overloaded functions: 1. `int f(int a) { return a; }` 2. `double f(double g) { return g; }` In the `main` function, you have the line `int which = f(1.0f);`. Here, `1.0f` is a `float` literal, which is a number with a decimal point followed by an `f` to indicate that it is a `float`. When ...
46,866
[ { "from": "human", "value": "If I have the code:\nint f(int a) { return a; }\ndouble f(double g) { return g; }\n\nint main()\n{\n int which = f(1.0f);\n}\n\nWhich overload of f is called, and why?\n" }, { "from": "gpt", "value": "In your code, you have two overloaded functions:\n\n1. `int f(i...
I am working on creating an immutable class. I have marked all the properties as read-only. I have a list of items in the class. Although if the property is read-only the list can be modified. Exposing the IEnumerable of the list makes it immutable. I wanted to know what is the basic rules one has to follow to make ...
To create an immutable class in C#, or in any object-oriented programming language, you need to follow several key principles to ensure that instances of the class cannot be modified after they are created. Here are some basic rules to follow: ### 1. **Declare the Class as Sealed** Make the class `sealed` to prevent i...
44,217
[ { "from": "human", "value": "I am working on creating an immutable class.\nI have marked all the properties as read-only. \nI have a list of items in the class.\nAlthough if the property is read-only the list can be modified. \nExposing the IEnumerable of the list makes it immutable.\nI wanted to know what...
This question is a result of what i noticed while trying to answer another question. And now im curious to know why <asp:TextBox runat="server" Visible="<%= true %>" /> leads to a compile error, and not to a visible TextBox as i would have expected. From what i have discovered so far, the <%= %> expressions are not tra...
Your observations about the different behaviors of `<%= %>` and `<%# %>` in ASP.NET are indeed accurate and highlight some important distinctions in how these expression syntaxes are processed during the page lifecycle. ### The Differences Explained 1. **Expression Evaluation Context**: - `<%= %>`: This syntax is ...
48,983
[ { "from": "human", "value": "This question is a result of what i noticed while trying to answer another question. And now im curious to know why <asp:TextBox runat=\"server\" Visible=\"<%= true %>\" /> leads to a compile error, and not to a visible TextBox as i would have expected.\nFrom what i have discove...
Is it possible to return an XElement from a webservice (in C#/asp.net)? Try a simple web service that returns an XElement: [WebMethod] public XElement DoItXElement() { XElement xe = new XElement("hello", new XElement("message", "Hello World") ); return xe; } This compiles fine but if you try and run it ...
Returning an `XElement` directly from a web service method in ASP.NET is not supported by the default serialization mechanisms. The issue you're encountering stems from the way XML is serialized in web services; they expect the return type to be a serializable type, such as a primitive type, a complex type, or an array...
48,650
[ { "from": "human", "value": "Is it possible to return an XElement from a webservice (in C#/asp.net)?\nTry a simple web service that returns an XElement:\n[WebMethod]\npublic XElement DoItXElement()\n{\n XElement xe = new XElement(\"hello\",\n new XElement(\"message\", \"Hello World\")\n );\n\n ret...
When writing embedded ARM code, it's easy to access to the built-in zero wait state memory to accelerate your application. Windows CE doesn't expose this to user-mode applications, but there is probably a way to do it. The internal SRAM is usually used for the video buffer, but there's usually some left over. Anyone...
Accessing built-in zero wait state memory in embedded ARM systems running Windows CE can be challenging, especially since Windows CE typically restricts user-mode applications from directly accessing hardware resources for security and stability reasons. However, you can explore a few approaches to utilize this memory ...
46,769
[ { "from": "human", "value": "When writing embedded ARM code, it's easy to access to the built-in zero wait state memory to accelerate your application. Windows CE doesn't expose this to user-mode applications, but there is probably a way to do it. The internal SRAM is usually used for the video buffer, bu...
While running a batch file in Windows XP I have found randomly occurring error message: The system cannot find the batch label specified name_of_label Of course label existed. What causes this error?
The error message "The system cannot find the batch label specified" in a Windows batch file typically indicates that the script is attempting to jump to a label that is not found at that moment in the script's execution. Here are some common causes of this error: 1. **Label Name Mismatch**: Check for typographical er...
45,268
[ { "from": "human", "value": "While running a batch file in Windows XP I have found randomly occurring error message:\n\nThe system cannot find the batch label specified name_of_label\n\nOf course label existed. What causes this error?\n" }, { "from": "gpt", "value": "The error message \"The syst...
I sometimes code when i'm away from the office. I would like to continue to use the benifits of source control when not connected to the company network. My ideal system would allow me to checkin revisions to a repository on my laptop that would then sync with our main SVN repository when I connect to the company netwo...
What you're looking to achieve is a bit complex with SVN since it doesn't natively support offline syncing like Git does. However, there are a few strategies and tools that could help you simulate a similar workflow: ### 1. Use a Local SVN Repository You could create a local SVN repository on your laptop that allows ...
45,231
[ { "from": "human", "value": "I sometimes code when i'm away from the office. I would like to continue to use the benifits of source control when not connected to the company network.\nMy ideal system would allow me to checkin revisions to a repository on my laptop that would then sync with our main SVN repo...
I want to enhance my browser-based web application with functionality that enables management of local files and folders. E.g. folder tree structures should be synchronized between local workstation and server via HTTP(S). I am aware of security-related limitations in browser-based applications. However, there are some...
Enhancing a browser-based web application to manage local files and folders presents a significant challenge due to the security restrictions implemented by modern web browsers. However, there are various technologies and approaches that you can consider, each with its own trade-offs. Here's a breakdown of some of the ...
46,380
[ { "from": "human", "value": "I want to enhance my browser-based web application with functionality that enables management of local files and folders. E.g. folder tree structures should be synchronized between local workstation and server via HTTP(S).\nI am aware of security-related limitations in browser-b...
How can I remove duplicate values from an array in PHP?
In PHP, you can remove duplicate values from an array using the `array_unique()` function. This function takes an array as input and returns a new array with duplicate values removed. Here's a simple example: ```php $array = array(1, 2, 2, 3, 4, 4, 5); $uniqueArray = array_unique($array); print_r($uniqueArray); ```...
49,264
[ { "from": "human", "value": "How can I remove duplicate values from an array in PHP?\n" }, { "from": "gpt", "value": "In PHP, you can remove duplicate values from an array using the `array_unique()` function. This function takes an array as input and returns a new array with duplicate values rem...
I'll get straight to the point! My javascript sends about 20 AJAX requests to my PHP file to respond to (via an external web API) when the user submits their search. The results are stored in an array in the session array. I've read that browsers will only allow 2 simultaneous requests to a server. My first problem is ...
You're facing two major issues with your current implementation: managing concurrent AJAX requests and ensuring that the session data is handled correctly to avoid overwrites. Here's a breakdown of potential solutions to address these concerns: ### 1. Managing Concurrent AJAX Requests While it's true that browsers ty...
46,472
[ { "from": "human", "value": "I'll get straight to the point!\nMy javascript sends about 20 AJAX requests to my PHP file to respond to (via an external web API) when the user submits their search. The results are stored in an array in the session array.\nI've read that browsers will only allow 2 simultaneous...
I have an existing bare git repository located in /home/myaccount/git/project. I am currently using it over ssh from my local machine without any problems. I want to add a second user on the server which only shall access to this git repository (maybe move the repo outside my account folder?). How? Using latest version...
To set up a shared Git repository for multiple users while restricting access, you can follow these steps: ### Step 1: Move the Repository 1. **Decide on the Location:** You can choose either `/home/git/` or `/usr/local/git/`. A common practice is to use `/home/git/`, as it keeps user-specific data within home dir...
44,744
[ { "from": "human", "value": "I have an existing bare git repository located in /home/myaccount/git/project. I am currently using it over ssh from my local machine without any problems. I want to add a second user on the server which only shall access to this git repository (maybe move the repo outside my ac...
I'm trying to move to a Model/ViewModel/View architecture and got stuck when trying to push selection dialogs to this pattern. I'd like to separate retrieving a list of choices (business/presentation logic) and the actual displaying/choosing mechanism (view) to re-use the former with different views (e.g. ComboBox vs. ...
Adopting a Model/ViewModel/View (MVVM) architecture is a great approach for separating concerns in your application. In your case of implementing selection dialogs while keeping the business logic separate from the view logic, using a ViewModel to handle this can be quite effective. Here’s a breakdown of how you could ...
39,553
[ { "from": "human", "value": "I'm trying to move to a Model/ViewModel/View architecture and got stuck when trying to push selection dialogs to this pattern. I'd like to separate retrieving a list of choices (business/presentation logic) and the actual displaying/choosing mechanism (view) to re-use the former...
I have a set of themes for my website, which are to be used with different requests from different urls. So if the url = www.xyz.com I load a different theme, as opposed to www.abc.com. However, I have tried having a theme called www.abc.com and a theme called abc.com, and in my webform codebehind I have a preinit page...
To effectively manage separate themes for `abc.com` and `www.abc.com` while ensuring that your website loads the correct theme based on the URL, you can utilize the `Page_PreInit` event in the code-behind of your ASP.NET web application. Here's a step-by-step approach to achieve this: ### Step 1: Structure Your Themes...
45,515
[ { "from": "human", "value": "I have a set of themes for my website, which are to be used with different requests from different urls. So if the url = www.xyz.com I load a different theme, as opposed to www.abc.com.\nHowever, I have tried having a theme called www.abc.com and a theme called abc.com, and in m...
In our system, we have a Remote API layer (e.g. SOAP, XML-RPC, REST, etc.) to handle the domain logic and data access for web application and any client applications that're developed on top of it. Unlike in the past, I do not have business logic code and DB connectivity at the web application, all user actions are tra...
Your architecture approach of having a Remote API layer to handle domain logic and data access provides a clear separation of concerns, which is a significant advantage. However, as you've pointed out, there are some disadvantages to this approach, particularly regarding performance and optimization. Here are some key ...
42,379
[ { "from": "human", "value": "In our system, we have a Remote API layer (e.g. SOAP, XML-RPC, REST, etc.) to handle the domain logic and data access for web application and any client applications that're developed on top of it. Unlike in the past, I do not have business logic code and DB connectivity at the ...
How can I detect which request type was used (GET, POST, PUT or DELETE) in PHP?
In PHP, you can detect the type of HTTP request made (GET, POST, PUT, DELETE, etc.) using the `$_SERVER` superglobal array. Specifically, you can use the `$_SERVER['REQUEST_METHOD']` element, which contains the request method used to access the page. Here’s how you can do it: ```php $requestMethod = $_SERVER['REQUEST...
43,824
[ { "from": "human", "value": "How can I detect which request type was used (GET, POST, PUT or DELETE) in PHP?\n" }, { "from": "gpt", "value": "In PHP, you can detect the type of HTTP request made (GET, POST, PUT, DELETE, etc.) using the `$_SERVER` superglobal array. Specifically, you can use the ...
I am wondering if it is possible to see stored procs that are being executed by other stored procs in Sql Server Profiler, is it possible, and if so how?
Yes, it is possible to see stored procedures that are being executed by other stored procedures in SQL Server Profiler. To do this, you need to set up a trace that captures the appropriate events related to the execution of stored procedures. ### Steps to Capture Executed Stored Procedures in SQL Server Profiler 1. *...
45,618
[ { "from": "human", "value": "I am wondering if it is possible to see stored procs that are being executed by other stored procs in Sql Server Profiler, is it possible, and if so how?\n" }, { "from": "gpt", "value": "Yes, it is possible to see stored procedures that are being executed by other st...
I'm using WatiN, NUnit and ReSharper to run my ASP.NET unit tests inside Visual Studio. I'd like (if it's not already running) to start Cassini to run my tests against. Is this possible? How would I do it?
Yes, it is possible to start the Cassini web server programmatically before running your ASP.NET unit tests with WatiN, NUnit, and ReSharper. Here's a general approach you can follow: ### Steps to Start Cassini Programmatically 1. **Add a Reference to `Microsoft.VisualStudio.HostingProcess`**: Ensure your project ...
39,154
[ { "from": "human", "value": "I'm using WatiN, NUnit and ReSharper to run my ASP.NET unit tests inside Visual Studio. I'd like (if it's not already running) to start Cassini to run my tests against.\nIs this possible? How would I do it?\n" }, { "from": "gpt", "value": "Yes, it is possible to star...
Is it possible to write a GUI from inside a function? The problem is that the callback of all GUI-functions are evaluated in the global workspace. But functions have their own workspace and can not access variables in the global workspace. Is it possible to make the GUI-functions use the workspace of the function? For ...
In MATLAB, GUI callbacks are executed in the base workspace, which means they cannot directly access variables in a function's local scope. However, there are a couple of ways to work around this limitation. ### Option 1: Using `setappdata` and `getappdata` You can use `setappdata` and `getappdata` to store and retri...
44,113
[ { "from": "human", "value": "Is it possible to write a GUI from inside a function?\nThe problem is that the callback of all GUI-functions are evaluated in the global workspace. But functions have their own workspace and can not access variables in the global workspace. Is it possible to make the GUI-functio...
I'm pretty happy with the solution that I came up with. Basically, I have a helper method that reloads the flash inline, and then I have an after_filter that clear out the flash if the request is xhr. Does anyone have a simpler solution than that? Update: The solution above was written back in Rails 1.x and is no lon...
If you're looking for a more modern and simpler solution to handle flash messages in a Rails application, particularly when dealing with AJAX (XHR) requests, you can consider a few alternatives. ### Option 1: Use `respond_to` for XHR Requests In your controller, you can differentiate between HTML and XHR requests, wh...
47,461
[ { "from": "human", "value": "I'm pretty happy with the solution that I came up with. Basically, I have a helper method that reloads the flash inline, and then I have an after_filter that clear out the flash if the request is xhr. Does anyone have a simpler solution than that?\nUpdate: The solution above w...
I have a paragraph of text in a javascript variable called 'input_content' and that text contains multiple anchor tags/links. I would like to match all of the anchor tags and extract anchor text and URL, and put it into an array like (or similar to) this: Array ( [0] => Array ( [0] => <a href="h...
To extract anchor tags and their corresponding URLs and text from the `input_content` variable in JavaScript, you can use a combination of regular expressions and the `matchAll` method. Below is an example of how to achieve this: ```javascript const input_content = `Here are some links: <a href="http://yahoo.com">Yaho...
46,248
[ { "from": "human", "value": "I have a paragraph of text in a javascript variable called 'input_content' and that text contains multiple anchor tags/links. I would like to match all of the anchor tags and extract anchor text and URL, and put it into an array like (or similar to) this:\nArray\n(\n [0] => A...
Just wondering if there is anything built-in to Javascript that can take a Form and return the query parameters, eg: "var1=value&var2=value2&arr[]=foo&arr[]=bar..." I've been wondering this for years.
Yes, JavaScript provides a straightforward way to convert form data into a URL-encoded string of query parameters. You can use the `FormData` API in combination with `URLSearchParams`. Here's how you can do it: 1. Create a `FormData` object from your form. 2. Use `URLSearchParams` to convert the `FormData` to a query ...
49,287
[ { "from": "human", "value": "Just wondering if there is anything built-in to Javascript that can take a Form and return the query parameters, eg: \"var1=value&var2=value2&arr[]=foo&arr[]=bar...\"\nI've been wondering this for years.\n" }, { "from": "gpt", "value": "Yes, JavaScript provides a str...
I've spent the past few hours searching, but can't seem to find the answer. Hopefully somebody here knows. I want to use Virtual PC 2007 to create a virtual machine, but I'd like the hard disk for the VM to be on a USB hard drive. I'm not worried about the performance of the VM, I'd just like the VM to be off of my p...
Virtual PC 2007 does not natively support chunking of virtual hard disk files in the way that VMware does. When you create a virtual hard disk (VHD) in Virtual PC, it creates a single VHD file, which will not work with FAT32 file systems once it exceeds 4 GB, as FAT32 has a file size limit of 4 GB. Since your USB hard...
44,609
[ { "from": "human", "value": "I've spent the past few hours searching, but can't seem to find the answer. Hopefully somebody here knows.\nI want to use Virtual PC 2007 to create a virtual machine, but I'd like the hard disk for the VM to be on a USB hard drive. I'm not worried about the performance of the ...
I've been struggling with some issues relating to referencing child controls within a FormView. Another developer wrote an ASPX page that is compiling and working and in that code, he references child controls within a FormView directly as properties of the page object. The page is part of an ASP.NET Web SITE Project...
The behavior you're experiencing stems from the differences in how ASP.NET Web Site Projects and Web Application Projects handle the compilation and generation of control properties. ### Key Differences Between Web Site Projects and Web Application Projects 1. **Dynamic Compilation**: - **Web Site Projects** are ...
45,734
[ { "from": "human", "value": "I've been struggling with some issues relating to referencing child controls within a FormView. Another developer wrote an ASPX page that is compiling and working and in that code, he references child controls within a FormView directly as properties of the page object. The pa...