instruction
stringlengths
14
27.6k
completion
stringlengths
3
38.3k
__original_row_idx
int64
0
50k
conversations
listlengths
2
2
In Google groups and some other web sites, there is a 5-star rating component which is pretty neat, such as in this url: http://groups.google.com/group/Google-Picasa-Data-API/browse_thread/thread/b5a346e6429a70a7?hl=en I am wondering whether there is an existing 5-star rating component in the iPhone environment. Or if ...
If you're looking to implement a 5-star rating component in an iPhone app, there are indeed existing libraries and components that can help you with this. Here are a few options to consider: ### Existing Libraries 1. **Cosmos**: - A lightweight, customizable star rating control for iOS. - GitHub: [Cosmos](https...
43,806
[ { "from": "human", "value": "In Google groups and some other web sites, there is a 5-star rating component which is pretty neat, such as in this url:\nhttp://groups.google.com/group/Google-Picasa-Data-API/browse_thread/thread/b5a346e6429a70a7?hl=en\nI am wondering whether there is an existing 5-star rating ...
I am just learning about Unit Testing. I am using NUnit to build tests for a VB.NET project. The project I'm working on is part of a framework which will be used by people who build ASP.NET websites. It includes a base class (which inherits System.Web.HttpApplication) that users of my framework will inherit their app...
Unit testing in ASP.NET, especially with a framework like NUnit, can be a bit challenging due to the reliance on the ASP.NET infrastructure. However, there are strategies you can adopt to effectively test your application base class and composite controls. ### Testing the Application Base Class For your application b...
43,220
[ { "from": "human", "value": "I am just learning about Unit Testing. I am using NUnit to build tests for a VB.NET project.\nThe project I'm working on is part of a framework which will be used by people who build ASP.NET websites. It includes a base class (which inherits System.Web.HttpApplication) that us...
I was reading about the debuggerstepperboundary attribute and a site says it is is useful in a context switch. What exactly is a context switch? I'm assuming it is a switch from one thread to another, or in execution or security context? However, these are not particularly educated guesses so I'm asking here.
A **context switch** is a fundamental operating system concept that occurs when the CPU switches from executing one process or thread to executing another. This involves saving the state (or context) of the currently running process or thread so that it can be resumed later, and then loading the state of the next proce...
48,280
[ { "from": "human", "value": "I was reading about the debuggerstepperboundary attribute and a site says it is is useful in a context switch.\nWhat exactly is a context switch? I'm assuming it is a switch from one thread to another, or in execution or security context? However, these are not particularly educ...
Please share how you do version control for Lotus Notes/Domino development. I want to put in our SVN repository all the scripts, views, custom forms, script libraries, etc. Semi-automated methods are accepted as well (i.e. if I find a way to get all the event scripts for a form in one file, and to be able to place it b...
Version control for Lotus Notes/Domino development can be challenging due to the proprietary nature of the platform and its development tools. However, you can adopt various strategies to manage your code in an SVN repository effectively. Below, I outline some best practices and methods, including semi-automated techni...
37,208
[ { "from": "human", "value": "Please share how you do version control for Lotus Notes/Domino development.\nI want to put in our SVN repository all the scripts, views, custom forms, script libraries, etc.\nSemi-automated methods are accepted as well (i.e. if I find a way to get all the event scripts for a for...
What do I need to do to NSXMLParser so it handles entity characters? For example, if I have the following element <anElement>Left & Right</anElement> I am only getting " Right" in the parser:foundCharacters: delegate method. Thanks.
When using `NSXMLParser` to parse XML content, it's important to understand how entity characters are processed. In your example with the element `<anElement>Left & Right</anElement>`, the ampersand (`&`) is interpreted as the start of an entity reference. If you haven't defined the entity `Right`, the parser might mis...
40,367
[ { "from": "human", "value": "What do I need to do to NSXMLParser so it handles entity characters? For example, if I have the following element <anElement>Left & Right</anElement> I am only getting \" Right\" in the parser:foundCharacters: delegate method.\nThanks.\n" }, { "from": "gpt", "value":...
I am deploying ASP.NET and Web Service solutions to IIS for a development server. It looks like the last person that did this job deployed all the .pdb files too. I asked about it, and was told that they "provide better stack trace info in the logs" if they are left on the server. Is there any truth to this? I've alway...
The .pdb (Program Database) files contain debugging information that maps your compiled application code back to the original source code. When you encounter an exception in your ASP.NET application, having the .pdb files available on the server can indeed provide better stack trace information. Specifically, they can ...
47,887
[ { "from": "human", "value": "I am deploying ASP.NET and Web Service solutions to IIS for a development server. It looks like the last person that did this job deployed all the .pdb files too. I asked about it, and was told that they \"provide better stack trace info in the logs\" if they are left on the ser...
I want to create a windows mobile app (windows mobile 5.0 and above, using CompactFramework [in SharpDevelop]) to capture photos automatically, without user involvement (like it would be with CameraCaptureDialog). After going through google searches I found out a solution that should work (http://blogs.msdn.com/marcpe/...
Creating a Windows Mobile app that captures photos automatically using the Compact Framework can be quite a challenge, especially given the age and limited resources available for that platform. If you're having trouble compiling the source from the blog post you referenced, here are a few alternative approaches you ca...
40,947
[ { "from": "human", "value": "I want to create a windows mobile app (windows mobile 5.0 and above, using CompactFramework [in SharpDevelop]) to capture photos automatically, without user involvement (like it would be with CameraCaptureDialog). After going through google searches I found out a solution that s...
Can anyone explain in simple words what First and Second Level caching in Hibernate/NHibernate are?
Sure! Let's break down First and Second Level caching in Hibernate/NHibernate in simple terms. ### First Level Cache 1. **What It Is**: The First Level Cache is a cache that is associated with a specific `Session` in Hibernate/NHibernate. Think of it as a temporary storage space that holds objects you retrieve from t...
40,826
[ { "from": "human", "value": "Can anyone explain in simple words what First and Second Level caching in Hibernate/NHibernate are?\n" }, { "from": "gpt", "value": "Sure! Let's break down First and Second Level caching in Hibernate/NHibernate in simple terms.\n\n### First Level Cache\n\n1. **What I...
I have written a C# Windows Forms application to merge the files and folders from a remote folder on one machine ("source" folder is a mapped drive - "Z:\folder") with another remote folder on a different machine ("destination" folder is a UNC path to a shared folder - "\\computername\sharedfolder"). I have Full permis...
It looks like you've successfully resolved the issue you were facing with your C# Windows Forms application, but let's summarize and elaborate on the problem and its resolution for clarity and future reference. ### Problem Summary: You were encountering a `SecurityException` when trying to create a `DirectoryInfo` obj...
44,565
[ { "from": "human", "value": "I have written a C# Windows Forms application to merge the files and folders from a remote folder on one machine (\"source\" folder is a mapped drive - \"Z:\\folder\") with another remote folder on a different machine (\"destination\" folder is a UNC path to a shared folder - \"...
Aside from executing XP_CmdShell, which I have disabled in my SQL 2005 installation, what could a malicious user who gains DBO rights to my database do: To my database, To my server? I'm assessing the worst-case security risk of someone obtaining DBO to justify running a "least-privileged" user account in an applicat...
Granting DBO (Database Owner) rights in SQL Server 2005, or any version of SQL Server for that matter, can lead to significant risks both at the database and server levels. Here’s an overview of what a malicious user with DBO rights could potentially do: ### To Your Database: 1. **Data Manipulation**: - They can i...
40,584
[ { "from": "human", "value": "Aside from executing XP_CmdShell, which I have disabled in my SQL 2005 installation, what could a malicious user who gains DBO rights to my database do:\n\nTo my database,\nTo my server?\n\nI'm assessing the worst-case security risk of someone obtaining DBO to justify running a ...
When I try my CLR UDF, I am getting this error: Msg 6522, Level 16, State 1, Line 1 A .NET Framework error occurred during execution of user-defined routine or aggregate "getFileSize": System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=...
The error you are encountering indicates that your CLR User-Defined Function (UDF) is trying to access the file system, which is restricted due to security permissions in SQL Server. By default, SQL Server CLR integration does not grant full access to the file system for security reasons. Here are some steps you can f...
40,944
[ { "from": "human", "value": "When I try my CLR UDF, I am getting this error:\nMsg 6522, Level 16, State 1, Line 1\nA .NET Framework error occurred during execution of user-defined routine or aggregate \"getFileSize\":\nSystem.Security.SecurityException: Request for the permission of type 'System.Security.Pe...
I'm going to use gSOAP to interact with a WCF webservice in my Mac project. It does pretty much exactly what I need and it does it well (pretty much the exact opposite of WSMakeStubs;)). The only downside is that it's C/C++ only, meaning I either need to convert all my types into C types on the fly or write a complete ...
Interfacing between C/C++ types and higher-level languages can indeed be challenging, especially when dealing with web services like WCF. While there might not be a complete solution readily available, there are a few resources and approaches that could help you bridge the gap between C/C++ and the data types you need ...
43,394
[ { "from": "human", "value": "I'm going to use gSOAP to interact with a WCF webservice in my Mac project. It does pretty much exactly what I need and it does it well (pretty much the exact opposite of WSMakeStubs;)). The only downside is that it's C/C++ only, meaning I either need to convert all my types int...
I am writing a deployment script using MSBuild. I want to clean my web directories prior to copying all the new files in. My current "Clean" target looks like this: <Target Name="Clean"> <Exec Command="del %(DeploymentSet.LocalWebRoot)\* /Q /F /S" IgnoreExitCode="true" /> </Target> This takes an considerable am...
To efficiently clean a web directory in MSBuild while preserving the directory structure and permissions, you can use the `RemoveDir` task instead of using the `Exec` command with `del`. The `RemoveDir` task can delete all contents of a specified directory without removing the directory itself. Here's how you can modi...
42,008
[ { "from": "human", "value": "I am writing a deployment script using MSBuild. I want to clean my web directories prior to copying all the new files in. My current \"Clean\" target looks like this:\n <Target Name=\"Clean\">\n <Exec Command=\"del %(DeploymentSet.LocalWebRoot)\\* /Q /F /S\" IgnoreExitCode=\"...
I'm doing a PHP site which displays code examples in various languages (C#, PHP, Perl, Ruby, etc.). Are there any PHP functions which add syntax coloring for these and other languages? If not, I would at least like to find that one built-in PHP function which does syntax coloring for PHP code, can't find it anymore. T...
In PHP, there isn't a built-in function specifically for syntax highlighting code examples in various languages other than PHP. However, PHP does provide a built-in function for syntax highlighting PHP code: ### Syntax Highlighting for PHP Code You can use the `highlight_string()` function to display PHP code with sy...
45,152
[ { "from": "human", "value": "I'm doing a PHP site which displays code examples in various languages (C#, PHP, Perl, Ruby, etc.). Are there any PHP functions which add syntax coloring for these and other languages? \nIf not, I would at least like to find that one built-in PHP function which does syntax color...
I'm wondering if this is a good design. I have a number of tables that require address information (e.g. street, post code/zip, country, fax, email). Sometimes the same address will be repeated multiple times. For example, an address may be stored against a supplier, and then on each purchase order sent to them. Th...
Your design considerations present a common challenge in database normalization and data integrity. Given your requirements, let's evaluate your options and consider a potential approach: ### Analysis of Options **Option 1: Denormalized Approach** - **Pros**: - Simplicity: Straightforward to implement as all addres...
42,971
[ { "from": "human", "value": "I'm wondering if this is a good design. I have a number of tables that require address information (e.g. street, post code/zip, country, fax, email). Sometimes the same address will be repeated multiple times. For example, an address may be stored against a supplier, and then...
Ok, this is driving me nuts. I've done just about everything I can to enable step through debugging of stored procedures of a sql server 2005 database. http://arjunachith.blogspot.com/2007/05/debugging-stored-procedures-debug.html http://msdn.microsoft.com/en-us/library/zefbf0t6(vs.71).aspx My currents setup: visual s...
Debugging stored procedures in SQL Server 2005 from Visual Studio 2008 can be tricky, especially when it comes to setting everything up correctly. Below are some steps you can take to troubleshoot and ensure that you're able to step through stored procedures. ### Prerequisites 1. **Ensure Visual Studio is Configured ...
40,027
[ { "from": "human", "value": "Ok, this is driving me nuts.\nI've done just about everything I can to enable step through debugging of stored procedures of a sql server 2005 database.\nhttp://arjunachith.blogspot.com/2007/05/debugging-stored-procedures-debug.html\nhttp://msdn.microsoft.com/en-us/library/zefbf...
When you startup a standard trace the first settings you see will be the current database connections. In my case there is about 10 entries, all of whome are the same username, however some are dateformat dmy and some are mdy. The asp website seems to pick a connection from the pool and uses it, it appears to pick one...
When dealing with date formatting issues in a database connection context, especially in a scenario involving ASP (Active Server Pages) and a connection pool, there are several potential sources to investigate: 1. **Session-level Settings**: Each database session can have its own settings. If your connections are bein...
45,802
[ { "from": "human", "value": "When you startup a standard trace the first settings you see will be the current database connections.\nIn my case there is about 10 entries, all of whome are the same username, however some are dateformat dmy and some are mdy. The asp website seems to pick a connection from the...
I'm having an error where I am not sure what caused it. Here is the error: Exception Type: OperationalError Exception Value: (1054, "Unknown column 'user_id' in 'field list'") Does anyone know why I am getting this error? I can't figure it out. Everything seems to be fine. My view code is below: if "login" in...
The error you're encountering, `(1054, "Unknown column 'user_id' in 'field list'")`, indicates that the database table for your `Idea` model is expecting a `user_id` column (which is typically created automatically for a foreign key relationship), but it cannot find it. This can happen for a few reasons: 1. **Databa...
45,522
[ { "from": "human", "value": "I'm having an error where I am not sure what caused it.\nHere is the error:\nException Type: OperationalError\nException Value: \n(1054, \"Unknown column 'user_id' in 'field list'\")\n\nDoes anyone know why I am getting this error? I can't figure it out. Everything seems ...
MySQL ResultSets are by default retrieved completely from the server before any work can be done. In cases of huge result sets this becomes unusable. I would like instead to actually retrieve the rows one by one from the server. In Java, following the instructions here (under "ResultSet"), I create a statement like thi...
To retrieve rows from a large MySQL result set one by one (or in manageable chunks) in Python, you can utilize the `MySQLdb` library (or `mysql-connector-python` for a more modern approach). The key point is to configure the cursor to operate in a way that allows streaming of the results directly from the server withou...
44,977
[ { "from": "human", "value": "MySQL ResultSets are by default retrieved completely from the server before any work can be done. In cases of huge result sets this becomes unusable. I would like instead to actually retrieve the rows one by one from the server.\nIn Java, following the instructions here (under \...
I'm fooling around with Yahoo! pipes and I'm hitting a wall with some regular expression. Now I'm familiar with regular expressions from Perl but the rules just seem to be different in Yahoo! pipes. What I'm doing is fetching a page and trying to turn it into a feed, my regex for stripping out the link from the HTML ...
It sounds like you're trying to extract the content inside `<i>` tags from HTML using Yahoo! Pipes and you're encountering issues with regular expressions. While Yahoo! Pipes had its own syntax and limitations when it came to regex, you can typically use a regex pattern similar to the one you might use in Perl, though ...
45,506
[ { "from": "human", "value": "I'm fooling around with Yahoo! pipes and I'm hitting a wall with some regular expression. Now I'm familiar with regular expressions from Perl but the rules just seem to be different in Yahoo! pipes.\n \nWhat I'm doing is fetching a page and trying to turn it into a feed, my rege...
I have been asked to find training resources to bring engineers up to speed on VBA programming. The target trainee will have some systems engineering experience but little to no non-systems programming experience. I'm hoping for a computer-based training course or DVD that we can purchase and give to the engineers for...
Finding the right training resources for VBA programming, especially for engineers with a background in systems engineering but little programming experience, can be a bit challenging. Here are some options that should suit your needs: ### Online Courses 1. **Udemy**: - Look for courses like "VBA for Beginners" o...
40,532
[ { "from": "human", "value": "I have been asked to find training resources to bring engineers up to speed on VBA programming.\nThe target trainee will have some systems engineering experience but little to no non-systems programming experience. \nI'm hoping for a computer-based training course or DVD that we...
I have a vector-like class that contains an array of objects of type "T", and I want to implement 4 arithmetic operators, which will apply the operation on each item: // Constructors and other functions are omitted for brevity. template<class T, unsigned int D> class Vector { public: // Add a value to each item: n...
To generalize your vector-like class's arithmetic operations while avoiding boilerplate code, you can use function objects (functors) or lambdas for the arithmetic operations. The idea is to define a function that encapsulates the arithmetic operation you want to apply, and then you can pass it to your `do_for_each` me...
47,035
[ { "from": "human", "value": "I have a vector-like class that contains an array of objects of type \"T\", and I want to implement 4 arithmetic operators, which will apply the operation on each item:\n// Constructors and other functions are omitted for brevity.\ntemplate<class T, unsigned int D>\nclass Vector...
I have a web app that I wanted copy to a new project. I created the new app with VS2003 and copied across the web forms, config, global asa, etc. and made sure IIS says it is a web app. However, I still get this error when I run the app using IE from VS IDE: ASP.NET v1.1 Could not load type TBRWEB.frmLogin I also made...
The error message "Could not load type TBRWEB.frmLogin" indicates that ASP.NET is unable to find the specified type within the application. Here are some steps you can take to troubleshoot and resolve this issue: 1. **Check Namespace and Class Name**: - Make sure that the `frmLogin` class is defined within the `TBR...
40,564
[ { "from": "human", "value": "I have a web app that I wanted copy to a new project.\nI created the new app with VS2003 and copied across the web forms, config, global asa, etc. and made sure IIS says it is a web app.\nHowever, I still get this error when I run the app using IE from VS IDE:\nASP.NET v1.1 Coul...
I have a simple NAnt build file, which attempts to perform an update from subversion on the specified directory. An example of the test build file content is: <?xml version="1.0" ?> <project name="Project_name" default="update"> <property name="root" value="C:\Subversion\UpdateDir" overwrite="false"/> <property name="b...
The issue you encountered with the NAnt build file failing in TeamCity, while it works fine in the NAnt GUI, appears to be related to the state of the Subversion working copy. The error message indicates that the working copy is locked, which can happen if a previous SVN operation was interrupted or not completed succe...
47,804
[ { "from": "human", "value": "I have a simple NAnt build file, which attempts to perform an update from subversion on the specified directory. An example of the test build file content is:\n<?xml version=\"1.0\" ?>\n<project name=\"Project_name\" default=\"update\">\n<property name=\"root\" value=\"C:\\Subve...
Can you sign a C++ CLI application that is partially managed and partially unmanaged?
Yes, you can sign a C++ CLI application that is partially managed and partially unmanaged. In C++ CLI (Common Language Infrastructure), you can mix both managed and unmanaged code, and signing the assembly can be done as you would for any managed .NET assembly. ### Steps to Sign a C++ CLI Application 1. **Create a St...
45,926
[ { "from": "human", "value": "Can you sign a C++ CLI application that is partially managed and partially unmanaged?\n" }, { "from": "gpt", "value": "Yes, you can sign a C++ CLI application that is partially managed and partially unmanaged. In C++ CLI (Common Language Infrastructure), you can mix ...
According to Martin Fowler "Something can be public but that does not mean you have published it." Does this mean something like this: public interface IRollsRoyceEngine { void Start(); void Stop(); String GenerateEngineReport(); } public class RollsRoyceEngine : IRollsRoyceEngine { public bool EngineH...
Yes, you are on the right track with your understanding of what Martin Fowler means when he discusses the difference between "public" and "published" in the context of software design, particularly in relation to interfaces and implementation. ### Key Concepts 1. **Public Methods**: These are methods that can be acce...
46,585
[ { "from": "human", "value": "According to Martin Fowler \"Something can be public but that does not mean you have published it.\" Does this mean something like this:\npublic interface IRollsRoyceEngine\n{\n void Start();\n void Stop();\n String GenerateEngineReport();\n}\n\npublic class RollsRoyceE...
I recently wrote a class for an assignment in which I had to store names in an ArrayList (in java). I initialized the ArrayList as an instance variable private ArrayList<String> names. Later when I checked my work against the solution, I noticed that they had initialized their ArrayList in the run() method instead. I t...
In Java, whether to initialize an ArrayList as an instance variable or within a method (like `run()`) can indeed depend on the context and intended use of the variable. Here are some factors to consider when making this decision: 1. **Scope and Lifetime**: - **Instance Variable**: If the `ArrayList` needs to persis...
44,832
[ { "from": "human", "value": "I recently wrote a class for an assignment in which I had to store names in an ArrayList (in java). I initialized the ArrayList as an instance variable private ArrayList<String> names. Later when I checked my work against the solution, I noticed that they had initialized their A...
I wish to create an online system to track some things (e.g., a database with children, where each child has 1 or more visits from doctors). I want the users to be able to enter data as well as search for it, especially from mobile devices. So, this is a custom mobile online DB app of modest but non-zero size. What wou...
Creating a custom online database application that allows users to enter and search data from mobile devices involves several considerations, including your technical skills, budget, and the long-term sustainability of the system. Here are some recommendations based on the criteria you've provided: ### 1. **Platform C...
40,556
[ { "from": "human", "value": "I wish to create an online system to track some things (e.g., a database with children, where each child has 1 or more visits from doctors). I want the users to be able to enter data as well as search for it, especially from mobile devices. So, this is a custom mobile online DB ...
I have a case where if a SharePoint site owner decides to break permissions inheritance and directly manage site membership, I'd also like to correspondingly modify view permissions on items in a specific list in the top-level site. How can I best catch those changes so I know when to apply the appropriate changes t...
To detect changes in permissions inheritance on a SharePoint site and respond accordingly with C# code, you can use a combination of event receivers, SharePoint webhooks, or timer jobs, depending on your specific requirements and SharePoint version. ### Option 1: Using Event Receivers If you're using SharePoint Onlin...
42,046
[ { "from": "human", "value": "I have a case where if a SharePoint site owner decides to break permissions inheritance and directly manage site membership, I'd also like to correspondingly modify view permissions on items in a specific list in the top-level site. \nHow can I best catch those changes so I kn...
Working on a movie website and would love to find an API that I could use to get information about different movies. I code in PHP but I'm assuming this would probably return XML.
There are several APIs you can use to get information about movies that should work well with your PHP application. Here are some popular options: 1. **The Movie Database (TMDb) API**: - **Description**: TMDb is a community-driven movie and TV database with extensive information about movies, TV shows, and actors. ...
44,102
[ { "from": "human", "value": "Working on a movie website and would love to find an API that I could use to get information about different movies. I code in PHP but I'm assuming this would probably return XML.\n" }, { "from": "gpt", "value": "There are several APIs you can use to get information...
enum MyEnum { A( 1, 2, 3, 4), B(1, 2), C(4, 5, 8, 8, 9); private MyEnum( int firstInt, int... otherInts ) { // do something with arguments, perhaps initialize a List } } Are there any problems with this? Any reasons not to do it?
The provided code snippet for the `MyEnum` enum in Java demonstrates a valid way to declare enum constants with varying numbers of parameters. However, there are a few considerations and potential issues you should keep in mind: 1. **Variable Arguments Limitations**: While the use of varargs (`int... otherInts`) allow...
46,172
[ { "from": "human", "value": "enum MyEnum {\n A( 1, 2, 3, 4),\n B(1, 2),\n C(4, 5, 8, 8, 9);\n\n private MyEnum( int firstInt, int... otherInts ) {\n // do something with arguments, perhaps initialize a List\n }\n}\n\nAre there any problems with this? Any reasons not to do it?\n" }, ...
Tried to map it from Preferences -> Settings -> Keyboard, but the "key" combo box has only "forward delete" but no "delete". My keyboard on the other hand has only "delete" and no "forward delete"! Is there some other way to do it except from the preferences?
If you're unable to configure the "Delete" key using the Preferences -> Settings -> Keyboard path, there are a few alternative methods you can try: 1. **Check System Preferences (macOS)**: If you're using a Mac, go to **System Preferences > Keyboard > Shortcuts**. Here, you can manage keyboard shortcuts for various fu...
46,566
[ { "from": "human", "value": "Tried to map it from Preferences -> Settings -> Keyboard, but the \"key\" combo box has only \"forward delete\" but no \"delete\". My keyboard on the other hand has only \"delete\" and no \"forward delete\"!\nIs there some other way to do it except from the preferences?\n" }, ...
This question intends to provide a list of solutions to common pitfalls, "gotcha's", or design issues when developing WPF applications. This can also include proper design-patterns as long as there is an explanation as to why it works best. Responses should be voted up or down based on how common the type of issue is. ...
### Common Pitfall: Not Implementing the MVVM Pattern Properly **Issue:** One of the most common pitfalls in WPF applications is not effectively implementing the Model-View-ViewModel (MVVM) design pattern. This can lead to tightly coupled code, which makes maintenance and testing significantly more challenging. **Why...
49,069
[ { "from": "human", "value": "This question intends to provide a list of solutions to common pitfalls, \"gotcha's\", or design issues when developing WPF applications. This can also include proper design-patterns as long as there is an explanation as to why it works best. Responses should be voted up or down...
That was helpful kgiannakakis. I'm facing a problem as below: a = ['zbc','2.3'] for i in range(0,5): exec('E%d=%s' %(i,a[i])) This results in: Traceback (most recent call last): File "", line 2, in exec('E%d=%s' %(i,a[i])) File "", line 1, in NameError: name 'zbc' is not defined
The error you're encountering is due to how the `exec` function evaluates the string that you're trying to execute. The issue arises when the string being executed contains variables that are not defined in the current scope. In your specific case, the code `exec('E%d=%s' %(i,a[i]))` is trying to assign the values fro...
48,260
[ { "from": "human", "value": "That was helpful kgiannakakis.\nI'm facing a problem as below:\na = ['zbc','2.3']\nfor i in range(0,5):\n exec('E%d=%s' %(i,a[i]))\n\nThis results in:\n\nTraceback (most recent call last):\n File \"\", line 2, in \n exec('E%d=%s' %(i,a[i]))\n File \"\", line 1, in \nName...
I have a class SomeClass, which can populate itself from a datarow in it's constructor. This class implements IInterface. However, when I execute the code below: Dim fpQuery As IEnumerable(Of IInterface) = _ From dr As DataRow In DataLayer.SomeMethodToGetADataTable.AsEnumerable _ Select New SomeClass(dr) I get...
The error you're encountering is due to the fact that LINQ's `Select` method creates a collection of the specific type you're selecting (`SomeClass`), and although `SomeClass` implements `IInterface`, the result of the LINQ query is of type `IEnumerable(Of SomeClass)` rather than `IEnumerable(Of IInterface)`. This is w...
46,855
[ { "from": "human", "value": "I have a class SomeClass, which can populate itself from a datarow in it's constructor. This class implements IInterface. However, when I execute the code below:\nDim fpQuery As IEnumerable(Of IInterface) = _\n From dr As DataRow In DataLayer.SomeMethodToGetADataTable.AsEnume...
I am doing JavaScript Scaffold-like thing. And, code below is showing table. It works normal for all of them, and not for only one table I am getting - in the centring of processing on the third row - I get exception "Node cannot be inserted at the specified point in the hierarchy". function table_one_view(table) { ...
The error message "Node cannot be inserted at the specified point in the hierarchy" usually indicates that there is an attempt to insert an element into a DOM tree where it is not valid. This can happen for several reasons, but typically it involves appending a cloned element that is already attached to the DOM in a wa...
44,337
[ { "from": "human", "value": "I am doing JavaScript Scaffold-like thing. And, code below is showing table. It works normal for all of them, and not for only one table I am getting - in the centring of processing on the third row - I get exception \"Node cannot be inserted at the specified point in the hierar...
Having a strange issue with some C# code - the Getter method for a property is showing up as virtual when not explicitly marked. The problem exhibits with the DbKey property on this class (code in full): public class ProcessingContextKey : BusinessEntityKey, IProcessingContextKey { public ProcessingContextKey() ...
The issue you're encountering with the `DbKey` property in the `ProcessingContextKey` class exhibiting a virtual getter when it is not explicitly marked as such can be attributed to the inheritance from the abstract base class `BusinessEntityKey`. To understand why the getter is marked as virtual, we need to consider ...
44,344
[ { "from": "human", "value": "Having a strange issue with some C# code - the Getter method for a property is showing up as virtual when not explicitly marked.\nThe problem exhibits with the DbKey property on this class (code in full):\npublic class ProcessingContextKey : BusinessEntityKey, IProcessingContext...
I have Default.aspx page, which inherits from BasePage.cs, which inherits from System.Web.UI.Page. BasePage is where I do some common things every page must do upon loading. In BasePage, lets say I'm checking for X. If X=1, then I will redirect to my "Discontinued.aspx" page immediately and stop execution of BasePage...
The behavior you're experiencing is due to the way the `Response.Redirect` method works in ASP.NET. When you call `Response.Redirect` with the second parameter set to `true`, it does indeed terminate the response and cause a `ThreadAbortException`. However, this doesn't necessarily halt the execution of the current pag...
46,233
[ { "from": "human", "value": "I have Default.aspx page, which inherits from BasePage.cs, which inherits from System.Web.UI.Page. BasePage is where I do some common things every page must do upon loading.\nIn BasePage, lets say I'm checking for X. If X=1, then I will redirect to my \"Discontinued.aspx\" pag...
I'd like to create a popup dialog box in silverlight in which i can manipulate controls, enter data, and return a value. I want it to be modal, so that when it is open, the page "Below" is inaccessible. I havent found an easy way to do this yet. Any suggestions?
Creating a modal popup dialog box in Silverlight can be accomplished by using a combination of UserControls and the `Popup` class. Here's a step-by-step guide on how to create a modal dialog that allows you to manipulate controls, enter data, and return a value: ### Step 1: Create a UserControl for the Dialog First, ...
42,236
[ { "from": "human", "value": "I'd like to create a popup dialog box in silverlight in which i can manipulate controls, enter data, and return a value. I want it to be modal, so that when it is open, the page \"Below\" is inaccessible. I havent found an easy way to do this yet. Any suggestions?\n" }, { ...
I want to build something like a network scanner, so that I see in my application on which AccessPoint I'm on and what parameters this net has. Some interesting point would be ESSID, signal strength, noise, channel. Are theses properties device independent or do I have to interface each device independently?
Building a network scanner that retrieves properties like ESSID, signal strength, noise, and channel is a great project. However, the approach you take will depend on the platform and programming language you intend to use, as well as the specific hardware (Wi-Fi adapters) involved. ### Device Independence 1. **Opera...
45,859
[ { "from": "human", "value": "I want to build something like a network scanner, so that I see in my application on which AccessPoint I'm on and what parameters this net has.\nSome interesting point would be ESSID, signal strength, noise, channel.\nAre theses properties device independent or do I have to inte...
I have a class like this: public class myClass { public List<myOtherClass> anewlist = new List<myOtherClass>; public void addToList(myOtherClass tmp) { anewList.Add(tmp); } } So I call "addToList" a hundred times, each adding a unique item to the list. I've tested my items to show that before I run the ...
The issue you're experiencing is likely related to how you're handling the instances of `myOtherClass`. When you say that all elements in `anewList` are showing the same value, it suggests that you might be adding the same reference of an object repeatedly instead of creating new instances for each addition. Here's a ...
44,592
[ { "from": "human", "value": "I have a class like this:\npublic class myClass\n{\n public List<myOtherClass> anewlist = new List<myOtherClass>;\n\n public void addToList(myOtherClass tmp)\n {\n anewList.Add(tmp);\n }\n\n}\n\nSo I call \"addToList\" a hundred times, each adding a unique item to the lis...
In a scripting step in a scheduled task in SQL Server Agent 2005, I need to trigger a webscript that is running on a different server. I'm doing this: Dim ie Set ie = CreateObject( "InternetExplorer.Application" ) ie.navigate "...to my dreamscript" ' Wait till IE is ready Do While ie.Busy (1) Loop ie.Quit set i...
In your script, since you can't use `WScript.Sleep` within the context of SQL Server Agent 2005's scripting environment, you can implement a manual delay using a simple loop that checks the elapsed time. This would effectively "sleep" the script for a certain amount of time without needing `WScript.Sleep`. Here's how...
47,987
[ { "from": "human", "value": "In a scripting step in a scheduled task in SQL Server Agent 2005, I need to trigger a webscript that is running on a different server. I'm doing this:\nDim ie \nSet ie = CreateObject( \"InternetExplorer.Application\" )\n\nie.navigate \"...to my dreamscript\"\n\n' Wait till IE is...
I did a few tests with TouchJSON last night and it worked pretty well in general for simple cases. I'm using the following code to read some JSON content from a file, and deserialize it: NSString *jsonString = [[NSString alloc] initWithContentsOfFile:@"data.json"]; NSData *jsonData = [jsonString dataUsingEncoding:NSUTF...
The issue you're encountering is likely due to the fact that you're trying to deserialize a JSON array using the `deserializeAsDictionary:` method, which is meant for JSON objects (dictionaries). Since your JSON data represents an array of dictionaries, you need to use the appropriate method to deserialize it as an arr...
46,763
[ { "from": "human", "value": "I did a few tests with TouchJSON last night and it worked pretty well in general for simple cases. I'm using the following code to read some JSON content from a file, and deserialize it:\nNSString *jsonString = [[NSString alloc] initWithContentsOfFile:@\"data.json\"];\nNSData *j...
I have an Array Collection with any number of Objects. I know each Object has a given property. Is there an easy (aka "built-in") way to get an Array of all the values of that property in the Collection? For instance, let's say I have the following Collection: var myArrayCollection:ArrayCollection = new ArrayCollection...
In ActionScript, there's no built-in method to directly extract property values from an `ArrayCollection` without looping through it. However, you can simplify your code using the `map` function if you wrap the `ArrayCollection` items in an array. While you still conceptually iterate over the elements, using `map` can ...
49,123
[ { "from": "human", "value": "I have an Array Collection with any number of Objects. I know each Object has a given property. Is there an easy (aka \"built-in\") way to get an Array of all the values of that property in the Collection?\nFor instance, let's say I have the following Collection:\nvar myArrayCol...
I am trying to run an application that normally works when I install on XP, but it doesn't work when I install it on Vista. I am installing the prerequisite of .NET 3.5 SP1 and SQL Compact 3.5 included as part of the install but I still get this exception: Unable to load DLL 'sqlceme35.dll': The specified module could...
The error message you are encountering, `Unable to load DLL 'sqlceme35.dll'`, indicates that the application is unable to locate the SQL Server Compact Edition runtime DLL required for your application to function properly. Here are some steps you can take to resolve this issue: 1. **Verify Installation**: - Ensure...
45,153
[ { "from": "human", "value": "I am trying to run an application that normally works when I install on XP, but it doesn't work when I install it on Vista. I am installing the prerequisite of .NET 3.5 SP1 and SQL Compact 3.5 included as part of the install but I still get this exception:\nUnable to load DLL '...
I am using .net2.0 and IIS6. When using .net Forms Authentication: How to limit access to resources like pdf files to authenticated users only; so in order to access a file say mysite.com/mydoc.pdf they would have to be authenticated first (go through the login page) It seems that by default only the .aspx pages are p...
To restrict access to resources like PDF files in your application when using .NET Forms Authentication, you can take a couple of approaches. Since you're working with IIS6 and .NET 2.0, here are two common methods to achieve this: ### Method 1: Use a Handler to Serve Files You can create an HTTP handler that checks ...
43,201
[ { "from": "human", "value": "I am using .net2.0 and IIS6. \nWhen using .net Forms Authentication: How to limit access to resources like pdf files to authenticated users only; so in order to access a file say mysite.com/mydoc.pdf they would have to be authenticated first (go through the login page)\nIt seems...
i'm currently doing some reports for SSRS, and i just confirm what i already knew, i suck at this thing of color matching and making things look pretty. Does anyone know a good site or something to help me figure out how a report should look. I need help! any website or recommendations would be highly appreciated. I tr...
Creating visually appealing reports can be challenging, but there are plenty of resources to help you enhance the design and color schemes of your SSRS reports. Here are some recommendations: ### Color Palette Generators: 1. **Coolors**: [coolors.co](https://coolors.co/) - A user-friendly color scheme generator that a...
42,569
[ { "from": "human", "value": "i'm currently doing some reports for SSRS, and i just confirm what i already knew, i suck at this thing of color matching and making things look pretty.\nDoes anyone know a good site or something to help me figure out how a report should look. I need help! any website or recomme...
I'm reviewing some Spring code, and I see a few bean defs that do not have an id or a name. The person who did it is not around to ask. The application is working fine. I am not familiar what this necessarily means. Anybody know if this means anything in particular?
In Spring Framework, beans can be defined in the application context without explicitly providing an `id` or `name`. This has specific implications: 1. **Default Naming**: If you do not specify an `id` or `name` for a bean, Spring will generate a default name for that bean. The default naming convention is to use the ...
45,477
[ { "from": "human", "value": "I'm reviewing some Spring code, and I see a few bean defs that do not have an id or a name.\nThe person who did it is not around to ask.\nThe application is working fine.\nI am not familiar what this necessarily means.\nAnybody know if this means anything in particular?\n" }, ...
I guess, the following is a standard problem on every school or university: It is Your job to teach programming. Unfortunately, some of the students are semi-professionals and have years of experience while others do not even know the basic concepts, e.g. the concept "typed variable". As far as I know, this leads to on...
Yes, there are several alternative approaches to teaching programming that can help bridge the gap between experienced and inexperienced students while maintaining engagement and promoting effective learning. Here are a few possible solutions: 1. **Differentiated Instruction**: Implement a tiered approach where you pr...
44,968
[ { "from": "human", "value": "I guess, the following is a standard problem on every school or university:\nIt is Your job to teach programming. Unfortunately, some of the students\nare semi-professionals and have years of experience while others do not even know the basic concepts, e.g. the concept \"typed v...
If I have an NSString with a text file in it, how do I get an NSArray of NSString with each NSString containing a line of the file. In 10.5 I did this: NSArray* lines = [str componentsSeparatedByCharactersInSet: [NSCharacterSet newlineCharacterSet]]; But that doesn't work in 10.4, and my program needs to work in 10.4....
In macOS 10.4, the method you're using, `componentsSeparatedByCharactersInSet:`, should still work; however, you may want to ensure that it handles different line endings (`\r`, `\n`, and `\r\n`) correctly. One way to handle this is to replace all the line endings with a single line ending (e.g., `\n`) before splittin...
49,013
[ { "from": "human", "value": "If I have an NSString with a text file in it, how do I get an NSArray of NSString with each NSString containing a line of the file.\nIn 10.5 I did this:\nNSArray* lines = [str componentsSeparatedByCharactersInSet: [NSCharacterSet newlineCharacterSet]];\n\nBut that doesn't work i...
Is there any way I can use AS400 style library/file style naming over JDBC with jt400? I want to be able to run queries like: SELECT * FROM MYLIBRARY/MYFILE Thanks
Yes, you can use AS400-style library/file naming over JDBC with the jt400 driver. When using jt400, you can execute queries using the AS400 format by enclosing the library and file names in double quotes, which allows the JDBC driver to interpret them correctly. Here's how you can format your SQL query to use the libr...
44,784
[ { "from": "human", "value": "Is there any way I can use AS400 style library/file style naming over JDBC with jt400? I want to be able to run queries like:\nSELECT * FROM MYLIBRARY/MYFILE\n\nThanks\n" }, { "from": "gpt", "value": "Yes, you can use AS400-style library/file naming over JDBC with t...
I have some data of the form Key ID Link 1 MASTER 123 2 AA 123 3 AA 123 4 BB 123 5 MASTER 456 6 CC 456 I would like to be able to select in the same select all linked items matching the selection criteria, plus the linked master. For example, if I have...
In Oracle, you can achieve your desired output by using a `SELECT` query that combines two conditions: selecting rows that match the specified ID and also selecting the rows with the 'MASTER' ID associated with the same `Link`. Here's how you can construct the SQL query: ```sql SELECT * FROM your_table WHERE ID = '...
45,048
[ { "from": "human", "value": "I have some data of the form\nKey ID Link \n1 MASTER 123\n2 AA 123\n3 AA 123\n4 BB 123\n5 MASTER 456\n6 CC 456\n\nI would like to be able to select in the same select all linked items matching the selection criter...
When I get exceptions, it is often from deep within the call stack. When this happens, more often than not, the actual offending line of code is hidden from me: tmp.rb:7:in `t': undefined method `bar' for nil:NilClass (NoMethodError) from tmp.rb:10:in `s' from tmp.rb:13:in `r' from tmp.rb:16:in...
In Ruby, you can control the amount of stack trace information displayed when exceptions occur by modifying the `Backtrace` settings. However, the default behavior of Ruby should typically show the complete stack trace unless you are running in an environment or setting that limits it. If you're encountering truncated...
47,618
[ { "from": "human", "value": "When I get exceptions, it is often from deep within the call stack. When this happens, more often than not, the actual offending line of code is hidden from me:\ntmp.rb:7:in `t': undefined method `bar' for nil:NilClass (NoMethodError)\n from tmp.rb:10:in `s'\n fro...
What are pitfalls for agile development methodologies?
Agile development methodologies offer numerous advantages, but they also come with potential pitfalls that teams should be aware of to avoid challenges. Here are some common pitfalls: 1. **Lack of Experience and Understanding**: Teams may implement Agile practices without fully understanding Agile principles. This can...
44,392
[ { "from": "human", "value": "What are pitfalls for agile development methodologies?\n" }, { "from": "gpt", "value": "Agile development methodologies offer numerous advantages, but they also come with potential pitfalls that teams should be aware of to avoid challenges. Here are some common pitfa...
Whats this syntax useful for : function(String... args) Is this same as writing function(String[] args) with difference only while invoking this method or is there any other feature involved with it ?
The syntax `function(String... args)` is called varargs (variable-length arguments) in Java. It allows a method to accept zero or more arguments of a specified type, in this case, `String`. ### Differences and Features: 1. **Invocation**: - When you define a method with varargs, you can call it in multiple ways: ...
41,861
[ { "from": "human", "value": "Whats this syntax useful for : \n function(String... args)\n\nIs this same as writing \n function(String[] args) \n\nwith difference only while invoking this method or is there any other feature involved with it ?\n" }, { "from": "gpt", "value": "The syntax `fu...
I am trying to perform some unit testing on the iphone but for some reason I cannot get it to build the executable I have downloaded TestMyApp from the Standford lecture slides and that compiles and runs perfectly. I have created a test project and even gone as far as to use the test code from the Stanford sample but f...
The errors you're encountering suggest that the compiler is unable to find certain frameworks (AppKit and CoreData), which can be a result of several issues related to your Xcode installation or project setup. Here are some steps you can take to troubleshoot and possibly resolve the problem: 1. **Check Frameworks in t...
46,054
[ { "from": "human", "value": "I am trying to perform some unit testing on the iphone but for some reason I cannot get it to build the executable\nI have downloaded TestMyApp from the Standford lecture slides and that compiles and runs perfectly. I have created a test project and even gone as far as to use th...
I'm trying to put in an exception in my web.config so that one page does not require authentication. However, it still redirects to the login page. The question isn't how to setup the web.config. Why? Our system (for better or worse) has a bunch of instrumentation besides the web.config. We have global.asax and cus...
When troubleshooting a redirect issue in an ASP.NET application, especially in scenarios involving authentication and authorization, several approaches can help you identify the cause. Here’s a structured method to diagnose the issue: ### 1. **Enable Debugging and Logging** - **Global Exception Handling**: Ensure y...
44,187
[ { "from": "human", "value": "I'm trying to put in an exception in my web.config so that one page does not require authentication. However, it still redirects to the login page.\nThe question isn't how to setup the web.config. Why? Our system (for better or worse) has a bunch of instrumentation besides th...
I've switch from VB.NET to C# several months ago, while there are a lot of features I really like in C#, believe it or not, there are some features that I really miss from VB.NET. One of those features is whenever I implemented an interface in VB.NET the stub properties and methods were automatically added for me. Is...
In C#, when you implement an interface, you won't get the method stubs automatically generated in the same way you do in VB.NET. However, there are several ways you can quickly generate method stubs for an interface in C#: 1. **Using Visual Studio's IntelliSense:** If you implement an interface in a class, you can ...
45,542
[ { "from": "human", "value": "I've switch from VB.NET to C# several months ago, while there are a lot of features I really like in C#, believe it or not, there are some features that I really miss from VB.NET.\nOne of those features is whenever I implemented an interface in VB.NET the stub properties and met...
I have designed a xml schema to parse an incoming xml document. The receive location gets xml documents from 2 feeds, one of them has misspelled a node in the document, "Roookie" instead of "Rookie", Is there a way to have my existing xsd parse this document?
Yes, you can modify your XML Schema Definition (XSD) to accommodate the misspelled node. One way to achieve this is by using an `<xs:choice>` element in your schema definition, which allows you to specify multiple elements that can match at a particular point in the XML structure. Here’s a simplified example of how yo...
45,117
[ { "from": "human", "value": "I have designed a xml schema to parse an incoming xml document. The receive location gets xml documents from 2 feeds, one of them has misspelled a node in the document, \"Roookie\" instead of \"Rookie\", Is there a way to have my existing xsd parse this document?\n" }, { ...
I want to create a file that only resides in memory... In looking through some documentation I saw a recommendation to use a shell extension as a virtual file. Im not sure that is a workable solution but I would like to know Is it a good approach (or should I be using a ramdisk instead) Where is a good place to star...
Creating a file that only resides in memory can be accomplished in different ways on the Windows platform, and both shell extensions and RAM disks have their own advantages and use cases. Let’s explore both options: ### 1. Using a RAM Disk A RAM disk is a block of RAM that your operating system can treat as if it were...
46,237
[ { "from": "human", "value": "I want to create a file that only resides in memory... In looking through some documentation I saw a recommendation to use a shell extension as a virtual file. Im not sure that is a workable solution but I would like to know\n\nIs it a good approach (or should I be using a ram...
The application I'm working on outputs documents to rtf format and PAGEREF fields are used in a table of contents page and an index page. The problem is that on opening the document the fields do not update and remain blank. They work correctly if you manually update the fields in Word. Is there a way to make these fie...
RTF (Rich Text Format) has limitations in terms of field updating, and unfortunately, it does not provide a way to specify that fields should auto-update when the document is opened in Word. This behavior is primarily controlled by the settings in Microsoft Word itself. Here are a few approaches you can consider to ad...
46,998
[ { "from": "human", "value": "The application I'm working on outputs documents to rtf format and PAGEREF fields are used in a table of contents page and an index page. The problem is that on opening the document the fields do not update and remain blank. They work correctly if you manually update the fields ...
Do bubble sorts have any real world use? Every time I see one mentioned, it's always either: A sorting algorithm to learn with. An example of a sorting algorithm not to use.
Bubble sort is often regarded as a simplistic and inefficient sorting algorithm, especially compared to more advanced algorithms like quicksort, mergesort, or heapsort. However, there are some niche scenarios where bubble sort or its principles might have real-world applications: 1. **Educational Purposes**: As you me...
45,141
[ { "from": "human", "value": "Do bubble sorts have any real world use? Every time I see one mentioned, it's always either:\n\nA sorting algorithm to learn with.\nAn example of a sorting algorithm not to use.\n\n" }, { "from": "gpt", "value": "Bubble sort is often regarded as a simplistic and ine...
I am want to serialize and array object for a custom wizard I am writing but I am having difficulties doing this. Can someone help this is the error and code snippets I am using. The error I believe has to do with not being able to convert the array. namespace Helios.Web.Framework { /// <summary> /// Summary de...
The error message you're encountering is due to a mismatch in return types in your `CreateWizardArray` method. Specifically, the method is currently returning an array of `WizardBase` objects (`WizardBase[]`), but its signature specifies that it returns a single `WizardBase` object. To resolve this, you'll need to ch...
45,183
[ { "from": "human", "value": "I am want to serialize and array object for a custom wizard I am writing but I am having difficulties doing this. Can someone help this is the error and code snippets I am using.\nThe error I believe has to do with not being able to convert the array.\nnamespace Helios.Web.Frame...
Does anyone know of a good alternative to cron? I would like something that can be run with different time zones.
Yes, there are several alternatives to cron that can handle scheduling tasks with different time zones. Here are some options: 1. **Airflow**: Apache Airflow is an open-source platform to programmatically author, schedule, and monitor workflows. It has robust support for time zones and can run tasks at specified inter...
46,087
[ { "from": "human", "value": "Does anyone know of a good alternative to cron? I would like something that can be run with different time zones.\n" }, { "from": "gpt", "value": "Yes, there are several alternatives to cron that can handle scheduling tasks with different time zones. Here are some ...
Is there a way to define styles for a combination of classes? For example, I'd like my HTML to look like this, but the output to render in the appropriate color: <span class="red">Red Text</span><br/> <span class="green">Green Text</span><br/> <span class="red green">Yellow Text</span><br/> Edit: The above seems to b...
To achieve the behavior you want, where a combination of classes can dictate specific styles without having to duplicate code for each class, you can utilize more specific selectors in your CSS. This will allow you to define styles that take precedence based on the combination of classes applied to an element. In your ...
44,807
[ { "from": "human", "value": "Is there a way to define styles for a combination of classes? For example, I'd like my HTML to look like this, but the output to render in the appropriate color:\n<span class=\"red\">Red Text</span><br/>\n<span class=\"green\">Green Text</span><br/>\n<span class=\"red green\">Y...
I currently am trying to write a Python program using scheme semantics so I can later translate it into Scheme without relying on a lot of Pythonic stuff. I'm trying solve the sliding puzzle problem (where you have 9 slots and 8 tiles arranged in a square) using a*, depth first, and breadth first search algorithm. I d...
Your questions touch on some fundamental concepts in both functional programming and the specifics of implementing algorithms in a functional style, especially when translating between languages like Python and Scheme. Let's break it down step by step. ### 1. Functional Style without Side Effects To avoid side effect...
43,117
[ { "from": "human", "value": "I currently am trying to write a Python program using scheme semantics so I can later translate it into Scheme without relying on a lot of Pythonic stuff.\nI'm trying solve the sliding puzzle problem (where you have 9 slots and 8 tiles arranged in a square) using a*, depth first...
There's a word that's used in API design that relates to the coupling between two entities. If one entity can vary without impacting the entity they are said to be _ _ _ _ _. For example given the declaration class Point { public int X; public in Y; } members X and Y could be said to exhibit this behaviour,...
The word you're looking for is "cohesion." In the context of API design and software engineering, high cohesion refers to the degree to which the elements of a module or class belong together. In your example, the members `X` and `Y` of the `Point` class exhibit high cohesion because they are closely related as part of...
48,588
[ { "from": "human", "value": "There's a word that's used in API design that relates to the coupling between two entities. If one entity can vary without impacting the entity they are said to be _ _ _ _ _. For example given the declaration\nclass Point\n {\n public int X;\n public in Y;\n }\nmembers X...
Suppose you need to run a program on the world’s fastest supercomputer which will take 10 years to complete. You could: Spend $250M now Program for 9 years, Moore’s law speedup (4,000x faster), spend $1M in 10years, complete in 2 weeks. What is the optimum strategy? Question from "Long Term Storage Trends and You"
To determine the optimum strategy between the two options given for running a program on the world’s fastest supercomputer, let's analyze both options based on time and costs: **Option 1: Spend $250M now** - **Cost:** $250M - **Time:** 10 years to complete the program. **Option 2: Program for 9 years, achieve Moore's...
44,537
[ { "from": "human", "value": "Suppose you need to run a program on the world’s fastest supercomputer which will take 10 years to complete. You could:\n\nSpend $250M now\nProgram for 9 years, Moore’s law speedup (4,000x faster), spend $1M in 10years, complete in 2 weeks.\n\nWhat is the optimum strategy?\nQues...
I have a generic method with this (dummy) code (yes I'm aware IList has predicates, but my code is not using IList but some other collection, anyway this is irrelevant for the question...) static T FindThing<T>(IList collection, int id) where T : IThing, new() { foreach (T thing in collection) {...
The error you're encountering occurs because the type parameter `T` in your generic method can potentially be a value type (a struct) and value types cannot be assigned `null`. To avoid this error, you have a couple of options: ### Option 1: Use `default(T)` You can return `default(T)` instead of `null`. This will wo...
47,929
[ { "from": "human", "value": "I have a generic method with this (dummy) code (yes I'm aware IList has predicates, but my code is not using IList but some other collection, anyway this is irrelevant for the question...)\n static T FindThing<T>(IList collection, int id) where T : IThing, new()\n {\n ...
I know I can redirect awk's print output to another file from within a script, like this: awk '{print $0 >> "anotherfile" }' 2procfile (I know that's dummy example, but it's just an example...) But what I need is to redirect output to another file, which has a dynamic name like this awk -v MYVAR"somedinamicdata" '{pri...
Yes, it is possible to create a dynamic output filename in `awk` using the `-v` switch to pass variables from the shell. You can concatenate strings within the `awk` script to create the desired filename. Here's how you can do it: You need to pass both the dynamic part and the static part of the filename to `awk`, and...
48,323
[ { "from": "human", "value": "I know I can redirect awk's print output to another file from within a script, like this:\nawk '{print $0 >> \"anotherfile\" }' 2procfile\n\n(I know that's dummy example, but it's just an example...)\nBut what I need is to redirect output to another file, which has a dynamic nam...
I wish to require a popup window for users to type, to access my website. For the username and password, I was hoping to have a few hardcoded names/passwords in some file. I was told that Digest Authorisation could be used to do this. If I've got a standard ASP.NET website, where can I define the usernames / password? ...
To implement a popup window for user authentication using Digest Authentication in an ASP.NET web application, you can follow these general steps: ### Step 1: Use Web.config for Basic Authentication While you mentioned "Digest Authentication," it's worth noting that ASP.NET's built-in support is primarily for Basic A...
43,015
[ { "from": "human", "value": "I wish to require a popup window for users to type, to access my website. For the username and password, I was hoping to have a few hardcoded names/passwords in some file. I was told that Digest Authorisation could be used to do this.\nIf I've got a standard ASP.NET website, whe...
I know this is usually done with cookies, but I am getting unpredictable results on different browsers and decided to look for a pear package that focuses on this. Just wondering if there's a package (HTTP_Client for example?) that anyone has had success using for this particular situation. Or actually, do people nev...
Managing cookies across different browsers can be tricky due to variations in implementation and security policies. While many developers do set and manage cookies manually in their applications, using a dedicated package can simplify the process and help ensure consistent behavior across different environments. In th...
46,665
[ { "from": "human", "value": "I know this is usually done with cookies, but I am getting unpredictable results on different browsers and decided to look for a pear package that focuses on this. Just wondering if there's a package (HTTP_Client for example?) that anyone has had success using for this particul...
I'm wondering if it's possible to open a link to another site, in a frame (or by some other means), and suppress the 1-2 popups that load on the external site.
Suppressing popups from an external site when loading it in a frame or any other method is generally not possible due to several reasons: 1. **Cross-Origin Restrictions**: Most modern web browsers enforce the same-origin policy, which prevents you from programmatically interacting with the content of an iframe that lo...
47,407
[ { "from": "human", "value": "I'm wondering if it's possible to open a link to another site, in a frame (or by some other means), and suppress the 1-2 popups that load on the external site. \n" }, { "from": "gpt", "value": "Suppressing popups from an external site when loading it in a frame or an...
I am wondering if it is possible to have a sort of thumbnail image gallery, in which clicking on a thumbnail would show the full image in a layer. I was wondering if it was possible to load all layers and respective images and use javascript to change the z index or something similar to avoid having to reload or leave ...
Yes, it's certainly possible to create an image gallery where clicking on a thumbnail shows the full image as part of the page without reloading. You can achieve this using HTML, CSS, and vanilla JavaScript. You don't need any server-side technology or a framework for this solution. Here's a simple example to demonstr...
38,488
[ { "from": "human", "value": "I am wondering if it is possible to have a sort of thumbnail image gallery, in which clicking on a thumbnail would show the full image in a layer. I was wondering if it was possible to load all layers and respective images and use javascript to change the z index or something si...
I have the following xsl template that I'm using to group my xsl. The problem I have is that I need to uppercase the @Title as currently my grouping is seeing upper and lowercase as seperate groups. <xsl:key name="rows-by-title" match="Row" use="substring(@Title,1,1)" /> <xsl:template name="Meunchian" match="/ds...
To achieve case-insensitive grouping based on the `@Title` attribute, you'll need to ensure that the `@Title` is converted to uppercase (or lowercase) consistently in your `<xsl:key>` definition and your sorting logic. Here’s how you can modify your XSLT to group titles in a case-insensitive manner by using the `tran...
45,657
[ { "from": "human", "value": "I have the following xsl template that I'm using to group my xsl. The problem I have is that I need to uppercase the @Title as currently my grouping is seeing upper and lowercase as seperate groups.\n <xsl:key name=\"rows-by-title\" match=\"Row\" use=\"substring(@Title,1,1)\" /...
When viewing a webpage, I would like to copy a selection of text with its html formatting in one piece. Meaning if some text is in bold and blue, I want the tool to create a style or class in the html which makes the text blue. Everything is contained in the produced html. I have downloaded a similar plugin but the cla...
To achieve the ability to copy text from a webpage along with its HTML formatting while ensuring all styles are embedded directly within the HTML, you can consider the following options: ### 1. **Browser Extensions** There are several browser extensions designed to help with copying formatted content: - **Copy as HT...
45,583
[ { "from": "human", "value": "When viewing a webpage, I would like to copy a selection of text with its html formatting in one piece.\nMeaning if some text is in bold and blue, I want the tool to create a style or class in the html which makes the text blue. Everything is contained in the produced html.\nI h...
So with the recent news that Microsoft Skydrive is going to get bumped to 25GB of storage per account, does anyone know if SkyDrive has an API? (And if so, where are the docs?)
Yes, Microsoft SkyDrive (now known as OneDrive) does have an API that allows developers to interact with its features, including file storage and sharing capabilities. You can find the documentation for the OneDrive API on the Microsoft Docs website. The API allows you to perform operations such as uploading and down...
49,897
[ { "from": "human", "value": "So with the recent news that Microsoft Skydrive is going to get bumped to 25GB of storage per account, does anyone know if SkyDrive has an API? \n(And if so, where are the docs?)\n" }, { "from": "gpt", "value": "Yes, Microsoft SkyDrive (now known as OneDrive) does h...
I originally used WebRequest and WebResponse to sent Http Post Messages. Always I got a response of "OK". The message I post is an XML signed with a certificate in the xml. The composition is this: C# service that is sending to a https website. HTTPS Website on another place that I cant say. HTTPS Local Website locall...
It looks like you encountered several issues with your HTTP POST implementation, and you've managed to identify the key problem areas. Let's summarize your findings and provide some guidance for future troubleshooting: ### Summary of Issues 1. **Self-Signed Certificate Handling**: You had an issue with SSL due to usin...
46,642
[ { "from": "human", "value": "I originally used WebRequest and WebResponse to sent Http Post Messages. Always I got a response of \"OK\". The message I post is an XML signed with a certificate in the xml.\nThe composition is this:\nC# service that is sending to a https website.\nHTTPS Website on another plac...
My stomach churns when I see this kind of output. http://www.freeimagehosting.net/uploads/e1097a5a10.jpg and this was my command as suggested by Best way to convert pdf files to tiff files gswin32c.exe -q -dNOPAUSE -sDEVICE=tiffg4 -sOutputFile=a.tif a.pdf -c quit What am I doing wrong? (commercial products will not be...
It seems you're using Ghostscript to convert a PDF file to a TIFF file, but the output you're seeing is not as expected. Here are a few steps you can take to troubleshoot and potentially resolve the issue: 1. **Check Ghostscript Version**: Ensure that you're using a recent version of Ghostscript. Older versions may no...
43,378
[ { "from": "human", "value": "My stomach churns when I see this kind of output.\nhttp://www.freeimagehosting.net/uploads/e1097a5a10.jpg\nand this was my command\nas suggested by Best way to convert pdf files to tiff files\ngswin32c.exe -q -dNOPAUSE -sDEVICE=tiffg4 -sOutputFile=a.tif a.pdf -c quit\n\nWhat am ...
I am trying to process files one at a time that are stored over a network. Reading the files is fast due to buffering is not the issue. The problem I have is just listing the directories in a folder. I have at least 10k files per folder over many folders. Performance is super slow since File.list() returns an array ...
You're encountering a well-known issue with directory listing in Java, particularly when dealing with a large number of files. Here are some possible approaches and workarounds to improve performance: ### 1. Use `java.nio.file` Package Starting with JDK 7, Java introduced the `java.nio.file` package which provides a m...
43,492
[ { "from": "human", "value": "I am trying to process files one at a time that are stored over a network. Reading the files is fast due to buffering is not the issue. The problem I have is just listing the directories in a folder. I have at least 10k files per folder over many folders.\nPerformance is supe...
Say I have the value: -5 that represents a TimeZone (GMT-5). How can I convert that into: "Central DST" or something similarly textual using C# and the .NET framework? Thanks!
To convert a timezone offset like `-5` (representing GMT-5) into a more descriptive textual representation like "Central Daylight Time" (CDT) in C#, you can use the `TimeZoneInfo` class which provides information about time zones. In your case, you'd want to first identify the correct time zone that corresponds to GM...
46,186
[ { "from": "human", "value": "Say I have the value: -5 that represents a TimeZone (GMT-5).\nHow can I convert that into: \"Central DST\" or something similarly textual using C# and the .NET framework?\nThanks!\n" }, { "from": "gpt", "value": "To convert a timezone offset like `-5` (representing G...
I have a website with a mix of ASP (classic) and ASP.NET pages. For some reason Visual Studio (specifically 2008 Pro) keeps trying to compile the ASP classic pages. How do I prevent it from trying to compile the .asp pages? Reason: I'm getting a ton of errors on a specific .asp file that includes a Class. I believe it'...
Visual Studio 2008 is primarily designed for developing .NET applications, and it doesn't inherently support classic ASP development. However, when you include .asp files in a project, Visual Studio may attempt to compile them as if they were .NET files, which can lead to the errors you're seeing. To prevent Visual St...
43,913
[ { "from": "human", "value": "I have a website with a mix of ASP (classic) and ASP.NET pages.\nFor some reason Visual Studio (specifically 2008 Pro) keeps trying to compile the ASP classic pages.\nHow do I prevent it from trying to compile the .asp pages?\nReason: I'm getting a ton of errors on a specific .a...
I am having some performance problems with my Delphi 2006 app. Can you Suggest any profiling tools that will help me find the bottle neck i.e. A tool like turbo Profiler
Certainly! Profiling tools can help you identify performance bottlenecks in your Delphi application. While Turbo Profiler is a well-known tool, there are several other options you might consider for Delphi 2006 applications: 1. **FastMM**: - Although primarily a memory manager, FastMM can also provide some insights...
45,868
[ { "from": "human", "value": "I am having some performance problems with my Delphi 2006 app.\nCan you Suggest any profiling tools that will help me find the bottle neck \ni.e. A tool like turbo Profiler\n" }, { "from": "gpt", "value": "Certainly! Profiling tools can help you identify performance...
I'm trying to setup a hierarchical PKI. Can I create a truststore containing only the root ca certificate, and will that mean my application trusts certificates signed by a sub-ca certificate which is in turn signed by the root ca? As an aside, it seems that you must provide an entire certificate chain, including the r...
Yes, you can create a truststore that contains only the root CA certificate, and your application will trust certificates signed by any intermediate (sub-CA) certificates that are in turn signed by that root CA. This is the fundamental principle of how a hierarchical PKI operates. When a certificate chain is validated,...
48,314
[ { "from": "human", "value": "I'm trying to setup a hierarchical PKI. Can I create a truststore containing only the root ca certificate, and will that mean my application trusts certificates signed by a sub-ca certificate which is in turn signed by the root ca?\nAs an aside, it seems that you must provide an...
Our Flex app automatically resizes with the browser window, we've addressed a whole bunch of scaling issues quite easily but one that remains is tooltips. They show in the wrong location on screen, not being scaled properly based on the window size. Since tooltips are positioned automatically, how can we address this? ...
To address the issue of tooltips displaying in the wrong location when resizing the Flex app, you can take several approaches. Since you're using built-in Flex tooltips, here are some strategies to ensure they position correctly upon resizing the browser window: ### 1. **Listen for Resize Events:** You can listen for ...
47,381
[ { "from": "human", "value": "Our Flex app automatically resizes with the browser window, we've addressed a whole bunch of scaling issues quite easily but one that remains is tooltips. They show in the wrong location on screen, not being scaled properly based on the window size. Since tooltips are positioned...
I have a block of code that is repeated within a DB2 stored procedure. I would like to separate this out into a new procedure that I can call with parameters and have it return a value. How do I create a procedure to return a value and how do I call this procedure from inside my original procedure?
Creating a new procedure in DB2 to encapsulate the repeated block of code and calling it from an existing stored procedure can be achieved in several steps. Below is a general guide on how to create a new procedure that returns a value and how to call that procedure from an existing one. ### Step 1: Create the New Pro...
46,765
[ { "from": "human", "value": "I have a block of code that is repeated within a DB2 stored procedure.\nI would like to separate this out into a new procedure that I can call with parameters and have it return a value.\nHow do I create a procedure to return a value and how do I call this procedure from inside ...
Hashtables have a syncroot property but generic dictionaries don't. If I have code that does this: lock (hashtable.Syncroot) { .... } How do I replicate this if I am removing the hashtable and changing to generic dictionaries?
In .NET, the `Hashtable` class has a `SyncRoot` property that you can use for synchronization in multithreaded scenarios. However, the `Dictionary<TKey, TValue>` class does not have a `SyncRoot` property. Instead, you can create your own synchronization mechanism using a lock object. Here’s how you can replicate the b...
46,480
[ { "from": "human", "value": "Hashtables have a syncroot property but generic dictionaries don't. If I have code that does this:\nlock (hashtable.Syncroot)\n{\n....\n}\n\nHow do I replicate this if I am removing the hashtable and changing to generic dictionaries?\n" }, { "from": "gpt", "value": ...
I'm having a problem getting access to a database which lives on a remote server. I have a ASP.NET 2.0 webpage that is trying to connect to a database. The database is accessed via a virtual folder (which I set up in IIS). The virtual folder points at a remote share which contains the database. The virtual folder ...
The issue you're encountering seems to stem from the fact that you're attempting to access a database file (.MDB) through a URL, which is not compatible with the OleDbConnection class when using the Jet OLEDB provider. The connection string you provided includes an HTTP URL, while the Jet OLEDB provider expects a local...
40,922
[ { "from": "human", "value": "I'm having a problem getting access to a database which lives on a remote server. \nI have a ASP.NET 2.0 webpage that is trying to connect to a database.\nThe database is accessed via a virtual folder (which I set up in IIS).\nThe virtual folder points at a remote share which ...
I recently upgraded VS 2005 to VS 2008. Unfortunately I have a very basic problem: In the codeview window my vertical scrollbar does not look like a normal, traditional scrollbar, but like some kind of code-preview window. It is roundabout four times wider than a normal scrollbar. The problem is that my ReSharper (4.1)...
It sounds like you're experiencing issues with the visual representation of the scrollbar in Visual Studio 2008 after upgrading from Visual Studio 2005, particularly in relation to the interaction with ReSharper. Here are some steps you can take to try to resolve the issue: 1. **Disable Visual Styles in VS 2008**: ...
47,173
[ { "from": "human", "value": "I recently upgraded VS 2005 to VS 2008. Unfortunately I have a very basic problem: In the codeview window my vertical scrollbar does not look like a normal, traditional scrollbar, but like some kind of code-preview window. It is roundabout four times wider than a normal scrollba...
How can I find the parameters of an undocumented Dll function? I have searched all over the internet and ended up finding one way: it involves decorated functions. However, I cannot find a way to get those. Any help would be appreciated.
Finding the parameters of an undocumented DLL function can be a challenging task. Here are some methods you can use to gather information about such functions, including handling decorated functions: ### 1. **Use a Decompiler/Disassembler** - **Tools like IDA Pro, Ghidra, or Radare2:** These tools allow you to disa...
44,020
[ { "from": "human", "value": "How can I find the parameters of an undocumented Dll function?\nI have searched all over the internet and ended up finding one way: it involves decorated functions. However, I cannot find a way to get those. \nAny help would be appreciated.\n" }, { "from": "gpt", "va...
Is there a way to detect if a mouse button is currently down in JavaScript? I know about the "mousedown" event, but that's not what I need. Some time AFTER the mouse button is pressed, I want to be able to detect if it is still pressed down. Is this possible?
Yes, you can detect if a mouse button is currently down in JavaScript by keeping track of the mouse button state using event listeners. While the `mousedown` and `mouseup` events are commonly used to respond to mouse button actions, you can create a state variable to check the current state of the mouse button. Here i...
46,822
[ { "from": "human", "value": "Is there a way to detect if a mouse button is currently down in JavaScript?\nI know about the \"mousedown\" event, but that's not what I need. Some time AFTER the mouse button is pressed, I want to be able to detect if it is still pressed down.\nIs this possible?\n" }, { ...
The best I can come up with for now is this monstrosity: >>> datetime.utcnow() \ ... .replace(tzinfo=pytz.UTC) \ ... .astimezone(pytz.timezone("Australia/Melbourne")) \ ... .replace(hour=0,minute=0,second=0,microsecond=0) \ ... .astimezone(pytz.UTC) \ ... .replace(tzinfo=None) datetime.datetime(2008, 12, 16, ...
You're right to think there might be a more streamlined approach to achieve your goal of converting the current UTC time to a specific timezone, setting it to midnight, and then converting it back to UTC. The code you provided is functional but can indeed be simplified for readability and efficiency. Here's a cleaner ...
46,754
[ { "from": "human", "value": "The best I can come up with for now is this monstrosity:\n>>> datetime.utcnow() \\\n... .replace(tzinfo=pytz.UTC) \\\n... .astimezone(pytz.timezone(\"Australia/Melbourne\")) \\\n... .replace(hour=0,minute=0,second=0,microsecond=0) \\\n... .astimezone(pytz.UTC) \\\n... ...
Is it possible to create a multithreading application in VC6 with boost library? If it is possible, what are some relevant tutorials.
Yes, it is possible to create a multithreading application in Visual C++ 6 (VC6) using the Boost libraries. While VC6 is quite old and may not support the latest features of Boost, you can use older versions of Boost that are compatible with VC6. ### Key Steps to Create a Multithreading Application: 1. **Install Boos...
42,213
[ { "from": "human", "value": "Is it possible to create a multithreading application in VC6 with boost library?\nIf it is possible, what are some relevant tutorials.\n" }, { "from": "gpt", "value": "Yes, it is possible to create a multithreading application in Visual C++ 6 (VC6) using the Boost li...
I'm working on a site (http://easy2speak.com) with about 10 flash SWFs on each page. Each of the SWFs are playing back a sound when clicked. Loading the sound, and playing it without any latency works fine, but in Flash player version 9 on all major browsers except IE, the sound suddenly drops out. It usually works for...
The issue you're experiencing with Flash Player 9 is likely related to the handling of audio resources when many sounds are being loaded and played concurrently. Here are some brainstorming ideas and potential solutions to address the problem: 1. **Limit Concurrent Sound Playback**: Flash Player has limitations on the...
46,293
[ { "from": "human", "value": "I'm working on a site (http://easy2speak.com) with about 10 flash SWFs on each page. Each of the SWFs are playing back a sound when clicked. Loading the sound, and playing it without any latency works fine, but in Flash player version 9 on all major browsers except IE, the sound...
I'm trying to configure TinyMCE so that it accepts pasting from Microsoft Word and cleans it up in an expected HTML hierarchy. Most of our editorial staff use a single line break to denote a line break and a double return to indicate a paragraph. However, MS Word's output puts the next line in a separate paragraph (un...
Configuring TinyMCE to properly handle pasting content from Microsoft Word can be a bit tricky, especially when trying to maintain a consistent HTML output for line breaks and paragraphs. TinyMCE provides some features and configurations that can help you sanitize the pasted content effectively. Below are some strategi...
43,260
[ { "from": "human", "value": "I'm trying to configure TinyMCE so that it accepts pasting from Microsoft Word and cleans it up in an expected HTML hierarchy. \nMost of our editorial staff use a single line break to denote a line break and a double return to indicate a paragraph. However, MS Word's output puts...
Is it possible to make a big 50MB database native on the iPhone? So that it can be searched very quickly in a smart way? With SQlite?
Yes, it is indeed possible to create a 50MB SQLite database that can be used natively on an iPhone. SQLite is a lightweight, serverless, and self-contained database engine that is widely used in iOS applications. Here are the key points you should consider for implementing a large SQLite database effectively on an iPho...
38,598
[ { "from": "human", "value": "Is it possible to make a big 50MB database native on the iPhone? So that it can be searched very quickly in a smart way? With SQlite?\n" }, { "from": "gpt", "value": "Yes, it is indeed possible to create a 50MB SQLite database that can be used natively on an iPhone...
In my Symbian S60 application, my Options menu works as expected. But the Exit button does nothing. I am developing with Carbide and have used the UI Designer to add items to the options menu. Does anyone know how to enable the exit button, or why else it might not work? Thanks!
When dealing with the Exit button in a Symbian S60 application, it's essential to ensure that the action associated with the Exit command is properly implemented in your code. Here are a few steps to troubleshoot and enable the Exit button in your application: 1. **Implement Exit Command**: In your options menu implem...
44,568
[ { "from": "human", "value": "In my Symbian S60 application, my Options menu works as expected. But the Exit button does nothing.\nI am developing with Carbide and have used the UI Designer to add items to the options menu.\nDoes anyone know how to enable the exit button, or why else it might not work?\nThan...
The situation is, I have a website where the users get a sub domain. eg: client.mydomain.com. If the client fails to meet certain condition (eg. payment default), I want the above site to be pointing to a different web site. The way we want to do it is by creating a dns record with the appropriate redirection. I use a ...
To achieve the requirement of redirecting subdomains based on certain conditions (like payment default), you'll need to programmatically modify DNS records and possibly manage HTTP redirects as well. Here's a high-level overview of how you can accomplish this on your Windows Server 2003 environment using .NET. ### 1. ...
42,497
[ { "from": "human", "value": "The situation is, I have a website where the users get a sub domain. eg: client.mydomain.com. If the client fails to meet certain condition (eg. payment default), I want the above site to be pointing to a different web site. The way we want to do it is by creating a dns record w...
Is there a way in Oracle to select the date on which daylight savings will switch over for my locale? Something vaguely equivalent to this would be nice: SELECT CHANGEOVER_DATE FROM SOME_SYSTEM_TABLE WHERE DATE_TYPE = 'DAYLIGHT_SAVINGS_CHANGEOVER' AND TO_CHAR(CHANGEOVER_DATE,'YYYY') = TO_CHAR(SYSDATE,'YYYY'); -- in ...
In Oracle Database, there isn't a built-in function or table that directly provides the changeover dates for Daylight Saving Time (DST) for a specific locale. However, you can work with Oracle's time zone features to determine when DST changes occur based on the timezone you are interested in. ### Using Oracle's Time ...
40,911
[ { "from": "human", "value": "Is there a way in Oracle to select the date on which daylight savings will switch over for my locale?\nSomething vaguely equivalent to this would be nice:\nSELECT CHANGEOVER_DATE\nFROM SOME_SYSTEM_TABLE\nWHERE DATE_TYPE = 'DAYLIGHT_SAVINGS_CHANGEOVER'\n AND TO_CHAR(CHANGEOVER_D...
I can't add service at VS2008 to Sharepoint services when i tried to http://tomasekweb.com/Test1/_vti_bin/Lists.asmx and click on GO The user and password was needed,I typed it but, it's still needed. I don't know, what i have to set on sharepoint site. I have only one user on Sharepoint server.
To resolve the issue of being repeatedly prompted for a username and password when trying to access the SharePoint Lists web service (Lists.asmx) at the URL you provided, you can follow these steps to troubleshoot and configure your SharePoint server: ### 1. Check User Permissions Ensure that the user account you are...
43,696
[ { "from": "human", "value": "I can't add service at VS2008 to Sharepoint services\nwhen i tried to \nhttp://tomasekweb.com/Test1/_vti_bin/Lists.asmx\nand click on GO\nThe user and password was needed,I typed it but, it's still needed. \nI don't know, what i have to set on sharepoint site.\nI have only one u...