instruction stringlengths 14 27.6k | completion stringlengths 3 38.3k | __original_row_idx int64 0 50k | conversations listlengths 2 2 |
|---|---|---|---|
I've seen the following code many times:
try
{
... // some code
}
catch (Exception ex)
{
... // Do something
throw new CustomException(ex);
// or
// throw;
// or
// throw ex;
}
Can you please explain the purpose of re-throwing an exception? Is it following a pattern/best practice in excep... | Re-throwing exceptions in the context of exception handling is a common practice and serves several important purposes. Here are some insights into the reasons for re-throwing exceptions and the relevant patterns involved:
### 1. **Preserving Stack Trace**
When you catch an exception and re-throw it using `throw;` (wi... | 18,252 | [
{
"from": "human",
"value": "I've seen the following code many times:\ntry\n{\n ... // some code\n}\ncatch (Exception ex)\n{\n ... // Do something\n throw new CustomException(ex);\n\n // or\n // throw;\n\n // or\n // throw ex;\n}\n\nCan you please explain the purpose of re-throwing an e... |
I've found an article on how to elevate a COM object written in C++ by calling
CoCreateInstanceAsAdmin. But what I have not been able to find or do, is a way to implement a component of my .NET (c#) application as a COM object and then call into that object to execute the tasks which need UAC elevation. MSDN documents... | You can create a COM object in C# that is capable of being elevated using the `CoCreateInstanceAsAdmin` API. Here’s a basic outline of how to achieve this.
### Step 1: Create the COM Object
1. **Create a C# Class Library Project**: Start by creating a new Class Library project in Visual Studio.
2. **Add COM Visibili... | 10,003 | [
{
"from": "human",
"value": "I've found an article on how to elevate a COM object written in C++ by calling \nCoCreateInstanceAsAdmin. But what I have not been able to find or do, is a way to implement a component of my .NET (c#) application as a COM object and then call into that object to execute the task... |
Out of order execution in CPUs means that a CPU can reorder instructions to gain better performance and it means the CPU is having to do some very nifty bookkeeping and such. There are other processor approaches too, such as hyper-threading.
Some fancy compilers understand the (un)interrelatedness of instructions to a... | What you're looking for is a way to interleave iterations of your loop to allow the processor to work on multiple iterations at once, effectively improving performance without significantly complicating your code. One common pattern for achieving this kind of parallelism is known as **loop interleaving** or **strip-min... | 17,082 | [
{
"from": "human",
"value": "Out of order execution in CPUs means that a CPU can reorder instructions to gain better performance and it means the CPU is having to do some very nifty bookkeeping and such. There are other processor approaches too, such as hyper-threading.\nSome fancy compilers understand the... |
We have a website running on Apache, access to which has a number of static pages protected via HTTP Basic authentication.
I've written a new part of the site with Django using Django's built in support for user management.
The problem I have is that users have to log in once via the HTTP Basic authentication and then ... | To achieve single sign-on between Apache's HTTP Basic Authentication and Django's authentication system, you can create a middleware that checks if the user has been authenticated via Basic Auth and then log them in to Django automatically. Below are the general steps to implement this:
### Step 1: Configure Apache
E... | 21,712 | [
{
"from": "human",
"value": "We have a website running on Apache, access to which has a number of static pages protected via HTTP Basic authentication.\nI've written a new part of the site with Django using Django's built in support for user management.\nThe problem I have is that users have to log in once ... |
I've implemented a basic search for a research project. I'm trying to make the search more efficient by building a suffix tree. I'm interested in a C# implementation of the Ukkonen algorith. I don't want to waste time rolling my own if such implementation exists.
| Certainly! Ukkonen's algorithm is a very efficient way to construct a suffix tree in linear time. Below is a C# implementation of Ukkonen's algorithm for building a suffix tree.
Please note that this is a fairly simplified version of a suffix tree implementation, and depending on your needs (e.g., handling different c... | 14,680 | [
{
"from": "human",
"value": "I've implemented a basic search for a research project. I'm trying to make the search more efficient by building a suffix tree. I'm interested in a C# implementation of the Ukkonen algorith. I don't want to waste time rolling my own if such implementation exists.\n"
},
{
... |
I am using MailLogger to send a message about a failed/successful release. I would like to make the mail body simple and easy to read. How can I suppress output for some particular tasks?
| When using MailLogger to send a message regarding the status of a release, you might want to suppress the output for particular tasks to make your email body cleaner and easier to read. Here are some strategies you can use to achieve that:
1. **Use Logging Levels**: Depending on the logging library you are using, you ... | 20,875 | [
{
"from": "human",
"value": "I am using MailLogger to send a message about a failed/successful release. I would like to make the mail body simple and easy to read. How can I suppress output for some particular tasks?\n"
},
{
"from": "gpt",
"value": "When using MailLogger to send a message regard... |
Recently thanks to rails' popularity, many people start using activerecord as model. however, before I heard of rails (my peer group was not a fan of open source stuff, we were taught in a .NET school...) and while I was doing my final year project, i found this definition for a model
The model represents enterprise d... | Your question touches on a key debate in software architecture, particularly in the context of MVC (Model-View-Controller) frameworks like Ruby on Rails. The ActiveRecord pattern simplifies many aspects of data interaction by tying a model class directly to a database table. However, as you've pointed out, this can lea... | 18,190 | [
{
"from": "human",
"value": "Recently thanks to rails' popularity, many people start using activerecord as model. however, before I heard of rails (my peer group was not a fan of open source stuff, we were taught in a .NET school...) and while I was doing my final year project, i found this definition for a... |
Given an InputStream called in which contains audio data in a compressed format (such as MP3 or OGG), I wish to create a byte array containing a WAV conversion of the input data. Unfortunately, if you try to do this, JavaSound hands you the following error:
java.io.IOException: stream length not specified
I managed to... | To avoid the temporary file solution while converting audio data from a compressed format (like MP3 or OGG) to WAV in Java, you can use a `ByteArrayOutputStream` to directly write the WAV data into a byte array. This eliminates the need for intermediate file storage. Here’s how you can modify your approach:
1. Use a `... | 23,376 | [
{
"from": "human",
"value": "Given an InputStream called in which contains audio data in a compressed format (such as MP3 or OGG), I wish to create a byte array containing a WAV conversion of the input data. Unfortunately, if you try to do this, JavaSound hands you the following error:\njava.io.IOException:... |
I need help understanding some C++ operator overload statements. The class is declared like this:
template <class key_t, class ipdc_t>
class ipdc_map_template_t : public ipdc_lockable_t
{
...
typedef map<key_t,
ipdc_t*,
less<key_t>> map_t;
...
The creator of the class has created ... | In the provided code, the `iterator` struct overloads two type conversion operators. These operators allow you to convert an `iterator` instance to a `key_t` and an `ipdc_t*`. You can utilize these operators directly in your loop to extract the key and the value from the `iterator`.
Here's how you can use the overload... | 21,727 | [
{
"from": "human",
"value": "I need help understanding some C++ operator overload statements. The class is declared like this: \ntemplate <class key_t, class ipdc_t>\nclass ipdc_map_template_t : public ipdc_lockable_t\n{\n ...\n typedef map<key_t,\n ipdc_t*,\n less<key_t>> map_t... |
I have been learning about the basics of C# but haven't come across a good explanation of what this is:
var l = new List<string>();
I don't know what the <string> is doing or if it's the List that is doing the magic. I have also seen objects been thrown within the < > tags.
Can someone explain this to me with examples... | Certainly! In C#, the angle brackets (`< >`) are used to define **generics**. Generics allow you to create classes, interfaces, and methods with a placeholder for the type they operate on, which is specified when you instantiate or use them. This gives you the flexibility to create type-safe collections and other types... | 20,302 | [
{
"from": "human",
"value": "I have been learning about the basics of C# but haven't come across a good explanation of what this is:\nvar l = new List<string>();\n\nI don't know what the <string> is doing or if it's the List that is doing the magic. I have also seen objects been thrown within the < > tags.\... |
My work just gave me a quad core computer, and WOW build times are fast! (What used to take 20+ minutes now takes 7 minutes).
Anyway, Visual Studio builds project in parallel (great for build times), but scrambles the output:
1>Performing Makefile project actions
3>arg.c
2>msg.c
3>log.c
4>test.c
(and so on....)
Is th... | Visual Studio’s output window for builds indeed displays messages in the order that they are processed, which can result in a jumbled output when building in parallel. However, there are some strategies and tools that you can consider to organize or sort the build output:
### 1. **Use Output Window Filters**:
While it... | 23,002 | [
{
"from": "human",
"value": "My work just gave me a quad core computer, and WOW build times are fast! (What used to take 20+ minutes now takes 7 minutes).\nAnyway, Visual Studio builds project in parallel (great for build times), but scrambles the output:\n1>Performing Makefile project actions\n3>arg.c\n2>m... |
I use Perforce for source control at work and I want to 'open for edit' files that under source control from within Emacs.
How can that be done? What do I need to setup in Emacs? Is there a plug in? I also want to perform other p4 operations such as submitting my changes, etc.
| To integrate Perforce with Emacs, you can use the `p4` command-line client directly from Emacs, or you can use a package like `p4.el` which provides a more integrated experience. Below are the steps to set this up.
### Option 1: Using `p4.el` (Recommended for better integration)
1. **Install `p4.el`**:
You can fin... | 18,100 | [
{
"from": "human",
"value": "I use Perforce for source control at work and I want to 'open for edit' files that under source control from within Emacs. \nHow can that be done? What do I need to setup in Emacs? Is there a plug in? I also want to perform other p4 operations such as submitting my changes, etc.... |
I have a .Net 2.0/3.5 WebApplication.
I want to be able to take money over the internet for my service.
Each of my customers will have an AccountNo.
I wish to offer several products each of which will have fixed price.
I need for my customer to login to my system and elect to pay me money for a product of their choice ... | When it comes to integrating payment processing into your .NET 2.0/3.5 web application, there are several options available, each with its pros and cons. Here are a few of the most popular payment gateways along with their simplicity of integration:
1. **PayPal**:
- **Pros**: PayPal is one of the most widely used p... | 20,274 | [
{
"from": "human",
"value": "I have a .Net 2.0/3.5 WebApplication.\nI want to be able to take money over the internet for my service.\nEach of my customers will have an AccountNo.\nI wish to offer several products each of which will have fixed price.\nI need for my customer to login to my system and elect t... |
I would like to compare two collections (in C#), but I'm not sure of the best way to implement this efficiently.
I've read the other thread about Enumerable.SequenceEqual, but it's not exactly what I'm looking for.
In my case, two collections would be equal if they both contain the same items (no matter the order).
Exa... | You are correct in noting that the approach you've shared doesn't account for the count of each item in the collections, which is necessary for accurately determining equality when items can repeat. A better approach is to count the occurrences of each item in both collections and then compare those counts.
Here’s how... | 17,932 | [
{
"from": "human",
"value": "I would like to compare two collections (in C#), but I'm not sure of the best way to implement this efficiently.\nI've read the other thread about Enumerable.SequenceEqual, but it's not exactly what I'm looking for.\nIn my case, two collections would be equal if they both contai... |
Can I run ASP.NET 2.0 and 3.5 code on the same website? ...or, do I need to separate them by applications, and/or servers?
| You cannot run ASP.NET 2.0 and 3.5 code within the same application. ASP.NET 3.5 is an extension of ASP.NET 2.0 and requires the ASP.NET 2.0 runtime, but it also introduces new features and assemblies that are not compatible with ASP.NET 2.0 applications.
Here’s how you can separate them:
1. **Separate Applications**... | 25,485 | [
{
"from": "human",
"value": "Can I run ASP.NET 2.0 and 3.5 code on the same website? ...or, do I need to separate them by applications, and/or servers?\n"
},
{
"from": "gpt",
"value": "You cannot run ASP.NET 2.0 and 3.5 code within the same application. ASP.NET 3.5 is an extension of ASP.NET 2.0... |
Please don't reply I should use ddd, nemiver, emacs, vim, or any other front-end, I just prefer gdb as it is, but would like to see its output with some terminal colors.
| If you want to enhance the output of GDB with terminal colors without using any front-end, you can achieve that by configuring GDB with a few commands. Here’s how you can set it up:
1. **GDB Configuration File**: You can create or edit a `.gdbinit` file in your home directory to include the following settings. This wi... | 21,436 | [
{
"from": "human",
"value": "Please don't reply I should use ddd, nemiver, emacs, vim, or any other front-end, I just prefer gdb as it is, but would like to see its output with some terminal colors.\n"
},
{
"from": "gpt",
"value": "If you want to enhance the output of GDB with terminal colors wi... |
I'm trying to write an interface between a home-grown project management system and Serena Mariner. (The bigwigs like to read Mariner, the worker bees like to write to the home grown system.)
How can I (programmatically?) figure out what Attribute Keys are available?
I'm actually writing the interface in PHP, but any ... | To programmatically figure out what Attribute Keys are available in Serena Mariner, you typically need to use the Mariner API. Serena Mariner provides an API that allows you to interact with its data programmatically. Here's a general approach to retrieving Attribute Keys using PHP or any programming language:
### Ste... | 17,903 | [
{
"from": "human",
"value": "I'm trying to write an interface between a home-grown project management system and Serena Mariner. (The bigwigs like to read Mariner, the worker bees like to write to the home grown system.)\nHow can I (programmatically?) figure out what Attribute Keys are available?\nI'm actu... |
Say I have 3 frames in a frameset arranged in 3 rows. Frames 1 and 3 are from my site and frame 2 (the central one) is from an external website. Is there a cunning way to force the browser to centre align the data in frame 2?
I've found a small work-around which uses a frameset within a frameset which has 2 blank colum... | To center the content in the central frame (frame 2) within your frameset while maintaining alignment with the scrollbars in frames 2 and 3, you can try using a combination of CSS and HTML within the content of frame 2.
However, it's important to note that the ability to style content within a frame, especially when i... | 18,747 | [
{
"from": "human",
"value": "Say I have 3 frames in a frameset arranged in 3 rows. Frames 1 and 3 are from my site and frame 2 (the central one) is from an external website. Is there a cunning way to force the browser to centre align the data in frame 2?\nI've found a small work-around which uses a frameset... |
How fast is php_uname() say doing php_uname('s n') or php_uname('a'). The reason I ask is because I'd like to use it to determine which server I'm on and therefore the configuration (paths, etc).
This is related to Is there a PHP function or variable giving the local host name?
| The `php_uname()` function in PHP is used to retrieve information about the operating system PHP is running on. The performance of `php_uname()` is generally very fast, as it fetches data directly from the underlying OS, typically in microseconds or less. However, the exact execution time can depend on various factors,... | 21,970 | [
{
"from": "human",
"value": "How fast is php_uname() say doing php_uname('s n') or php_uname('a'). The reason I ask is because I'd like to use it to determine which server I'm on and therefore the configuration (paths, etc).\nThis is related to Is there a PHP function or variable giving the local host name?... |
I need to change color of TextBox whenever its required field validator is fired on Clicking the Submit button
| To change the color of a `TextBox` whenever its associated `RequiredFieldValidator` is fired upon clicking a Submit button, you can use JavaScript for a client-side solution. Below is an example of how to accomplish this using ASP.NET Web Forms.
### Example Code
Here's a simple ASP.NET Web Forms example:
```aspx
<%@... | 18,836 | [
{
"from": "human",
"value": "I need to change color of TextBox whenever its required field validator is fired on Clicking the Submit button\n"
},
{
"from": "gpt",
"value": "To change the color of a `TextBox` whenever its associated `RequiredFieldValidator` is fired upon clicking a Submit button,... |
I'm using the DnsQueryConfig Win32 function to get the DNS servers used by Windows. This works fine for IPv4 addresses, but what if the DNS servers have IPv6 addresses?
| When using the `DnsQueryConfig` function in the Windows API to retrieve DNS server information, you can get both IPv4 and IPv6 addresses. The `DnsQueryConfig` function can be called with specific parameters to retrieve the relevant DNS server configurations.
### Steps to Retrieve DNS Servers (IPv4 and IPv6):
1. **Inc... | 19,753 | [
{
"from": "human",
"value": "I'm using the DnsQueryConfig Win32 function to get the DNS servers used by Windows. This works fine for IPv4 addresses, but what if the DNS servers have IPv6 addresses?\n"
},
{
"from": "gpt",
"value": "When using the `DnsQueryConfig` function in the Windows API to re... |
just wanted to gather different ideas and perspectives as to which layer should (and why) LINQ fall into?
| When considering where LINQ (Language Integrated Query) should fit within an application architecture, it helps to think about the different layers that typically exist in such architectures. The most common layers include:
1. **Presentation Layer**: This is where user interfaces and front-end logic reside. LINQ would... | 19,413 | [
{
"from": "human",
"value": "just wanted to gather different ideas and perspectives as to which layer should (and why) LINQ fall into?\n"
},
{
"from": "gpt",
"value": "When considering where LINQ (Language Integrated Query) should fit within an application architecture, it helps to think about t... |
What's the best way to create a non-NULL constraint in MySQL such that fieldA and fieldB can't both be NULL. I don't care if either one is NULL by itself, just as long as the other field has a non-NULL value. And if they both have non-NULL values, then it's even better.
| To enforce a constraint in MySQL that ensures at least one of two fields (`fieldA` or `fieldB`) is non-NULL, you can use a `CHECK` constraint if you are using MySQL version 8.0.16 or later. A `CHECK` constraint allows you to specify a condition that must be true for each row in the table.
Here’s how you can create suc... | 20,674 | [
{
"from": "human",
"value": "What's the best way to create a non-NULL constraint in MySQL such that fieldA and fieldB can't both be NULL. I don't care if either one is NULL by itself, just as long as the other field has a non-NULL value. And if they both have non-NULL values, then it's even better.\n"
},
... |
I have a text string value that I'd like to persist from one web page to another without using query strings or the session/view states. I've been trying to get the ASP http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.hiddenfield.aspx">HiddenField control to pass information from one web form to a dif... | In ASP.NET Web Forms, once a page is rendered and sent to the client, the server-side controls (including the values held by controls such as `HiddenField`) are not preserved when navigating to a different page. Each page is treated as a separate request, and the state of controls on one page does not carry over to ano... | 19,761 | [
{
"from": "human",
"value": "I have a text string value that I'd like to persist from one web page to another without using query strings or the session/view states. I've been trying to get the ASP http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.hiddenfield.aspx\">HiddenField control to p... |
Is the WriteFile call properly synchronous, and can I delete the file written immediately after the call?
| The `WriteFile` function in the Windows API can be synchronous or asynchronous, depending on how you open the file. If you open the file with a handle that is created using the `CreateFile` function with the `FILE_FLAG_OVERLAPPED` flag, then `WriteFile` will operate in an asynchronous manner. Conversely, if you open th... | 20,514 | [
{
"from": "human",
"value": "Is the WriteFile call properly synchronous, and can I delete the file written immediately after the call?\n"
},
{
"from": "gpt",
"value": "The `WriteFile` function in the Windows API can be synchronous or asynchronous, depending on how you open the file. If you open ... |
We have some old C code here that's built with nmake.
Is there an automated way to pull the Makefile into Visual Studio 2005 and create a project? Some searching on MSDN indicates VS6 could do this, but it looks like VS7/8 dropped the feature.
If necessary I can build the project from scratch using the project.mak file... | Visual Studio 2005 indeed does not have built-in support for directly importing Makefiles, as you found out. However, you still have several options to create a Visual Studio project based on your existing nmake Makefile. Here are some approaches you can consider:
### Option 1: Manual Project Creation
1. **Create a N... | 21,189 | [
{
"from": "human",
"value": "We have some old C code here that's built with nmake.\nIs there an automated way to pull the Makefile into Visual Studio 2005 and create a project? Some searching on MSDN indicates VS6 could do this, but it looks like VS7/8 dropped the feature.\nIf necessary I can build the proj... |
In our development environment each developer has their own dev server. Often times they do not actually develop on that server but develop from their local machine, deploy to their dev server, and then attach with the remote debugger to do debugging.
My question is; how can I use MSBuild to execute a different set of... | To enable each developer to define their own build process with MSBuild tasks while maintaining a default set of tasks, you can use property files or MSBuild's ability to import custom `.targets` files. Here’s a structured approach to achieve this:
### Step 1: Create a User-Specific MSBuild File
Each developer can cr... | 19,415 | [
{
"from": "human",
"value": "In our development environment each developer has their own dev server. Often times they do not actually develop on that server but develop from their local machine, deploy to their dev server, and then attach with the remote debugger to do debugging.\nMy question is; how can I... |
I realize that this question has been asked before, but it has been a month with no decent responses... I'm looking at Aptana's Jaxer and I find the concept to be very exciting.
Here is a quick overview for those who are not familiar with it:
Jaxer is, in their words, "the world's first true AJAX server". It is based... | Jaxer is an intriguing technology that offers a different approach to server-side JavaScript, allowing developers to leverage their JavaScript skills both on the client and server sides. Here are some considerations regarding its pros and cons, maturity, performance, and interoperability with other technologies:
### P... | 13,251 | [
{
"from": "human",
"value": "I realize that this question has been asked before, but it has been a month with no decent responses... I'm looking at Aptana's Jaxer and I find the concept to be very exciting.\nHere is a quick overview for those who are not familiar with it:\nJaxer is, in their words, \"the w... |
Hey there, I'm looking into using Mate, but the projects I work on do not require the majority of the functionality of the Flex framework. My workmate said that he heard of an Actionscript version, but I can find no information on the main site about this, only that they have removed some dependencies on the Flex frame... | Mate is a lightweight framework designed for building applications using ActionScript, particularly in conjunction with the Flex framework. While Mate was primarily designed with Flex in mind, it has undergone some changes to allow for greater flexibility and usability outside of the Flex environment.
There has been c... | 24,794 | [
{
"from": "human",
"value": "Hey there, I'm looking into using Mate, but the projects I work on do not require the majority of the functionality of the Flex framework. My workmate said that he heard of an Actionscript version, but I can find no information on the main site about this, only that they have re... |
In Eclipse IDE how do you customize the Java code style formatter to have it sort the class members with a specified order, for example to group all instance methods by visibility?
| In Eclipse IDE, you can customize the Java code style formatter to group class members based on their visibility (e.g., public, protected, private) and other criteria. Here’s how to set it up:
1. **Open the Preferences**:
- Go to `Window` (or `Eclipse` on macOS) in the menu bar.
- Select `Preferences`.
2. **Nav... | 19,742 | [
{
"from": "human",
"value": "In Eclipse IDE how do you customize the Java code style formatter to have it sort the class members with a specified order, for example to group all instance methods by visibility?\n"
},
{
"from": "gpt",
"value": "In Eclipse IDE, you can customize the Java code style... |
What is this thing called a KGL SIMULATOR and how can its memory utilisation be managed by application developers?
The background to the question is that I'm occasionally getting errors like the following and would like to get a general understanding of what is using this heap-space?
ORA-04031: unable to allocate 4032... | The KGL Simulator (KGL SIMULATOR) is part of Oracle's System Global Area (SGA) memory management related to the Oracle database's shared pool. The shared pool is a portion of the SGA that holds shared SQL areas, PL/SQL code, and other constructs, allowing efficient re-use of memory and improving performance by reducing... | 20,671 | [
{
"from": "human",
"value": "What is this thing called a KGL SIMULATOR and how can its memory utilisation be managed by application developers?\nThe background to the question is that I'm occasionally getting errors like the following and would like to get a general understanding of what is using this heap-... |
the question I am having is: when running my app with a launch code other than sysAppLaunchCmdNormalLaunch, I can not use code outside the default code segment - but could I use a shared library that is multi-segmented, thus circumventing this problem?
A bit of background information: I am evaluating the possibility of... | When dealing with PalmOS applications, especially those that may require background operations or involve multiple segments of code, you are navigating some significant limitations set by the operating system. Here are some insights regarding your specific situation:
1. **Understanding Segments and Launch Commands**: ... | 18,238 | [
{
"from": "human",
"value": "the question I am having is: when running my app with a launch code other than sysAppLaunchCmdNormalLaunch, I can not use code outside the default code segment - but could I use a shared library that is multi-segmented, thus circumventing this problem?\nA bit of background infor... |
I should probably take this for a forum but figured someone here might know the answer. I'm trying to install sql server 2008 on a home vista machine but it keeps telling 'Restart computer failed' everytime it does a check to make sure pre-reqs are met. I've restarted my computer and even uinstalled/installed .net 3.... | When installing SQL Server 2008 on a Windows Vista machine, if you're encountering the "Restart computer failed" error, it may be due to a variety of reasons related to the installation prerequisites or system state. Bypassing the reboot check is not officially supported, but if you're determined to proceed, you can tr... | 22,056 | [
{
"from": "human",
"value": "I should probably take this for a forum but figured someone here might know the answer. I'm trying to install sql server 2008 on a home vista machine but it keeps telling 'Restart computer failed' everytime it does a check to make sure pre-reqs are met. I've restarted my compu... |
I've used XNA and Visual Studio 2005 integrated with Flash. I'm curious to see what environments other people use and prefer.
| There are many development environments and frameworks available for game development, each with its strengths and weaknesses. Here are some popular ones that developers often prefer, especially since XNA and Visual Studio 2005:
1. **Unity**: A widely used game engine that supports 2D and 3D game development. It has a... | 21,086 | [
{
"from": "human",
"value": "I've used XNA and Visual Studio 2005 integrated with Flash. I'm curious to see what environments other people use and prefer.\n"
},
{
"from": "gpt",
"value": "There are many development environments and frameworks available for game development, each with its streng... |
How do I programmatically return the maximum of two integers without using any comparison operators and without using if, else, etc?
| You can find the maximum of two integers programmatically without using comparison operators or control structures by leveraging arithmetic operations and bit manipulation. One common approach is to use the following formula:
```python
def max_without_comparisons(a, b):
return (a + b + abs(a - b)) // 2
```
Howeve... | 23,594 | [
{
"from": "human",
"value": "How do I programmatically return the maximum of two integers without using any comparison operators and without using if, else, etc?\n"
},
{
"from": "gpt",
"value": "You can find the maximum of two integers programmatically without using comparison operators or contr... |
Does there exist a parser that generates an AST/parse tree at runtime? Kind of like a library that would accept a string of EBNF grammar or something analogous and spit out a data structure?
I'm aware of antlr, jlex and their ilk. They generate source code which could do this. (like to skip the compile step)
I'm awar... | Yes, there are several libraries in various programming languages that can parse grammars at runtime, allowing you to define grammars and generate abstract syntax trees (ASTs) or parse trees dynamically. Here are some notable options for Python and Ruby, as well as a few for other languages:
### Python
1. **Parsy**: ... | 17,758 | [
{
"from": "human",
"value": "Does there exist a parser that generates an AST/parse tree at runtime? Kind of like a library that would accept a string of EBNF grammar or something analogous and spit out a data structure? \n\nI'm aware of antlr, jlex and their ilk. They generate source code which could do thi... |
I have several <li> elements with different id's on ASP.NET page:
<li id="li1" class="class1">
<li id="li2" class="class1">
<li id="li3" class="class1">
and can change their class using JavaScript like this:
li1.className="class2"
But is there a way to change <li> element class using ASP.NET? It could be something li... | In ASP.NET Web Forms, `<li>` elements are typically represented by server-side controls like `Literal`, `Panel`, or `ListView`, and you cannot directly access HTML elements by their ID using `FindControl()` as it would work with other server controls.
To change the class of an `<li>` element server-side, you have a c... | 16,489 | [
{
"from": "human",
"value": "I have several <li> elements with different id's on ASP.NET page:\n<li id=\"li1\" class=\"class1\">\n<li id=\"li2\" class=\"class1\">\n<li id=\"li3\" class=\"class1\">\n\nand can change their class using JavaScript like this:\nli1.className=\"class2\"\n\nBut is there a way to ch... |
I'm writing an import utility that is using phone numbers as a unique key within the import.
I need to check that the phone number does not already exist in my DB. The problem is that phone numbers in the DB could have things like dashes and parenthesis and possibly other things. I wrote a function to remove these th... | When dealing with phone number comparisons in a database, especially with the presence of formatting inconsistencies, the key to improving performance lies in preprocessing the data effectively and ensuring efficient comparisons.
Since you've mentioned you're now using BIGINT to store cleaned phone numbers, let's expl... | 17,684 | [
{
"from": "human",
"value": "I'm writing an import utility that is using phone numbers as a unique key within the import.\nI need to check that the phone number does not already exist in my DB. The problem is that phone numbers in the DB could have things like dashes and parenthesis and possibly other thi... |
Does anyone know of a faster decimal implementation in python?
As the example below demonstrates, the standard library's decimal module is ~100 times slower than float.
from timeit import Timer
def run(val, the_class):
test = the_class(1)
for c in xrange(10000):
d = the_class(val)
d + test
... | If you're looking for a faster decimal implementation than Python's built-in `decimal` module, there are a few alternatives you might consider:
### 1. **NumPy**
While not strictly a decimal library, NumPy provides support for numerical operations with a data type `numpy.float64`, which can offer better performance fo... | 18,821 | [
{
"from": "human",
"value": "Does anyone know of a faster decimal implementation in python?\nAs the example below demonstrates, the standard library's decimal module is ~100 times slower than float.\nfrom timeit import Timer\n\ndef run(val, the_class):\n test = the_class(1)\n for c in xrange(10000):\... |
PowerShell v1.0 is obviously a console based administrative shell. It doesn't really require a GUI interface. If one is required, like the Exchange 2007 management GUI, it is built on top of PowerShell. You can create your own GUI using Windows Forms in a PowerShell script. My question is, "What sort of PowerShell scri... | Creating a graphical interface for PowerShell scripts can significantly enhance user experience, especially for those who may not be familiar with command-line interfaces. Here are some types of PowerShell scripts and management tasks that could benefit from a simple graphical interface:
### 1. **User Management**
- *... | 15,904 | [
{
"from": "human",
"value": "PowerShell v1.0 is obviously a console based administrative shell. It doesn't really require a GUI interface. If one is required, like the Exchange 2007 management GUI, it is built on top of PowerShell. You can create your own GUI using Windows Forms in a PowerShell script. My q... |
I want to watch a folder tree on a network server for changes. The files all have a specific extension. There are about 200 folders in the tree and about 1200 files with the extension I am watching.
I can't write a service to run on the server (off-limits!) so the solution has to be local to the client. Timeliness is n... | Watching a folder tree on a network server can be efficiently done using the .NET `System.IO.FileSystemWatcher`, but there are considerations you need to be aware of, especially in a network environment where server performance and network traffic can be impacted. Let’s discuss the various options you mentioned and pro... | 19,825 | [
{
"from": "human",
"value": "I want to watch a folder tree on a network server for changes. The files all have a specific extension. There are about 200 folders in the tree and about 1200 files with the extension I am watching.\nI can't write a service to run on the server (off-limits!) so the solution has ... |
So, I'm working under the assumption that we have typed languages because we make a lot of mistakes... so typing is one way to have the compiler do a lot of checks for us and help us out a bit (please let me know if it is my assumptions that's incorrect).
However, if we introduce casting to a typed language, don't we r... | Your assumptions about the role of typed languages and the potential pitfalls of type casting are on the right track, but let’s clarify and expand on them a bit.
### Why We Have Typed Languages
1. **Error Detection**: One of the primary purposes of typing systems is to catch errors at compile time rather than at runt... | 17,514 | [
{
"from": "human",
"value": "So, I'm working under the assumption that we have typed languages because we make a lot of mistakes... so typing is one way to have the compiler do a lot of checks for us and help us out a bit (please let me know if it is my assumptions that's incorrect).\nHowever, if we introdu... |
In sharepoint there is a content place holder called PlaceHolderPageTitlteInTitleArea. I'm trying to remove everything in it from a custom RenderingTemplate that I placed in CONTROLTEMPLATES. So is it possible to achieve this either by using inline code or some other ways.
Right now I've fixed it with this code in my S... | In SharePoint, if you are using a custom Rendering Template and you want to manipulate the content of `PlaceHolderPageTitleInTitleArea`, your approach using JavaScript is one way to achieve it, especially if you're looking to hide or modify the display properties of elements after they have been rendered.
Your current... | 19,553 | [
{
"from": "human",
"value": "In sharepoint there is a content place holder called PlaceHolderPageTitlteInTitleArea. I'm trying to remove everything in it from a custom RenderingTemplate that I placed in CONTROLTEMPLATES. So is it possible to achieve this either by using inline code or some other ways.\nRigh... |
Is there some way to cache a generated report in the reporting services, so that I could later export it to some other format ?
I.e., currently, I'm generating an HTML version of the report (throught the webservice) and if the users asks for an excel file, I generate it again, this time in excel. The problem is, that... | In SQL Server Reporting Services (SSRS), caching reports can help you achieve the functionality you're looking for, where the report data is generated only once and can then be exported in multiple formats without having to reprocess the report each time.
### Caching Mechanism in SSRS
1. **Report Caching**: SSRS supp... | 20,631 | [
{
"from": "human",
"value": "Is there some way to cache a generated report in the reporting services, so that I could later export it to some other format ? \nI.e., currently, I'm generating an HTML version of the report (throught the webservice) and if the users asks for an excel file, I generate it again... |
Is it possible to impersonate a user without supplying user name/password? Basically, I'd like to get the CSIDL_LOCAL_APPDATA for a user (not the current one) using the ShGetFolderPath() function. All I currently have is a SID for that user.
| Impersonating a user in Windows without providing a username and password typically requires elevated permissions or a specific context where you have access to a user's token. In your case, since you already have the SID (Security Identifier) of the user, you can potentially impersonate the user if you can obtain thei... | 19,643 | [
{
"from": "human",
"value": "Is it possible to impersonate a user without supplying user name/password? Basically, I'd like to get the CSIDL_LOCAL_APPDATA for a user (not the current one) using the ShGetFolderPath() function. All I currently have is a SID for that user.\n"
},
{
"from": "gpt",
"v... |
Can you suggest an asp.net 3.5 hosting provider with continuous integration (cctray – nant builds) and source control facilities (svn)?
My requirement would be something like this:
I checkin to a svn branch (say trunk) on the hosting provider space.
CruiseControl.NET on the server fires off a build.
I see success/... | When looking for an ASP.NET 3.5 hosting provider that supports continuous integration with CruiseControl.NET and source control with SVN, you'll want to find a host that provides full access to the server for configuration and management. Here are a few providers that may meet your requirements:
1. **DiscountASP.NET**... | 20,356 | [
{
"from": "human",
"value": "Can you suggest an asp.net 3.5 hosting provider with continuous integration (cctray – nant builds) and source control facilities (svn)? \nMy requirement would be something like this: \n\nI checkin to a svn branch (say trunk) on the hosting provider space.\nCruiseControl.NET on... |
Not quite sure how to troubleshoot this. I'm maintaining an ASP site, its mostly static, but there's this one include page which brings the menu.
Just recently I replaced some images, but now when I try the site, I get a prompt for a password as if It were looking for something on the local network!
I checked, all ima... | It sounds like you're encountering an authentication prompt when trying to access your ASP site, which can be quite perplexing, especially since it seems to be related to a recent change in your images. Here are several troubleshooting steps you can take to help resolve the issue:
1. **Check Image Paths**: Verify that... | 21,963 | [
{
"from": "human",
"value": "Not quite sure how to troubleshoot this. I'm maintaining an ASP site, its mostly static, but there's this one include page which brings the menu.\nJust recently I replaced some images, but now when I try the site, I get a prompt for a password as if It were looking for something... |
How does Stackoverflow implement the resizable textarea?
Is that something they rolled themselves or is it a publicly available component that I can easily attach to textareas on my sites?
I found this question and it doesn't quite do what I want.
autosizing-textarea
That talks more about automatically resizing texta... | Stack Overflow implements a resizable textarea feature using a combination of CSS and JavaScript, allowing users to adjust the size of the text area by dragging its corner. While you can create a similar functionality by yourself, there are also publicly available libraries that provide resizable textarea components.
... | 18,650 | [
{
"from": "human",
"value": "How does Stackoverflow implement the resizable textarea?\nIs that something they rolled themselves or is it a publicly available component that I can easily attach to textareas on my sites? \nI found this question and it doesn't quite do what I want.\nautosizing-textarea\nThat ... |
I want to create a collection in VB.NET, but I only want it to accept objects of a certain type. For example, I want to create a class called "FooCollection" that acts like a collection in every way, but only accepts objects of type "Foo".
I thought I could do this using generics, using the following syntax:
Public... | You're on the right track with your solution using `List(Of Foo)`. In VB.NET, you can easily create a strongly-typed collection by inheriting from `List(Of T)`, which is a generic list class that allows you to define what type of objects it will contain. By inheriting from `List(Of Foo)`, you can ensure that your `FooC... | 17,274 | [
{
"from": "human",
"value": "I want to create a collection in VB.NET, but I only want it to accept objects of a certain type. For example, I want to create a class called \"FooCollection\" that acts like a collection in every way, but only accepts objects of type \"Foo\".\nI thought I could do this using ge... |
How do we decide on the best implementation of hashCode() method for a collection (assuming that equals method has been overridden correctly) ?
| The `hashCode()` method is crucial in ensuring that hash-based collections (like `HashMap`, `HashSet`, etc.) function correctly. When implementing `hashCode()` for a class that will be used in a collection, you should follow certain principles to ensure consistency and efficiency.
Here are some guidelines to help you ... | 17,866 | [
{
"from": "human",
"value": "How do we decide on the best implementation of hashCode() method for a collection (assuming that equals method has been overridden correctly) ?\n"
},
{
"from": "gpt",
"value": "The `hashCode()` method is crucial in ensuring that hash-based collections (like `HashMap`... |
I have a number of RGBA pixels, each of them has an alpha component.
So I have a list of pixels: (p0 p1 p2 p3 p4 ... pn) where p_0_ is the front pixel and p_n_ is the farthest (at the back).
The last (or any) pixel is not necessary opaque, so the resulting blended pixel can be somehow transparent also.
I'm blending fro... | Blending RGBA colors involves combining the colors of multiple pixels while considering their alpha (transparency) values. The alpha value of a pixel determines how much of that pixel's color contributes to the final color of the blend. The challenge lies in ensuring that the blending correctly reflects the visual effe... | 19,849 | [
{
"from": "human",
"value": "I have a number of RGBA pixels, each of them has an alpha component.\nSo I have a list of pixels: (p0 p1 p2 p3 p4 ... pn) where p_0_ is the front pixel and p_n_ is the farthest (at the back).\nThe last (or any) pixel is not necessary opaque, so the resulting blended pixel can be... |
Have a look at this very simple example WPF program:
<Window x:Class="WpfApplication1.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Window1" Height="300" Width="300">
<GroupBox>
<GroupBox.Header>
... | Yes, the issue you are experiencing is known and can occur due to the way the `GroupBox` handles mouse events, particularly when it comes to its borders. When the `CheckBox` is placed within the `GroupBox.Header`, there is a possibility that clicking on the border of the `GroupBox` can interfere with the `CheckBox`'s a... | 20,122 | [
{
"from": "human",
"value": "Have a look at this very simple example WPF program:\n<Window x:Class=\"WpfApplication1.Window1\"\n xmlns=\"http://schemas.microsoft.com/winfx/2006/xaml/presentation\"\n xmlns:x=\"http://schemas.microsoft.com/winfx/2006/xaml\"\n Title=\"Window1\" Height=\"300\" Width=\"... |
Ok, this is a bit of a cheeky question. I want to build a simple text editor (using my own text mode screen handling). I just want a good example of data structures that can be used to represent the text buffer, and some simple examples of char/text insertion/deletion. I can handle all the rest of the code myself (file... | Building a simple text editor is a fun project, and using the right data structures can make a big difference in how efficiently you handle text manipulation. Here are some common data structures you can consider for representing your text buffer, along with simple examples of text insertion and deletion.
### Data Str... | 20,404 | [
{
"from": "human",
"value": "Ok, this is a bit of a cheeky question. I want to build a simple text editor (using my own text mode screen handling). I just want a good example of data structures that can be used to represent the text buffer, and some simple examples of char/text insertion/deletion. I can han... |
I have a report created in Crystal (the version that comes with Visual Studio 2005) that contains an IFieldObject that I want to use to display some rich text. I have set the TextFormat of the IFieldObject to crRTFText, however when I run the report the textbox displays all the rtf markup rather than actually displayi... | When working with Crystal Reports, especially in older versions like the one integrated with Visual Studio 2005, handling rich text (RTF) correctly requires a few specific steps. Since you're seeing the RTF markup instead of formatted text, it indicates that the report is not interpreting the RTF correctly. Here are so... | 19,095 | [
{
"from": "human",
"value": "I have a report created in Crystal (the version that comes with Visual Studio 2005) that contains an IFieldObject that I want to use to display some rich text. I have set the TextFormat of the IFieldObject to crRTFText, however when I run the report the textbox displays all the... |
just curious to know which CPU architectures support compare and swap atomic primitives?
| Compare-and-swap (CAS) is a common atomic operation used in concurrent programming to enable safe manipulation of shared data. Several CPU architectures support CAS as part of their instruction set or through specific atomic operations. Here are some notable CPU architectures that provide compare-and-swap atomic primit... | 19,817 | [
{
"from": "human",
"value": "just curious to know which CPU architectures support compare and swap atomic primitives? \n"
},
{
"from": "gpt",
"value": "Compare-and-swap (CAS) is a common atomic operation used in concurrent programming to enable safe manipulation of shared data. Several CPU archi... |
I was wondering if there is any way to escape a CDATA end token (]]>) within a CDATA section in an xml document. Or, more generally, if there is some escape sequence for using within a CDATA (but if it exists, I guess it'd probably only make sense to escape begin or end tokens, anyway).
Basically, can you have a begin... | In XML, the CDATA section is defined as a way to include text that should not be parsed by the XML parser. A CDATA section begins with `<![CDATA[` and ends with `]]>`. The challenge arises because the ending sequence `]]>` is a special marker that signals the conclusion of the CDATA section, and there is no official wa... | 23,318 | [
{
"from": "human",
"value": "I was wondering if there is any way to escape a CDATA end token (]]>) within a CDATA section in an xml document. Or, more generally, if there is some escape sequence for using within a CDATA (but if it exists, I guess it'd probably only make sense to escape begin or end tokens, ... |
Given two image buffers (assume it's an array of ints of size width * height, with each element a color value), how can I map an area defined by a quadrilateral from one image buffer into the other (always square) image buffer? I'm led to understand this is called "projective transformation".
I'm also looking for a gen... | To perform a projective transformation (also known as a perspective transformation) of a quadrilateral area from one image buffer to another, you can follow a series of mathematical steps. Below is a general outline of the process, which you can implement in any programming language.
### Steps to Map a Quadrilateral U... | 18,346 | [
{
"from": "human",
"value": "Given two image buffers (assume it's an array of ints of size width * height, with each element a color value), how can I map an area defined by a quadrilateral from one image buffer into the other (always square) image buffer? I'm led to understand this is called \"projective t... |
I have followed all the instructions here: http://www.tonyspencer.com/2003/10/22/curl-with-php-and-apache-on-windows/
to install & config apache
get the PHP5 packages
and get the CURL packages.
I run the apache and run a PHP script. no problem.
but when I run the php script with curl, it fails.
It returns: **Call to ... | It sounds like you're experiencing a frustrating issue with getting cURL to work with PHP on your Apache setup in Windows. Here are some steps to help you troubleshoot and hopefully resolve the problem:
1. **Check PHP Version Compatibility**: Ensure that the version of cURL you downloaded is compatible with your versi... | 18,443 | [
{
"from": "human",
"value": "I have followed all the instructions here: http://www.tonyspencer.com/2003/10/22/curl-with-php-and-apache-on-windows/\nto install & config apache\nget the PHP5 packages\nand get the CURL packages.\nI run the apache and run a PHP script. no problem.\nbut when I run the php script... |
I get a mysql error:
#update (ActiveRecord::StatementInvalid) "Mysql::Error: #HY000Got error 139 from storage engine:
When trying to update a text field on a record with a string of length 1429 characters, any ideas on how to track down the problem?
Below is the stacktrace.
from /var/www/releases/20081002155111/vendor... | The MySQL error you are encountering, `#HY000Got error 139 from storage engine`, typically indicates an issue with the storage engine used by your MySQL database. It can often be related to the InnoDB storage engine, which might be facing issues like corruption or insufficient resources. Here are several steps you can ... | 22,250 | [
{
"from": "human",
"value": "I get a mysql error:\n#update (ActiveRecord::StatementInvalid) \"Mysql::Error: #HY000Got error 139 from storage engine:\nWhen trying to update a text field on a record with a string of length 1429 characters, any ideas on how to track down the problem?\nBelow is the stacktrace. ... |
If I have an Address object which implements IEditableObject, I might have EndEdit implementation like this:
public void EndEdit()
{
// BeginEdit would set _editInProgress and update *Editing fields;
if (_editInProgress)
{
_line1 = _line1Editing;
_line2 = _line2Editing;
_city = _city... | You're correct in your assessment that handling atomic updates in the context of the `IEditableObject` implementation is crucial, especially when dealing with multiple properties. The problem you've highlighted is a classic issue where partial updates can lead to an inconsistent state if an error occurs during the upda... | 18,675 | [
{
"from": "human",
"value": "If I have an Address object which implements IEditableObject, I might have EndEdit implementation like this:\npublic void EndEdit()\n{\n // BeginEdit would set _editInProgress and update *Editing fields;\n if (_editInProgress)\n {\n _line1 = _line1Editing;\n ... |
I'm curious if anyone have any really good tutorials/articles/books for learning about stack machines in general, and the JVM in particular. I know these ones:
http://www.artima.com/insidejvm/applets/EternalMath.html
http://www.ibm.com/developerworks/ibm/library/it-haggar_bytecode/
http://www.theserverside.com/tt/artic... | It sounds like you're looking for comprehensive resources on stack machines and the Java Virtual Machine (JVM). In addition to the materials you've already listed, here are some more recommendations that should provide valuable insights and deepen your understanding:
### Books
1. **"The Java Virtual Machine Specificat... | 20,219 | [
{
"from": "human",
"value": "I'm curious if anyone have any really good tutorials/articles/books for learning about stack machines in general, and the JVM in particular. I know these ones:\nhttp://www.artima.com/insidejvm/applets/EternalMath.html\nhttp://www.ibm.com/developerworks/ibm/library/it-haggar_byte... |
I'm using SqlServer for the first time, and in every single one of our create procedure scripts there is a block of code like below to remove the procedure if it already exists:
IF EXISTS (SELECT *
FROM information_schema.routines
WHERE routine_name = 'SomeProcedureName'
AND routine_typ... | You're on the right track in wanting to create a stored procedure that encapsulates the logic for dropping existing stored procedures. However, there is a small issue with how you're trying to drop the procedure within your `DropIfRequired` stored procedure. In T-SQL, you cannot use a variable directly in the `DROP PRO... | 22,964 | [
{
"from": "human",
"value": "I'm using SqlServer for the first time, and in every single one of our create procedure scripts there is a block of code like below to remove the procedure if it already exists:\nIF EXISTS (SELECT *\n FROM information_schema.routines\n WHERE routine_name = 'S... |
Background:
I am developing a site in Asp.net 2.0 . Up until now i was handling both the design and development of the site. I used css for the design part.
Now the company wants to outsource the design work to a web designer.
Question:
How exactly are a designer and developer supposed to coordinate
What specificat... | Coordinating between a web designer and a developer involves clear communication and a structured workflow. Here are some steps and specifications you should consider when outsourcing the design work:
### 1. **Establish Communication:**
- **Regular Meetings:** Set up regular check-ins to discuss progress, expectati... | 16,014 | [
{
"from": "human",
"value": "Background:\nI am developing a site in Asp.net 2.0 . Up until now i was handling both the design and development of the site. I used css for the design part.\nNow the company wants to outsource the design work to a web designer. \nQuestion:\nHow exactly are a designer and deve... |
I need to ask for input in console and wait for few sec may be a min after that I need to default to some value. How can basically time our on console input in c# and proceed with default settings? If you have sample code that would be great.
| In C#, you can implement a timeout for console input by using a combination of a separate thread to wait for input and a timer. If the input isn't received within the specified timeout period, you can proceed with default settings.
Here’s a sample code demonstrating how you can achieve this:
```csharp
using System;
u... | 23,240 | [
{
"from": "human",
"value": "I need to ask for input in console and wait for few sec may be a min after that I need to default to some value. How can basically time our on console input in c# and proceed with default settings? If you have sample code that would be great.\n"
},
{
"from": "gpt",
"... |
For a company with many development projects, should you create multiple FitNesse wikis (one for each project/product) or contain them all within a large wiki for everything?
Advantages of one large wiki is the ability to easily link to other products in the company and that it is a one-stop location for all the FitNes... | When deciding whether to create multiple FitNesse wikis or maintain a single large wiki for a company with multiple development projects, there are several factors to consider. Both options have their advantages and disadvantages, and the best choice often depends on the specific context and needs of the organization. ... | 19,946 | [
{
"from": "human",
"value": "For a company with many development projects, should you create multiple FitNesse wikis (one for each project/product) or contain them all within a large wiki for everything?\nAdvantages of one large wiki is the ability to easily link to other products in the company and that it... |
Does anyone have a good complex object marshalling example using the kSOAP package?
| Certainly! To provide a good example of complex object marshalling using the kSOAP package in Android, I'll walk you through a scenario where we create a complex object, marshal it, and send it to a SOAP web service.
### Step 1: Set Up kSOAP
First, make sure you have the kSOAP library added to your Android project. Y... | 13,535 | [
{
"from": "human",
"value": "Does anyone have a good complex object marshalling example using the kSOAP package?\n"
},
{
"from": "gpt",
"value": "Certainly! To provide a good example of complex object marshalling using the kSOAP package in Android, I'll walk you through a scenario where we creat... |
I'm looking for a technique (javascript, CSS, whatever ???) that will let me control the amount of a string that is displayed. The string is the result of a search (and therefore not initially known). A simple Character count approach is trivial, but not acceptable, as it needs to handle proportional fonts. In otherwor... | To control the display of a string to fit within a certain pixel width while using CSS and JavaScript, you can utilize a combination of the CSS property `text-overflow: ellipsis;` with a fixed width and the `white-space: nowrap;` property. Here's a step-by-step guide on how to implement this:
### Step 1: HTML Structur... | 19,227 | [
{
"from": "human",
"value": "I'm looking for a technique (javascript, CSS, whatever ???) that will let me control the amount of a string that is displayed. The string is the result of a search (and therefore not initially known). A simple Character count approach is trivial, but not acceptable, as it needs ... |
I am trying to create a jar file which includes some class and java files needed, but I also would like to include some extra xml, xsl, html, txt (README) files.
I am using Eclipse on Windows XP.
Is there an easy way for me to set up a directory structure and package all my files into a jar?
| Yes, creating a JAR file that includes not only your compiled Java classes but also other resources such as XML, XSL, HTML, and text files is straightforward in Eclipse. Here’s a step-by-step guide to help you set it up:
### Step 1: Create a Directory Structure
1. **Organize Your Project:**
- Open your project in ... | 18,744 | [
{
"from": "human",
"value": "I am trying to create a jar file which includes some class and java files needed, but I also would like to include some extra xml, xsl, html, txt (README) files.\nI am using Eclipse on Windows XP.\nIs there an easy way for me to set up a directory structure and package all my fi... |
Is it possible to create a SQL query which will return one column which contains the dates from a given date range (e.g. all dates from last year till today). E.g.
dat
----
2007-10-01
2007-10-02
2007-10-03
2007-10-04
...
I am wondering if this is possible as an alternative to creating a table which holds all those dat... | Yes, you can generate a series of dates within a given range in MySQL without needing a pre-calculated table. While MySQL doesn't have built-in functions specifically for generating sequences of numbers or dates like some other databases, you can achieve this using a recursive Common Table Expression (CTE) or by levera... | 19,232 | [
{
"from": "human",
"value": "Is it possible to create a SQL query which will return one column which contains the dates from a given date range (e.g. all dates from last year till today). E.g.\ndat\n----\n2007-10-01\n2007-10-02\n2007-10-03\n2007-10-04\n...\n\nI am wondering if this is possible as an alterna... |
I would like to draw a diagram in HTML. The positioning structure looks like this:
<div id='hostDiv'>
<div id='backgroundDiv'>
... drawing the background ...
</div>
<div id='foregroundDiv' style='position: absolute;'>
... drawing the foreground ...
</div>
</div>
The foreground contains a Table element ... | To predict the final height of a dynamically populated Table element in the foreground (`foregroundDiv`) and set the correct height of the background (`backgroundDiv`), you can use JavaScript to create the Table in a hidden state, measure its height, and then use that height to adjust the background. Here’s how you can... | 13,613 | [
{
"from": "human",
"value": "I would like to draw a diagram in HTML. The positioning structure looks like this:\n<div id='hostDiv'>\n <div id='backgroundDiv'>\n ... drawing the background ...\n </div>\n <div id='foregroundDiv' style='position: absolute;'>\n ... drawing the foreground ...\n </div>\... |
I can't find documentation for it, even on MSDN...
| It looks like you’re having trouble finding documentation on a specific topic. Can you provide more details about what you're looking for? Whether it's a programming language, a specific library, or a technology, I can help guide you in the right direction or provide information based on what I know! | 26,886 | [
{
"from": "human",
"value": "I can't find documentation for it, even on MSDN...\n"
},
{
"from": "gpt",
"value": "It looks like you’re having trouble finding documentation on a specific topic. Can you provide more details about what you're looking for? Whether it's a programming language, a speci... |
Any ideas why?
On the following link, where it says "So..." there should be an embedded swf.
http://blog.iainlobb.com/2008/10/wrong-door-creating-papervision3d.html
| It appears that you're trying to view an embedded SWF file on a webpage, and it's not displaying correctly. There could be several reasons for this issue:
1. **Flash Deprecation**: Adobe Flash Player has been officially discontinued as of December 31, 2020. Major browsers have also removed support for Flash content. T... | 23,160 | [
{
"from": "human",
"value": "Any ideas why? \nOn the following link, where it says \"So...\" there should be an embedded swf.\nhttp://blog.iainlobb.com/2008/10/wrong-door-creating-papervision3d.html\n"
},
{
"from": "gpt",
"value": "It appears that you're trying to view an embedded SWF file on a ... |
I am trying to update a custom firefox extension that I created for some tasks at work. Basically it is a sidebar that pulls up one of our webpages in an iframe for various purposes. When moving to Firefox 3 the iframe won't appear at all.
Below is an example of the XUL files that contains extension specific code inclu... | In Firefox 3, several changes were made that could affect how iframes are handled in extensions. One notable change is related to security restrictions on iframes, particularly when loading external content.
Here are a few suggestions to help you troubleshoot the issue with your sidebar iframe:
1. **Check Content Sec... | 21,813 | [
{
"from": "human",
"value": "I am trying to update a custom firefox extension that I created for some tasks at work. Basically it is a sidebar that pulls up one of our webpages in an iframe for various purposes. When moving to Firefox 3 the iframe won't appear at all.\nBelow is an example of the XUL files t... |
I am building an application as a library, but to make sure I can get the output that I'd like, I switched it over to produce an exe. As soon as I did, I got several errors about unresolved external symbols.
At first I thought that I didn't have a path set to the 3rd party library that I was referencing, so I added th... | The error you're encountering (`LNK2019: unresolved external symbol`) typically indicates that the linker cannot find the implementation for a function you are trying to call. In your case, it seems that you are using the Xerces-C++ library, and the linker cannot find the implementation for the `XMLPlatformUtils::Initi... | 19,482 | [
{
"from": "human",
"value": "I am building an application as a library, but to make sure I can get the output that I'd like, I switched it over to produce an exe. As soon as I did, I got several errors about unresolved external symbols.\nAt first I thought that I didn't have a path set to the 3rd party lib... |
Scenario: Attempting to import many (>100), large(>1M recs) flat-files (csv).
Problem: Many records are missing field delimiters.
Asking: Is there a parsing tool that will attempt to define and validate the file and allow you to make "in-line" corrections?
ETA: I'm attempting to import this files to MS SQL Server using... | Importing large flat files with missing delimiters can be challenging, especially when dealing with more than 100 files. While the MS SQL Server DTS Import Wizard is a useful tool, it may not provide the level of flexibility needed to correct issues in-line. However, there are several strategies and tools you can use t... | 19,165 | [
{
"from": "human",
"value": "Scenario: Attempting to import many (>100), large(>1M recs) flat-files (csv).\nProblem: Many records are missing field delimiters.\nAsking: Is there a parsing tool that will attempt to define and validate the file and allow you to make \"in-line\" corrections?\nETA: I'm attempti... |
I've got this code:
rs1 = getResults(sSQL1)
rs2 = getResults(sSQL2)
rs1 and rs2 and 2D arrays. The first index represents the number of columns (static) and the second index represents the number of rows (dynamic).
I need to join the two arrays and store them in rs3. I don't know what type rs1 and rs2 are though.
| To join two 2D arrays in a way that creates a new 2D array (`rs3`), we need to understand the structure of the arrays. In your case, you have two arrays `rs1` and `rs2`, where the first index indicates the number of columns and the second index indicates the number of rows.
Assuming that both arrays have the same numb... | 20,006 | [
{
"from": "human",
"value": "I've got this code:\nrs1 = getResults(sSQL1)\nrs2 = getResults(sSQL2)\n\nrs1 and rs2 and 2D arrays. The first index represents the number of columns (static) and the second index represents the number of rows (dynamic).\nI need to join the two arrays and store them in rs3. I d... |
This is more of a design question.
I am building a tool that displays business objects in various ways (ie Tree Nodes, List View Items, Combo Boxes, Text Fields, etc). Anytime the user changes any of one of them, an event is raised that signals that that business object has been changed or the collection that it bel... | You've outlined a common scenario in UI design where multiple representations of a data model (business objects) need to stay in sync with each other as changes occur. This problem can be solved using several design patterns and architectures that help maintain a clean and elegant solution. Here are a few approaches to... | 17,121 | [
{
"from": "human",
"value": "This is more of a design question. \nI am building a tool that displays business objects in various ways (ie Tree Nodes, List View Items, Combo Boxes, Text Fields, etc). Anytime the user changes any of one of them, an event is raised that signals that that business object has ... |
I need to do some performance benchmarks on .NET programs (C#) in Windows, but I haven't done benchmarking much in the Windows world. I've looked into using the Windows 2000/XP Performance monitor with custom counters for this, but I don't think this is quite what I want.
Are there any good system facilities for this ... | When it comes to benchmarking .NET programs on Windows, there are several approaches you can take beyond just using `System.Diagnostics.Stopwatch`. Here are some options for effective performance benchmarking:
### 1. **System.Diagnostics.Stopwatch**
As you mentioned, `System.Diagnostics.Stopwatch` is a great starting ... | 22,429 | [
{
"from": "human",
"value": "I need to do some performance benchmarks on .NET programs (C#) in Windows, but I haven't done benchmarking much in the Windows world. I've looked into using the Windows 2000/XP Performance monitor with custom counters for this, but I don't think this is quite what I want.\nAre ... |
Can someone explain how to use if-then statements and for loops in Makefiles? I can't seem to find any good documentation with examples.
| Makefiles are used by the `make` utility to automate the build process for projects. They allow you to define a set of rules for building targets from sources. While Makefiles primarily focus on dependencies and commands, they also have support for conditional statements (if-then) and loops.
### If-Then Statements in ... | 17,666 | [
{
"from": "human",
"value": "Can someone explain how to use if-then statements and for loops in Makefiles? I can't seem to find any good documentation with examples.\n"
},
{
"from": "gpt",
"value": "Makefiles are used by the `make` utility to automate the build process for projects. They allow y... |
I've got an error in my build which says:
Error 12 Cannot implicitly convert
type
'System.Collections.Generic.IEnumerator< BaseClass>'
to
'System.Collections.Generic.IEnumerator< IParentClass>'.
An explicit conversion exists (are you
missing a cast?)
Is it wrong to simply cast it away?
This is my code:
p... | In your code, you're facing an issue because `IEnumerator<BaseClass>` cannot be implicitly converted to `IEnumerator<IParentClass>`, even if `BaseClass` implements `IParentClass`. The reason is that generic types in C# are not covariant, which means you can't directly cast one generic interface to another, even if they... | 23,261 | [
{
"from": "human",
"value": "I've got an error in my build which says:\n\nError 12 Cannot implicitly convert\n type\n 'System.Collections.Generic.IEnumerator< BaseClass>'\n to\n 'System.Collections.Generic.IEnumerator< IParentClass>'.\n An explicit conversion exists (are you\n missing a cast?)\n\nIs ... |
I'm writing an editor for large archive files (see below) of 4GB+, in native&managed C++.
For accessing the files, I'm using file mapping (see below) like any sane person. This is absolutely great for reading data, but a problem arises in actually editing the archive.
File mapping does not allow resizing a file while i... | Working with large binary archive files, especially with the requirement for file mapping and real-time edits, presents some challenges, particularly with the need for resizing and modifying content. Here are some strategies that may help you manage these issues while keeping performance in mind:
### 1. **Segmented Fi... | 20,905 | [
{
"from": "human",
"value": "I'm writing an editor for large archive files (see below) of 4GB+, in native&managed C++.\nFor accessing the files, I'm using file mapping (see below) like any sane person. This is absolutely great for reading data, but a problem arises in actually editing the archive.\nFile map... |
I have tree tables, Customer, Invoice and InvoiceRow with the standard relations.
These I have to export in one fixed field length file with the first two characters of each row identifying the row type. The row types have different specifications.
I could probably do it with a nested loop in a script block, but this ... | Creating an SSIS package to export data from your three tables (Customer, Invoice, and InvoiceRow) into a fixed-length file with specific row type identifiers is a good approach. While a nested loop can work, it's often more efficient and manageable to use SSIS’s built-in components and tasks for this.
Here's a step-b... | 21,262 | [
{
"from": "human",
"value": "I have tree tables, Customer, Invoice and InvoiceRow with the standard relations. \nThese I have to export in one fixed field length file with the first two characters of each row identifying the row type. The row types have different specifications.\nI could probably do it with... |
The rich text editor must be implemented in Java, provide Swing support, and preferably be open source.
I'm looking to integrate it into an existing Java/Swing application.
Thanks.
| There are several open-source rich text editors that can be integrated into a Java Swing application. Here are a few options you can consider:
### 1. **JEditorPane (Built-in Swing Component)**
- **Description**: While not a full-featured rich text editor, `JEditorPane` is a built-in Swing component that can be used to... | 19,077 | [
{
"from": "human",
"value": "The rich text editor must be implemented in Java, provide Swing support, and preferably be open source.\nI'm looking to integrate it into an existing Java/Swing application. \nThanks.\n"
},
{
"from": "gpt",
"value": "There are several open-source rich text editors th... |
I want to deploy my web application (asp.net mvc), and I need to remove all the codebehind files from my project.
Any scripts that you guys know of to do this?
I prefer using a script since I can tweak it if need be.
| You can use a PowerShell script to remove all code-behind files from your ASP.NET MVC project. Code-behind files in an ASP.NET MVC project typically have the `.cs` or `.vb` file extensions for C# and VB.NET, respectively. If you want to remove files related to view files (like `.cshtml`), ensure you're only targeting t... | 19,149 | [
{
"from": "human",
"value": "I want to deploy my web application (asp.net mvc), and I need to remove all the codebehind files from my project.\nAny scripts that you guys know of to do this?\nI prefer using a script since I can tweak it if need be.\n"
},
{
"from": "gpt",
"value": "You can use a P... |
Something like:
//Get all search data
$search = new search('C:\', '*.exe');
while($item = $search->next())
{
$details = $item->getDetails();
append_details('C:\files.txt', implode_details($details));
}
But in NSIS (http://nsis.sourceforge.net/)
| To perform a similar task in NSIS (Nullsoft Scriptable Install System), you can use a combination of built-in functions to search for files and write details to a file. However, NSIS does not have a direct equivalent for file searching with wildcards like in your PHP example. Instead, we will use the `FindFirst` and `F... | 16,391 | [
{
"from": "human",
"value": "Something like:\n//Get all search data\n$search = new search('C:\\', '*.exe');\nwhile($item = $search->next())\n{\n$details = $item->getDetails();\nappend_details('C:\\files.txt', implode_details($details));\n}\n\nBut in NSIS (http://nsis.sourceforge.net/)\n"
},
{
"from"... |
When I backup or restore a database using MS SQL Server Management Studio, I get a visual indication of how far the process has progressed, and thus how much longer I still need to wait for it to finish. If I kick off the backup or restore with a script, is there a way to monitor the progress, or do I just sit back and... | Yes, you can monitor the progress of a backup or restore operation in SQL Server using dynamic management views (DMVs) or system views, even if you initiated the operation using a script. This allows you to track the status of the operation completely separate from the session where it was initiated.
### Monitoring Ba... | 22,344 | [
{
"from": "human",
"value": "When I backup or restore a database using MS SQL Server Management Studio, I get a visual indication of how far the process has progressed, and thus how much longer I still need to wait for it to finish. If I kick off the backup or restore with a script, is there a way to monito... |
Is it possible to check out subdirectories of a repository in Git?
Imagine I am setting up a new WordPress installation. I will create two new directories for my plugin and theme customization:
wordpress/wp-content/plugins/myplugins/
wordpress/wp-content/themes/mytheme/
I want to maintain these directories via Git. ... | In Git, the concept of checking out subdirectories directly from a repository, as you might do in Subversion, doesn't exist in the same way. However, you can achieve similar functionality through a few different approaches:
### 1. Use a Single Repository with Subdirectories
You can simply keep your `myplugins` and `m... | 22,951 | [
{
"from": "human",
"value": "Is it possible to check out subdirectories of a repository in Git?\nImagine I am setting up a new WordPress installation. I will create two new directories for my plugin and theme customization:\n\nwordpress/wp-content/plugins/myplugins/ \nwordpress/wp-content/themes/mytheme/\n\... |
I have an application where a Hilbert R-Tree (wikipedia) (citeseer) would seem to be an appropriate data structure. Specifically, it requires reasonably fast spatial queries over a data set that will experience a lot of updates.
However, as far as I can see, none of the descriptions of the algorithms for this data str... | To calculate the Hilbert Value (or Hilbert Index) for a point in a multidimensional space, you need to understand the structure of the Hilbert curve and how it maps n-dimensional space into a one-dimensional space. The Hilbert curve is a continuous fractal space-filling curve that maps points in a multi-dimensional spa... | 17,783 | [
{
"from": "human",
"value": "I have an application where a Hilbert R-Tree (wikipedia) (citeseer) would seem to be an appropriate data structure. Specifically, it requires reasonably fast spatial queries over a data set that will experience a lot of updates.\nHowever, as far as I can see, none of the descri... |
I was wondering if you know somewhere where I can find information on how to build a signature file for docuement retrieval.
Do you know if there is some code out there that I can use or look at?
I have to create a signature file in C++ under linux platform.
UPDATE: Sorry, I appreciatte the help but I was refering to... | Creating a signature file for document retrieval involves generating a compact representation of a document that can be efficiently searched. A signature file is essentially a bit vector that represents the presence or absence of certain terms (or signatures) within documents.
Here’s an overview of how to build a sign... | 18,653 | [
{
"from": "human",
"value": "I was wondering if you know somewhere where I can find information on how to build a signature file for docuement retrieval. \nDo you know if there is some code out there that I can use or look at?\nI have to create a signature file in C++ under linux platform.\n\nUPDATE: Sorry,... |
I am looking to create symlinks (soft links) from Java on a Windows Vista/ 2008 machine. I'm happy with the idea that I need to call out to the JNI to do this. I am after help on the actual C code though. What is the appropriate system call to create the link? Pointers to some good documentation on this subject would b... | Creating symbolic links on Windows from C code can be done using the `CreateSymbolicLink` function, which is part of the Windows API. This function allows you to create a symbolic link to a file or directory.
Here’s how you can create a simple C function to create a symbolic link:
### C Code Example
```c
#include <w... | 19,920 | [
{
"from": "human",
"value": "I am looking to create symlinks (soft links) from Java on a Windows Vista/ 2008 machine. I'm happy with the idea that I need to call out to the JNI to do this. I am after help on the actual C code though. What is the appropriate system call to create the link? Pointers to some g... |
I want to be able to access custom URLs with apache httpclient. Something like this:
HttpClient client = new HttpClient();
HttpMethod method = new GetMethod("media:///squishy.jpg");
int statusCode = client.executeMethod(method);
Can I somehow register a custom URL handler? Or should I just register one with Java, usin... | To achieve access to custom URLs like `media:///squishy.jpg` using Apache HttpClient, you'll need to implement a custom `URLStreamHandler` for your protocol (in this case, `media`). However, Apache HttpClient does not inherently support custom URL protocols out of the box, so you'll have to integrate this with Java's U... | 16,179 | [
{
"from": "human",
"value": "I want to be able to access custom URLs with apache httpclient. Something like this:\nHttpClient client = new HttpClient();\nHttpMethod method = new GetMethod(\"media:///squishy.jpg\");\nint statusCode = client.executeMethod(method);\n\nCan I somehow register a custom URL handle... |
I'm asking in generalities - why would any server not set and return headers and/or status codes? I can't think of a good reason for this. Perhaps I'm overlooking something.
| In general, servers are designed to set and return HTTP headers and status codes as part of the standard communication process with clients (like web browsers or APIs). However, there are a few scenarios where a server might not return headers or status codes:
1. **Misconfiguration**: Sometimes, servers may not be con... | 21,754 | [
{
"from": "human",
"value": "I'm asking in generalities - why would any server not set and return headers and/or status codes? I can't think of a good reason for this. Perhaps I'm overlooking something.\n"
},
{
"from": "gpt",
"value": "In general, servers are designed to set and return HTTP head... |
I want to put a Canvas with an image in my window, and then I want to pack widgets on top of it, so the Canvas acts as a background.
Is it possible to have two states for the pack manager: one for one set of widgets and another for another set?
| Yes, it is possible to use a `Canvas` as a background in a window and stack widgets on top of it in Tkinter (the standard GUI toolkit for Python). To manage two different sets of widgets in a single window, you can create two separate frames, pack the widgets in these frames on the canvas, and then show or hide the fra... | 18,565 | [
{
"from": "human",
"value": "I want to put a Canvas with an image in my window, and then I want to pack widgets on top of it, so the Canvas acts as a background. \nIs it possible to have two states for the pack manager: one for one set of widgets and another for another set?\n"
},
{
"from": "gpt",
... |
I have a class with both a static and a non-static interface in C#. Is it possible to have a static and a non-static method in a class with the same name and signature?
I get a compiler error when I try to do this, but for some reason I thought there was a way to do this. Am I wrong or is there no way to have both stat... | In C#, you cannot have a static method and a non-static (instance) method with the same name and signature in the same class. This is because C# uses the method signature, including the method name and parameters, to distinguish between methods, and the static and non-static context does not change the method signature... | 22,085 | [
{
"from": "human",
"value": "I have a class with both a static and a non-static interface in C#. Is it possible to have a static and a non-static method in a class with the same name and signature?\nI get a compiler error when I try to do this, but for some reason I thought there was a way to do this. Am I ... |
What is the correct way to do this? For example, how would I change a stored procedure with this signature:
CREATE PROCEDURE dbo.MyProcedure
@Param BIT = NULL
AS
SELECT *
FROM dbo.SomeTable T
WHERE T.SomeColumn = @Param
So that giving @Param with a value of 1 or 0 performs the filter, but not specifying it or ... | To modify your stored procedure so that it filters based on the `@Param` value when it is specified (either 1 or 0), but applies no filtering when `@Param` is not specified (or is NULL), you can adjust the `WHERE` clause to conditionally include the filter based on the value of `@Param`.
Here’s how you can implement ... | 23,682 | [
{
"from": "human",
"value": "What is the correct way to do this? For example, how would I change a stored procedure with this signature:\nCREATE PROCEDURE dbo.MyProcedure\n @Param BIT = NULL\nAS\n SELECT *\n FROM dbo.SomeTable T\n WHERE T.SomeColumn = @Param\n\nSo that giving @Param with a value of 1 or... |
I have a curious question about efficiency. Say I have a field on a database that is just a numeric digit that represents something else. Like, a value of 1 means the term is 30 days.
Would it be better (more efficient) to code a SELECT statement like this...
SELECT
CASE TermId
WHEN 1 THEN '30 days'
... | When considering efficiency between the two approaches you've outlined for handling the `TermId` field in your database, let's break down the implications of each method: using a `SELECT` statement with a `CASE` expression versus evaluating `TermId` in the `RowDataBound` event of the `GridView`.
### Method 1: Using a ... | 18,567 | [
{
"from": "human",
"value": "I have a curious question about efficiency. Say I have a field on a database that is just a numeric digit that represents something else. Like, a value of 1 means the term is 30 days.\nWould it be better (more efficient) to code a SELECT statement like this...\nSELECT\n CAS... |
I am working on a calendar application that outputs a list of events in hCalendar format. This includes an element that has a class of "description" which should be used for the event's description. My question is, what markup is allowed in my hCalendar event's description?
I found one example on the hCalendar website ... | In hCalendar, the `description` property is generally expected to be plain text. While you can include basic HTML elements in the description field, it's important to keep in mind that hCalendar is primarily designed for machine readability, so using plain text is preferred for compatibility and simplicity.
However, i... | 22,990 | [
{
"from": "human",
"value": "I am working on a calendar application that outputs a list of events in hCalendar format. This includes an element that has a class of \"description\" which should be used for the event's description. My question is, what markup is allowed in my hCalendar event's description?\nI... |
I am new to web programming and have been exploring issues related to web security.
I have a form where the user can post two types of data - lets call them "safe" and "unsafe" (from the point of view of sql).
Most places recommend storing both parts of the data in database after sanitizing the "unsafe" part (to make i... | Storing "unsafe" data (in your case, user-generated content with arbitrary styling) in files outside of the database is a viable approach, but it does come with a set of considerations, especially concerning security, maintainability, and data integrity. Here are some potential issues and concerns you should keep in mi... | 19,548 | [
{
"from": "human",
"value": "I am new to web programming and have been exploring issues related to web security.\nI have a form where the user can post two types of data - lets call them \"safe\" and \"unsafe\" (from the point of view of sql).\nMost places recommend storing both parts of the data in databas... |
On our Scrum board, tasks start at 'To Do', go to 'In Progress', and when you're done with a task, they move to 'To Verify' before ending up in 'Done'. The 'To Verify' column is when you're done with a task and someone else can have a look at it, test it, and comment on it.
This has proven helpful for errors, better co... | Your Scrum board setup with the additional 'To Verify' column is a great approach for maintaining quality control and ensuring that work is thoroughly reviewed before it's marked as 'Done'. This practice fosters collaboration and helps catch issues that might otherwise be overlooked.
Regarding your question about whet... | 23,835 | [
{
"from": "human",
"value": "On our Scrum board, tasks start at 'To Do', go to 'In Progress', and when you're done with a task, they move to 'To Verify' before ending up in 'Done'. The 'To Verify' column is when you're done with a task and someone else can have a look at it, test it, and comment on it.\nThi... |
Have you guys and gals got any tips or hacks for making the most out of the JavaScript intellisense options in Visual Studio 2008?
Visual Studio shows me the "namespaces" and uses the documentation features (<param> and <summary>). I have not been able to get the <return> documentation feature to work though.
Now, that... | In Visual Studio 2008, getting the most out of JavaScript IntelliSense can indeed be a bit tricky, especially when working with privileged functions and maintaining privacy in your code. Here are a few tips and hacks that might help you expose your public variables and privileged functions to IntelliSense while still e... | 19,916 | [
{
"from": "human",
"value": "Have you guys and gals got any tips or hacks for making the most out of the JavaScript intellisense options in Visual Studio 2008?\nVisual Studio shows me the \"namespaces\" and uses the documentation features (<param> and <summary>). I have not been able to get the <return> doc... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.