instruction
stringlengths
14
27.6k
completion
stringlengths
3
38.3k
__original_row_idx
int64
0
50k
conversations
listlengths
2
2
I will use the foodstuffs analogy to try and simplify my problem. 1000 members of the public where asked to pick a variety from each of 13 categories of foodstuff. These selections were then stored in a mysql database against their name. e.g. billy mary etc. etc. milk....semi. .skimmed... bread...white...bro...
To achieve your goal, we need to perform a series of steps involving querying the MySQL database to gather the relevant data and then format that data into a table. Here's a guide to help you accomplish this: ### Step 1: Set Up the Database Assuming you have a table structure similar to this: ```sql CREATE TABLE foo...
24,095
[ { "from": "human", "value": "I will use the foodstuffs analogy to try and simplify my problem.\n1000 members of the public where asked to pick a variety from each of 13 categories of foodstuff. These selections were then stored in a mysql database against their name.\ne.g. billy mary etc. etc.\n\nm...
I am learning to use the Dvorak keyboad layout, but I am not good enough to enter passwords yet, so I need to be able to switch back to qwerty occasionally. In KDE this works very well, Windows fudges this in a way I can live with for the little time I spend on it, but I can't change my work box which runs Solaris 10...
If you're using Solaris 10 with the Java Desktop, you can switch keyboard layouts without modifying X11 configuration files by using the `kbd` command. Although `setxkbmap` is commonly used in Linux environments, Solaris has its own methods for handling keyboard layouts. Here's how you can switch between Dvorak and QW...
25,923
[ { "from": "human", "value": "I am learning to use the Dvorak keyboad layout, but I am not good enough to enter passwords yet, so I need to be able to switch back to qwerty occasionally. In KDE this works very well, Windows fudges this in a way I can live with for the little time I spend on it, but I can't...
Is this possible? We have a Configuration Management Database that stores information such as our servers, what datacentre they're stored in, applications that reside on them, as well as interfaces that send data from one application to another. We would like to use Visio to connect to our SQL 2005 database, and auto...
Yes, it is indeed possible to use Microsoft Visio to connect to a SQL Server database and generate diagrams based on the data stored in the database. Here's a general overview of how you can achieve this, along with pointers to relevant documentation: ### Steps to Create a Flow Diagram from SQL Server Data in Visio 1...
24,163
[ { "from": "human", "value": "Is this possible? \nWe have a Configuration Management Database that stores information such as our servers, what datacentre they're stored in, applications that reside on them, as well as interfaces that send data from one application to another.\nWe would like to use Visio to...
I'm trying to chart the number of registrations per day in our registration system. I have an Attendee table in sql server that has a smalldatetime field A_DT, which is the date and time the person registered. I started with this: var dailyCountList = (from a in showDC.Attendee let justDate = new DateTime(a.A_D...
You're on the right track, but there is a more elegant way to achieve what you're looking for without the nested queries and loops that can lead to performance issues. Instead of querying the attendee records twice and dealing with lists in this way, you can generate a sequence of dates directly within your LINQ query....
24,940
[ { "from": "human", "value": "I'm trying to chart the number of registrations per day in our registration system. I have an Attendee table in sql server that has a smalldatetime field A_DT, which is the date and time the person registered.\nI started with this:\nvar dailyCountList =\n (from a in showDC.At...
The following code snippet illustrates a memory leak when opening XPS files. If you run it and watch the task manager, it will grow and not release memory until the app exits. '****** Console application BEGINS. Module Main Const DefaultTestFilePath As String = "D:\Test.xps" Const DefaultLoopRuns As Integer = ...
Memory leaks like the one you're experiencing in your XPS file handling application often arise when dealing with unmanaged resources. In this specific case, it sounds like the `GetFixedDocumentSequence` method is not properly releasing the resources it utilizes each time it's called. Below are some strategies and sugg...
25,421
[ { "from": "human", "value": "The following code snippet illustrates a memory leak when opening XPS files. If you run it and watch the task manager, it will grow and not release memory until the app exits.\n'****** Console application BEGINS.\nModule Main\n\n Const DefaultTestFilePath As String = \"D:\\Te...
I have a set of business objects that potentially can be persisted in different ways, although for any given configuration of the application, only one persistence mechanism will be active. Persistence is handled via interfaces. The obvious architecture, it seems to me, is to put all the persistence objects for one co...
Certainly! The challenge of managing multiple persistence mechanisms can lead to package management issues if handled naively. Instead of creating separate packages for each configuration, you can consider several alternative architectures that balance organization with flexibility. Here are some approaches: ### 1. St...
22,337
[ { "from": "human", "value": "I have a set of business objects that potentially can be persisted in different ways, although for any given configuration of the application, only one persistence mechanism will be active. Persistence is handled via interfaces.\nThe obvious architecture, it seems to me, is to ...
I have the following code: class IncidentTag: def __init__(self,tag): self.tag = tag def equals(self,obj): return self.tag.equals(obj.tag) def hashCode(self): return self.tag.hashCode() from java.lang import String from java.util import HashMap from java.util import HashSet tag1...
The issue you are experiencing with the `equals` method and the `HashSet` behavior is due to the way you implemented the `equals` and `hashCode` methods in the `IncidentTag` class. In Java, when you use a `HashSet`, it relies on the `equals` and `hashCode` methods to determine if two objects are "equal" and how to di...
24,343
[ { "from": "human", "value": "I have the following code:\nclass IncidentTag:\n def __init__(self,tag):\n self.tag = tag\n def equals(self,obj):\n return self.tag.equals(obj.tag)\n def hashCode(self):\n return self.tag.hashCode()\n\nfrom java.lang import String\nfrom java.util...
I have a flash program that loads movie clips dynamically and sometimes they want to use more than the space that I give them. Ideally I'd like to force them to only show content in borders I give them. The reason I want this is that my program has a user interface that sometimes gets covered up by this behavior. I'd l...
In Flash, if you want to restrict the display of dynamically loaded movie clips to a specific area and prevent them from overflowing, you can use a `Mask` or set the `clip` to a specific area. Here are a few methods to achieve that: ### 1. Using a Mask: You can create a mask to restrict the display area of your dynam...
24,943
[ { "from": "human", "value": "I have a flash program that loads movie clips dynamically and sometimes they want to use more than the space that I give them. Ideally I'd like to force them to only show content in borders I give them. The reason I want this is that my program has a user interface that sometime...
Lexical analyzers are quite easy to write when you have regexes. Today I wanted to write a simple general analyzer in Python, and came up with: import re import sys class Token(object): """ A simple Token structure. Contains the token type, value and position. """ def __init__(self, type, val, pos...
Your lexer implementation is straightforward and works well for its purpose. However, the efficiency concern you mentioned about looping over all the regex rules for each token can indeed be addressed. Here are a few strategies you can consider to improve the performance and elegance of your lexer: ### 1. Combine Re...
14,792
[ { "from": "human", "value": "Lexical analyzers are quite easy to write when you have regexes. Today I wanted to write a simple general analyzer in Python, and came up with:\nimport re\nimport sys\n\nclass Token(object):\n \"\"\" A simple Token structure.\n Contains the token type, value and positi...
I realize this would violate convention, but I'm curious to know if you can do this through configuration. Edit: I understand why I wouldn't want to do this. BUT, I do want to understand the internals of this time of project.
It seems like you’re curious about exploring unconventional configurations or settings in a project, possibly to gain deeper insight into its internals. While it's hard to give a precise answer without knowing the context—like which project or technology you're referring to—here are some general steps you can take to e...
28,144
[ { "from": "human", "value": "I realize this would violate convention, but I'm curious to know if you can do this through configuration.\nEdit: I understand why I wouldn't want to do this. BUT, I do want to understand the internals of this time of project.\n" }, { "from": "gpt", "value": "It se...
Wikipedia has this to say: Total functional programming (also known as strong functional programming, to be contrasted with ordinary, or weak functional programming) is a programming paradigm which restricts the range of programs to those which are provably terminating. and These restrictions mean that...
Total functional programming (TFP) is an intriguing area of functional programming that focuses on ensuring termination of functions, making it distinct from typical functional programming paradigms where non-terminating functions are allowed. Here are several resources, references, and implementations you may find hel...
24,603
[ { "from": "human", "value": "Wikipedia has this to say:\n\nTotal functional programming (also\n known as strong functional\n programming, to be contrasted with\n ordinary, or weak functional\n programming) is a programming paradigm\n which restricts the range of programs\n to those which are provably\...
We have a Java Applet built using AWT. This applet lets you select pictures from your hard drive and upload them to a server. The applet includes a scrollable list of pictures, which works fine in Windows, Linux and Mac OS X 10.5. We launch this applet via Java Web Start or within a web page. Our applet does not behav...
It sounds like you're experiencing a frustrating issue with your Java applet on Mac OS X 10.4. Given the nature of the problem—specifically, the repainting issue in the graphical interface—there are a few strategies you can try to mitigate the problem. While the root cause could be tied to specific behaviors of the AWT...
24,906
[ { "from": "human", "value": "We have a Java Applet built using AWT. This applet lets you select pictures from your hard drive and upload them to a server. The applet includes a scrollable list of pictures, which works fine in Windows, Linux and Mac OS X 10.5. We launch this applet via Java Web Start or with...
I have a C# method which accepts a Predicate<Foo> and returns a list of matching items... public static List<Foo> FindAll( Predicate<Foo> filter ) { ... } The filter will often be one of a common set... public static class FooPredicates { public static readonly Predicate<Foo> IsEligible = ( foo => ...) ......
Using `Delegate.GetHashCode()` as a way to generate a cache key for an anonymous delegate can lead to issues. The `GetHashCode()` method on delegates can yield the same hash code for different delegate instances, especially for different anonymous delegates that do the same work. Moreover, it is not guaranteed to produ...
20,079
[ { "from": "human", "value": "I have a C# method which accepts a Predicate<Foo> and returns a list of matching items...\npublic static List<Foo> FindAll( Predicate<Foo> filter )\n{\n ...\n}\n\nThe filter will often be one of a common set...\npublic static class FooPredicates\n{\n public static readonly...
Almost every Python web framework has a simple server that runs a wsgi application and automatically reloads the imported modules every time the source gets changed. I know I can look at the code and see how it's done, but that may take some time and I'm asking just out of curiosity. Does anyone have any idea how this ...
Yes, the functionality you're describing—where a simple server runs a WSGI application and automatically reloads the code upon changes—is a common feature in many Python web frameworks. Here’s a general overview of how this can be implemented: ### Key Components 1. **File Change Detection**: - The server needs to ...
11,282
[ { "from": "human", "value": "Almost every Python web framework has a simple server that runs a wsgi application and automatically reloads the imported modules every time the source gets changed. I know I can look at the code and see how it's done, but that may take some time and I'm asking just out of curio...
Basically I'm trying to change the Canvas.Left property of an Ellipse Silverlight control in C#. Here is how I'm accessing the control: Ellipse c1 = this.FindName("Circle1") as Ellipse; How would I then set the Canvas.Left property? Thanks, Jeff
To set the `Canvas.Left` property of an `Ellipse` control in Silverlight, you need to use the `Canvas.SetLeft` method. The `Canvas.Left` property is a dependency property, and it must be accessed through this method. Here is how you can do it: ```csharp Ellipse c1 = this.FindName("Circle1") as Ellipse; // Check if c...
28,520
[ { "from": "human", "value": "Basically I'm trying to change the Canvas.Left property of an Ellipse Silverlight control in C#. Here is how I'm accessing the control:\nEllipse c1 = this.FindName(\"Circle1\") as Ellipse;\n\nHow would I then set the Canvas.Left property?\nThanks,\nJeff\n" }, { "from": ...
There are certain common components that are used across projects: User Authentication and Authorization Exception Handling Logging E-mail DataBase Access Caching etc Is there a consistent design pattern that can be used for each of these common modules? By the way, the framework can vary like JAAS/JNDI for User Auth...
Yes, there are several design patterns that can be used to create consistent implementations of common components like User Authentication and Authorization, Exception Handling, Logging, Email, Database Access, and Caching. Here are some widely accepted design patterns for each of these components, which can help in ac...
25,407
[ { "from": "human", "value": "There are certain common components that are used across projects:\n\nUser Authentication and Authorization\nException Handling\nLogging\nE-mail\nDataBase Access\nCaching etc\n\nIs there a consistent design pattern that can be used for each of these common modules? By the way, t...
I have a .net web-service hosted in IIS 6.0 that periodically fails with an http 500 because a client connects to it with data that does not match the wsdl. Things like having an element specified in a method as being of type int and the inbound xml element contains a decimal number. WSDL element definition: <s:element...
To capture data sent to your .NET web service that is causing HTTP 500 errors, a SOAP extension can be an effective solution. By creating a custom SOAP extension, you can log the SOAP request and response, including the payload that may be leading to deserialization errors. Here's a step-by-step guide to set this up, a...
22,809
[ { "from": "human", "value": "I have a .net web-service hosted in IIS 6.0 that periodically fails with an http 500 because a client connects to it with data that does not match the wsdl.\nThings like having an element specified in a method as being of type int and the inbound xml element contains a decimal n...
Is there a programming language suitable for building web applications, that is compiled, strongly-typed, and isn't ASP.NET? I thought of using Mono (http://www.mono-project.com/), but I wonder if there are any other alternatives. (If the language and framework are open-source, that's a big plus!)
Yes, there are several programming languages that are suitable for building web applications, are compiled, strongly typed, and aren't ASP.NET. Here are a few alternatives you might consider: 1. **Go (Golang)**: - **Description**: Go is a statically typed, compiled language designed for simplicity and efficiency. I...
24,429
[ { "from": "human", "value": "Is there a programming language suitable for building web applications, that is compiled, strongly-typed, and isn't ASP.NET?\nI thought of using Mono (http://www.mono-project.com/), but I wonder if there are any other alternatives.\n(If the language and framework are open-source...
I am writing a program in Python that will act as a server and accept data from a client, is it a good idea to impose a hard limit as to the amount of data, if so why? More info: So certain chat programs limit the amount of text one can send per send (i.e. per time user presses send) so the question comes down to is th...
Yes, imposing a hard limit on the amount of data that can be sent in a single message is a common and often wise practice in server-client applications, including chat programs. Here are several reasons why this is beneficial: 1. **Preventing Abuse**: Hard limits can help prevent abuse or malicious activities. A user ...
26,748
[ { "from": "human", "value": "I am writing a program in Python that will act as a server and accept data from a client, is it a good idea to impose a hard limit as to the amount of data, if so why?\nMore info:\nSo certain chat programs limit the amount of text one can send per send (i.e. per time user presse...
I have a simple web form that has a several fields and a gridview on it. I also have a save and cancel button. I would like a way to undo what was done to the data on the form when the user presses cancel. This is simple enough with the fields however since changes to the gridview happen in real time against the datab...
Implementing undo functionality in a web form that includes a GridView can be a challenge, particularly when dealing with real-time updates to the database. Below are some strategies you can consider to achieve this functionality without relying heavily on ViewState or temporary tables: ### 1. **Use a Transaction with...
22,746
[ { "from": "human", "value": "I have a simple web form that has a several fields and a gridview on it. I also have a save and cancel button. \nI would like a way to undo what was done to the data on the form when the user presses cancel. This is simple enough with the fields however since changes to the grid...
It's getting close to the time when I need to submit training and travel requests. I'm looking for conferences and classes in the coming 12 months that are geared toward improving coding and software development, best practices, system architecture, etc. They need to be in the US or Canada since I'll never get approval...
It's great that you're looking for conferences and classes to improve your skills in coding, software development, and system architecture! Here are some additional options you might consider, along with feedback on the events you mentioned: ### Additional Conferences and Classes 1. **Agile2024** (July 2024, Chicago,...
12,389
[ { "from": "human", "value": "It's getting close to the time when I need to submit training and travel requests. I'm looking for conferences and classes in the coming 12 months that are geared toward improving coding and software development, best practices, system architecture, etc. They need to be in the U...
I am upgrading a silverlight beta 2 app to RC0 and have a function that translates a point from a child element to it's parent. The purpose of the function is to ensure that an element appears exactly on top of the child even though they are not on the same canvas and don't share a parent. Here is the current function...
In Silverlight RC0, since you can no longer directly create an instance of `MouseEventArgs` due to the internal constructor, you'll need a different approach to perform the translation of a point from a child element to its parent without relying on mouse events. To translate a point between two different panels (or e...
27,684
[ { "from": "human", "value": "I am upgrading a silverlight beta 2 app to RC0 and have a function that translates a point from a child element to it's parent. The purpose of the function is to ensure that an element appears exactly on top of the child even though they are not on the same canvas and don't sha...
I have been attempting to write some routines to read RSS and ATOM feeds using the new routines available in System.ServiceModel.Syndication, but unfortunately the Rss20FeedFormatter bombs out on about half the feeds I try with the following exception: An error was encountered when parsing a DateTime value in the XML....
The issue you're encountering with the `Rss20FeedFormatter` in the `System.ServiceModel.Syndication` library is related to the way some RSS feeds represent their publish dates. Specifically, the format you're seeing, `Thu, 16 Oct 08 14:23:26 -0700`, is not recognized as a valid `DateTime` format by the `Rss20FeedFormat...
22,836
[ { "from": "human", "value": "I have been attempting to write some routines to read RSS and ATOM feeds using the new routines available in System.ServiceModel.Syndication, but unfortunately the Rss20FeedFormatter bombs out on about half the feeds I try with the following exception:\n\nAn error was encountere...
I have a home-grown automated build script in the form of a DOS batch file. In part of that script, I check out (with "svn checkout") a section of our SVN repository that includes a bunch of third-party stuff that's used in our projects. This batch file performed pretty well for a long time, but now people have check...
Subversion (SVN) does not provide a built-in way to filter files by extension directly during the `svn checkout` process. However, you can achieve this by using a combination of command-line tools and a script. Here’s one approach you can take: ### 1. Use `svn list` to Get a List of Files You can use the `svn list` c...
24,631
[ { "from": "human", "value": "I have a home-grown automated build script in the form of a DOS batch file. In part of that script, I check out (with \"svn checkout\") a section of our SVN repository that includes a bunch of third-party stuff that's used in our projects. This batch file performed pretty well...
We are building a multi-tenant website in ASP.NET, and we must let each customer configure their own security model. They must be able to define their own roles, and put users in those roles. What is the best way to do this? There are tons of simple examples of page_load events that have code like: if (!user.InGrou...
Building a multi-tenant website with customizable security models in ASP.NET requires a flexible and dynamic way to define roles and permissions. Here's a high-level approach you can follow to enable this functionality while avoiding hard-coded roles and permissions: ### Step 1: Database Design 1. **Define Database T...
17,429
[ { "from": "human", "value": "We are building a multi-tenant website in ASP.NET, and we must let each customer configure their own security model. They must be able to define their own roles, and put users in those roles. What is the best way to do this?\nThere are tons of simple examples of page_load even...
Does anyone have some guidelines or links to articles when designing a website that needs to be localized in 20+ languages? The initial translation isn't so much the problem, rather ongoing maintenance (i.e. when an update is made on the English site, how are people notified that new translations are required). Thanks ...
Designing a website that needs to be localized into multiple languages can be a complex task, especially when it comes to ongoing maintenance and ensuring that content remains consistent across all languages. Here are some guidelines and best practices to consider: ### 1. **Use a Content Management System (CMS) with L...
25,021
[ { "from": "human", "value": "Does anyone have some guidelines or links to articles when designing a website that needs to be localized in 20+ languages?\nThe initial translation isn't so much the problem, rather ongoing maintenance (i.e. when an update is made on the English site, how are people notified th...
A legacy embedded system is implemented using a cooperative multi-tasking scheduler. The system essentially works along the following lines: Task A does work When Task A is done, it yields the processor. Task B gets the processor and does work. Task B yields ... Task n yields Task A gets scheduled and does work O...
Yes, it is possible to implement a cooperative multitasking scheduler similar to the one you described in VxWorks. While VxWorks is primarily known for its preemptive scheduling capabilities, it also provides mechanisms to achieve cooperative multitasking. Here are the steps and considerations for implementing a cooper...
20,799
[ { "from": "human", "value": "A legacy embedded system is implemented using a cooperative multi-tasking scheduler. \nThe system essentially works along the following lines:\n\nTask A does work\nWhen Task A is done, it yields the processor.\nTask B gets the processor and does work.\nTask B yields\n... \nTas...
I am looking for a tool which would create ejb-jar.xml configuration file from annotated EJB3 classes. Something like XDoclet, but for annotations, not tags in comments.
If you're looking for a tool to generate `ejb-jar.xml` configuration files from annotated EJB3 classes, you might want to consider a few options that have emerged in recent years, particularly since EJB 3.0 has made heavy use of annotations to simplify development. 1. **Java EE Development Tools (JDT)**: Some IDEs lik...
27,449
[ { "from": "human", "value": "I am looking for a tool which would create ejb-jar.xml configuration file from annotated EJB3 classes. Something like XDoclet, but for annotations, not tags in comments. \n" }, { "from": "gpt", "value": "If you're looking for a tool to generate `ejb-jar.xml` configu...
I would like to do something like <test:di id="someService"/`> <% someService.methodCall(); %> where <test:di gets and instantiates a service bean and creates a scripting variable for use. similar to how jsp:usebean works for example <jsp:useBean id="someDate" class="java.util.Date"/> <% ...
To create a custom tag that behaves like `<jsp:useBean>` and allows you to instantiate an object and make it available as a scripting variable in JSP, you'll typically use JavaServer Pages Custom Tag Library (JSTL) or a simple custom tag implementation. ### Creating a Custom Tag Here's how you can create your custom ...
22,549
[ { "from": "human", "value": "I would like to do something like\n <test:di id=\"someService\"/`>\n <%\n someService.methodCall();\n %>\nwhere <test:di\n gets and instantiates a service bean and creates a scripting variable for use. similar to how jsp:usebean works for example \n <jsp:useBe...
I have had a bug recently that only manifested itself when the library was built as a release build rather than a debug build. The library is a .NET dll with a COM wrapper and I am using CoCreateInstance to create a class from the dll in an unmanaged c++ app. When I finally tracked the bug down it was caused by acces...
The behavior you're experiencing likely stems from the way that static initialization works in .NET, combined with the differences in how release and debug builds manage optimizations and memory. Let's break down the two approaches: ### Original Implementation ```csharp private static readonly MyObjectType s_instance...
23,846
[ { "from": "human", "value": "I have had a bug recently that only manifested itself when the library was built as a release build rather than a debug build. The library is a .NET dll with a COM wrapper and I am using CoCreateInstance to create a class from the dll in an unmanaged c++ app. When I finally tr...
Is it possible to not have the: /****Script Date: 10/27/2008 09:05:41 ******/ in the output? I want to use Diff's so I can see what's changed, having a timestamp makes it difficult!
If you're generating scripts or code that includes a timestamp comment (like the one you mentioned) and you want to remove it for comparison purposes (such as using a diff tool), there are several ways you can achieve this: ### 1. Modify the Script Generation Process If you have control over the script generation proc...
26,210
[ { "from": "human", "value": "Is it possible to not have the:\n/****Script Date: 10/27/2008 09:05:41 ******/\nin the output?\nI want to use Diff's so I can see what's changed, having a timestamp makes it difficult!\n" }, { "from": "gpt", "value": "If you're generating scripts or code that include...
I creating a control for WPF, and I have a question for you WPF gurus out there. I want my control to be able to expand to fit a resizable window. In my control, I have a list box that I want to expand with the window. I also have other controls around the list box (buttons, text, etc). I want to be able to set a mini...
To achieve the behavior you want, where the outer `ScrollViewer` only scrolls when the size of the control exceeds a certain minimum size, and the inner `ListBox` scrolls when its content exceeds its available space, you can create a custom user control that encapsulates your desired layout behavior. The strategy is t...
23,313
[ { "from": "human", "value": "I creating a control for WPF, and I have a question for you WPF gurus out there.\nI want my control to be able to expand to fit a resizable window. \nIn my control, I have a list box that I want to expand with the window. I also have other controls around the list box (buttons, ...
I'm working with jQuery and looking to see if there is an easy way to determine if the element has a specific CSS class associated with it. I have the id of the element, and the CSS class that I'm looking for. I just need to be able to, in an if statement, do a comparison based on the existence of that class on the el...
You can easily check if an element has a specific CSS class using jQuery's `.hasClass()` method. This method returns `true` if the element has the specified class, and `false` otherwise. Here's how you can use it based on the element's ID and the class you want to check: ```javascript // Assuming you have the ID of t...
29,253
[ { "from": "human", "value": "I'm working with jQuery and looking to see if there is an easy way to determine if the element has a specific CSS class associated with it.\nI have the id of the element, and the CSS class that I'm looking for. I just need to be able to, in an if statement, do a comparison base...
When I asked this question I got almost always a definite yes you should have coding standards. What was the strangest coding standard rule that you were ever forced to follow? And by strangest I mean funniest, or worst, or just plain odd. In each answer, please mention which language, what your team size was, and wh...
Here are a few humorous and odd coding standards that some developers have encountered: 1. **The "No Single Letter Variables" Rule** - **Language**: Java - **Team Size**: 8 developers - **Strange Rule**: The coding standards forbade the use of single-letter variable names, even for loop counters (e.g., ...
24,391
[ { "from": "human", "value": "When I asked this question I got almost always a definite yes you should have coding standards. \nWhat was the strangest coding standard rule that you were ever forced to follow?\nAnd by strangest I mean funniest, or worst, or just plain odd. \nIn each answer, please mention whi...
I am writing some JNI code in C that I wish to test using cunit. In order to call the JNI functions, I need to create a valid JNIEnv struct. Does anyone know if there is a mocking framework for such a purpose, or who can give me some pointers on how to create a mock JNIEnv struct myself?
Creating a mock `JNIEnv` struct can indeed be a bit of a challenge since `JNIEnv` is not a simple struct but a pointer to a structure that holds function pointers for JNI operations. However, you can create a mocked version of `JNIEnv` for testing purposes. ### Step-by-Step Guide to Mocking `JNIEnv` 1. **Define a Moc...
22,930
[ { "from": "human", "value": "I am writing some JNI code in C that I wish to test using cunit. In order to call the JNI functions, I need to create a valid JNIEnv struct.\nDoes anyone know if there is a mocking framework for such a purpose, or who can give me some pointers on how to create a mock JNIEnv stru...
I'm trying to send the output to the console (or colouredconsole) ... which I'm hoping would (also?) go to the Visual Studio's Output window for any ASP.NET web site/app/mvc app. It doesn't by default, but if I change the target to 'file' then it works for sure. Can NLog output to the Output window for web apps?
Yes, you can configure NLog to output log messages to the Visual Studio Output window for ASP.NET applications, but it requires a custom NLog target. The Output window is not a standard target provided by NLog, but you can create your own target to achieve this. Here’s a step-by-step guide on how to implement this: #...
26,237
[ { "from": "human", "value": "I'm trying to send the output to the console (or colouredconsole) ... which I'm hoping would (also?) go to the Visual Studio's Output window for any ASP.NET web site/app/mvc app.\nIt doesn't by default, but if I change the target to 'file' then it works for sure.\nCan NLog outpu...
I have a .net app that I've written in c#. On some forms I frequent update the display fields. In some cases every field on the form (textboxes, labels, picturebox, etc) has its value changed. Plus the frequency of the changes could possibly be every second. However, currently there is a horrible flickering everytime t...
Flickering in WinForms applications is often caused by redrawing controls individually every time their values are updated. To reduce flickering, you can employ several strategies, including enabling double buffering, using the `SuspendLayout` and `ResumeLayout` methods, and minimizing the number of redraws required. B...
19,103
[ { "from": "human", "value": "I have a .net app that I've written in c#. On some forms I frequent update the display fields. In some cases every field on the form (textboxes, labels, picturebox, etc) has its value changed. Plus the frequency of the changes could possibly be every second. However, currently t...
I know that Internet Explorer has some proprietary extensions so that you can do things like create divs with a gradient background. I can't remember the element name or it's usage. Does anyone have some examples or links?
Internet Explorer (IE) did indeed have several proprietary extensions to CSS that allowed for features not available in standard CSS. One of the methods used to create gradient backgrounds in older versions of IE is through the use of the `-ms-filter` property for gradients. Here’s an example of how you might use the ...
26,732
[ { "from": "human", "value": "I know that Internet Explorer has some proprietary extensions so that you can do things like create divs with a gradient background. I can't remember the element name or it's usage. Does anyone have some examples or links?\n" }, { "from": "gpt", "value": "Internet ...
Without routing, HttpContext.Current.Session is there so I know that the StateServer is working. When I route my requests, HttpContext.Current.Session is null in the routed page. I am using .NET 3.5 sp1 on IIS 7.0, without the MVC previews. It appears that AcquireRequestState is never fired when using the routes and so...
When you're dealing with session state in ASP.NET, especially when using routing, it's important to ensure that the session state module is correctly invoked and that session state is properly configured. Here are a few things to check and try, based on the issues you mentioned: 1. **SessionState Module**: Ensure that...
24,361
[ { "from": "human", "value": "Without routing, HttpContext.Current.Session is there so I know that the StateServer is working. When I route my requests, HttpContext.Current.Session is null in the routed page. I am using .NET 3.5 sp1 on IIS 7.0, without the MVC previews. It appears that AcquireRequestState is...
I'm trying to get all property names / values from an Outlook item. I have custom properties in addition to the default outlook item properties. I'm using redemption to get around the Outlook warnings but I'm having some problems with the GetNamesFromIDs method on a Redemption.RDOMail Item.... I'm using my redemption s...
When working with Redemption and trying to retrieve property names for MAPI properties, you are on the right track with your approach. The `GetNamesFromIDs` method is designed to convert property tags (IDs) to their corresponding property names. The first parameter of this method (`MAPIProp`) should be an instance of a...
25,610
[ { "from": "human", "value": "I'm trying to get all property names / values from an Outlook item. I have custom properties in addition to the default outlook item properties. I'm using redemption to get around the Outlook warnings but I'm having some problems with the GetNamesFromIDs method on a Redemption.R...
My ideal situation for logging in our web service would be to log all the method calls (authentication as well as data access) with the parameters passed to them as well as errors that may have occured, and have them linked with a single ID that associates them with the same call. In addition, I'd ideally like to be a...
It sounds like you're looking for a robust logging framework that allows you to trace method calls, parameters, errors, and user sessions in your web service application in a structured manner. Here are some steps and ideas that could help you achieve your desired logging setup: ### 1. Use a Unique Identifier (Request...
21,283
[ { "from": "human", "value": "My ideal situation for logging in our web service would be to log all the method calls (authentication as well as data access) with the parameters passed to them as well as errors that may have occured, and have them linked with a single ID that associates them with the same cal...
I'm a programmer dammit, I should be allowed to ask these kinds of IT questions! :) Anyway the problem is as follows. I'm writing an automatic build script to deploy code to a live windows 2003 server. To get access to the server I enabled the VPN role, and I can connect to it remotely from my dev machine using a usern...
It sounds like you've taken several correct steps towards setting up your VPN connection and sharing files, but there are a few common issues you might want to check that could prevent you from accessing the share on the Windows Server 2003 machine: 1. **Network Configuration**: Make sure that your VPN connection is c...
23,544
[ { "from": "human", "value": "I'm a programmer dammit, I should be allowed to ask these kinds of IT questions! :)\nAnyway the problem is as follows. I'm writing an automatic build script to deploy code to a live windows 2003 server. To get access to the server I enabled the VPN role, and I can connect to it ...
I don't develop too many desktop / Windows Forms applications, but it had occurred to me that there may be some benefit to using the MVC (Model View Controller) pattern for Windows Forms .NET development. Has anyone implemented MVC in Windows Forms? If so, do you have any tips on the design?
Using the Model-View-Controller (MVC) pattern in Windows Forms applications is indeed possible and can lead to a more organized and maintainable codebase. While Windows Forms doesn't natively support MVC the way web frameworks do, you can adapt the pattern to fit your needs. Here are some tips for implementing MVC in y...
18,297
[ { "from": "human", "value": "I don't develop too many desktop / Windows Forms applications, but it had occurred to me that there may be some benefit to using the MVC (Model View Controller) pattern for Windows Forms .NET development.\nHas anyone implemented MVC in Windows Forms? If so, do you have any tips ...
I'm trying to get a postgres jdbc connection working in eclipse. It would be nice to use the Data Source Explorer, but for now I'm just trying to get a basic connection. What I have done so far is download the postgres JDBC connector. I then tried two different things. First, Preferences-> Data Management, I tried to a...
Hi Charlie, It sounds like you're on the right track in trying to establish a PostgreSQL JDBC connection in Eclipse. Here are some steps to troubleshoot and hopefully resolve the issue: ### Step 1: Download the PostgreSQL JDBC Driver Ensure you have the correct version of the PostgreSQL JDBC driver (a `.jar` file). Y...
21,502
[ { "from": "human", "value": "I'm trying to get a postgres jdbc connection working in eclipse. It would be nice to use the Data Source Explorer, but for now I'm just trying to get a basic connection. What I have done so far is download the postgres JDBC connector. I then tried two different things. First, Pr...
I need to use a many to many relationship in my project and since Dynamic Data doesn't support it natively, I would like to ask for a sample of an implementation of something like it. I'm specifically looking for a way to both create new instances of the target entity and add a new m2m relationship to a record as well ...
Implementing a many-to-many (M2M) relationship in a project using Dynamic Data can be a bit tricky since it doesn't support M2M relationships out of the box. However, you can achieve this with a combination of additional tables and custom pages or user controls. Below, I'll walk you through the steps to create such an ...
23,820
[ { "from": "human", "value": "I need to use a many to many relationship in my project and since Dynamic Data doesn't support it natively, I would like to ask for a sample of an implementation of something like it.\nI'm specifically looking for a way to both create new instances of the target entity and add a...
Being an aspiring Apple developer, I want to get the opinions of the community if it is better to learn C first before moving into Objective-C and ultimately the Cocoa Framework? My gut says learn C, which will give me a good foundation.
Your intuition to learn C before diving into Objective-C and the Cocoa Framework is a sound approach. Here are several reasons why learning C first can be beneficial for an aspiring Apple developer: 1. **Understanding of Memory Management**: C provides a strong foundation in how memory management works. Objective-C bu...
27,961
[ { "from": "human", "value": "Being an aspiring Apple developer, I want to get the opinions of the community if it is better to learn C first before moving into Objective-C and ultimately the Cocoa Framework?\nMy gut says learn C, which will give me a good foundation.\n" }, { "from": "gpt", "valu...
I've searched around a bit in the small amount of iPhone/iPod Touch development information available and couldn't find anything for or against. Can an application find out information about currently playing song on iPhone/iPod Touch? Since the music can continue to play while you are in 3rd party applications, is t...
As of my last update in October 2023, Apple provides a way for third-party applications to access information about the currently playing song through the **Media Player framework**. Specifically, you can use the `MPNowPlayingInfoCenter` class along with `MPRemoteCommandCenter` to interact with the media playback infor...
24,575
[ { "from": "human", "value": "I've searched around a bit in the small amount of iPhone/iPod Touch development information available and couldn't find anything for or against. Can an application find out information about currently playing song on iPhone/iPod Touch? Since the music can continue to play whil...
I have some EDI messages (X12, HL7, etc ...) stored in an Oracle database. I sometimes want to pull out individual fields (e.g. ISA-03). Currently, I have some really ugly sql. I'd like to create a PL/SQL package to make it easier and was wondering if anybody had already done this. I imagine something like: select ...
Creating a PL/SQL package to extract fields from EDI messages stored in an Oracle database is a great way to simplify your SQL queries. While I don't have specific existing packages to refer you to, I can guide you on how to create a simple package for extracting fields from X12 messages. The following example assumes...
24,131
[ { "from": "human", "value": "I have some EDI messages (X12, HL7, etc ...) stored in an Oracle database. I sometimes want to pull out individual fields (e.g. ISA-03). Currently, I have some really ugly sql. I'd like to create a PL/SQL package to make it easier and was wondering if anybody had already done...
I am just starting a new ASP.NET project and using the MVP pattern. I did consider the MS MVC but it is not released yet and would be a big learning curve for some people on the team, so I opted for MVP now and possibly future projects MVC. Anyway, it seems I will have a single Controller/Presenter class for every webf...
Using the MVP (Model-View-Presenter) pattern in an ASP.NET Web Forms project can indeed lead to an increase in the number of classes and files since you'll typically have a presenter for each web form. Here are some insights and alternatives that you might consider: ### Typical MVP Structure 1. **Presenter Class**: E...
22,985
[ { "from": "human", "value": "I am just starting a new ASP.NET project and using the MVP pattern. I did consider the MS MVC but it is not released yet and would be a big learning curve for some people on the team, so I opted for MVP now and possibly future projects MVC.\nAnyway, it seems I will have a single...
I'm in the process of writing a basic cookie for an ecommerce site which is going to store the user's IP among other details. We'll then record the pages they view in the database and pull out a list of recently viewed pages. However i'm having an issue with the following code. dim caller caller = Response.Cookies("cal...
The error message you're encountering, "Class does not support automation," typically occurs when there's an issue with accessing or manipulating an object in VBScript, especially when working with cookies or server variables. The issue in your code snippet might stem from how you're accessing and using the `Response.C...
25,092
[ { "from": "human", "value": "I'm in the process of writing a basic cookie for an ecommerce site which is going to store the user's IP among other details.\nWe'll then record the pages they view in the database and pull out a list of recently viewed pages.\nHowever i'm having an issue with the following code...
I want to learn MVC "architecture pattern" but I don't want to jump into a framework like Rails or Django just yet. I want to understand the concept first and write some simple code in my currently familiar environment, which happens to be PHP/HTML/CSS/MySQL. I don't necessarily need a tutorial that is based on PHP, ...
Great choice! Understanding the MVC (Model-View-Controller) architecture pattern is a fundamental step in web development, and it will help you structure your projects in a more maintainable and scalable way. Since you want to do this in PHP without any frameworks, I can guide you through the concepts of MVC and give y...
20,697
[ { "from": "human", "value": "I want to learn MVC \"architecture pattern\" but I don't want to jump into a framework like Rails or Django just yet. I want to understand the concept first and write some simple code in my currently familiar environment, which happens to be PHP/HTML/CSS/MySQL. I don't necessa...
I'm working on an integration testing project in .NET. The testing framework executable starts a service and then needs to wait for the service to complete an operation. What is the best approach for the exe to wait on the service to complete its task (the service itself will not exit upon task completion)? Both proces...
For your integration testing project in .NET, utilizing a simple database table to track the service's status is indeed a practical and effective approach. Here’s a more detailed breakdown of that method, along with some alternative options that you might consider, keeping simplicity in mind: ### Method 1: Status Trac...
22,187
[ { "from": "human", "value": "I'm working on an integration testing project in .NET. The testing framework executable starts a service and then needs to wait for the service to complete an operation.\nWhat is the best approach for the exe to wait on the service to complete its task (the service itself will n...
For a current project I am working I need to return an aggregate report based on date ranges. I have 3 types of reports, yearly, monthly and daily. To assist in returning this report I need a function that will return all of the sub-ranges of datetimes, within a big range. So for example if I as for all the daily rang...
To implement a SQL function that returns all sub-ranges of datetimes for yearly, monthly, or daily ranges, you can create a table-valued function in SQL Server. Below is an implementation of the `fnGetDateRanges` function as described. ```sql CREATE FUNCTION dbo.fnGetDateRanges ( @rangeType CHAR(1), -- 'd' for dai...
25,046
[ { "from": "human", "value": "For a current project I am working I need to return an aggregate report based on date ranges. \nI have 3 types of reports, yearly, monthly and daily.\nTo assist in returning this report I need a function that will return all of the sub-ranges of datetimes, within a big range.\nS...
For example, I want just the "filename" of a file in a field. Say I have myimage.jpg I only want to display "myimage" How do I get just that?
To extract just the filename without the extension from a given filename like `myimage.jpg`, you can use various programming languages or tools. Here are a few common methods: ### Python ```python import os filename = "myimage.jpg" name_without_extension = os.path.splitext(filename)[0] print(name_without_extension) ...
27,952
[ { "from": "human", "value": "For example, I want just the \"filename\" of a file in a field. Say I have myimage.jpg I only want to display \"myimage\" How do I get just that? \n" }, { "from": "gpt", "value": "To extract just the filename without the extension from a given filename like `myim...
I came across an issue that makes me think there is bug in the 3.0 framework. When I try to use extension methods I get the following error: Missing compiler required member 'System.Runtime.CompilerServices.ExtensionAttribute..ctor' When using this simple code: public static class StringUtils { static void TestEx...
The issue you're encountering with the `Missing compiler required member 'System.Runtime.CompilerServices.ExtensionAttribute..ctor'` error suggests that the C# compiler can't find the `ExtensionAttribute` class, which is essential for using extension methods. This typically shouldn't happen in a standard setup because...
26,489
[ { "from": "human", "value": "I came across an issue that makes me think there is bug in the 3.0 framework. When I try to use extension methods I get the following error: \nMissing compiler required member\n'System.Runtime.CompilerServices.ExtensionAttribute..ctor'\n\nWhen using this simple code:\npublic sta...
I am a single developer just getting started with open source web dev (Python/Django). I signed up for a free Assembla.com account but I really don't know whether to use Trac ticketing or Assembla integrated ticketing. I have setup spaces for both to try them out, but it seems like I would need to use them for a while ...
As a single developer starting out with open source web development using Python/Django, it's great that you're exploring project management tools like Trac and Assembla. Both have their pros and cons, and the choice depends on your specific needs, preferences, and how you plan to manage your projects. ### Trac **Pro...
20,731
[ { "from": "human", "value": "I am a single developer just getting started with open source web dev (Python/Django). I signed up for a free Assembla.com account but I really don't know whether to use Trac ticketing or Assembla integrated ticketing. I have setup spaces for both to try them out, but it seems l...
I'm building an ASP.NET AJAX application that uses JavaScript to call web services to get its data, and also uses Silverlights Isolated Storage to cache the data on the client machine. Ultimately once the data is downloaded it is passed to JavaScript which displays in on the page using the HTML DOM. What I'm trying to ...
When considering whether to use Silverlight or JavaScript for making web service calls in your application, there are several factors to take into account. Since you've already done some prototyping and noticed similar performance between both approaches, it's essential to evaluate the specific needs of your applicatio...
22,747
[ { "from": "human", "value": "I'm building an ASP.NET AJAX application that uses JavaScript to call web services to get its data, and also uses Silverlights Isolated Storage to cache the data on the client machine. Ultimately once the data is downloaded it is passed to JavaScript which displays in on the pag...
I have a page that is supposed to launch the Print Preview page onload. I found this: var OLECMDID = 7; /* OLECMDID values: * 6 - print * 7 - print preview * 1 - open window * 4 - Save As */ var PROMPT = 1; // 2 DONTPROMPTUSER var WebBrowser = '<OBJECT ID="WebBrowser1" WIDTH=0 HEIGHT=0 CLASSID="CLSID:8856F961-340A-11D0...
The approach you're using to invoke the print preview feature with ActiveX is specific to Internet Explorer (IE) and relies on COM objects that are not supported in modern browsers, including Firefox and other alternatives. Additionally, using ActiveX is discouraged due to its security implications and compatibility is...
23,945
[ { "from": "human", "value": "I have a page that is supposed to launch the Print Preview page onload.\nI found this:\nvar OLECMDID = 7;\n/* OLECMDID values:\n* 6 - print\n* 7 - print preview\n* 1 - open window\n* 4 - Save As\n*/\nvar PROMPT = 1; // 2 DONTPROMPTUSER\nvar WebBrowser = '<OBJECT ID=\"WebBrowser1...
I'm roughing a layout together and doing some browser testing. Never came across this issue before, check out the contact form in the footer of this page http://staging.terrilynn.com/fundraising/ There is a div with a width of 298px floated to the right that comes first in the source order. It is followed by several ot...
It looks like you're dealing with a common issue related to float and layout in CSS. Since the message div is floated to the right and the other form elements are floated to the left, the order of rendering can cause elements to disappear or be misplaced due to how floating works in the document flow. Here are a few ...
23,349
[ { "from": "human", "value": "I'm roughing a layout together and doing some browser testing. Never came across this issue before, check out the contact form in the footer of this page\nhttp://staging.terrilynn.com/fundraising/\nThere is a div with a width of 298px floated to the right that comes first in the...
Does anybody know of a tool to test OCSP responses? Preferably, something that can be used from a Windows Command-line and/or can be included (easily) in a Java/python program
Yes, there are several tools and libraries you can use to test OCSP (Online Certificate Status Protocol) responses from the command line on Windows, as well as libraries that can be integrated into Java or Python applications. ### Command-Line Tools 1. **OpenSSL**: OpenSSL is a widely used tool that supports OCSP....
17,812
[ { "from": "human", "value": "Does anybody know of a tool to test OCSP responses? Preferably, something that can be used from a Windows Command-line and/or can be included (easily) in a Java/python program \n" }, { "from": "gpt", "value": "Yes, there are several tools and libraries you can use to...
I am working on integrating geolocation services into a website and the best source of data I've found so far is MaxMind's GeoIP API with GeoLite City data. Even this data seems to often be questionable though. For example, I am located in downtown Palo Alto, but it locates my IP as being in Portola Valley, which is ...
Geolocation accuracy can indeed be a challenge, especially when relying solely on IP-based geolocation services, as they can vary in precision and reliability depending on the data source and the underlying infrastructure. Here are some options and strategies that may help improve the accuracy of geolocation services f...
23,295
[ { "from": "human", "value": "I am working on integrating geolocation services into a website and the best source of data I've found so far is MaxMind's GeoIP API with GeoLite City data. Even this data seems to often be questionable though. For example, I am located in downtown Palo Alto, but it locates my...
Before I get flamed and down-voted without mercy, my company will not allow the install of .NET3.5 on non-dev machines yet (others are currently on 3.0). I have a managed exe on network share that needs to be able to run from there. This is a common problem with pre-.NET3.5SP1, but I cannot figure out how to solve it....
Running a managed .NET executable from a network share, especially on older versions of the .NET Framework (like 3.0), can be tricky due to the security policies in place. Here are some steps and alternatives you can consider to help address this issue: ### 1. **Understanding Security Policies** In pre-.NET 3.5 SP1, r...
23,520
[ { "from": "human", "value": "Before I get flamed and down-voted without mercy, my company will not allow the install of .NET3.5 on non-dev machines yet (others are currently on 3.0).\nI have a managed exe on network share that needs to be able to run from there. This is a common problem with pre-.NET3.5SP1...
All, I currently have two projects that are under SourceSafe that I am unable to migrate to our SVN server for a number of reasons. However I am currently in the process of trying to merge fixes from one project into the other. I know Sourcesafe isn't the best at this but the process I am going through just now is p...
Migrating from SourceSafe to SVN can indeed be challenging, especially when it comes to merging changes between projects. Here are some alternative methods and tools that might help streamline your process: ### 1. **Use a Diff Tool** Utilize a file comparison tool (diff tool) that can help identify differences between...
23,108
[ { "from": "human", "value": "All, \nI currently have two projects that are under SourceSafe that I am unable to migrate to our SVN server for a number of reasons. \nHowever I am currently in the process of trying to merge fixes from one project into the other. \nI know Sourcesafe isn't the best at this but ...
I'm slowly moving all of my LAMP websites from mysql_ functions to PDO functions and I've hit my first brick wall. I don't know how to loop through results with a parameter. I am fine with the following: foreach ($database->query("SELECT * FROM widgets") as $results) { echo $results["widget_name"]; } However if I...
When using PDO (PHP Data Objects), you should prepare your SQL statements to safely include dynamic parameters. This helps to prevent SQL injection vulnerabilities. You can use prepared statements with placeholders to achieve this. Here's how you can do it: 1. Prepare the SQL statement with a placeholder for the dynam...
20,346
[ { "from": "human", "value": "I'm slowly moving all of my LAMP websites from mysql_ functions to PDO functions and I've hit my first brick wall. I don't know how to loop through results with a parameter. I am fine with the following:\nforeach ($database->query(\"SELECT * FROM widgets\") as $results)\n{\n ...
I have a custom webpart that is displaying dynamic list data, it needs to render an image from a Picture Library (or at least provide me the URL so I can encapsulate it with an tag), however, none of the fields in the Picture Library seem to contain the image URL? Is there a 'image utility' (SPImageUtility) or someth...
In SharePoint, when you're dealing with a Picture Library and want to render images dynamically in a custom web part, you generally need to retrieve the image URL from the associated item metadata. Here's how you can obtain the image URL for an item in a Picture Library: ### Steps to Retrieve Image URL 1. **Retrieve...
25,641
[ { "from": "human", "value": "I have a custom webpart that is displaying dynamic list data, it needs to render an image from a Picture Library (or at least provide me the URL so I can encapsulate it with an tag), however, none of the fields in the Picture Library seem to contain the image URL? Is there a '...
I have backed up an encrypted DB (symmetric key/certificate) and restored it on a different server. Unfortuantely we're having problems with the decryption... hoping someone can help. In the restored db, I can see the Symmetric Key and the Certificate in SSMS, but when I try to Open the key using the cert ( open s...
When dealing with issues related to symmetric key decryption after restoring a database, there are several areas to investigate. The error message you are encountering, "An error occurred during decryption," often indicates that there is a problem with the keys or the certificate used for decryption. Here are a few ste...
22,194
[ { "from": "human", "value": "I have backed up an encrypted DB (symmetric key/certificate) and \nrestored it on a different server. \nUnfortuantely we're having problems with the decryption... hoping \nsomeone can help. \nIn the restored db, I can see the Symmetric Key and the Certificate in \nSSMS, but when...
I am trying to use concat_ws inside a group_concat command. With a query, which simplified looks like: SELECT item.title, GROUP_CONCAT( CONCAT_WS( ',', attachments.id, attachments.type, attachments.name ) ) as attachments FROM story AS item LEFT OUTER JOIN story_attachment AS attachments ON item.id = attachments...
In MySQL, the result of `GROUP_CONCAT` should normally be returned as a string. If you're seeing it as a BLOB, it could be due to how the data is being handled by your client application, or possibly how the database is configured. However, to ensure that `GROUP_CONCAT` and `CONCAT_WS` produce a string, you can explic...
23,697
[ { "from": "human", "value": "I am trying to use concat_ws inside a group_concat command. With a query, which simplified looks like: \nSELECT item.title, GROUP_CONCAT( CONCAT_WS( ',', attachments.id, attachments.type, attachments.name ) ) as attachments\nFROM story AS item\nLEFT OUTER JOIN story_attach...
I want my website to have a checkbox that users can click so that they will not have to log in each time they visit my website. I know I will need to store a cookie on their computer to implement this, but what should be contained in that cookie? Also, are there common mistakes to watch out for to keep this cookie fr...
To implement a "Remember Me" feature using cookies on your website, you will need to store certain information in the cookie. Here’s what you should consider when designing your cookie: ### Cookie Contents 1. **User Identifier**: You should include a unique identifier for the user. This is typically a token that corr...
25,644
[ { "from": "human", "value": "I want my website to have a checkbox that users can click so that they will not have to log in each time they visit my website. I know I will need to store a cookie on their computer to implement this, but what should be contained in that cookie? \nAlso, are there common mistak...
I would like to know if there is a way to disable automatic loading of child records in nHibernate ( for one:many relationships ). We can easily switch off lazy loading on properties but what I want is to disable any kind of automatic loading ( lazy and non lazy both ). I only want to load data via query ( i.e. HQL or ...
In NHibernate, it's common to want to control how and when child collections (like a one-to-many relationship) are loaded. By default, NHibernate can indeed load related entities, either eagerly or lazily. Given your requirement to prevent any automatic loading (both lazy and eager), while still being able to define ...
22,907
[ { "from": "human", "value": "I would like to know if there is a way to disable automatic loading of child records in nHibernate ( for one:many relationships ).\nWe can easily switch off lazy loading on properties but what I want is to disable any kind of automatic loading ( lazy and non lazy both ). I only ...
What are the key differences between Microsoft's SQL Server 2005 and SQL Server 2008? Are there any compelling reasons for upgrading (any edition, as I have a customer with multiple editions)? Or is there a website with either a chart or bullet point comparison of the two servers? Also, is there anything noteworthy i...
Upgrading from SQL Server 2005 to SQL Server 2008 comes with several improvements and new features. Below are the key differences and compelling reasons for considering an upgrade, as well as notes on the Express editions. ### Key Differences Between SQL Server 2005 and SQL Server 2008 1. **Performance Improvements**...
21,600
[ { "from": "human", "value": "What are the key differences between Microsoft's SQL Server 2005 and SQL Server 2008? \nAre there any compelling reasons for upgrading (any edition, as I have a customer with multiple editions)? Or is there a website with either a chart or bullet point comparison of the two ser...
I've got a few very short audio clips (less than a second long) to be played on various events (button hover, click, etc). However, there is usually a significant lag between the action and the actual playing of the sound. I have tried both embedding the sound in the .swf, and loading it externally at the start, but ...
It sounds like you're facing issues with latency in playing audio clips in ActionScript/Flash, particularly for short sound effects like button hovers and clicks. Here are some potential solutions and recommendations that could help mitigate the lag you're experiencing: 1. **Preload Audio Clips**: Ensure that all audi...
24,430
[ { "from": "human", "value": "I've got a few very short audio clips (less than a second long) to be played on various events (button hover, click, etc). However, there is usually a significant lag between the action and the actual playing of the sound. I have tried both embedding the sound in the .swf, and...
I have created a workflow in Share Point Designer on our MOSS2007 dev server. (No one is allowed to have access to write .NET code yet as company policy) In this workflow I am collecting data from the user, and both of my custom content types I created are marked as required, but the page isn't tossing errors when I d...
If your custom content types in SharePoint Designer for a MOSS 2007 workflow are not enforcing required fields, there are several areas you can check to ensure that validation is functioning as expected. Here are some troubleshooting steps you can follow: 1. **Ensure Required Fields Are Set Correctly**: - Double-ch...
22,425
[ { "from": "human", "value": "I have created a workflow in Share Point Designer on our MOSS2007 dev server. (No one is allowed to have access to write .NET code yet as company policy)\nIn this workflow I am collecting data from the user, and both of my custom content types I created are marked as required, ...
I've been experimenting with fulltext search lately and am curious about the meaning of the Score value. For example I have the following query: SELECT table. * , MATCH ( col1, col2, col3 ) AGAINST ( '+(Term1) +(Term1)' ) AS Score FROM table WHERE MATCH ( col1, col2, col3 ) AGAINST ( '+(Term1) +(Term1)' ) In the resu...
The `Score` value in MySQL's full-text search reflects how relevant a row is to the search terms you specified in your query. The scores can vary significantly based on several factors, including term frequency, inverse document frequency, and the length of the text. Here's a breakdown of how MySQL calculates these sco...
23,884
[ { "from": "human", "value": "I've been experimenting with fulltext search lately and am curious about the meaning of the Score value. For example I have the following query:\nSELECT table. * ,\nMATCH (\ncol1, col2, col3\n)\nAGAINST (\n'+(Term1) +(Term1)'\n) AS Score\nFROM table\nWHERE MATCH (\ncol1, col2, c...
struct a { char *c; char b; }; What is sizeof(a)?
The size of a structure in C depends on the sizes of its members and any potential padding that the compiler adds for alignment purposes. In your struct definition: ```c struct a { char *c; // Pointer to char char b; // Single char }; ``` Let's break down the sizes of the members: 1. `char *c`: On most plat...
24,825
[ { "from": "human", "value": "struct a\n{\n char *c;\n char b;\n};\n\nWhat is sizeof(a)? \n" }, { "from": "gpt", "value": "The size of a structure in C depends on the sizes of its members and any potential padding that the compiler adds for alignment purposes. In your struct definition:\n\n...
(This question about refactoring F# code got me one down vote, but also some interesting and useful answers. And 62 F# questions out of the 32,000+ on SO seems pitiful, so I'm going to take the risk of more disapproval!) I was trying to post a bit of code on a blogger blog yesterday, and turned to this site, which I ha...
Your F# tokenization code looks quite structured and shows a good understanding of regular expressions and functional programming. It's great to see that you've made improvements using active patterns! However, there are still opportunities for refinement, especially in terms of code readability and maintainability. He...
22,469
[ { "from": "human", "value": "(This question about refactoring F# code got me one down vote, but also some interesting and useful answers. And 62 F# questions out of the 32,000+ on SO seems pitiful, so I'm going to take the risk of more disapproval!)\nI was trying to post a bit of code on a blogger blog yest...
I have search in MSDN and I can't figure where are the POST parameters from HttpListenerRequest? Any idea? *QueryString seem to have only Get parameter not post
In an `HttpListenerRequest`, you can obtain POST parameters through the request body instead of the query string. When a client sends a POST request, the data is typically sent in the body of the request rather than as query parameters in the URL. Here's how you can read POST parameters from an `HttpListenerRequest`: ...
25,780
[ { "from": "human", "value": "I have search in MSDN and I can't figure where are the POST parameters from HttpListenerRequest?\nAny idea?\n*QueryString seem to have only Get parameter not post\n" }, { "from": "gpt", "value": "In an `HttpListenerRequest`, you can obtain POST parameters through the...
With C# 3.0 you could use many of its features (object initializers, var variables, lambda expressions) while still targeting .NET 2.0 or 3.0. What new C# 4.0 features can be used while still targeting the .NET 2.0, 3.0 or 3.5 runtimes?
C# 4.0 introduced several new features that enhance the language, but when it comes to targeting older versions of the .NET Framework (2.0, 3.0, or 3.5), there are certain limitations. However, some C# 4.0 features can still be utilized if you're targeting those runtimes. Here are the key features of C# 4.0 and their ...
26,597
[ { "from": "human", "value": "With C# 3.0 you could use many of its features (object initializers, var variables, lambda expressions) while still targeting .NET 2.0 or 3.0.\nWhat new C# 4.0 features can be used while still targeting the .NET 2.0, 3.0 or 3.5 runtimes?\n" }, { "from": "gpt", "value...
We are a small company and would like to know the best possible (and affordable) hardware and software configuration we ought to be using for our development environment. At this moment we are a team of four people who work remotely from different locations and each one of us uses a laptop and ADSL connection to work o...
Certainly! Optimizing your development environment while keeping it affordable is key for a small, remote team. Here are some recommendations for hardware, software, and infrastructure configurations: ### Hardware Recommendations **Laptops:** - Aim for a minimum of **16 GB RAM**, especially if you’re running virtual ...
22,721
[ { "from": "human", "value": "We are a small company and would like to know the best possible (and affordable) hardware and software configuration we ought to be using for our development environment. At this moment we are a team of four people who work remotely from different locations and each one of us us...
I am using this - otherwise excellent - vb tab control in one of my c# apps. When the app using it is installed on another machine, Windows tells the user in its usual friendly and descriptive manner that "The application encountered a problem and needs to close". I guess the control has some hidden vb-related dependen...
When you encounter issues with a VB tab control in a C# application, especially when it's deployed to another machine, there are a few potential hidden dependencies and considerations that you should be aware of: 1. **Visual Basic Runtime**: Many VB controls require the Visual Basic runtime libraries to be installed o...
26,599
[ { "from": "human", "value": "I am using this - otherwise excellent - vb tab control in one of my c# apps. When the app using it is installed on another machine, Windows tells the user in its usual friendly and descriptive manner that \"The application encountered a problem and needs to close\". I guess the ...
I'm working on some RSS feeds for a custom task system we have. The main feed will show a list of tasks assigned to the current user. The link attribute for each task returned points to the web page for that task. However, tasks themselves have an RSS feed for updates, and I want to be able to provide a link for tha...
Your approach of wanting to include both a link to the task's webpage and a link to the task's RSS feed is a common scenario in RSS feed design. However, using the title attribute to include an `<a>` tag isn't a standard or recommended practice, as RSS readers typically treat the title text as plain text and don't inte...
19,533
[ { "from": "human", "value": "I'm working on some RSS feeds for a custom task system we have. The main feed will show a list of tasks assigned to the current user. The link attribute for each task returned points to the web page for that task. However, tasks themselves have an RSS feed for updates, and I ...
I understand that a hxs file is a compiled help file, a replacement for .chm files, but I can't seem to open them. I've read that you read them with the help explorer, dexplore.exe found here: C:\Program Files\Common Files\microsoft shared\Help 9\dexplore.exe When I try opening the file with dexplore, it asks me to sav...
It sounds like you are trying to open a `.hxs` file using the Help Explorer (dexplore.exe) but are encountering some difficulties. Here are some steps you can take to troubleshoot the issue and open the `.hxs` file successfully: 1. **Ensure Correct File Extension**: Make sure that the file you are trying to open is in...
25,904
[ { "from": "human", "value": "I understand that a hxs file is a compiled help file, a replacement for .chm files, but I can't seem to open them.\nI've read that you read them with the help explorer, dexplore.exe found here:\nC:\\Program Files\\Common Files\\microsoft shared\\Help 9\\dexplore.exe\nWhen I try ...
Replaces Question: Update multiple rows into SQL table Here's a Code Snippet to update an exam results set. DB structure is as given, but I can submit Stored Procedures for inclusion (Which are a pain to modify, so I save that until the end.) The question: Is there a better way using SQL server v 2005.,net 2.0 ? string...
Updating multiple rows in a SQL table can be made more efficient by minimizing the number of database calls. Your current approach executes an update for each row in a loop, which can lead to performance issues, especially if the number of updates is large. Instead, you can use a single SQL statement to update multiple...
24,852
[ { "from": "human", "value": "Replaces Question: Update multiple rows into SQL table\nHere's a Code Snippet to update an exam results set.\nDB structure is as given, but I can submit Stored Procedures for inclusion (Which are a pain to modify, so I save that until the end.)\nThe question: Is there a better w...
Are there any good methods for getting ASP.NET 2.0 to validate under the XHTML 1.0 Strict (or Transitional) DTD? I'm interested to hear some ideas before I hack up the core of the HTTP response. One major problem is the form tag itself, this is the output I got from W3C when I tried to validate: Line 13, Column 11: th...
Getting ASP.NET 2.0 to validate under the XHTML 1.0 Strict or Transitional DTD can be a challenge due to its default output, which does not conform to the stricter rules of XHTML. Here are some methods and ideas to help you achieve XHTML compliance without extensive modifications to the core of your ASP.NET application...
21,505
[ { "from": "human", "value": "Are there any good methods for getting ASP.NET 2.0 to validate under the XHTML 1.0 Strict (or Transitional) DTD? I'm interested to hear some ideas before I hack up the core of the HTTP response.\nOne major problem is the form tag itself, this is the output I got from W3C when I...
I have a query that I use for charting in reporting services that looks something like: (SELECT Alpha, Beta, Gamma, Delta, Epsilon, Zeta, Eta, Theta, Iota, Kappa, Lambda, Mu,Nu, Xi from tbl WHERE Alpha in (@Alphas) and Beta in (@Betas) and Gamma in (@Gammas) and Delta in (@Deltas) and Epsilon in (@Epsilons) and...
To achieve your goal of aggregating the `Omicron` values while still utilizing the other columns (`Alpha` through `Theta`) for filtering, you can modify your SQL query structure. Instead of using a `UNION`, you can make use of a `GROUP BY` clause for the first part of the query where you need `Xi`, and a separate aggre...
22,988
[ { "from": "human", "value": "I have a query that I use for charting in reporting services that looks something like:\n\n(SELECT Alpha, Beta, Gamma, Delta, Epsilon, Zeta, Eta, Theta, Iota, Kappa, Lambda, Mu,Nu, Xi from tbl \nWHERE \nAlpha in (@Alphas) and \nBeta in (@Betas) and\nGamma in (@Gammas) and\nD...
I am using System.IO.Directory.GetCurrentDirectory() to get the current directory in my web service, but that does not give me the current directory. How do I get the current directory in a web service? Thanks Stuart
In a web service, the current directory may not be what you expect due to the way web applications are hosted. When you call `System.IO.Directory.GetCurrentDirectory()`, it typically returns the directory from which the process was started, which may not correspond to your web application's directory. To get the direc...
27,366
[ { "from": "human", "value": "I am using System.IO.Directory.GetCurrentDirectory() to get the current directory in my web service, but that does not give me the current directory. How do I get the current directory in a web service?\nThanks\nStuart \n" }, { "from": "gpt", "value": "In a web servi...
There are a few tutorials on the web that describe consuming a Web Service using SQL Server 2005's CLR integration. For the most, the process seems pretty convoluted. I've run into several issues including the need to change my database's trust level, and using the sgen tool to create a static XmlSerializer assembly; a...
Using SQL Server CLR (Common Language Runtime) integration to consume a web service can certainly provide benefits, but it also brings several considerations in terms of security, performance, and maintenance. Here’s an overview of the implications for each: ### Security Implications 1. **Trust Levels**: - SQL Se...
22,913
[ { "from": "human", "value": "There are a few tutorials on the web that describe consuming a Web Service using SQL Server 2005's CLR integration. For the most, the process seems pretty convoluted. I've run into several issues including the need to change my database's trust level, and using the sgen tool to ...
I have numerous Web Services in my project that share types. For simplicity I will demonstrate with two Web Services. WebService1 at http://MyServer/WebService.asmx webService2 at http://MyServer/WebService.asmx When I generate the proxy for these two services I use: wsdl /sharetypes http://MyServer/WebService1.asmx h...
Unfortunately, the `wsdl.exe` tool does not support specifying multiple `appsettingurlkey` parameters for different services within a single command. The `appsettingurlkey` parameter can only be specified once, and it will apply to all services processed during that execution. ### Possible Solutions: Here are a few a...
24,744
[ { "from": "human", "value": "I have numerous Web Services in my project that share types. \nFor simplicity I will demonstrate with two Web Services.\nWebService1 at http://MyServer/WebService.asmx\nwebService2 at http://MyServer/WebService.asmx\nWhen I generate the proxy for these two services I use:\nwsdl ...
In Vim, how do I insert characters at the beginning of each line in a selection? For instance, I want to comment out a block of code by prepending // at the beginning of each line assuming my language's comment system doesn't allow block commenting like /* */. How would I do this?
In Vim, you can easily insert characters at the beginning of each line in a selection by using a combination of visual selection and the `:normal` command. Here's how you can comment out a block of code by prepending `//` at the beginning of each line: 1. **Select the lines you want to comment:** - Move your cursor...
26,870
[ { "from": "human", "value": "In Vim, how do I insert characters at the beginning of each line in a selection?\nFor instance, I want to comment out a block of code by prepending // at the beginning of each line assuming my language's comment system doesn't allow block commenting like /* */. How would I do...
I need to replace the contents of a node in an XElement hierarchy when the element name and all the attribute names and values match an input element. (If there is no match, the new element can be added.) For example, if my data looks like this: <root> <thing1 a1="a" a2="b">one</thing1> <thing2 a1="a" a2="a">two</t...
To achieve the functionality you described using LINQ to XML in C#, you can create a method that accepts an `XElement` as input, checks for matches in the XML tree based on the element name and attributes, and then replaces the contents if a match is found. If no match is found, the method will add the new element to t...
21,579
[ { "from": "human", "value": "I need to replace the contents of a node in an XElement hierarchy when the element name and all the attribute names and values match an input element. (If there is no match, the new element can be added.)\nFor example, if my data looks like this:\n<root>\n <thing1 a1=\"a\" a2=\...
If you create a simple "Hello World" VSTO2SE add-in targeting Microsoft Office Excel 2003, it takes 15 seconds to load on a cold startup. During that time, Excel is completely unresponsive. The cold-startup time is always poor in Excel 2003. I have seen one test machine where the startup time is instant in Excel 20...
Improving the cold startup time of a VSTO 2003 add-in can be quite challenging, especially given the architecture and limitations of Office 2003. Here are several strategies that may help to reduce the cold-start time: 1. **Minimize Dependencies**: - Reduce the number of assemblies and dependencies that your add-in...
25,673
[ { "from": "human", "value": "If you create a simple \"Hello World\" VSTO2SE add-in targeting Microsoft Office Excel 2003, it takes 15 seconds to load on a cold startup. During that time, Excel is completely unresponsive. \nThe cold-startup time is always poor in Excel 2003. I have seen one test machine w...
I have a set of Word documents which I want to publish using a PHP tool I've written. I copy and paste the Word documents into a text box and then save them into MySQL using the PHP program. The problem I Have arises from all the non-standard characters that Word documents have, like curly quotes and ellipses ("..."). ...
Yes, you can achieve this in PHP with a combination of built-in functions to handle character encoding and string replacement. Specifically, you can use the `htmlentities()` or `htmlspecialchars()` function to convert special characters to HTML entities. Additionally, you may need to define a custom replacement functio...
23,708
[ { "from": "human", "value": "I have a set of Word documents which I want to publish using a PHP tool I've written. I copy and paste the Word documents into a text box and then save them into MySQL using the PHP program. The problem I Have arises from all the non-standard characters that Word documents have,...
I have a Delphi Web Server setup and running, publishing Web Services, and I want to know some stuff on the calls to the web services: The IP address of the client who calls the web service. Some SOAP information on the call, such as username and password. How can I get this information from within the service code? ...
To access client information such as the IP address and any SOAP header data (like username and password) within a Delphi Web Service using TSoapDataModule, you can follow these steps: ### Accessing the Client IP Address In a Delphi SOAP Web Service, you can access the client's IP address via the `TSoapDataModule` us...
24,992
[ { "from": "human", "value": "I have a Delphi Web Server setup and running, publishing Web Services, and I want to know some stuff on the calls to the web services:\n\nThe IP address of the client who calls the web service.\nSome SOAP information on the call, such as username and password.\n\nHow can I get t...
I'm designing an application which deals with two sets of data - Users and Areas. The data is read from files produced by a third party. I have a User class and an Area class, and the data is read into a Users array and an Areas array (or other appropriate memory structure, depending on the technology we go with). Bo...
You've described a classic situation in software design involving a many-to-many relationship between two entities: Users and Areas. This can indeed lead to complexity when it comes to how to access related data. Here are several approaches you can consider, along with their pros and cons: ### 1. Basic Array Storage w...
17,956
[ { "from": "human", "value": "I'm designing an application which deals with two sets of data - Users and Areas. The data is read from files produced by a third party. I have a User class and an Area class, and the data is read into a Users array and an Areas array (or other appropriate memory structure, de...
I would like to simulate filesystem corruption for the purpose of testing how our embedded systems react to it and ultimately have them fail as gracefully as possible. We use different kinds of block device emulated flash storage for data which is modified often and unsuitable for storage in NAND/NOR. Since I have a pr...
Simulating filesystem corruption in a controlled manner can be a bit challenging, especially if you want to target specific areas of your filesystem rather than introducing random errors. However, there are several methods and tools that you can use to achieve this goal without having to invent your own solution from s...
18,348
[ { "from": "human", "value": "I would like to simulate filesystem corruption for the purpose of testing how our embedded systems react to it and ultimately have them fail as gracefully as possible. We use different kinds of block device emulated flash storage for data which is modified often and unsuitable f...
I have a repeater control where in the footer I have a DropDownList. In my code-behind I have: protected void ddMyRepeater_ItemDataBound(object sender, RepeaterItemEventArgs e) { if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem) { // Item binding co...
It seems you are experiencing an issue where the `SelectedIndexChanged` event for your DropDownList in the footer of a Repeater control is not being triggered as expected during a postback. Here are some potential reasons and solutions for this problem: ### 1. Ensure Proper Data Binding The Repeater control should be ...
25,098
[ { "from": "human", "value": "I have a repeater control where in the footer I have a DropDownList. In my code-behind I have:\nprotected void ddMyRepeater_ItemDataBound(object sender, RepeaterItemEventArgs e)\n{\n if (e.Item.ItemType == ListItemType.Item\n || e.Item.ItemType == ListItemType.Alt...
Let me begin with an illustrative example (assume the implementation is in a statically typed language such as Java or C#). Assume that you are building a content management system (CMS) or something similar. The data is hierarchically organised into Folders. Each folder has a collection of children; a child may be a P...
Your use case highlights a common challenge when working with hierarchically structured data, especially in content management systems (CMS), where the full graph can become unwieldy for serialization. Both of the approaches you proposed (navigation by query and stop and re-attach) have their merits and drawbacks. Belo...
23,391
[ { "from": "human", "value": "Let me begin with an illustrative example (assume the implementation is in a statically typed language such as Java or C#).\nAssume that you are building a content management system (CMS) or something similar. The data is hierarchically organised into Folders. Each folder has a ...
What is the best way to convert existing jar (without source) written in java 1.5 into java 1.4.x?
Converting a JAR file from Java 1.5 to Java 1.4 can be quite challenging, particularly because Java 1.5 introduced several new features and changes that are not compatible with Java 1.4. Here are some general steps you can take to attempt the conversion, but please note that the success of these steps can vary dependin...
22,155
[ { "from": "human", "value": "What is the best way to convert existing jar (without source) written in java 1.5 into java 1.4.x?\n" }, { "from": "gpt", "value": "Converting a JAR file from Java 1.5 to Java 1.4 can be quite challenging, particularly because Java 1.5 introduced several new features...
I have a potential client that build something with Flash Remoting Services. It looks there was some sort of server product offered back in 2002-2003, but I've been unable to see if it did anything so complex that it could not be replaced with a simple webservice. Does any one know what happened to this product?
Flash Remoting, primarily known as **Adobe Flash Remoting** or **Macromedia Flash Remoting**, was a technology that enabled communication between Flash applications and server-side services. This was particularly relevant in the early 2000s, when Flash was a popular choice for rich internet applications. The primary s...
22,358
[ { "from": "human", "value": "I have a potential client that build something with Flash Remoting Services. It looks there was some sort of server product offered back in 2002-2003, but I've been unable to see if it did anything so complex that it could not be replaced with a simple webservice. Does any one...
This may seem a bit trivial, but I have not been able to figure it out. I am opening up a SPSite and then trying to open up a SPWeb under that SPSite. This is working fine on the VPC, which has the same Site Collection/Site hierarchy, but on production, I get an exception telling me that the URL is invalid when I try...
The issue you're encountering stems from how you are constructing the URL that you pass to `SPSite.OpenWeb()`. The `OpenWeb` method requires a relative URL from the root of the site collection, not a full or absolute URL. In your specific case, it looks like you are passing the entire URL (which includes the site coll...
23,737
[ { "from": "human", "value": "This may seem a bit trivial, but I have not been able to figure it out. I am opening up a SPSite and then trying to open up a SPWeb under that SPSite. This is working fine on the VPC, which has the same Site Collection/Site hierarchy, but on production, I get an exception tell...
I am doing 2nd year computer science and we have a software engineering group project. There are 5 people in the group and we would like to build a web application in php. Please suggest some ideas for me
Here are several web application ideas suitable for a group project in your computer science course that can be developed using PHP: 1. **Event Management System**: Create a platform where users can organize, manage, and promote events. Features could include user registration, event creation, RSVPs, event calendars, ...
24,107
[ { "from": "human", "value": "I am doing 2nd year computer science and we have a software engineering group project. There are 5 people in the group and we would like to build a web application in php. Please suggest some ideas for me \n" }, { "from": "gpt", "value": "Here are several web applica...