instruction
stringlengths
14
27.6k
completion
stringlengths
3
38.3k
__original_row_idx
int64
0
50k
conversations
listlengths
2
2
I have implemented tracing based on System.Diagnostics. I am also using a System.Diagnostics.TextWriterTraceListener, and hooked the whole trace up to a MOSS 2007 Web Application. The trace for some reason is trying to (a) create the log file, and/or (b) write to the log file using the user that is currently browsing...
In a SharePoint 2007 environment, when using `System.Diagnostics.TextWriterTraceListener` to write logs to a file, the application runs under the context of the user account that is executing the code. In a web application, this is typically the identity of the currently logged-in user, which is why you are experiencin...
45,412
[ { "from": "human", "value": "I have implemented tracing based on System.Diagnostics. \nI am also using a System.Diagnostics.TextWriterTraceListener, and hooked the whole trace up to a MOSS 2007 Web Application. \nThe trace for some reason is trying to (a) create the log file, and/or (b) write to the log fil...
Is there a simple process in SQL 2005 for spitting all of my stored procedures out to individual .sql files. I'd like to move them into VSS, but am not too excited by the prospect of clicking on each one to get the source, dumping it into a text file and so on..
In SQL Server 2005, you can use a script to generate the definitions of all stored procedures in your database and save them into individual `.sql` files. While there isn't a built-in feature in SQL Server Management Studio (SSMS) that allows you to export all stored procedures at once directly to individual files, you...
46,162
[ { "from": "human", "value": "Is there a simple process in SQL 2005 for spitting all of my stored procedures out to individual .sql files. I'd like to move them into VSS, but am not too excited by the prospect of clicking on each one to get the source, dumping it into a text file and so on.. \n" }, { ...
So...I had this clever idea that I'd create my own Repeater control that implements paging and sorting by inheriting from Repeater and extending it's capabilities. I found some information and bits and pieces on how to go about this and everything seemed ok... I created a WebControlLibrary to house my custom controls....
It looks like you're trying to create a custom Repeater control that supports paging and sorting, along with pager controls. However, you've run into issues with ViewState and control lifecycles in ASP.NET Web Forms. Your main issue arises from the fact that when you call `base.DataBind()`, it clears the control colle...
45,945
[ { "from": "human", "value": "So...I had this clever idea that I'd create my own Repeater control that implements paging and sorting by inheriting from Repeater and extending it's capabilities. I found some information and bits and pieces on how to go about this and everything seemed ok...\nI created a WebC...
I've written my first JQuery plugin and one of it's dependancies is an external css stylesheet. Do you think this is an acceptable strategy to include this in the distributable or should I embed style information in the plugin itself? Should I ship with no style information at all? The visual elements of the plugin mak...
When distributing a jQuery plugin that relies on an external CSS stylesheet, you have a few viable strategies, each with its own pros and cons. Here are some options to consider: ### 1. **Include the External CSS File** **Pros:** - **Simplicity for Users:** Including the stylesheet in the distributable means users ca...
48,488
[ { "from": "human", "value": "I've written my first JQuery plugin and one of it's dependancies is an external css stylesheet. Do you think this is an acceptable strategy to include this in the distributable or should I embed style information in the plugin itself? Should I ship with no style information at a...
I have created a class library in VB .NET. Some code in the library connects to the database. I want to create a config file that would hold the connection string. I have created a "Settings.settings" file and stored the connection string in there. When a class library having a settings file is built, it generates ...
To achieve the desired functionality of dynamically changing connection strings in a VB.NET class library without needing to recompile it, you can use an external configuration file instead of relying solely on the generated `.dll.config` file associated with the class library. This way, you can read connection strings...
47,642
[ { "from": "human", "value": "I have created a class library in VB .NET. Some code in the library connects to the database. I want to create a config file that would hold the connection string. \n\nI have created a \"Settings.settings\" file and stored the connection string in there. \n\nWhen a class library...
I am trying to talk to a device using python. I have been handed a tuple of bytes which contains the storage information. How can I convert the data into the correct values: response = (0, 0, 117, 143, 6) The first 4 values are a 32-bit int telling me how many bytes have been used and the last value is the percentage...
To convert the first four values of your tuple into a 32-bit integer, you can use the `struct` module in Python. The `struct` module allows you to interpret bytes as packed binary data. Here's how you can do it: ```python import struct # Your response tuple response = (0, 0, 117, 143, 6) # Convert the first four va...
48,867
[ { "from": "human", "value": "I am trying to talk to a device using python. I have been handed a tuple of bytes which contains the storage information. How can I convert the data into the correct values:\nresponse = (0, 0, 117, 143, 6)\nThe first 4 values are a 32-bit int telling me how many bytes have bee...
The UK VAT system is changing from 17.5% to 15%. What strategies have you used in your code to store the VAT, and how will the change affect your applications. Do you store a history of vats so you can calculate old prices, or are old invoices stored in a separate table? Is it a simple config setting, or did you bodge ...
When managing VAT (Value Added Tax) within applications, especially in a dynamic environment like the UK where VAT rates can change, it's important to adopt a robust strategy that allows for flexibility, accuracy, and compliance. Here are some best practices and strategies for storing and managing VAT in applications: ...
48,837
[ { "from": "human", "value": "The UK VAT system is changing from 17.5% to 15%. What strategies have you used in your code to store the VAT, and how will the change affect your applications. Do you store a history of vats so you can calculate old prices, or are old invoices stored in a separate table? Is it a...
Might it make more sense to put 64-bit applications into "Program Files (x64)" and leave 32-bit applications to run in "Program Files"? I have a batch file that need to run a Flex compiler. In x64, that program is in "Program Files (x86)". On Windows Vista 32-bit, it's in "Program Files" - environment variables? Check ...
Your understanding of the folder structure for 32-bit and 64-bit applications on Windows is correct. On a 64-bit version of Windows: - `C:\Program Files` is typically for 64-bit applications. - `C:\Program Files (x86)` is for 32-bit applications. On a 32-bit version of Windows, both `Program Files` and `Program Files...
46,219
[ { "from": "human", "value": "Might it make more sense to put 64-bit applications into \"Program Files (x64)\" and leave 32-bit applications to run in \"Program Files\"?\nI have a batch file that need to run a Flex compiler. In x64, that program is in \"Program Files (x86)\". On Windows Vista 32-bit, it's in...
I have a website with members who message each other. There are getting to be a few members and they like to send messages - I'm sure you can see where this is going. Currently I have said messages stored in a nicely relational table cunningly titled "messages" with different status ids to denote, er, status (unread, s...
It's a common scenario to have a messaging system that can grow significantly, leading to concerns about how data is structured and managed. While it might be tempting to split the messages table into multiple tables based on status (e.g., unread, saved, archived), it’s usually more effective to optimize the existing t...
49,597
[ { "from": "human", "value": "I have a website with members who message each other. There are getting to be a few members and they like to send messages - I'm sure you can see where this is going.\nCurrently I have said messages stored in a nicely relational table cunningly titled \"messages\" with different...
We have a .NET object that does a lot of reading/writing with the database. Throughout the life cycle of this object (or the asp page that uses it), it may hit the database with a query/update anywhere from 1 to 10 times. Instead of opening and closing a database connection every time the object needs to hit the datab...
Opening and closing a database connection for each operation can be inefficient, particularly if you are performing multiple operations within a short time frame, as the overhead of establishing a connection can be significant. However, there are some important considerations when deciding to keep a connection open for...
46,157
[ { "from": "human", "value": "We have a .NET object that does a lot of reading/writing with the database. Throughout the life cycle of this object (or the asp page that uses it), it may hit the database with a query/update anywhere from 1 to 10 times. \nInstead of opening and closing a database connection ev...
I am using the following code to attempt to read a large file (280Mb) into a byte array from a UNC path public void ReadWholeArray(string fileName, byte[] data) { int offset = 0; int remaining = data.Length; log.Debug("ReadWholeArray"); FileStream stream = new FileStream(fileName, FileMode.Open, FileA...
The error you're encountering, `System.IO.IOException: Insufficient system resources exist to complete the requested operation`, when accessing a file via a UNC path can be related to several factors, especially when it works fine with a local path. Here are some potential causes and solutions you can investigate: ###...
48,484
[ { "from": "human", "value": "I am using the following code to attempt to read a large file (280Mb) into a byte array from a UNC path\npublic void ReadWholeArray(string fileName, byte[] data)\n{\n int offset = 0;\n int remaining = data.Length;\n\n log.Debug(\"ReadWholeArray\");\n\n FileStream str...
Here's the situation: we have an Oracle database we need to connect to to pull some data. Since getting access to said Oracle database is a real pain (mainly a bureaucratic obstacle more than anything else), we're just planning on linking it to our SQL Server and using the link to access data as we need it. For on...
When deciding between using a single `OPENQUERY` for a full join versus using multiple `OPENQUERY` calls to pull data from each table separately and then joining them in SQL Server, there are several important considerations, especially given the constraints you're working with, including query performance and executio...
49,388
[ { "from": "human", "value": "Here's the situation: we have an Oracle database we need to connect to to pull some data. Since getting access to said Oracle database is a real pain (mainly a bureaucratic obstacle more than anything else), we're just planning on linking it to our SQL Server and using the ...
Consider a simple table with an auto-increment column like this: CREATE TABLE foo ( `fooid` bigint unsigned NOT NULL auto_increment, ....snipped.... other columns PRIMARY KEY (`fooid`) ) ENGINE=InnoDB AUTO_INCREMENT=10 How does one redesign this so that we don't hit the max of the bigint datatype ? The unsign...
To ensure you don't hit the maximum value of a `BIGINT UNSIGNED` column in your database, there are several strategies you can consider. It's good to plan ahead, even though reaching the maximum value of `BIGINT UNSIGNED` is very unlikely in typical applications. Here are a few approaches you can consider: ### 1. Use ...
49,939
[ { "from": "human", "value": "Consider a simple table with an auto-increment column like this:\nCREATE TABLE foo \n(\n `fooid` bigint unsigned NOT NULL auto_increment,\n ....snipped.... other columns\n PRIMARY KEY (`fooid`)\n) \nENGINE=InnoDB AUTO_INCREMENT=10\n\nHow does one redesign this so that we don...
I have quite a few RewriteRules in my .htaccess that looks like this RewriteRule ^something/(\d+)/start /index.php?ix=$1 RewriteRule ^embed/something/(\d+)/start /index.php?ix=$1&fEmbed=1 The only difference between these two is the leading "embed/", so I was thinking it would be beneficial to combine these into...
To achieve the desired functionality of combining your two `RewriteRule` directives into one while evaluating the contents of `$1`, you can use a conditional check with `RewriteCond` or perform a simple modification in your rule. Here's a revised `RewriteRule` that can handle this scenario: ```apache RewriteRule ^(em...
49,323
[ { "from": "human", "value": "I have quite a few RewriteRules in my .htaccess that looks like this\nRewriteRule ^something/(\\d+)/start /index.php?ix=$1\nRewriteRule ^embed/something/(\\d+)/start /index.php?ix=$1&fEmbed=1\n\nThe only difference between these two is the leading \"embed/\", so I was thin...
I have been using the partial class modifier for some time in order to put helper classes in their own file. Today we got a new guy and he said that the last team he worked with didn't allow partial classes for this because modifying a helper class that is in a separate file would cause the main partial class file to g...
Using partial classes can be a useful way to organize your code, especially in larger projects where a single class can become unwieldy. However, there are several considerations to keep in mind regarding the use of partial classes and the placement of helper classes: ### Advantages of Using Partial Classes: 1. **Org...
44,525
[ { "from": "human", "value": "I have been using the partial class modifier for some time in order to put helper classes in their own file.\nToday we got a new guy and he said that the last team he worked with didn't allow partial classes for this because modifying a helper class that is in a separate file wo...
How do I parameterize a query containing an IN clause with a variable number of arguments, like this one? SELECT * FROM Tags WHERE Name IN ('ruby','rails','scruffy','rubyonrails') ORDER BY Count DESC In this query, the number of arguments could be anywhere from 1 to 5. I would prefer not to use a dedicated stored pro...
In SQL Server 2008, handling a dynamic list of parameters for an `IN` clause can be challenging since you cannot directly pass a variable number of parameters to the `IN` clause. However, there are a few techniques you can use to achieve this without resorting to stored procedures or XML. One of the most common approa...
47,205
[ { "from": "human", "value": "How do I parameterize a query containing an IN clause with a variable number of arguments, like this one?\nSELECT * FROM Tags \nWHERE Name IN ('ruby','rails','scruffy','rubyonrails')\nORDER BY Count DESC\n\nIn this query, the number of arguments could be anywhere from 1 to 5.\nI...
I have a ListBox with way too many items in it and the UI is getting slower and slower (virtualization is on, etc). So I was thinking about displaying only the first 20 items and allow to user to navigate through the result set (i.e. ObservableCollection). Does anybody know if a Pagination mechanism exist for the Obser...
Pagination is not built into the `ObservableCollection` itself, but you can implement a pagination mechanism to display a limited number of items at a time from your collection. Here's a general approach to achieve pagination with `ObservableCollection` in WPF. ### Step 1: Create a Paginated ViewModel You can create ...
47,050
[ { "from": "human", "value": "I have a ListBox with way too many items in it and the UI is getting slower and slower (virtualization is on, etc). So I was thinking about displaying only the first 20 items and allow to user to navigate through the result set (i.e. ObservableCollection).\nDoes anybody know if ...
I'm looking into writing a simple synchronization ability into my app and one of the concerns that has popped up is synchronization of time between two remote computers, each with their own clock (in particular concerning the modification dates of files/objects). I'm sure a lot of research has been done on this topic a...
You're right to be cautious about time synchronization in distributed systems, especially when it comes to operations that depend on timestamps, like file modification dates. Here are some best practices and approaches that you can consider to minimize temporal discrepancies between remote computers, focusing on applic...
49,793
[ { "from": "human", "value": "I'm looking into writing a simple synchronization ability into my app and one of the concerns that has popped up is synchronization of time between two remote computers, each with their own clock (in particular concerning the modification dates of files/objects).\nI'm sure a lot...
Is there any way to use Relative path when configuring subversion externals. For example Trunk - directoryA - directoryB - projectA {external DirectoryB} For configuring ProjectA we have to configure full path in the external property which is causing problems or forcing us to do change the propert...
In Subversion, externals can be specified using either absolute URLs or relative paths, but there are some limitations on how relative paths can be used. Here’s how you can work with externals in a way that accommodates branching without requiring constant updates to paths. ### Using Relative Paths in SVN Externals 1...
44,045
[ { "from": "human", "value": "Is there any way to use Relative path when configuring subversion externals.\nFor example \n Trunk\n - directoryA\n - directoryB\n - projectA {external DirectoryB}\n\nFor configuring ProjectA we have to configure full path in the external property which is causing...
I'm trying the following command on my shell: curl -b usptoCookies -L -d "patentNum=6836866&applicationNum=10007391&maintFeeAction=Get+Bibliographic+Data&maintFeeYear=04" https://ramps.uspto.gov/eram/getMaintFeesInfo.do;jsessionid=0000Nmdd1Q_YsDF90HKmb9EIIgq:11g0uehq7 Pretty straighforward. It is attempting to post a...
It looks like you're trying to submit a form to the USPTO's website using `curl`, and you're facing some issues. Let's analyze the command you're using and the potential problems: 1. **Session Handling**: The `jsessionid` in your URL indicates that the server maintains a session. Make sure the `usptoCookies` file you'...
45,706
[ { "from": "human", "value": "I'm trying the following command on my shell:\ncurl -b usptoCookies -L -d \"patentNum=6836866&applicationNum=10007391&maintFeeAction=Get+Bibliographic+Data&maintFeeYear=04\" https://ramps.uspto.gov/eram/getMaintFeesInfo.do;jsessionid=0000Nmdd1Q_YsDF90HKmb9EIIgq:11g0uehq7\n\nPret...
I want to capture the output of an exe file as an png or jpg image, i mean the display of that exe. Is there any command on windows to capture and save as image of an exe output or any other idea that i can do this.
To capture the output of an executable file (exe) as an image in Windows, you can use a screenshot tool or command-line utilities. Here are several methods you can try: ### Method 1: Using Print Screen and Paint 1. **Run the Executable:** - Open the executable and let it display what you want to capture. 2. **Tak...
45,468
[ { "from": "human", "value": "I want to capture the output of an exe file as an png or jpg image, i mean the display of that exe.\nIs there any command on windows to capture and save as image of an exe output or any other idea that i can do this.\n" }, { "from": "gpt", "value": "To capture the ou...
I keep on hearing this words 'callback' and 'postback' tossed around. What is the difference between two ? Is postback very specific to the ASP.NET pages ?
Yes, "callback" and "postback" are terms often used in web development, but they refer to different concepts. ### Callback 1. **Definition**: A callback is a programming pattern where a function (or method) is passed as an argument to another function and is executed after some operation is completed. This is commonl...
45,292
[ { "from": "human", "value": "I keep on hearing this words 'callback' and 'postback' tossed around.\nWhat is the difference between two ? \nIs postback very specific to the ASP.NET pages ?\n" }, { "from": "gpt", "value": "Yes, \"callback\" and \"postback\" are terms often used in web development,...
I am having a lot of trouble finding good information on how to call a standard SOAP/WSDL web service with Android. All I've been able to find are either very convoluted documents and references to "kSoap2" and then some bit about parsing it all manually with SAX. OK, that's fine, but it's 2008, so I figured there shou...
Calling a SOAP/WSDL web service from an Android application can be a bit challenging, especially considering the various libraries available. Here’s a simplified guide to help you get started, focusing on kSoap2, which is one of the most popular libraries for this purpose. ### Step 1: Add kSoap2 to Your Project You c...
42,823
[ { "from": "human", "value": "I am having a lot of trouble finding good information on how to call a standard SOAP/WSDL web service with Android. All I've been able to find are either very convoluted documents and references to \"kSoap2\" and then some bit about parsing it all manually with SAX. OK, that's f...
I would like to get the absolute position of an element in relation to the window/root element when it is double clicked. The element's relative position within it's parent is all I can seem to get to, and what I'm trying to get to is the point relative to the window. I've seen solutions of how to get a the point of a...
To get the absolute position of an element in relation to the window (viewport) when it is double-clicked, you can use the `getBoundingClientRect()` method. This method returns a DOMRect object providing information about the size of an element and its position relative to the viewport. Here’s how you can set it up: ...
48,861
[ { "from": "human", "value": "I would like to get the absolute position of an element in relation to the window/root element when it is double clicked. The element's relative position within it's parent is all I can seem to get to, and what I'm trying to get to is the point relative to the window. I've seen...
I've noticed that if i have an Pk/FK association, the FK ID is removed from the entity in the designer. How do I join query statements? Basically I'm looking for some good Linq to Entity video tutorials (sorry, I'm an audio/visual learner)
It sounds like you're working with Entity Framework and are encountering issues with foreign key (FK) associations in your entity model. When using an ORM like Entity Framework, FK properties can sometimes be hidden in the designer if they are set up to be navigational properties instead. However, you can still work wi...
49,732
[ { "from": "human", "value": "I've noticed that if i have an Pk/FK association, the FK ID is removed from the entity in the designer. How do I join query statements? \nBasically I'm looking for some good Linq to Entity video tutorials (sorry, I'm an audio/visual learner)\n" }, { "from": "gpt", ...
I've been playing around with creating an application using the S#arp Architecture. One thing that is bugging me a bit is that I don't have access to any of the ASP.Net MVC item templates from the "Add New Item..." dialog. In other words I can't, for example, create a new "MVC ViewPage" or "MVC Controller" directly fro...
When working with S#arp Architecture, you may encounter the issue where ASP.NET MVC item templates (like "MVC ViewPage" or "MVC Controller") are not available in the "Add New Item..." dialog. This can happen because the project structure or references may not be set up in a way that Visual Studio recognizes them. Here...
48,759
[ { "from": "human", "value": "I've been playing around with creating an application using the S#arp Architecture.\nOne thing that is bugging me a bit is that I don't have access to any of the ASP.Net MVC item templates from the \"Add New Item...\" dialog. In other words I can't, for example, create a new \"M...
Can anyone recommend monitoring software for a windows environment? We already have monitoring in the sense of resources and availability. I want to know who logged in and changed settings, added files etc. We have outsourced IT and I want to be able to track down all the changes to the system. I'm open to keyboard lo...
In a Windows environment, monitoring user activities, changes to system settings, and file access can be crucial for security and compliance, especially when outsourcing IT services. Here are some recommendations that include both open-source/free options and paid solutions: ### Open Source/Free Solutions 1. **Auditd...
45,897
[ { "from": "human", "value": "Can anyone recommend monitoring software for a windows environment?\nWe already have monitoring in the sense of resources and availability. I want to know who logged in and changed settings, added files etc.\nWe have outsourced IT and I want to be able to track down all the cha...
I'm making list of items in categories, problem is that item can be in multiple categories. What is your best practice to store items in categories and how list all items within category and its child categories? I am using Zend Framework and MySQL to solve this issue. Thanks for your replies. Sorry for my English :)
Your English is perfectly understandable! To manage items that can belong to multiple categories and to efficiently retrieve items from a category and its child categories, you can follow best practices in database design and implement a suitable solution in Zend Framework. Here’s a structured approach: ### Database D...
48,216
[ { "from": "human", "value": "I'm making list of items in categories, problem is that item can be in multiple categories.\nWhat is your best practice to store items in categories and how list all items within category and its child categories? I am using Zend Framework and MySQL to solve this issue.\nThanks ...
I am trying to create a simple dialog in MFC using Visual C++. My problem is that when I get the dialog on the screen and try to type in an Edit Box field, if I type the letter 'a' once, it appears in the edit box as 'aaaaaaaaaaa' (that's 12 a's). Furthermore, if I try to navigate around in the box using the arrow ke...
This issue of the Edit Control in MFC (Microsoft Foundation Classes) receiving multiple keystrokes from a single press could be caused by several factors. Here are some common things to check and possible solutions to your problem: ### 1. Check for Multiple Key Presses Sometimes, if a key is being registered multiple ...
46,398
[ { "from": "human", "value": "I am trying to create a simple dialog in MFC using Visual C++. My problem is that when I get the dialog on the screen and try to type in an Edit Box field, if I type the letter 'a' once, it appears in the edit box as 'aaaaaaaaaaa' (that's 12 a's). Furthermore, if I try to navi...
I have a web application deployed in an internet hosting provider. This web application consumes a WCF Service deployed at an IIS server located at my company’s application server, in order to have data access to the company’s database, the network guys allowed me to expose this WCF service through a firewall for secur...
The issue you are encountering with `wsHttpBinding` and the `EndpointNotFoundException` is indeed due to the WS-Addressing behavior. As you correctly pointed out, when using `wsHttpBinding`, the `To` address in the message headers includes the internal address of the WCF service, which is not accessible from your hoste...
49,117
[ { "from": "human", "value": "I have a web application deployed in an internet hosting provider. This web application consumes a WCF Service deployed at an IIS server located at my company’s application server, in order to have data access to the company’s database, the network guys allowed me to expose this...
I've got the following Linq2Sql and it's doing more than one round trip for my 'SELECT' statement. I'm not sure why. First the code, then the explanation:- from p in db.Questions select new Models.Question { Title = p.Title, TagList = (from t in p.QuestionTags select t.Tag.Name).ToList() } Now t...
In your LINQ to SQL query, the behavior you're observing—executing one query for the main `Questions` table and an additional query for each `Question` to fetch its associated tags—is due to how you're projecting the results. This is causing the n+1 problem, which occurs when an application makes multiple database call...
49,296
[ { "from": "human", "value": "I've got the following Linq2Sql and it's doing more than one round trip for my 'SELECT' statement. I'm not sure why. First the code, then the explanation:-\nfrom p in db.Questions\nselect new Models.Question\n{\n Title = p.Title,\n TagList = (from t in p.QuestionTags\n ...
I am attempting to insert a mass of records into SQL Server 2005 from Vb.Net. Although the insertion is working fine, I am doing my best to try to make it as fast as possible. Currently, it takes ~ 11 mins for 100,000 records. What would be the suggested approach to inserting a large number of records into SQL Serve...
To improve the performance of bulk inserts into SQL Server from VB.NET, there are several strategies you can employ. Executing individual insert statements one-by-one, as in your current approach, can be quite slow. Instead, consider the following suggestions: ### 1. Use `SqlBulkCopy` The `SqlBulkCopy` class is design...
47,570
[ { "from": "human", "value": "I am attempting to insert a mass of records into SQL Server 2005 from Vb.Net. Although the insertion is working fine, I am doing my best to try to make it as fast as possible. Currently, it takes ~ 11 mins for 100,000 records. What would be the suggested approach to inserting...
My client would like website visitors to embed videos in their profiles. We've suggested that we use YouTube for a quick and cost-effective (free) solution. However he is not keen that YouTube would control access to the videos which are an important part of his service. It seems unlikely that YouTube would suddenly pu...
Your client’s concerns about relying on YouTube for hosting important videos are valid, particularly if those videos are central to their service. While YouTube is a widely used platform with robust infrastructure, the fear of content being removed or access being restricted can indeed be a legitimate concern for a bus...
47,364
[ { "from": "human", "value": "My client would like website visitors to embed videos in their profiles. We've suggested that we use YouTube for a quick and cost-effective (free) solution. However he is not keen that YouTube would control access to the videos which are an important part of his service. It seem...
I'm trying to wrap my head around the best way to use IoC within my application for dependency injection, however I have a little issue. I am using a loose implementation of the MVP pattern with a WPF app. Essentially, a presenter class is instantiated, and a view and task (e.g. IEmployeeView and IEmployeeTask for Empl...
You're correct that when using WPF, UI components, including windows, must be created on a Single-Threaded Apartment (STA) thread. If you're resolving your presenter (or any UI-related component) from an IoC container in a context that isn't STA, you'll encounter the exception you've described. To handle this issue wh...
48,916
[ { "from": "human", "value": "I'm trying to wrap my head around the best way to use IoC within my application for dependency injection, however I have a little issue.\nI am using a loose implementation of the MVP pattern with a WPF app. Essentially, a presenter class is instantiated, and a view and task (e.g...
There is very strange assembly reference problem and loading problem I experience with my Outlook addin. Here are the detail (a long story :) ): I have an old Outlook addin, written and build using .Net 1.1. The addin is loaded using an unmanaged shim in its own application domain. It works OK, with .Net 2.0, even if 1...
The issues you're experiencing with your Outlook add-in involve how the Common Language Runtime (CLR) resolves types, particularly in a COM interop context. Here are some insights into your questions and the behavior you're observing: ### Why It Loads the Microsoft Assemblies At All 1. **COM Interop and Registration*...
48,389
[ { "from": "human", "value": "There is very strange assembly reference problem and loading problem I experience with my Outlook addin. Here are the detail (a long story :) ):\nI have an old Outlook addin, written and build using .Net 1.1. The addin is loaded using an unmanaged shim in its own application dom...
First, context: I'm trying to create a command-line-based tool (Linux) that requires login. Accounts on this tool have nothing to do with system-level accounts -- none of this looks at /etc/passwd. I am planning to store user accounts in a text file using the same format (roughly) as /etc/passwd. Despite not using the ...
Your question touches on a number of important aspects of password storage, hashing, and security best practices. Let's clarify some points regarding the use of salts and best practices for password hashing in your scenario. ### Understanding Salts and Hashing 1. **What is a Salt?** - A salt is a random value adde...
46,695
[ { "from": "human", "value": "First, context: I'm trying to create a command-line-based tool (Linux) that\nrequires login. Accounts on this tool have nothing to do with\nsystem-level accounts -- none of this looks at /etc/passwd.\nI am planning to store user accounts in a text file using the same format (rou...
Is it possible to break out the partial classes in a split edmx's objectlayer.cs into a file per class? Thanks
Yes, it is possible to break out the partial classes generated by an Entity Framework EDMX (Entity Data Model XML) file into separate files. Each class in the EDMX file can be defined in its own file, making your codebase cleaner and more manageable. ### Steps to Split Partial Classes into Separate Files 1. **Identif...
47,503
[ { "from": "human", "value": "Is it possible to break out the partial classes in a split edmx's objectlayer.cs into a file per class?\nThanks\n" }, { "from": "gpt", "value": "Yes, it is possible to break out the partial classes generated by an Entity Framework EDMX (Entity Data Model XML) file in...
I face a problem when I try to get value from primary table in my mapping file. My tables: CREATE TABLE Customer ( [CustomerId] INT PRIMARY KEY, [FullName] NVARCHAR(50) NOT NULL ) CREATE TABLE CustomerOrder ( [CustomerOrderId] INT PRIMARY KEY, [CustomerId] INT, [TransactionDate] DATETIME ) My clas...
To map the `FullName` value from the `Customer` table to the `CustomerName` property in your `CustomerOrder` class using Fluent NHibernate, you'll need to create a mapping for both the `Customer` and `CustomerOrder` classes, and set up a reference in the `CustomerOrder` mapping to join the two tables based on `Customer...
48,385
[ { "from": "human", "value": "I face a problem when I try to get value from primary table in my mapping file.\nMy tables:\nCREATE TABLE Customer\n(\n [CustomerId] INT PRIMARY KEY,\n [FullName] NVARCHAR(50) NOT NULL\n)\n\nCREATE TABLE CustomerOrder\n(\n [CustomerOrderId] INT PRIMARY KEY,\n [Custom...
I'm looking to generate a simple standalone Java client which will make calls to a SOAP web service, given a wsdl. When I say simple and standalone I mean that once I'm done I want to be able to do something like import my.generated.nonsense; public static void main(String[] args) { Client client = new Client(); ...
To generate a simple standalone Java client for a SOAP web service from a WSDL file, you can use Apache CXF, which is a popular framework for building web services in Java. Additionally, you'll use the `cxf-codegen-plugin` to generate the necessary client classes based on the WSDL. Below, I'll guide you through the ste...
46,738
[ { "from": "human", "value": "I'm looking to generate a simple standalone Java client which will make calls to a SOAP web service, given a wsdl. When I say simple and standalone I mean that once I'm done I want to be able to do something like\nimport my.generated.nonsense;\n\npublic static void main(String[...
I have a daily batch process that involves selecting out a large number of records and formatting up a file to send to an external system. I also need to mark these records as sent so they are not transmitted again tomorrow. In my naive JDBC way, I would prepare and execute a statement and then begin to loop through t...
Yes, when using Hibernate, if you use the default behavior for querying, you can end up loading all the records into memory as persistent entities. This is because Hibernate uses an object-relational mapping approach that retrieves the full result set and populates objects in memory. However, you can avoid loading all...
49,319
[ { "from": "human", "value": "I have a daily batch process that involves selecting out a large number of records and formatting up a file to send to an external system. I also need to mark these records as sent so they are not transmitted again tomorrow.\nIn my naive JDBC way, I would prepare and execute a ...
What's the general consensus? If you need to change the database after a given action, do you use an observer pattern and let the framework / application handle the update for you? Or do you bypass the application and delegate the update to a database trigger? Obviously the trigger is faster, but is it worth it?
The choice between using an observer pattern in your application versus relying on database triggers for handling updates after a given action depends on several factors, including the specific requirements of your application, performance considerations, maintainability, and the complexity of the data relationships in...
47,980
[ { "from": "human", "value": "What's the general consensus?\nIf you need to change the database after a given action, do you use an observer pattern and let the framework / application handle the update for you? Or do you bypass the application and delegate the update to a database trigger?\nObviously the t...
I'm using the AcceptVerbs method detailed in Scott Gu's Preview 5 blog post for dealing with form entries in ASP.NET MVC: User gets an empty form via GET User posts the filled in form via POST to the same Action The Action validates data, takes appropriate action, and redirects to a new view So I don't have to use Te...
Your concern about using `TempData` in ASP.NET MVC is valid and is often shared by developers. While `TempData` can be a handy tool for passing temporary data between requests, it does have some characteristics that can lead to issues if not managed carefully: 1. **Lifetime and Persistence**: `TempData` is meant for s...
48,819
[ { "from": "human", "value": "I'm using the AcceptVerbs method detailed in Scott Gu's Preview 5 blog post for dealing with form entries in ASP.NET MVC:\n\nUser gets an empty form via GET\nUser posts the filled in form via POST to the same Action\nThe Action validates data, takes appropriate action, and redir...
How to find the width of the icon which is embedded in a button?
To find the width of an icon embedded in a button in a web context, you can use JavaScript or CSS, depending on your needs and the specifics of your project. Here's how you can do it using both approaches: ### Using JavaScript If you want to dynamically retrieve the width of the icon in JavaScript, you can use the fo...
45,097
[ { "from": "human", "value": "How to find the width of the icon which is embedded in a button?\n" }, { "from": "gpt", "value": "To find the width of an icon embedded in a button in a web context, you can use JavaScript or CSS, depending on your needs and the specifics of your project. Here's how ...
The target machine is running Ububtu server 8.04. Here's the tramp output: tramp: Opening connection for nungu@ip.ip.ip.ip using nil...<br> tramp: Waiting for prompts from remote shell<br> tramp: Waiting 60s for prompt from remote shell<br> tramp: Sending password<br> tramp: Found remote shell prompt.<br> tramp: Initia...
It looks like you are trying to use TRAMP to connect to an Ubuntu server (version 8.04) and are encountering issues related to the `stty` command not executing properly in the remote shell. Here’s a breakdown of what you might be facing and some possible solutions: ### Understanding the Issue 1. **TRAMP Connection**: ...
44,615
[ { "from": "human", "value": "The target machine is running Ububtu server 8.04.\nHere's the tramp output:\ntramp: Opening connection for nungu@ip.ip.ip.ip using nil...<br>\ntramp: Waiting for prompts from remote shell<br>\ntramp: Waiting 60s for prompt from remote shell<br>\ntramp: Sending password<br>\ntram...
I need to find the smallest power of two that's greater or equal to a given value. So far, I have this: int value = 3221; // 3221 is just an example, could be any number int result = 1; while (result < value) result <<= 1; It works fine, but feels kind of naive. Is there a better algorithm for that problem? Related:...
Your current approach is straightforward and works fine for finding the smallest power of two that is greater than or equal to a given value. However, there are more efficient ways to achieve this using bit manipulation. These methods can avoid the iterative left-shifting loop and can be computed in logarithmic time (o...
45,210
[ { "from": "human", "value": "I need to find the smallest power of two that's greater or equal to a given value. So far, I have this:\nint value = 3221; // 3221 is just an example, could be any number\nint result = 1;\n\nwhile (result < value) result <<= 1;\n\nIt works fine, but feels kind of naive. Is there...
I am working on a migration project, here we are migrating large set of C++ libraries from Mainframe to Solaris. We have complted migration sucessfully, but while running the application, some places it crashes with 'signal SEGV (no mapping at the fault address)'. Since the application supports on windows also, we che...
The 'signal SEGV (no mapping at the fault address)' error typically indicates that your application is trying to access memory that it shouldn’t—either because it’s trying to read or write to an address that isn’t allocated or because it’s dereferencing a null pointer or an invalid pointer. Since you mentioned that the...
48,594
[ { "from": "human", "value": "I am working on a migration project, here we are migrating large set of C++ libraries from Mainframe to Solaris. We have complted migration sucessfully, but while running the application, some places it crashes with 'signal SEGV (no mapping at the fault address)'. \nSince the ap...
How do I send an SMS to Active Directory Users. I want to design a small application (in C#) for my telecom operator client that will send various SMS based notifications to their (AD) users by using their SMS gateway.
Sending SMS notifications to Active Directory (AD) users requires a couple of steps, including fetching user information from Active Directory and then utilizing your telecom operator's SMS gateway to send the messages. Below is a guide on how to achieve this using C#. ### Steps to Send SMS to Active Directory Users ...
43,732
[ { "from": "human", "value": "How do I send an SMS to Active Directory Users. I want to design a small application (in C#) for my telecom operator client that will send various SMS based notifications to their (AD) users by using their SMS gateway.\n" }, { "from": "gpt", "value": "Sending SMS not...
I'm investigating using hosted subversion for a new project at work and was wondering if anyone had any experiences they would share. I've personally used Beanstalk for small projects at home, but not with mulitple users or a large repository. What/who have you used? For what size/type of project? What was your experie...
I've had experience with several hosted Subversion (SVN) solutions, and I can share some insights from those experiences. ### 1. **Beanstalk** - **Project Type/Size**: I've primarily used Beanstalk for small to medium-sized projects involving a few collaborators. - **Experience**: - **Uptime**: Generally good, with...
47,156
[ { "from": "human", "value": "I'm investigating using hosted subversion for a new project at work and was wondering if anyone had any experiences they would share.\nI've personally used Beanstalk for small projects at home, but not with mulitple users or a large repository.\nWhat/who have you used?\nFor what...
I need a very simple and clear example of how to create an OCX in unmanaged C++ code. Ideally, I'd like to consume it in Office, but any container (i.e. VB6, .NET WinForms) should be good. I am having trouble seeing how I can add controls to the OCX canvas... I have seen examples of opening dialogs from within the OCX'...
Creating an OCX (ActiveX control) in unmanaged C++ involves using the Microsoft COM (Component Object Model) framework. Here’s a simple example that demonstrates how to create an OCX that can be hosted in a container like Visual Basic 6 (VB6) or .NET WinForms. This example will focus on a simple ActiveX control that d...
46,892
[ { "from": "human", "value": "I need a very simple and clear example of how to create an OCX in unmanaged C++ code. Ideally, I'd like to consume it in Office, but any container (i.e. VB6, .NET WinForms) should be good.\nI am having trouble seeing how I can add controls to the OCX canvas... I have seen exampl...
What's the best way to calculate the distance formula around a central location using a radius in miles? We've typically been using a circular radius formula, but are considering using a plain square because it's faster and much more efficient. Sometimes we'll need to be exact, so we'll use the circle, but other time...
To calculate distances around a central location using both circular and square boundaries, you can use the following methods: ### Circular Distance Calculation When using a circular radius, the formula to determine if a point is within a certain distance (radius) from a central point (latitude \(lat_c\), longitude \(...
49,812
[ { "from": "human", "value": "What's the best way to calculate the distance formula around a central location using a radius in miles? We've typically been using a circular radius formula, but are considering using a plain square because it's faster and much more efficient. \nSometimes we'll need to be exac...
We've got a product that uses a Microsoft SQL Server database. We've got customers using various older versions of the product. How do people write/structure their database upgrade scripts in this situation?
When managing database upgrades for a product that uses Microsoft SQL Server and supports multiple older versions, it's crucial to have a well-structured approach to writing and applying upgrade scripts. Here are some best practices to consider: ### 1. **Versioning the Database Schema** - **Version Control**: Keep tr...
46,325
[ { "from": "human", "value": "We've got a product that uses a Microsoft SQL Server database. We've got customers using various older versions of the product.\nHow do people write/structure their database upgrade scripts in this situation?\n" }, { "from": "gpt", "value": "When managing database up...
I have installed PEAR, Spreadsheet_Excel_Writer and OLE. The sample program is executed successfully but when I try to read the file it shows garbage values. I also tried $workbook->setVersion(8); and $worksheet->setInputEncoding('UTF-8'); I am using this tutorial and Google lot for this problem. http://www.sitepoint....
It sounds like you are experiencing issues with reading Excel files created with the PEAR Spreadsheet_Excel_Writer library. If you're seeing garbage values when trying to read the file, there are a few things you can check or try: 1. **Ensure Correct Excel Reader**: Make sure you're using a compatible library to read ...
49,409
[ { "from": "human", "value": "I have installed PEAR, Spreadsheet_Excel_Writer and OLE. The sample program is executed successfully but when I try to read the file it shows garbage values. I also tried $workbook->setVersion(8); and $worksheet->setInputEncoding('UTF-8');\nI am using this tutorial and Google l...
I have a .NET (C#) multi-threaded application and I want to know if a certain method runs inside the Finalizer thread. I've tried using Thread.CurrentThread.Name but it doesn't work (returns null). Anyone knows how can I query the current thread to discover if it's the Finalizer thread?
In .NET, the Finalizer thread is a special thread used by the garbage collector to execute finalizers on objects that have been marked for finalization. Unfortunately, the .NET Framework does not provide a direct API to determine if a method is being executed on the Finalizer thread. However, there are a few approaches...
49,261
[ { "from": "human", "value": "I have a .NET (C#) multi-threaded application and I want to know if a certain method runs inside the Finalizer thread. \nI've tried using Thread.CurrentThread.Name but it doesn't work (returns null).\nAnyone knows how can I query the current thread to discover if it's the Finali...
Has anyone out there actually used inversion of control containers within compiler implementations yet? I know that by design, compilers need to be very fast, but I've always been curious about how IoC/DI could affect the construction of a programming language--hot-swappable syntaxes, anyone?
Yes, there have been instances where Inversion of Control (IoC) and Dependency Injection (DI) principles have been applied within compiler implementations, though this is not as common as in other software development areas like web frameworks or large enterprise applications. The primary role of a compiler is to tra...
48,422
[ { "from": "human", "value": "Has anyone out there actually used inversion of control containers within compiler implementations yet? I know that by design, compilers need to be very fast, but I've always been curious about how IoC/DI could affect the construction of a programming language--hot-swappable syn...
I wanted to start with the use of Remoting under C# in a testdriven way, but I got stuck. One thing I found on the topic is this article by Marc Clifton, but he seems to have the server running by starting it manually from the console. I try to have the server started (i.e. register the serving class) in the test fixtu...
Your approach is generally on the right track, but you're encountering issues primarily due to the fact that the server's channel is already registered when you're trying to register it again in your test setup. You need to manage the lifecycle of the Remoting server and client channels carefully, especially in a testi...
47,206
[ { "from": "human", "value": "I wanted to start with the use of Remoting under C# in a testdriven way, but I got stuck.\nOne thing I found on the topic is this article by Marc Clifton, but he seems to have the server running by starting it manually from the console.\nI try to have the server started (i.e. re...
I have been looking into the Castle project and specifically Windsor. I have been so impressed with what is possible with this technology and the benefits of having a such a loosely coupled system are definitely apparent. The only thing I am unsure of is if using this method has any downsides, specifically in asp.net? ...
Using Castle Windsor, like any dependency injection (DI) and inversion of control (IoC) container, does come with both benefits and potential downsides. Let’s address the concerns you've raised regarding performance and handling of inheritance: ### 1. Performance Concerns Related to Reflection It's true that many IoC...
49,193
[ { "from": "human", "value": "I have been looking into the Castle project and specifically Windsor. I have been so impressed with what is possible with this technology and the benefits of having a such a loosely coupled system are definitely apparent. The only thing I am unsure of is if using this method has...
I am able to create and execute a DTS package that copies tables from a remote Oracle database to a local SQL server, but want to setup the connection to the Oracle database as a linked server. The DTS package currently uses the Microsoft OLE DB Provider for Oracle with the following properties: Data Source: SERVER=(D...
Setting up a linked server in SQL Server to an Oracle database can be accomplished using the SQL Server Management Studio (SSMS) or using T-SQL. Given your current setup with the Microsoft OLE DB Provider for Oracle, here’s a step-by-step guide to create a linked server: ### Prerequisites: - Ensure you have the Oracle...
49,154
[ { "from": "human", "value": "I am able to create and execute a DTS package that copies tables from a remote Oracle database to a local SQL server, but want to setup the connection to the Oracle database as a linked server.\nThe DTS package currently uses the Microsoft OLE DB Provider for Oracle with the fol...
I know there are several ways to deploy a .net windows client application: There's Windows Installer, Click Once, a simple download & run, and loading the windows forms / WCF application in Internet Explorer (no to confuse the latter with WCF/E - Silverlight RIA applications) So... thinking about the true windows clien...
Loading dependencies from the internet in a .NET Windows client application can be a viable option, but it comes with a range of considerations and trade-offs that need to be carefully evaluated. Below are some key points to consider regarding the advantages, disadvantages, and potential issues when implementing this a...
46,745
[ { "from": "human", "value": "I know there are several ways to deploy a .net windows client application:\nThere's Windows Installer, Click Once, a simple download & run, and loading the windows forms / WCF application in Internet Explorer (no to confuse the latter with WCF/E - Silverlight RIA applications)\n...
how to create a good plugin engine for standalone executables created with pyInstaller, py2exe or similar tools? I do not have experience with py2exe, but pyInstaller uses an import hook to import packages from it's compressed repository. Of course I am able to import dynamically another compressed repository created ...
Creating a plugin engine for standalone executables generated with tools like PyInstaller or py2exe can indeed be complex due to the way these tools package and compress dependencies. However, you can design a flexible plugin architecture that addresses the issues you've described, especially concerning dynamic imports...
46,413
[ { "from": "human", "value": "how to create a good plugin engine for standalone executables created with pyInstaller, py2exe or similar tools? \nI do not have experience with py2exe, but pyInstaller uses an import hook to import packages from it's compressed repository. Of course I am able to import dynamica...
Do any of the existing JavaScript frameworks have a non-regex replace() function, or has this already been posted on the web somewhere as a one-off function? For example I want to replace "@!#$123=%" and I don't want to worry about which characters to escape. Most languages seem to have both methods of doing replacemen...
As of my last knowledge update in October 2023, standard JavaScript does not have a built-in non-regex version of the `replace()` function. The native `String.prototype.replace()` method only works with regular expressions or substring matches. However, you can easily create your own function that performs a non-regex ...
46,271
[ { "from": "human", "value": "Do any of the existing JavaScript frameworks have a non-regex replace() function,\nor has this already been posted on the web somewhere as a one-off function?\nFor example I want to replace \"@!#$123=%\" and I don't want to worry about which characters to escape. Most languages ...
Suppose I have two classes with the same interface: interface ISomeInterface { int foo{get; set;} int bar{get; set;} } class SomeClass : ISomeInterface {} class SomeOtherClass : ISomeInterface {} Suppose I have an instance of ISomeInterface that represents a SomeClass. Is there an easy way to copy that int...
To achieve what you're looking for—copying properties from one object to another without having to do it manually for each property—you can utilize reflection in C#. Reflection allows you to dynamically interact with object properties and fields. Here’s how you can implement a method to copy properties from one instanc...
46,165
[ { "from": "human", "value": "Suppose I have two classes with the same interface:\ninterface ISomeInterface \n{\n int foo{get; set;}\n int bar{get; set;}\n}\n\nclass SomeClass : ISomeInterface {}\n\nclass SomeOtherClass : ISomeInterface {}\n\nSuppose I have an instance of ISomeInterface that represents...
Let's say we have a solution with the following structure: Project.DAL - Data access layer, depends on a lower-level library, e.g. Oracle.DataAccess w/copy local = true Project.BLL - Business logic layer, references Project.DAL as project Project.UI - UI layer, compiles to executable, references Project.BLL, default...
You're correct in your understanding of how Visual Studio handles references and the "Copy Local" property. Here's a more detailed explanation of why you're encountering this issue with the `Oracle.DataAccess` assembly: ### 1. **Understanding Copy Local**: When you add a reference to a DLL in Visual Studio, you have t...
42,439
[ { "from": "human", "value": "Let's say we have a solution with the following structure:\n\nProject.DAL - Data access layer,\ndepends on a lower-level library,\ne.g. Oracle.DataAccess w/copy local\n= true \nProject.BLL - Business logic layer, references Project.DAL as\nproject \nProject.UI - UI layer,\ncompi...
I have a JfreeReport Application which run under Tomcat inside a jar. In the report template (which exists outside the jar) I have the following: file:///var/lib/tomcat5.5/webapps/Reports/images/logo.gif But then I get exception: org.jfree.report.modules.ModuleInitializeException: Unable to create the speci...
When working with JFreeReport (or similar libraries) within a web application running on a servlet container like Tomcat, accessing files such as images can sometimes be tricky, especially when it comes to relative paths or specific file protocols. Here are a few suggestions on how to resolve your issue: ### 1. Using...
49,195
[ { "from": "human", "value": "I have a JfreeReport Application which run under Tomcat inside a jar. In the report template (which exists outside the jar) I have the following:\n\n file:///var/lib/tomcat5.5/webapps/Reports/images/logo.gif\n \nBut then I get exception:\norg.jfree.report.modules.ModuleI...
I am thinking about something like this: public static <T extends Comparable<T>> T minOf(T...ts){ SortedSet<T> set = new TreeSet<T>(Arrays.asList(ts)); return set.first(); } public static <T extends Comparable<T>> T maxOf(T...ts){ SortedSet<T> set = new TreeSet<T>(Arrays.asList(ts)); return set...
Your updated implementation of `minOf` using `Collections.min` with a custom comparator is a good approach to handle null values. It allows you to find the minimum value in an array while being null-safe. Here’s a modified version of your methods that incorporates similar null-safe checks for both `minOf` and `maxOf`. ...
46,833
[ { "from": "human", "value": "I am thinking about something like this:\npublic static <T extends Comparable<T>> T minOf(T...ts){ \n SortedSet<T> set = new TreeSet<T>(Arrays.asList(ts));\n return set.first();\n}\n\npublic static <T extends Comparable<T>> T maxOf(T...ts){\n SortedSet<T> set = n...
I am trying to use JAXB 1.0 provided by JDeveloper 10g version. I have created a Schema definition with elements having default values. I have following questions: Whenever I create the Java Content tree using the JAXB generated classes, the java objects should have been created with the default values mentioned in th...
Using JAXB 1.0, especially in an older environment like JDeveloper 10g, can pose some challenges with default values from XML schemas and the management of schema locations in marshalling. Here are some insights that may help you address your questions: ### 1. Handling Default Values in JAXB In JAXB, when generating ...
47,834
[ { "from": "human", "value": "I am trying to use JAXB 1.0 provided by JDeveloper 10g version. I have created a Schema definition with elements having default values.\nI have following questions:\n\nWhenever I create the Java Content tree using the JAXB generated classes, the java objects should have been cre...
I am currently investigating several free/open source OpenGL based 3D engines, and was wondering if you guys could provide some feedback on these engines and how they are to work with in a real world project. The engines being compared are (in no particular order): Crystal Space Panda3D Irrlicht These are the main one...
It's great that you’re exploring free and open-source OpenGL-based 3D engines! Each engine you mentioned has its own strengths and weaknesses, and the choice largely depends on your project requirements and development style. Here’s a breakdown of the three engines you listed: ### 1. Crystal Space - **Overview**: Crys...
45,410
[ { "from": "human", "value": "I am currently investigating several free/open source OpenGL based 3D engines, and was wondering if you guys could provide some feedback on these engines and how they are to work with in a real world project.\nThe engines being compared are (in no particular order):\nCrystal Spa...
We are trying to get different SharePoint web applications to authenticate against different sub-domains. We have three web applications: http://customers.xyz.com http://internal.xyz.com http://partners.xyz.com and we have three sub-domains in our active directory. Now we want the three web-applications to authenticat...
Yes, it is possible to configure different SharePoint web applications to authenticate against different Active Directory sub-domains, but this setup may require careful planning and configuration, especially regarding how SharePoint handles authentication and the way the different sub-domains are structured. Here's a ...
49,305
[ { "from": "human", "value": "We are trying to get different SharePoint web applications to authenticate against different sub-domains. \nWe have three web applications:\nhttp://customers.xyz.com\nhttp://internal.xyz.com\nhttp://partners.xyz.com\nand we have three sub-domains in our active directory.\nNow we...
I have to use a class/assembly made in C# .NET from native C++ application. I suppose I need to make a wrapper class in C++/CLI, that would expose native methods in header files, but use .NET class as needed. Thing that's unclear to me is how to convert data types from .NET to standard C++ types. Does anybody have som...
You're correct that when you want to use a C# .NET class from a native C++ application, a common approach is to create a wrapper using C++/CLI. This allows you to bridge between the managed (.NET) and unmanaged (native C++) environments. Below, I'll provide a simple example of how you can create a C++/CLI wrapper clas...
47,150
[ { "from": "human", "value": "I have to use a class/assembly made in C# .NET from native C++ application.\nI suppose I need to make a wrapper class in C++/CLI, that would expose native methods in header files, but use .NET class as needed. \nThing that's unclear to me is how to convert data types from .NET t...
Should I start a Python program with: if__name__ == '__main__': some code... And if so, why? I saw it many times but don't have a clue about it.
Yes, you should start your Python program with the line `if __name__ == '__main__':` when you want to write a script that can be both executed as a standalone program and also imported as a module into another script. ### Explanation: 1. **What `__name__` Represents**: - In Python, each module has a special built-...
48,501
[ { "from": "human", "value": "Should I start a Python program with:\nif__name__ == '__main__':\nsome code...\n\nAnd if so, why? I saw it many times but don't have a clue about it.\n" }, { "from": "gpt", "value": "Yes, you should start your Python program with the line `if __name__ == '__main__':`...
Is there a script to display a simple world clock (time in various places around the world) on a *nix terminal? I was thinking of writing a quick Python script, but I have a feeling that's gonna be more work than I think (e.g. due to config and output format) - not to mention reinventing the wheel...
Yes, you can certainly create a simple world clock using a Python script, and there are also existing tools and libraries that can help you achieve this with minimal effort. However, if you're looking for a quick solution without much setup, there are command-line utilities that can display the current time in differen...
48,524
[ { "from": "human", "value": "Is there a script to display a simple world clock (time in various places around the world) on a *nix terminal?\nI was thinking of writing a quick Python script, but I have a feeling that's gonna be more work than I think (e.g. due to config and output format) - not to mention r...
This is the code I wrote: MailMessage mail = new MailMessage("test@gmail.com", "me@myurl.com"); mail.Subject = "This is a test!!"; mail.Body = "testing..."; SmtpPermission connectAccess = new SmtpPermission(SmtpAccess.Connect); System.Console.WriteLine("Access? " + connectAcce...
The exception you're encountering, "Mailbox unavailable. The server response was (MYLOCALCOMPUTERNAME) [MY LOCAL IP]:3045 is currently not permitted to relay through," typically indicates that the SMTP server you're trying to use is set up to prevent unauthorized relaying. This is a common security measure to prevent s...
49,038
[ { "from": "human", "value": "This is the code I wrote:\n MailMessage mail = new MailMessage(\"test@gmail.com\", \"me@myurl.com\");\n\n mail.Subject = \"This is a test!!\";\n mail.Body = \"testing...\";\n\n SmtpPermission connectAccess = new SmtpPermission(SmtpAccess.Connect);\n ...
In VB.NET, what is the difference between And and AndAlso? Which should I use?
In VB.NET, `And` and `AndAlso` are both logical operators used to combine Boolean expressions, but they differ in how they evaluate their operands. ### Differences: 1. **Short-Circuiting Behavior**: - **`And`**: This operator evaluates both operands regardless of the value of the first operand. For example, if you...
47,162
[ { "from": "human", "value": "In VB.NET, what is the difference between And and AndAlso? Which should I use?\n" }, { "from": "gpt", "value": "In VB.NET, `And` and `AndAlso` are both logical operators used to combine Boolean expressions, but they differ in how they evaluate their operands.\n\n### ...
Are there any client-side JavaScript MVC (micro-)frameworks? I have a rather complicated HTML form, and it would benefit from the MVC pattern. I imagine a good solution would provide the following: Model and View update the Controller when values change (Observer pattern) Populate the model from the form data when the...
Yes, there are several client-side JavaScript MVC (or MVVM) micro-frameworks that can help you manage complex forms using the MVC pattern. Below are a few lightweight options that might suit your requirements, including the observer pattern for updating the model and view: ### 1. **Vue.js** - **Overview**: Although it...
49,615
[ { "from": "human", "value": "Are there any client-side JavaScript MVC (micro-)frameworks?\nI have a rather complicated HTML form, and it would benefit from the MVC pattern.\nI imagine a good solution would provide the following:\n\nModel and View update the Controller when values change (Observer pattern)\n...
Is it possible in Eclipse to have some kind of packages (sets of projects) when using CDT projects? We have separated our software in such packages and use VS2005 with .sln files for the Windows parts. At the moment I see only two ways to manage the projects in Eclipse: Put all together into a single workspace and loo...
In Eclipse CDT, there isn't a built-in feature equivalent to Visual Studio's solution files that allows you to group projects into sets or "packages" directly. However, you can use several workarounds to achieve a similar effect. Here are a few suggestions: ### 1. Use Project Groups Eclipse has a feature called **Proj...
49,306
[ { "from": "human", "value": "Is it possible in Eclipse to have some kind of packages (sets of projects) when using CDT projects?\nWe have separated our software in such packages and use VS2005 with .sln files for the Windows parts.\nAt the moment I see only two ways to manage the projects in Eclipse:\n\nPut...
I am trying to write operator overload for custom class and don't know how to handle null comparison. Class Customer { int id; public static bool operator ==(Customer a, Customer b) { //When both a and b are null don't know how to compare as can't use == in here as //it will fall into loop ...
In C#, when overloading the equality operator (`==`), it's important to handle null comparisons to avoid a stack overflow or infinite loops caused by recursive calls. The basic idea is to check whether the instances being compared are `null` before attempting to access their properties. Here’s how you can implement t...
49,873
[ { "from": "human", "value": "I am trying to write operator overload for custom class and don't know how to handle null comparison.\nClass Customer\n{\n int id;\n\n public static bool operator ==(Customer a, Customer b)\n {\n //When both a and b are null don't know how to compare as can't use...
Ok, this is not a CSS issue, I removed all styling from the page. This is a calendar extender that has a target id of a textbox and the popupbutton is the same text box. The month name is displaying lower than the days, so it's not usable. it's fine in IE. I am using Safari in Windows Vista. Does anyone know what ...
It sounds like you're experiencing a rendering issue with the Ajax Control Toolkit's CalendarExtender in Safari on Windows Vista. Given that it works fine in Internet Explorer, the problem might be related to how Safari handles the calendar's pop-up rendering or certain default styles that are being applied in that bro...
46,130
[ { "from": "human", "value": "Ok, this is not a CSS issue, I removed all styling from the page. This is a calendar extender that has a target id of a textbox and the popupbutton is the same text box. \nThe month name is displaying lower than the \ndays, so it's not usable. \nit's fine in IE. \nI am using Saf...
I wonder what are the main challenges to porting those emulator engines. Could there been any sucess without having to rewrite all the code? Any conversion tools available that can help?
Porting emulator engines can present a variety of challenges, particularly because of the complexity and specificity of the code involved. Here are some of the main challenges and considerations: ### Main Challenges 1. **Platform Differences**: - Emulators often rely on platform-specific APIs for tasks like graphi...
47,713
[ { "from": "human", "value": "I wonder what are the main challenges to porting those emulator engines. \nCould there been any sucess without having to rewrite all the code? Any conversion tools available that can help? \n" }, { "from": "gpt", "value": "Porting emulator engines can present a varie...
I just started writing tests for a lot of code. There's a bunch of classes with dependencies to the file system, that is they read CSV files, read/write configuration files and so on. Currently the test files are stored in the test directory of the project (it's a Maven2 project) but for several reasons this directory ...
Managing file system and database dependencies in unit and integration tests can be a challenge, but there are several best practices you can adopt to make your testing process more reliable and maintainable. Here are some general recommendations: ### 1. **Use Mocking Frameworks** - **Mocking Dependencies**: Use a ...
48,713
[ { "from": "human", "value": "I just started writing tests for a lot of code. There's a bunch of classes with dependencies to the file system, that is they read CSV files, read/write configuration files and so on.\nCurrently the test files are stored in the test directory of the project (it's a Maven2 projec...
I have a stack panel inside of an expander panel that I programaticaly adds check boxes to. Currently the exanpander stops at the bottom of the form, but the stack panel keeps growing. I would like the stack panel to be bounded by the expander and scroll to display the check boxes. Do I need house the check boxes in...
To achieve the desired functionality where the `StackPanel` containing the checkboxes scrolls when its content exceeds the visible area of the `Expander`, you can indeed use a `ScrollViewer`. However, using a `ListBox` is also an option, as it has built-in support for scrolling and data binding. Here’s how to impleme...
46,875
[ { "from": "human", "value": "I have a stack panel inside of an expander panel that I programaticaly adds check boxes to. Currently the exanpander stops at the bottom of the form, but the stack panel keeps growing. I would like the stack panel to be bounded by the expander and scroll to display the check b...
I have HTML code like this : <div> <a>Link A1</a> <a>Link A2</a> <a>Link A3</a> </div> <div> <a>Link B1</a> <a>Link B2</a> <a>Link B3</a> </div> When user clicks a link from above HTML, I want to get the jQuery object of the corresponding <a> element, and then manipulate its ...
You can achieve this using jQuery without needing to assign IDs to each `<a>` element. You can simply use the `$(this)` keyword inside the click event handler to refer to the clicked link, and then use jQuery methods to manipulate its siblings. Here’s an example of how you can do it: ```html <!DOCTYPE html> <html lan...
46,888
[ { "from": "human", "value": "I have HTML code like this :\n<div>\n <a>Link A1</a>\n <a>Link A2</a>\n <a>Link A3</a>\n</div>\n\n<div>\n <a>Link B1</a>\n <a>Link B2</a>\n <a>Link B3</a>\n</div>\n\nWhen user clicks a link from above HTML, I want to get the jQuery object of t...
This is a question not really about "programming" (is not specific to any language or database), but more of design and architecture. It's also a question of the type "What the best way to do X". I hope does no cause to much "religious" controversy. In the past I have developed systems that in one way or another, keep ...
Your question touches on an important aspect of database design and application architecture, particularly in the context of inventory management systems. While there is no one-size-fits-all answer, and both methods you described can be valid under different circumstances, let's delve into some considerations, pros and...
47,140
[ { "from": "human", "value": "This is a question not really about \"programming\" (is not specific to any language or database), but more of design and architecture. It's also a question of the type \"What the best way to do X\". I hope does no cause to much \"religious\" controversy.\nIn the past I have dev...
This is a problem I'm sure is easy to fix, but I've been banging my head on it all day. I'm developing a new web site for a client. The web site resides at (this is an example) website.com. I have a PHP form script to email visitors' requests to requests@website.com. When I coded this on a staging server on a differe...
It looks like you've done quite a bit of troubleshooting already, and you may be onto something with your diagnosis. When a mail server is set up, it can often be configured to treat certain domains as "local" domains. In your case, it appears that `website.com` is configured as a local domain on the web server, which ...
49,128
[ { "from": "human", "value": "This is a problem I'm sure is easy to fix, but I've been banging my head on it all day.\nI'm developing a new web site for a client. The web site resides at (this is an example) website.com. I have a PHP form script to email visitors' requests to requests@website.com.\nWhen I ...
I'm trying to build about 600 projects some are .net 2.0, some are 3.5. I'm using Windows 2003 Enterprise Edition 32 bit with all the latest windows updates. Builds fine when maxcpucount is 1. If I bump it up to try and improve performance it get reference errors. When I look at the project references from where the...
It sounds like you're encountering issues with project dependency resolution when you try to build multiple projects concurrently using MSBuild with the `/m` switch (which enables multi-core builds). This can happen due to the way MSBuild handles project references, especially when certain projects are not built in the...
48,939
[ { "from": "human", "value": "I'm trying to build about 600 projects some are .net 2.0, some are 3.5. I'm using Windows 2003 Enterprise Edition 32 bit with all the latest windows updates.\nBuilds fine when maxcpucount is 1. If I bump it up to try and improve performance it get reference errors. When I loo...
Being new to Cocoa, and probably not knowing all of the potential classes available that already have this functionality neatly wrapped in an OO class, here's an algorithm inquiry. What's the best bet to count how many times a particular key occurs in an array of multiple NSDictionary instances? Essentially my data str...
In your case, using an `NSCountedSet` is a great approach to count occurrences of key/value pairs in an array of `NSDictionary` instances. The `NSCountedSet` class is specifically designed to keep track of the count of unique objects, making it a good fit for your requirement. Here's how you can achieve this: 1. **It...
49,896
[ { "from": "human", "value": "Being new to Cocoa, and probably not knowing all of the potential classes available that already have this functionality neatly wrapped in an OO class, here's an algorithm inquiry. What's the best bet to count how many times a particular key occurs in an array of multiple NSDict...
I have these container objects (let's call them Container) in a list. Each of these Container objects in turn has a DataItem (or a derivate) in a list. In a typical scenario a user will have 15-20 Container objects with 1000-5000 DataItems each. Then there are some DataMatcher objects that can be used for different typ...
The issue you are experiencing with the `AllWordsMatcher` when using the `ThreadPool` may be related to one or more of the following potential causes: 1. **Shared State and Race Conditions**: If the `DataItemCommand` instances or any other shared data (like the `Container` or its `DataItem` properties) are being modif...
48,278
[ { "from": "human", "value": "I have these container objects (let's call them Container) in a list. Each of these Container objects in turn has a DataItem (or a derivate) in a list. In a typical scenario a user will have 15-20 Container objects with 1000-5000 DataItems each. Then there are some DataMatcher o...
I have a column that contains dates, when I click the column header the column is sorted numerically and not by date. How would I sort this by date? The date is in the format dd/mm/yy. Example (sorted oldest first): 10/12/08 <--December 10/09/08 <--September 12/12/08 <--December Many thanks
When you're facing an issue where a date column is being sorted numerically instead of chronologically, it usually means that the dates are being recognized as text rather than as date values. To sort them correctly by date, you'll need to convert the text representation of the dates into actual date values. Here’s how...
45,965
[ { "from": "human", "value": "I have a column that contains dates, when I click the column header the column is sorted numerically and not by date. How would I sort this by date? The date is in the format dd/mm/yy.\nExample (sorted oldest first):\n10/12/08 <--December\n10/09/08 <--September\n12/12/08 <--Dece...
I'm working on a problem that requires caching paginated "search" results: Paginating very large datasets The search works as follows: given an item_id, I find the matching item_ids and their rank. I'm willing to concede not showing my users any results past, say, 500. After 500, I'm going to assume they're not going...
Yes, MySQL can handle large tables with hundreds of millions of rows, but there are several factors to consider when designing and implementing your caching solution for paginated search results: ### 1. Database Design and Indexing - **Table Structure**: Your proposed table structure (`matches` with `item_id`, `matche...
44,818
[ { "from": "human", "value": "I'm working on a problem that requires caching paginated \"search\" results: Paginating very large datasets\nThe search works as follows: given an item_id, I find the matching item_ids and their rank.\nI'm willing to concede not showing my users any results past, say, 500. Aft...
How can I programmatically set Windows Live Messenger (currently using 8.5.1302.1018) display picture. Possible solutions can be in C++, .NET or VB. Even just a hint could be useful.
Setting the display picture for Windows Live Messenger (or any similar messaging software) programmatically can be tricky, as these applications may not have exposed APIs for this purpose. However, you can try a few approaches that involve simulating user input or manipulating the software's configuration files. Here a...
49,531
[ { "from": "human", "value": "How can I programmatically set Windows Live Messenger (currently using 8.5.1302.1018) display picture. Possible solutions can be in C++, .NET or VB. Even just a hint could be useful.\n" }, { "from": "gpt", "value": "Setting the display picture for Windows Live Messen...
How can I ignore accents (like ´, `, ~) in queries made to a SQL Server database using LINQ to SQL? UPDATE: Still haven't figured out how to do it in LINQ (or even if it's possible) but I managed to change the database to solve this issue. Just had to change the collation on the fields I wanted to search on. The collat...
You're correct in your approach to change the collation of your SQL Server database to achieve accent-insensitive searches. By using a collation that is accent-insensitive (AI), you can avoid issues with special characters such as accents in queries. For your specific use case, the SQL statement you mentioned does cha...
47,512
[ { "from": "human", "value": "How can I ignore accents (like ´, `, ~) in queries made to a SQL Server database using LINQ to SQL?\nUPDATE:\nStill haven't figured out how to do it in LINQ (or even if it's possible) but I managed to change the database to solve this issue.\nJust had to change the collation on ...
Is it possible Firebug may be incorrectly adding downloads to the Net tab when things may be loaded from the cache? I have some code in a Javascript gallery which is meant to lazily download an image when the thumbnail is clicked and then display it once downloaded. It is meant to determine if it's been downloaded alre...
It's great that you're delving into JavaScript and exploring caching mechanisms! Let's address your concerns regarding Firebug, image caching, and lazy loading. ### Firebug and Caching Firebug is a powerful tool for debugging web applications, but it can sometimes present information that may seem misleading, particul...
45,989
[ { "from": "human", "value": "Is it possible Firebug may be incorrectly adding downloads to the Net tab when things may be loaded from the cache?\nI have some code in a Javascript gallery which is meant to lazily download an image when the thumbnail is clicked and then display it once downloaded. It is meant...
I have a C# application that's utilizes MYSQL. I'm at a beta release point and need an installation package that includes my application, along with MYSQL. So basically, I need to install MYSQL and perform a restore from within my .NET install package. Any help would be greatly appreciated.
Creating an installation package for your C# application that includes MySQL and performs a restore can be accomplished using several approaches. Below, I'll outline a general process using Inno Setup, a popular installation tool for Windows applications, along with a few other methods you might consider. ### Using In...
48,101
[ { "from": "human", "value": "I have a C# application that's utilizes MYSQL. I'm at a beta release point and need an installation package that includes my application, along with MYSQL. So basically, I need to install MYSQL and perform a restore from within my .NET install package.\nAny help would be greatly...
What is the Action Design Pattern, I haven't heard of it before? I am suspecting it is the same as the Command Design pattern [wikipedia] but I can't find any resources on it.
The Action Design Pattern is not widely recognized or documented in the same way as some other design patterns, such as the Command Pattern. While there may not be a formal definition or extensive literature specifically addressing the "Action Design Pattern," your suspicion that it might be related to the Command Patt...
47,260
[ { "from": "human", "value": "What is the Action Design Pattern, I haven't heard of it before? I am suspecting it is the same as the Command Design pattern [wikipedia] but I can't find any resources on it.\n" }, { "from": "gpt", "value": "The Action Design Pattern is not widely recognized or docu...
How would I go about this? I have a mostly static site, which is being hosted on a cheap web-host, which only allows FTP access to the hosting. The site is tracked in git. I am using OS X. I would like to upload a new version of the site by simply doing cap deploy
To set up a simple deployment workflow that allows you to upload a new version of your mostly static site to a hosting provider via FTP using Capistrano, you can follow these steps: ### Prerequisites: 1. **Install Ruby**: Make sure you have Ruby installed on your system. You can check if it's installed by running `ru...
42,904
[ { "from": "human", "value": "How would I go about this?\nI have a mostly static site, which is being hosted on a cheap web-host, which only allows FTP access to the hosting. The site is tracked in git. I am using OS X.\nI would like to upload a new version of the site by simply doing cap deploy\n" }, { ...
I'm trying to add a publisher policy file to the gac as per this thread but I'm having problems when I try and add the file on my test server. I get "A module specified in the manifest of assembly 'policy.3.0.assemblyname.dll' could not be found" My policy file looks like this: <configuration> <runtime> <assemb...
The error you're encountering, "A module specified in the manifest of assembly 'policy.3.0.assemblyname.dll' could not be found," indicates that there may be an issue with the assembly references or the way the publisher policy is being created or deployed. Here are some steps to troubleshoot and resolve the issue: ##...
48,842
[ { "from": "human", "value": "I'm trying to add a publisher policy file to the gac as per this thread but I'm having problems when I try and add the file on my test server. \nI get \"A module specified in the manifest of assembly 'policy.3.0.assemblyname.dll' could not be found\"\nMy policy file looks like ...
We have hosted our web applications on Tomcat 6.0.18 and experienced the following problem: There are two web apps WebApp1 and WebApp2, both are same system but of different versions. Now the problem is when the tomcat has been running for a week or longer time then sometimes system gives NoClassDefFoundError ! also w...
Hi Jatan, It sounds like you're encountering some challenging class loading issues with your Tomcat setup. Here are a few insights and suggestions that might help you troubleshoot and resolve these problems: ### 1. **ClassLoader Isolation**: Tomcat's class loader hierarchy allows for different web applications to hav...
46,813
[ { "from": "human", "value": "We have hosted our web applications on Tomcat 6.0.18 and experienced the following problem:\nThere are two web apps WebApp1 and WebApp2, both are same system but of different versions. \nNow the problem is when the tomcat has been running for a week or longer time then sometimes...
Is there any easy way to add a using statement to every class I create in a project without having to write using SomeNamespace; in every file? [edit] I could add a template I realise but I'm talking about doing it for every file in an existing project.
Yes, while there's no built-in feature in C# to automatically add a `using` statement to every class in an existing project without modifying each file, there are a few approaches you can consider to achieve this: 1. **Global Usings (C# 10 and later)**: Starting with C# 10 (part of .NET 6), you can define global using...
49,906
[ { "from": "human", "value": "Is there any easy way to add a using statement to every class I create in a project without having to write\nusing SomeNamespace;\n\nin every file?\n[edit]\nI could add a template I realise but I'm talking about doing it for every file in an existing project.\n" }, { "fr...
Drupal Aggregator core module is a useful one but suffers many problems. There are many talking about improving it in Drupal 7. Right now I'm using Aggregator module which comes with Drupal 6. I'm building an aggregation site, and there is one BIG problem. Sometimes feeds contain HTML tags attributes (e.g. style, dir, ...
To allow specific HTML tag attributes in the Aggregator module in Drupal 6 without modifying core files, you can create a custom input format that extends the existing functionality of the Aggregator module. Here's how to do it: ### Step 1: Create a Custom Input Format 1. **Go to Admin > Site configuration > Input fo...
48,512
[ { "from": "human", "value": "Drupal Aggregator core module is a useful one but suffers many problems. There are many talking about improving it in Drupal 7.\nRight now I'm using Aggregator module which comes with Drupal 6. I'm building an aggregation site, and there is one BIG problem. Sometimes feeds conta...
I have seen the error "The ';' character, hexadecimal value 0x3B, cannot be included in a name." in my log files for an ASP.NET Web App. The url that's logged looks something like this: mypage.aspx?paramone=one+two&amp;paramtwo=zero+1 So my first question is what type of system/browser is encoding the original query s...
The issue you're encountering with the `&amp;` being included in the query string likely originates from the way the URL is being constructed in the front-end code (HTML, JavaScript, etc.). The `&amp;` is an HTML entity for the `&` character and should not be in the URL when it's transmitted over HTTP. Browsers typical...
48,226
[ { "from": "human", "value": "I have seen the error \"The ';' character, hexadecimal value 0x3B, cannot be included in a name.\" in my log files for an ASP.NET Web App. The url that's logged looks something like this:\nmypage.aspx?paramone=one+two&amp;paramtwo=zero+1\n\nSo my first question is what type of s...
I have created a web service which has a couple of methods developed using .net 3.5. The clients who will access the web service will be using .net 3.0. I have been asked to make this web service "secure" and having looked on the net have seen a number of options. First one is to use WCF with .net 3.5 for the service....
Securing a web service in a mixed .NET environment (specifically .NET 3.5 for the service and .NET 3.0 for the clients) can be challenging. Here are the two main approaches you mentioned, along with some additional suggestions. ### 1. WCF (.NET 3.5) Using Windows Communication Foundation (WCF) is a robust option for d...
48,472
[ { "from": "human", "value": "I have created a web service which has a couple of methods developed using .net 3.5. The clients who will access the web service will be using .net 3.0.\nI have been asked to make this web service \"secure\" and having looked on the net have seen a number of options. \nFirst one...
I've been using NetBeans as the XDebug interactive debugging client. But seems like it only supports attaching debuggers to scripts that are invoked via Firefox. I want to step through the request parse script when it's invoked via cURL.
To debug PHP scripts invoked via cURL using XDebug with NetBeans, you need to ensure that XDebug can receive the debugging session when the request is made. By default, NetBeans may be set up to listen for requests from a browser, but you can also configure it to accept requests from other sources, including cURL. Her...
45,983
[ { "from": "human", "value": "I've been using NetBeans as the XDebug interactive debugging client. But seems like it only supports attaching debuggers to scripts that are invoked via Firefox. I want to step through the request parse script when it's invoked via cURL.\n" }, { "from": "gpt", "value...