instruction stringlengths 14 27.6k | completion stringlengths 3 38.3k | __original_row_idx int64 0 50k | conversations listlengths 2 2 |
|---|---|---|---|
Is there a way to view the register contents in each stack frame in a crash dump?
The registers window seems to contain the registers when the exception occurred but it would be useful to be able to see their contents in each stack frame.
| When analyzing a crash dump, particularly in environments like Windows using debuggers such as WinDbg or Visual Studio, it is indeed possible to view register contents associated with each stack frame, although the method may differ based on the tools and settings in use. Here’s how you can view register contents in ea... | 44,120 | [
{
"from": "human",
"value": "Is there a way to view the register contents in each stack frame in a crash dump?\nThe registers window seems to contain the registers when the exception occurred but it would be useful to be able to see their contents in each stack frame.\n"
},
{
"from": "gpt",
"val... |
How does the SQL Server JDBC Trusted Connection Authentication work? (ie how does the trusted connection authenticate the logged in AD user in such a transparent and elegant fashion and how can I implement a similar authentication solution for my client-server applications in Java without a database connection or any u... | SQL Server JDBC Trusted Connection Authentication allows Java applications to connect to SQL Server using Windows Authentication. This method leverages the current user's Active Directory (AD) credentials without needing to provide a separate username and password.
### How SQL Server JDBC Trusted Connection Authentica... | 42,043 | [
{
"from": "human",
"value": "How does the SQL Server JDBC Trusted Connection Authentication work? (ie how does the trusted connection authenticate the logged in AD user in such a transparent and elegant fashion and how can I implement a similar authentication solution for my client-server applications in Ja... |
I have a databases table with ~50K rows in it, each row represents a job that need to be done. I have a program that extracts a job from the DB, does the job and puts the result back in the db. (this system is running right now)
Now I want to allow more than one processing task to do jobs but be sure that no task is do... | Your approach to managing multiple tasks processing jobs from the database while ensuring that no task gets the same job is generally sound, but there are a few potential issues and improvements to consider.
### Potential Issues:
1. **Race Conditions**: The use of the `UPDATE` statement to assign a job to a worker ba... | 41,343 | [
{
"from": "human",
"value": "I have a databases table with ~50K rows in it, each row represents a job that need to be done. I have a program that extracts a job from the DB, does the job and puts the result back in the db. (this system is running right now)\nNow I want to allow more than one processing task... |
I have a multilingual ASP.NET site; one of the languages is Arabic (ar-SA). To switch between cultures, I use this code:
Thread.CurrentThread.CurrentCulture = CultureInfo.CreateSpecificCulture(Name)
Thread.CurrentThread.CurrentUICulture = New CultureInfo(Name)
When displaying the date of an article, for example, I ju... | To display dates in Arabic using the Gregorian calendar while ensuring that the month names and other date components are rendered in Arabic, you can explicitly specify the Gregorian calendar when formatting the date. Here’s how you can do that:
1. First, ensure you have the necessary using directives at the top of yo... | 44,567 | [
{
"from": "human",
"value": "I have a multilingual ASP.NET site; one of the languages is Arabic (ar-SA). To switch between cultures, I use this code: \nThread.CurrentThread.CurrentCulture = CultureInfo.CreateSpecificCulture(Name)\nThread.CurrentThread.CurrentUICulture = New CultureInfo(Name)\n\nWhen display... |
I have need to write an application which uses a speech recognition engine -- either the built in vista one, or a third party one -- that can display a word or phrase, and recognise when the user reads it (or an approximation of it). I also need to be able to switch quickly between languages, without changing the lang... | Creating an application with the specifications you've described can be quite challenging due to the limitations of speech recognition and text-to-speech engines, especially on older operating systems like Windows XP and Vista. However, here are some recommendations based on your requirements:
### Speech Recognition E... | 41,856 | [
{
"from": "human",
"value": "I have need to write an application which uses a speech recognition engine -- either the built in vista one, or a third party one -- that can display a word or phrase, and recognise when the user reads it (or an approximation of it). I also need to be able to switch quickly bet... |
I'm working on a social networking system that will have comments coming from several different locations. One could be friends, one could be events, one could be groups--much like Facebook. What I'm wondering is, from a practical standpoint, what would be the simplest way to write a comments table? Should I do it a... | Designing a comments system for a social networking platform involves weighing simplicity against flexibility. You have a couple of options, each with its own pros and cons:
### Option 1: Single Comments Table
You create one `comments` table that can be used for all commentable entities (posts, events, groups, etc.). ... | 41,081 | [
{
"from": "human",
"value": "I'm working on a social networking system that will have comments coming from several different locations. One could be friends, one could be events, one could be groups--much like Facebook. What I'm wondering is, from a practical standpoint, what would be the simplest way to ... |
Suppose I have a class 'Application'. In order to be initialised it takes certain settings in the constructor. Let's also assume that the number of settings is so many that it's compelling to place them in a class of their own.
Compare the following two implementations of this scenario.
Implementation 1:
class Applicat... | The debate over the use of nested classes, especially public nested classes, is a nuanced one. Here are some key points to consider regarding the pros and cons of exposing nested classes publicly:
### Pros of Publicly Exposed Nested Classes
1. **Encapsulation of Related Functionality**: As you pointed out, nesting a c... | 41,029 | [
{
"from": "human",
"value": "Suppose I have a class 'Application'. In order to be initialised it takes certain settings in the constructor. Let's also assume that the number of settings is so many that it's compelling to place them in a class of their own.\nCompare the following two implementations of this ... |
When I run get-user|get-member in powershell with the exchange add-in I noticed there is no description property.
Does anyone know if it has been renamed to something else or another way of accessing it?
| In PowerShell, particularly when working with Exchange modules and objects, it's not uncommon to notice that certain properties you might expect to see, such as a "Description" property, might not be present or might be labeled differently.
When you run the command `Get-User | Get-Member`, you're examining the propert... | 42,810 | [
{
"from": "human",
"value": "When I run get-user|get-member in powershell with the exchange add-in I noticed there is no description property.\nDoes anyone know if it has been renamed to something else or another way of accessing it? \n"
},
{
"from": "gpt",
"value": "In PowerShell, particularly ... |
I need a create a specific type of file in OS X. It needs resources in a specific way. Currently, the only way I can find to do this is in AppleScript with an OSAX. This is slow, about 1 second round trip to run, since the OSAX must open, load, do it's job, and quit. I have explored doing it in C, but that would be... | Creating a file with specific resource forks on macOS is a bit complex, as modern macOS uses a different filesystem that no longer supports resource forks in the same way as older versions did. However, you can still manage resource forks in files using the `Xcode` development tools or command line utilities like `rez`... | 43,206 | [
{
"from": "human",
"value": "I need a create a specific type of file in OS X. It needs resources in a specific way. Currently, the only way I can find to do this is in AppleScript with an OSAX. This is slow, about 1 second round trip to run, since the OSAX must open, load, do it's job, and quit. I have ... |
I'm creating some big files (DB exports) with Java and I need to put them somewhere on our SharePoint server. Right now, I'm doing this with IE but I'd like to automate this step, too.
I searched the web and I found some hints to use SOAP but I don't really see to the ground of all this, yet. Can someone provide me wit... | To automate the uploading of files to a SharePoint server that requires NT domain authentication, you can use the WebDAV protocol. This approach is often simpler than using SOAP for file uploads. Below, I'll guide you through using the Apache HttpClient library to interact with SharePoint via WebDAV in Java.
### Prer... | 36,793 | [
{
"from": "human",
"value": "I'm creating some big files (DB exports) with Java and I need to put them somewhere on our SharePoint server. Right now, I'm doing this with IE but I'd like to automate this step, too.\nI searched the web and I found some hints to use SOAP but I don't really see to the ground of... |
Is there any way to get the time down to the Millisecond in MySQL?
| Yes, MySQL supports precision to the millisecond for datetime types. Starting with MySQL 5.6.4, you can use `DATETIME`, `TIME`, and `TIMESTAMP` data types with fractional seconds. To store and retrieve time down to milliseconds, you can define these types with a precision level. Here's how you can do it:
1. **Creating... | 43,889 | [
{
"from": "human",
"value": "Is there any way to get the time down to the Millisecond in MySQL?\n"
},
{
"from": "gpt",
"value": "Yes, MySQL supports precision to the millisecond for datetime types. Starting with MySQL 5.6.4, you can use `DATETIME`, `TIME`, and `TIMESTAMP` data types with fractio... |
A client of mine has told me the program I made for them won't connect to a SQL server named instance, I have a standard SQL server with no named instance so I'm wondering how I can test this. A named instance connection string look like the one below, could the backslash be were my code fails?
Driver={SQL Native Clien... | In your code, the connection string does include a backslash for named instances in SQL Server. If your SQL Server setup doesn't include named instances, you should not have a backslash in your server name. The backslash is specifically used to differentiate between a server name and a named instance.
Here's how you c... | 42,651 | [
{
"from": "human",
"value": "A client of mine has told me the program I made for them won't connect to a SQL server named instance, I have a standard SQL server with no named instance so I'm wondering how I can test this. A named instance connection string look like the one below, could the backslash be wer... |
I'm trying to interface with a cdc card reader which outputs to a virtual com port. How does one go about opening a stream to read from a com port?
| Interfacing with a CDC (Communications Device Class) card reader through a virtual COM port typically involves using serial communication APIs provided by your operating system. Below, I'll outline how to open a stream and read data from a COM port using different programming languages.
### Using Python
If you're usi... | 41,141 | [
{
"from": "human",
"value": "I'm trying to interface with a cdc card reader which outputs to a virtual com port. How does one go about opening a stream to read from a com port?\n"
},
{
"from": "gpt",
"value": "Interfacing with a CDC (Communications Device Class) card reader through a virtual C... |
I'm trying to use SetWindowsHookEx to set up a WH_SHELL hook to get notified of system-wide HSHELL_WINDOWCREATED and HSHELL_WINDOWDESTROYED events. I pass 0 for the final dwThreadId argument which, according to the docs, should "associate the hook procedure with all existing threads running in the same desktop as the c... | Your implementation for setting up a `WH_SHELL` or `WH_CBT` hook looks mostly correct at first glance. However, there are several areas that could be problematic, particularly in terms of thread context, DLL loading, and hook procedures. Below, I'll outline some potential issues and suggestions to help you debug and re... | 41,193 | [
{
"from": "human",
"value": "I'm trying to use SetWindowsHookEx to set up a WH_SHELL hook to get notified of system-wide HSHELL_WINDOWCREATED and HSHELL_WINDOWDESTROYED events. I pass 0 for the final dwThreadId argument which, according to the docs, should \"associate the hook procedure with all existing th... |
I am currently trying to create an upload control with progress bar in MVC using jquery. I keep running into a problem however in that mvc doesn't work in parallel threads?
When I upload a file and show the progress during upload from JS performed through several callbacks to server, I am trying to get information abou... | It sounds like you want to create a file upload feature in an ASP.NET MVC application where you can display a progress bar that updates as the file is being uploaded. In a typical MVC setup, an HTTP request-response cycle is synchronous, which means that you cannot query the server for the upload status while the file ... | 41,977 | [
{
"from": "human",
"value": "I am currently trying to create an upload control with progress bar in MVC using jquery. I keep running into a problem however in that mvc doesn't work in parallel threads?\nWhen I upload a file and show the progress during upload from JS performed through several callbacks to s... |
I've got a canvas that's 800x600 inside a window that's 300x300. When I press a certain key, I want it the canvas to move in that direction.
I've done this inside the window's code behind:
protected override void OnKeyDown(KeyEventArgs e)
{
base.OnKeyDown(e);
Key keyPressed = e.Key;
if (keyPressed == Key.... | To achieve smoother movement and eliminate the pause when holding down a key, you'll want to use a game loop or a timer to continually update the position of the canvas based on the current key states, rather than relying solely on the `OnKeyDown` event.
Here's an approach using a `DispatcherTimer` to achieve smoother... | 43,583 | [
{
"from": "human",
"value": "I've got a canvas that's 800x600 inside a window that's 300x300. When I press a certain key, I want it the canvas to move in that direction.\nI've done this inside the window's code behind:\n\nprotected override void OnKeyDown(KeyEventArgs e)\n{\n base.OnKeyDown(e);\n Key ... |
What are the differences between git pull and git fetch?
| `git pull` and `git fetch` are both Git commands used for updating your local repository with changes from a remote repository, but they serve different purposes and operate in different ways.
### `git fetch`
- **Purpose**: The primary function of `git fetch` is to retrieve updates from a remote repository without int... | 44,814 | [
{
"from": "human",
"value": "What are the differences between git pull and git fetch?\n"
},
{
"from": "gpt",
"value": "`git pull` and `git fetch` are both Git commands used for updating your local repository with changes from a remote repository, but they serve different purposes and operate in ... |
I have a web site which I download 2-3 MB of raw data from that then feeds into an ETL process to load it into my data mart. Unfortunately the data provider is the US Dept. of Ag (USDA) and they do not allow downloading via FTP. They require that I use a web form to select the elements I want, click through 2-3 screens... | Yes, there are several tools and methods you can use to inspect and automate the process of downloading data from a web form, without needing to manually parse through JavaScript. Here are some recommended approaches:
### 1. Browser Developer Tools
Most modern web browsers come with built-in developer tools that allow... | 41,989 | [
{
"from": "human",
"value": "I have a web site which I download 2-3 MB of raw data from that then feeds into an ETL process to load it into my data mart. Unfortunately the data provider is the US Dept. of Ag (USDA) and they do not allow downloading via FTP. They require that I use a web form to select the e... |
I'm seeing some code I've inherited that looks like the following:
@interface SomeClass (private)
This is within SomeClass.m, the implementation file. There is an accompanying header file which doesn't suggest that the class is using a category. Is (private) in this case just a poor name given to a category for SomeCl... | Yes, you are correct that `@interface SomeClass (private)` defines a category for `SomeClass`, and in this case, the name "private" is just an arbitrary name given to the category. Categories in Objective-C are a way to add additional methods to an existing class without subclassing it.
In your code, this category se... | 48,077 | [
{
"from": "human",
"value": "I'm seeing some code I've inherited that looks like the following:\n@interface SomeClass (private)\n\nThis is within SomeClass.m, the implementation file. There is an accompanying header file which doesn't suggest that the class is using a category. Is (private) in this case jus... |
Scientific or market research questionnaires mainly consist of questions in the following form:
INTRO: Indicate how much you agree with the following statements...
OPTIONS: very much - rather - so-so - rather not - not at all
ITEM 1: I love Coca-Cola
...
ITEM n: ...
Let's call the whole thing a SCALE. One scale consist... | When considering the best way to store and manage survey questions (scales) for a non-technical third party, there are several factors to weigh, including usability, maintainability, scalability, and performance. Here's a breakdown of your options and some insights into XML and alternative solutions.
### Option 1: XML... | 43,469 | [
{
"from": "human",
"value": "Scientific or market research questionnaires mainly consist of questions in the following form:\nINTRO: Indicate how much you agree with the following statements...\nOPTIONS: very much - rather - so-so - rather not - not at all\nITEM 1: I love Coca-Cola\n...\nITEM n: ...\nLet's ... |
If I want to create a .NET object in the powershell I write something like the following:
[System.Reflection.Assembly]::LoadWithPartialName("System.Xml") | out-null"
$doc = new-object -typename System.Xml.XmlDocument"
If I want to call a static .Net method I use a command similar to the following line:
$path = [System... | In PowerShell, the way you access .NET types and their methods can vary slightly based on whether you're dealing with instance methods or static methods. Let's clarify how to use them properly.
### Creating an Instance of a .NET Object
In your first example, you are loading the `System.Xml` assembly and then creating... | 43,700 | [
{
"from": "human",
"value": "If I want to create a .NET object in the powershell I write something like the following:\n[System.Reflection.Assembly]::LoadWithPartialName(\"System.Xml\") | out-null\"\n$doc = new-object -typename System.Xml.XmlDocument\"\n\nIf I want to call a static .Net method I use a comma... |
I want to pass an enum value as command parameter in WPF, using something like this:
<Button
x:Name="uxSearchButton"
Command="{Binding Path=SearchMembersCommand}"
CommandParameter="SearchPageType.First"
Content="Search">
</Button>
SearchPageType is an enum and this is to know from which button searc... | Yes, you can pass an enum value as a command parameter in WPF, but you can't directly use an enum value as a string in XAML like `CommandParameter="SearchPageType.First"`.
Instead, you can define the enum value using the `x:Static` markup extension, which allows you to reference static values in XAML. Here's how you c... | 44,300 | [
{
"from": "human",
"value": "I want to pass an enum value as command parameter in WPF, using something like this:\n<Button \n x:Name=\"uxSearchButton\" \n Command=\"{Binding Path=SearchMembersCommand}\" \n CommandParameter=\"SearchPageType.First\"\n Content=\"Search\">\n</Button>\n\nSearchPageTy... |
In standard ASP.net applications ASP.net offered some protection from XSS attacks with validateRequest throwing detect dangerous input errors if some one tried to. This functionality seems to have been taken out of MVC any idea why?
| In ASP.NET Web Forms, the `ValidateRequest` feature provided a convenient mechanism to guard against Cross-Site Scripting (XSS) attacks by automatically checking incoming request data and blocking potentially dangerous content, such as HTML or script tags. However, this feature was designed with the assumption that all... | 44,367 | [
{
"from": "human",
"value": "In standard ASP.net applications ASP.net offered some protection from XSS attacks with validateRequest throwing detect dangerous input errors if some one tried to. This functionality seems to have been taken out of MVC any idea why?\n"
},
{
"from": "gpt",
"value": "I... |
I'm working on a Zend Framework (1.7) project with a structure loosely based on the structure of the quickstart application - front controller, action controllers, views & models that use Zend_Db_Table to get to the database. One of my main models relies on some expensive joins to pull up its primary listing, so I'm l... | Your situation is a common one when working with the Zend Framework, especially when you have performance considerations around database interactions. The challenge of keeping your application modular, while still making efficient database queries, is certainly a balancing act.
You're right to be cautious about coupl... | 43,796 | [
{
"from": "human",
"value": "I'm working on a Zend Framework (1.7) project with a structure loosely based on the structure of the quickstart application - front controller, action controllers, views & models that use Zend_Db_Table to get to the database. One of my main models relies on some expensive joins... |
As part of an application for a client, I need to have a section which reports temperature information (motherboard, CPU, HDD). I know there are standalone applications such as Hardware Monitor by CPUID, but again, these are standalone and I require something that I could interface with.
Is there any app like this whi... | For your requirements, there are a few options you can consider that can provide temperature information through an API or are open source and can run on Windows XP:
### 1. **Open Hardware Monitor**
- **Description**: Open Hardware Monitor is an open-source application that monitors temperature sensors, fan speeds, vo... | 38,583 | [
{
"from": "human",
"value": "As part of an application for a client, I need to have a section which reports temperature information (motherboard, CPU, HDD). I know there are standalone applications such as Hardware Monitor by CPUID, but again, these are standalone and I require something that I could inter... |
So I have a custom proxy that is written in ruby using mongrel to handle some fairly complex caching logic. This works great for both http and ftp requests, however since mongrel is not designed to handle https requests, I wish to front the whole thing with apache and make use of the ProxyRemote command to pass throug... | To set up your Apache server to handle HTTPS requests and pass them to your Mongrel server, you'll need to take advantage of Apache's reverse proxy capabilities. However, as you've noted, `ProxyRemote` is not intended to work in the same way as `ProxyPass`.
Here’s a step-by-step guide to configure Apache to accept HT... | 43,320 | [
{
"from": "human",
"value": "So I have a custom proxy that is written in ruby using mongrel to handle some fairly complex caching logic. This works great for both http and ftp requests, however since mongrel is not designed to handle https requests, I wish to front the whole thing with apache and make use ... |
I myself am convinced that in a project I'm working on signed integers are the best choice in the majority of cases, even though the value contained within can never be negative. (Simpler reverse for loops, less chance for bugs, etc., in particular for integers which can only hold values between 0 and, say, 20, anyway.... | As a developer, your proposal certainly raises a mix of reactions and considerations. Let me break it down into various points:
### Pros of Your Approach
1. **Reduced Compiler Warnings**: By overriding the `size()` method to return `int`, you eliminate the warnings related to signed/unsigned comparisons. This could l... | 42,100 | [
{
"from": "human",
"value": "I myself am convinced that in a project I'm working on signed integers are the best choice in the majority of cases, even though the value contained within can never be negative. (Simpler reverse for loops, less chance for bugs, etc., in particular for integers which can only ho... |
I am looking to format a number like 188518982.18 to £188,518,982.18 using Python.
How can I do this?
| You can format a number as currency in Python using the built-in `format()` function or the f-string syntax available in Python 3.6 and later. To format the number `188518982.18` as `£188,518,982.18`, you can use the following code:
### Using f-strings:
```python
number = 188518982.18
formatted_number = f'£{number:,.... | 48,050 | [
{
"from": "human",
"value": "I am looking to format a number like 188518982.18 to £188,518,982.18 using Python.\nHow can I do this?\n"
},
{
"from": "gpt",
"value": "You can format a number as currency in Python using the built-in `format()` function or the f-string syntax available in Python 3.6... |
Does anyone know if it's possible to setup dev/random when running the OS within a VM (VMWare in this case)?
| Yes, it is possible to set up and use `/dev/random` when running an operating system within a virtual machine, such as VMWare. However, the behavior and availability of randomness sources, like `/dev/random` and `/dev/urandom`, can be influenced by the configuration of the virtual machine and the host environment. Here... | 40,188 | [
{
"from": "human",
"value": "Does anyone know if it's possible to setup dev/random when running the OS within a VM (VMWare in this case)?\n"
},
{
"from": "gpt",
"value": "Yes, it is possible to set up and use `/dev/random` when running an operating system within a virtual machine, such as VMWare... |
Which is the best API to use when accessing a WebCam in .Net? (I know they can be webcam specific, I am willing to buy a new webcam if it means better results).
I want to write a desktop application that will take video from a webcam and store it in MPEG4 formats (DivX, Xvid, etc...). I would also like to access bitm... | When working with webcams in .NET, there are several libraries and APIs that you can consider. The quality of the library, its ease of use, and the performance will vary, so it's good to explore different options. Here are some recommendations that can help you achieve your goals for capturing video and images in a rob... | 41,783 | [
{
"from": "human",
"value": "Which is the best API to use when accessing a WebCam in .Net? (I know they can be webcam specific, I am willing to buy a new webcam if it means better results).\nI want to write a desktop application that will take video from a webcam and store it in MPEG4 formats (DivX, Xvid, ... |
I have some legacy code that uses VBA to parse a word document and build some XML output;
Needless to say it runs like a dog but I was interested in profiling it to see where it's breaking down and maybe if there are some options to make it faster.
I don't want to try anything until I can start measuring my results so... | Profiling VBA code can indeed be challenging due to the lack of built-in profiling tools. However, there are a few approaches you might consider to gain insights into the performance of your VBA code without modifying it too much.
### 1. Using VBA Timer Function
While it requires some manual effort, using the built-in... | 42,315 | [
{
"from": "human",
"value": "I have some legacy code that uses VBA to parse a word document and build some XML output; \nNeedless to say it runs like a dog but I was interested in profiling it to see where it's breaking down and maybe if there are some options to make it faster.\nI don't want to try anythin... |
Let's say I have a line of text like this
Small 0.0..20.0 0.00 1.49 25.71 41.05 12.31 0.00 80.56
I want to capture the last six numbers and ignore the Small and the first two groups of numbers.
For this exercise, let's ignore the fact that it might be easier to just do some sort of string-split inst... | Yes, you can definitely make your regular expression more compact by using a quantifier combined with capturing groups. To capture the last six numbers while ignoring the initial parts of the string, you can use a single pattern that captures all six numbers at once without needing to repeat the individual patterns for... | 44,179 | [
{
"from": "human",
"value": "Let's say I have a line of text like this\nSmall 0.0..20.0 0.00 1.49 25.71 41.05 12.31 0.00 80.56\n\nI want to capture the last six numbers and ignore the Small and the first two groups of numbers.\nFor this exercise, let's ignore the fact that it might be eas... |
I am working on a calculator that allows you to perform calculations past the decimal point in octal, hexadecimal, binary, and of course decimal. I am having trouble though finding a way to convert floating point decimal numbers to floating point hexadecimal, octal, binary and vice versa.
The plan is to do all the mat... | To convert floating-point decimal numbers to and from other bases (binary, octal, and hexadecimal), you'll need to handle both the integer and fractional parts separately, especially for the conversions that involve fractions.
Here's a step-by-step guide on how to do these conversions, along with some example code in ... | 39,627 | [
{
"from": "human",
"value": "I am working on a calculator that allows you to perform calculations past the decimal point in octal, hexadecimal, binary, and of course decimal. I am having trouble though finding a way to convert floating point decimal numbers to floating point hexadecimal, octal, binary and v... |
I want to set the include_path variable in my php.ini file (C:\Windows\php.ini).
But, I want different include_path values for different sites hosted on the same Windows server. How can I do this?
| To set different `include_path` values for different sites hosted on the same Windows server, you can use either of the following approaches:
### 1. Using `.htaccess` files (for Apache)
If you are using Apache as your web server, you can set the `include_path` variable in an `.htaccess` file specific to each site. He... | 43,626 | [
{
"from": "human",
"value": "I want to set the include_path variable in my php.ini file (C:\\Windows\\php.ini).\nBut, I want different include_path values for different sites hosted on the same Windows server. How can I do this?\n"
},
{
"from": "gpt",
"value": "To set different `include_path` va... |
I'm working on a video streaming application in Flash and I've been told I need to add quality selection tools. The requirements are "low", "medium" and "high" quality. I'm trying to figure out what kinds of quality settings to actually apply for this (framerate and video quality settings). I feel like there has to ... | When setting up quality selection for a live streaming video application, it's helpful to establish clear parameters for low, medium, and high quality that take into account factors such as resolution, frame rate, and bitrate. Here are some standard settings you can consider for each quality level when streaming video ... | 46,207 | [
{
"from": "human",
"value": "I'm working on a video streaming application in Flash and I've been told I need to add quality selection tools. The requirements are \"low\", \"medium\" and \"high\" quality. I'm trying to figure out what kinds of quality settings to actually apply for this (framerate and vide... |
I am working on a project that uses the asp.net ajax control toolkit and all my callback requests are hanging till the request times out. When I step through the code all my code executes then the hanging occures. Right now I am looking for possible reasons why this might happen.
| When dealing with hanging callback requests in ASP.NET AJAX Control Toolkit, there are several potential causes you should investigate. Here are some common reasons and potential solutions for your issue:
1. **Long-Running Server-Side Processing**: If you have long-running operations (e.g., database queries, file proc... | 43,527 | [
{
"from": "human",
"value": "I am working on a project that uses the asp.net ajax control toolkit and all my callback requests are hanging till the request times out. When I step through the code all my code executes then the hanging occures. Right now I am looking for possible reasons why this might happen... |
I have a client-server architecture where client communicates with the server using .NET Remoting. Server handles all business logic and database interaction. I need to add an operation which may take a while to execute and the dataset it returns might be quite large. I'm thinking of employing asynchronous call for tha... | In a client-server architecture using .NET Remoting, handling long-running operations can be challenging, especially when you want to provide the capability to cancel such operations. Here’s a breakdown of what happens when a client initiates an asynchronous call and subsequently cancels it, and possible strategies to ... | 40,061 | [
{
"from": "human",
"value": "I have a client-server architecture where client communicates with the server using .NET Remoting. Server handles all business logic and database interaction. I need to add an operation which may take a while to execute and the dataset it returns might be quite large. I'm thinki... |
I understand the need to test a class that has logic (for instance, one that can calculate discounts), where you can test the actual class.
But I just started writing unit tests for a project that will act as a repository (get objects from a database). I find myself writing a 'fake' repository that implements an ISome... | It's great that you're diving into unit testing! The confusion you're feeling is quite common, especially when differentiating between different testing strategies like unit testing, integration testing, and functional testing. Let's break down your concerns step by step:
### Why Use Fakes or Mocks?
1. **Isolation of... | 36,862 | [
{
"from": "human",
"value": "I understand the need to test a class that has logic (for instance, one that can calculate discounts), where you can test the actual class. \nBut I just started writing unit tests for a project that will act as a repository (get objects from a database). I find myself writing a ... |
I have a ListBox displaying some items, and in certain modes I "stamp" a kind of watermark across the top of it. I've done this with a Border containing a TextBlock with an Opacity of 0.5. All this works nicely.
However, I still want the user to be able to click on the items in the ListBox but if I click on the "stamp"... | To allow the ListBox to receive click events while still displaying your watermark, you can use the `HitTest` behavior in WPF. The idea is to make the watermark's visual element (like the `Border` or `TextBlock` you are using) not interfere with mouse events.
You can achieve this by setting the `IsHitTestVisible` pro... | 46,256 | [
{
"from": "human",
"value": "I have a ListBox displaying some items, and in certain modes I \"stamp\" a kind of watermark across the top of it. I've done this with a Border containing a TextBlock with an Opacity of 0.5. All this works nicely.\nHowever, I still want the user to be able to click on the items ... |
One of my API calls can result in updates to a large number of objects (Django models). I'm running into performance issues with this since I'm updating each item individually, saving, and moving on to the next:
for item in Something.objects.filter(x='y'):
item.a="something"
item.save()
Sometimes my filter cri... | When dealing with performance issues related to bulk updates in Django, it's important to minimize the number of individual save operations, as each `save()` call results in a separate database transaction. Instead, you can utilize batch updates or Django's built-in functionalities designed for bulk operations. Here ar... | 40,332 | [
{
"from": "human",
"value": "One of my API calls can result in updates to a large number of objects (Django models). I'm running into performance issues with this since I'm updating each item individually, saving, and moving on to the next:\nfor item in Something.objects.filter(x='y'):\n item.a=\"somethi... |
I have a COM SDK written in C++ and I'd like to create documentation for my product. I understand that most people will probably not use C++ for integration with this COM component, but many will.
Which method is best to describe the API, without losing details that a C++ developer would need to know.
| When documenting a COM SDK written in C++, it's important to strike a balance between providing detailed information for C++ developers while also considering other languages and integration methods that may be used. Here are some methods and best practices for creating thorough and useful documentation:
### 1. **Use ... | 40,663 | [
{
"from": "human",
"value": "I have a COM SDK written in C++ and I'd like to create documentation for my product. I understand that most people will probably not use C++ for integration with this COM component, but many will. \nWhich method is best to describe the API, without losing details that a C++ de... |
I am regularly required to compare data sent to me in Excel spreadsheets with data that lives in SQL Server. I know that you can connect SQL Server to spreadsheets but it always seemed clunky
This is really a post to show off my solution but I would love to hear other peoples ideas.
| It sounds like you're looking for efficient ways to compare data between Excel spreadsheets and SQL Server, and it's great that you've found a solution that works for you! Here are some ideas and approaches that might complement your solution or provide alternative ways to tackle this common challenge:
### 1. **Power ... | 41,763 | [
{
"from": "human",
"value": "I am regularly required to compare data sent to me in Excel spreadsheets with data that lives in SQL Server. I know that you can connect SQL Server to spreadsheets but it always seemed clunky\nThis is really a post to show off my solution but I would love to hear other peoples ... |
A long time ago I saw this trick in Ruby. Instead of doing (for example)
if array1.empty? and array2.empty? and array3.empty?
You could call all of the objects at once and append the operation at the end, kind of like
if %w(array1 array2 array3).each { |a| a.empty? }
But I think it was simpler than that... or, it cou... | In Ruby, there's a convenient way to check if multiple arrays (or other enumerable objects) are empty without needing to write repetitive conditions. One of the simplest approaches is to use the `all?` method, which returns `true` if all elements of the enumerable meet the specified condition.
Here’s how you could use... | 48,565 | [
{
"from": "human",
"value": "A long time ago I saw this trick in Ruby. Instead of doing (for example)\nif array1.empty? and array2.empty? and array3.empty?\n\nYou could call all of the objects at once and append the operation at the end, kind of like\nif %w(array1 array2 array3).each { |a| a.empty? }\n\nBut... |
Is there a way using the Google Maps API to get back an "optimized" route given a set of waypoints (in other words, a "good-enough" solution to the traveling salesman problem), or does it always return the route with the points in the specified order?
| Yes, the Google Maps API provides functionality to get an optimized route given a set of waypoints. Specifically, when using the Directions API, you can leverage the `optimizeWaypoints` parameter to reorder waypoints in a way that minimizes the overall travel distance or time, providing a solution that is akin to a "go... | 46,333 | [
{
"from": "human",
"value": "Is there a way using the Google Maps API to get back an \"optimized\" route given a set of waypoints (in other words, a \"good-enough\" solution to the traveling salesman problem), or does it always return the route with the points in the specified order?\n"
},
{
"from":... |
The code
<%=Html.CheckBox("SendEmail") %>
evaluates to two HTML elements when it's rendered
<input id="SendEmail" name="SendEmail" type="checkbox" value="true" />
<input name="SendEmail" type="hidden" value="false" />
Is this by a bug? Or by design? If it's by design, why?
| The behavior you observed when using `Html.CheckBox("SendEmail")` is by design in ASP.NET MVC. This is a common pattern used to handle boolean values in HTML forms. Here's why it works this way:
### Purpose of Hidden Input
1. **Boolean Representation**: A checkbox can only send a value if it is checked. If it is unch... | 46,788 | [
{
"from": "human",
"value": "The code\n<%=Html.CheckBox(\"SendEmail\") %>\n\nevaluates to two HTML elements when it's rendered\n<input id=\"SendEmail\" name=\"SendEmail\" type=\"checkbox\" value=\"true\" /> \n<input name=\"SendEmail\" type=\"hidden\" value=\"false\" /> \n\nIs this by a bug? Or by design? If... |
When you have an array like this:
int foo[3][2][2];
and you make:
int *bar = &foo[0][0][0];
Is this the way it works?
*bar == foo[0][0][0];
*(bar+1) == foo[0][0][1];
*(bar+2) == foo[0][1][0];
*(bar+3) == foo[0][1][1];
*(bar+4) == foo[1][0][0];
I'm not sure and have a bit of code dependent on if that works.
| Yes, your understanding is correct!
In C, when you declare a multidimensional array like `int foo[3][2][2];`, the elements are laid out in memory in a contiguous block in row-major order. This means that elements of the innermost array are stored first, followed by the next inner array, and so on.
Given your array d... | 43,157 | [
{
"from": "human",
"value": "When you have an array like this:\nint foo[3][2][2];\n\nand you make:\nint *bar = &foo[0][0][0];\n\nIs this the way it works?\n*bar == foo[0][0][0];\n*(bar+1) == foo[0][0][1];\n*(bar+2) == foo[0][1][0];\n*(bar+3) == foo[0][1][1];\n*(bar+4) == foo[1][0][0];\n\nI'm not sure and ha... |
Anybody out there using BGL for large production servers?
How many node does your network consist of?
How do you handle community detection
Does BGL have any cool ways to detect communities?
Sometimes two communities might be linked together by one or two edges, but these edges are not reliable and can fade away.... | It sounds like you're diving into a complex and interesting problem involving graph theory, community detection, and network analysis. Let's break this down into parts and explore some ideas to help you address your concerns with using the Boost Graph Library (BGL) for your large production servers.
### 1. **Using BGL... | 42,692 | [
{
"from": "human",
"value": "Anybody out there using BGL for large production servers? \n\nHow many node does your network consist of? \nHow do you handle community detection \nDoes BGL have any cool ways to detect communities?\nSometimes two communities might be linked together by one or two edges, but t... |
Premise: The requirements for an upcoming project include the fact that no one except for authorized users have access to certain data. This is usually fine, but this circumstance is not usual. The requirements state that there be no way for even the programmer or any other IT employee be able to access this informatio... | You've outlined a challenging scenario with strict requirements regarding data access. Here are some alternative approaches and considerations that may help you meet the project's requirements while addressing potential vulnerabilities:
### 1. **Client-Side Encryption with User-Controlled Keys**
- **Concept**: Simi... | 40,086 | [
{
"from": "human",
"value": "Premise: The requirements for an upcoming project include the fact that no one except for authorized users have access to certain data. This is usually fine, but this circumstance is not usual. The requirements state that there be no way for even the programmer or any other IT e... |
I have some UserControls that I created in ProjectA. I have ProjectB that has a windows form that I want to put the controls on. Both of these projects are in a single solution. There's a reference to ProjectA from ProjectB so it can "see" the UserControls.
However, the UserControls do not show up in the toolbox for... | In Visual Studio 2008, there are a few steps you can take to ensure your UserControls from ProjectA appear in the toolbox of ProjectB. Here are some suggestions to troubleshoot and fix the issue:
1. **Ensure UserControls are Public**: Make sure your UserControls in ProjectA are declared as public. If they are not, the... | 43,604 | [
{
"from": "human",
"value": "I have some UserControls that I created in ProjectA. I have ProjectB that has a windows form that I want to put the controls on. Both of these projects are in a single solution. There's a reference to ProjectA from ProjectB so it can \"see\" the UserControls.\nHowever, the Us... |
When working in the unmanaged world, we have to make sure that we clean up after ourselves if we have allocated memory on the heap (e.g. by using the new keyword in C++); we also have to make sure that we AddRef COM components that are created using CreateInstance and to Release it later; perhaps something like:
SomeNa... | When working with COM objects in C++, proper memory management is crucial, especially when dealing with reference counting. In your example, you correctly demonstrated the use of `AddRef()` and `Release()` methods to manage the lifecycle of a COM object obtained via `CreateInstance`.
### AddRef/Release for Objects Obt... | 39,785 | [
{
"from": "human",
"value": "When working in the unmanaged world, we have to make sure that we clean up after ourselves if we have allocated memory on the heap (e.g. by using the new keyword in C++); we also have to make sure that we AddRef COM components that are created using CreateInstance and to Release... |
if you
Describe dbms_transform
PROCEDURE COMPUTE_TRANSFORMATION
Argument Name Type In/Out
------------------------------ ----------------------- ------
MESSAGE STANDARD IN
TRANSFORMATION_SCHEMA VARCHAR2 IN
TR... | In the context of Oracle PL/SQL, the term `STANDARD` typically refers to a user-defined data type that is defined in the database schema.
In your example, `STANDARD` is used as a data type for the `MESSAGE` and `TRANSFORMED_MESSAGE` parameters in the `COMPUTE_TRANSFORMATION` procedure. However, `STANDARD` is not a pr... | 46,633 | [
{
"from": "human",
"value": "if you\nDescribe dbms_transform\n\nPROCEDURE COMPUTE_TRANSFORMATION\n Argument Name Type In/Out\n ------------------------------ ----------------------- ------\n MESSAGE STANDARD IN \n TRANSFORMATION_SC... |
I'm writing C# WinForm and asp.net apps that talk to a SQL server through a WCF service. I want to avoid creating my own user management system and would like to use an existing component/technology that can create/delete/manage users and roles. What would you recommend?
Note: I'm aware of Geneva framework but RTM for... | If you're looking for an existing user management solution to integrate with your C# WinForms and ASP.NET applications, here are a few recommendations that can help you manage users and roles effectively:
1. **ASP.NET Identity**: ASP.NET Identity is the successor to the Membership system and provides a comprehensive f... | 44,552 | [
{
"from": "human",
"value": "I'm writing C# WinForm and asp.net apps that talk to a SQL server through a WCF service. I want to avoid creating my own user management system and would like to use an existing component/technology that can create/delete/manage users and roles. What would you recommend? \nNote:... |
Has anybody experimented with these. Is this supported?
| It seems like you're asking about a specific technology, product, or concept, but you haven't provided details on what "these" refers to. Could you clarify what you are asking about? This way, I can better assist you with information on experimentation or support for that particular subject. | 47,888 | [
{
"from": "human",
"value": "Has anybody experimented with these. Is this supported?\n"
},
{
"from": "gpt",
"value": "It seems like you're asking about a specific technology, product, or concept, but you haven't provided details on what \"these\" refers to. Could you clarify what you are asking ... |
I am currently doing IE-hacks on a website I'm working on:
http://www.timkjaerlange.com/wip/co2penhagen/
I got a problem with this unordered list. IE seems to add extra top-margin for every li-element, making my navigation look like a flight of stairs:
http://dl.getdropbox.com/u/228089/ie-prob.jpg
I'm using conditiona... | The issue you're encountering with extra margin in Internet Explorer is likely due to the browser's handling of margins and padding. Here are a few steps you can take to troubleshoot and fix the problem:
1. **Check the Default Styles**: Internet Explorer often applies different default styles compared to other browser... | 44,133 | [
{
"from": "human",
"value": "I am currently doing IE-hacks on a website I'm working on:\nhttp://www.timkjaerlange.com/wip/co2penhagen/\nI got a problem with this unordered list. IE seems to add extra top-margin for every li-element, making my navigation look like a flight of stairs: \nhttp://dl.getdropbox.c... |
I'm about to start a project that requires XML messages to be sent between a couple of servers over HTTPS. A brief summary is this: I have an application in use by clients that will send information to a central server. That server will communicate these XML messages to another company's server. I will also receive ... | It sounds like you have an interesting project ahead! To get started with your project involving XML messages, HTTPS communication, and potentially using ASP.NET, here are some resources and topics to explore:
### Key Concepts to Understand:
1. **XML Basics**:
- Understanding XML syntax, structure, and how to creat... | 40,736 | [
{
"from": "human",
"value": "I'm about to start a project that requires XML messages to be sent between a couple of servers over HTTPS. A brief summary is this: I have an application in use by clients that will send information to a central server. That server will communicate these XML messages to anothe... |
I have been researching audit triggers for some of my sql tables. I came across this article on simple-talk.
Now I know that the COLUMNS_UPDATED() function used here is only supposed to be available on SQL Server 2005 and later but it appears to work under 2000 as well. Is this perhaps a classic Microsoft undocumented ... | It's great that you're exploring audit triggers in SQL Server. The `COLUMNS_UPDATED()` function is indeed officially documented for SQL Server 2005 and later, and it serves to identify which columns were modified in a trigger context. While it may work in SQL Server 2000 due to some underlying compatibility, relying on... | 42,150 | [
{
"from": "human",
"value": "I have been researching audit triggers for some of my sql tables. I came across this article on simple-talk.\nNow I know that the COLUMNS_UPDATED() function used here is only supposed to be available on SQL Server 2005 and later but it appears to work under 2000 as well. Is this... |
Has Mono been ported to the iPhone yet? I'd love to write .NET apps for the iPhone, and learning Objective C isn't an option for me.
| Yes, Mono has been ported to the iPhone through a project known as MonoTouch, which was later rebranded as Xamarin.iOS. Xamarin allows developers to write .NET applications using C# for iOS devices, enabling you to build iPhone apps without having to learn Objective-C.
With Xamarin, you can share a significant amount... | 48,420 | [
{
"from": "human",
"value": "Has Mono been ported to the iPhone yet? I'd love to write .NET apps for the iPhone, and learning Objective C isn't an option for me.\n"
},
{
"from": "gpt",
"value": "Yes, Mono has been ported to the iPhone through a project known as MonoTouch, which was later rebrand... |
I want to search for a line in a file, using regex, inside a Perl script.
Assuming it is in a system with grep installed, is it better to:
call the external grep through an open() command
open() the file directly and use a while loop and an if ($line =~ m/regex/)?
| When deciding between using an external `grep` command versus reading a file directly in a Perl script and checking lines against a regex, there are several factors to consider:
### Using `grep` through an `open()` Command
- **Pros**:
- `grep` is optimized for searching text files and can be faster for large files, ... | 45,377 | [
{
"from": "human",
"value": "I want to search for a line in a file, using regex, inside a Perl script.\nAssuming it is in a system with grep installed, is it better to:\n\ncall the external grep through an open() command\nopen() the file directly and use a while loop and an if ($line =~ m/regex/)?\n\n"
},... |
I have a rails app that uses heavily js (over 1MB total). I'd like to compress them in order to reduce the overall load time of the site.
I did a fast search and found that most browsers accept compressed content.
I'd like to know what can I do to make my rails app send compressed content and thus make the user experie... | To compress your JavaScript files in a Ruby on Rails application, you can take advantage of built-in features in Rails and configure your server settings. Compression helps reduce file size, which leads to faster loading times and improved user experience. Here are the steps you can take to enable compression for your ... | 41,105 | [
{
"from": "human",
"value": "I have a rails app that uses heavily js (over 1MB total). I'd like to compress them in order to reduce the overall load time of the site.\nI did a fast search and found that most browsers accept compressed content.\nI'd like to know what can I do to make my rails app send compre... |
I have two tables. Club and Coach.
Between them is 0,1 - 0,1 relationship (coach can have zero or one club. club can have zero or one coach).
When I want to change the coach of the given club, i have to update the club table. So i have to change idCoach of that club. Lets consider a new coach (the newly assigned coach ... | You're correct in recognizing that managing relationships between tables, especially with such specific constraints, can lead to complications when using triggers. To avoid the deadlock scenario you've mentioned, it's crucial to design your triggers in a way that prevents circular dependencies.
Here’s a suggested appr... | 41,953 | [
{
"from": "human",
"value": "I have two tables. Club and Coach.\nBetween them is 0,1 - 0,1 relationship (coach can have zero or one club. club can have zero or one coach).\nWhen I want to change the coach of the given club, i have to update the club table. So i have to change idCoach of that club. Lets cons... |
Do you know of any other ciphers that performs like the ROT47 family?
My major requirement is that it'd be keyless.
| Yes, there are several ciphers that are keyless and exhibit behavior similar to ROT47, which shifts characters within a defined set. ROT47 specifically shifts printable ASCII characters (from 33 to 126) by a fixed number (47 in this case). Here are a few keyless ciphers you might consider:
1. **Caesar Cipher**: The cl... | 44,466 | [
{
"from": "human",
"value": "Do you know of any other ciphers that performs like the ROT47 family?\nMy major requirement is that it'd be keyless.\n"
},
{
"from": "gpt",
"value": "Yes, there are several ciphers that are keyless and exhibit behavior similar to ROT47, which shifts characters within... |
How can I poll the keyboard from a console python app? Specifically, I would like to do something akin to this in the midst of a lot of other I/O activities (socket selects, serial port access, etc.):
while True:
# doing amazing pythonic embedded stuff
# ...
# periodically do a non-blocking check to see if... | To achieve non-blocking keyboard input in a console Python application, you can use the `keyboard` module on Windows, but note that it does not natively support Linux. If you're looking for a cross-platform solution, a combination of `curses` for Linux and the `keyboard` module for Windows might be necessary, or you ca... | 43,650 | [
{
"from": "human",
"value": "How can I poll the keyboard from a console python app? Specifically, I would like to do something akin to this in the midst of a lot of other I/O activities (socket selects, serial port access, etc.):\nwhile True:\n # doing amazing pythonic embedded stuff\n # ...\n\n # ... |
Here's an example:
Double d = (1/3);
System.out.println(d);
This returns 0, not 0.33333... as it should.
Does anyone know?
| The issue you're encountering is due to integer division in Java. When you divide two integers in Java, the result is also an integer, which means any decimal portion is discarded.
In your example, `1` and `3` are both integers, so `1 / 3` evaluates to `0`. Then, when you assign this result to the variable `d`, it eff... | 47,109 | [
{
"from": "human",
"value": "Here's an example:\nDouble d = (1/3);\nSystem.out.println(d);\n\nThis returns 0, not 0.33333... as it should.\nDoes anyone know?\n"
},
{
"from": "gpt",
"value": "The issue you're encountering is due to integer division in Java. When you divide two integers in Java, t... |
Soo... F# no longer has IEnumerable.map_with_type... which is the way people were mapping over collections. How do I do that now?
let urlPat = "href\\s*=\\s*(?:(?:\\\"(?<url>[^\\\"]*)\\\")|(?<url>[^\\s]* ))";;
let urlRegex = new Regex(urlPat)
let matches =
urlRegex.Matches(http("http://www.google.com"))
let match... | In F#, if you're trying to map over a collection of matches obtained from a regex operation, you can use the `Seq.map` function or `List.map` after converting the matches to a list.
However, you need to convert the `MatchCollection` returned by `urlRegex.Matches` into a sequence or a list because `MatchCollection` it... | 44,259 | [
{
"from": "human",
"value": "Soo... F# no longer has IEnumerable.map_with_type... which is the way people were mapping over collections. How do I do that now?\nlet urlPat = \"href\\\\s*=\\\\s*(?:(?:\\\\\\\"(?<url>[^\\\\\\\"]*)\\\\\\\")|(?<url>[^\\\\s]* ))\";;\nlet urlRegex = new Regex(urlPat)\nlet matches =... |
I've got the dynamic array of pointers to structure.
struct item {
unsigned long code; //1 - 2^32
unsigned short date; //0 - (13*365+4-31)+1
unsigned char place; //1 - 200
unsigned short amount; //0 - 10000
unsigned short price; //0 - 50000
};
count = getSizeFromSomewhere();
item ** x... | In your code, `x` is a dynamic array of pointers to `item` structures, but at this point, you've only allocated space for the pointers themselves. You have not allocated any `item` structures to which these pointers will point. This is likely why you're only able to see the first element when debugging.
To allow Xcode... | 44,303 | [
{
"from": "human",
"value": "I've got the dynamic array of pointers to structure.\nstruct item {\n unsigned long code; //1 - 2^32\n unsigned short date; //0 - (13*365+4-31)+1\n unsigned char place; //1 - 200\n unsigned short amount; //0 - 10000\n unsigned short price; //0 - 50000... |
Hiya - been pointed at you guys by a friend of mine.
I have an MDI application (C#, Winforms, .NET 2.0, VS2005, DevExpress 8.2) and one of my forms is behaving very strangely - not repainting itself properly where it overlaps with another instance of the same form class.
The forms contain a custom control (which contai... | The issues you're encountering with your MDI application involving overlapping forms, repainting issues, and control layout problems can be quite tricky, especially when working with Windows Forms and custom controls. Let's break down your problems and potential solutions.
### Problem 1: Control Repositioning/Resizing... | 42,954 | [
{
"from": "human",
"value": "Hiya - been pointed at you guys by a friend of mine.\nI have an MDI application (C#, Winforms, .NET 2.0, VS2005, DevExpress 8.2) and one of my forms is behaving very strangely - not repainting itself properly where it overlaps with another instance of the same form class.\nThe f... |
Are there any obvious productivity gains in developing using webforms or MVC?
| When comparing Web Forms and MVC (Model-View-Controller) frameworks for web development, there are several factors to consider in terms of productivity gains. Here are some of the major differences that can impact productivity:
### Web Forms
**Advantages:**
1. **Rapid Development:** Web Forms often allow for quicker ... | 32,651 | [
{
"from": "human",
"value": "Are there any obvious productivity gains in developing using webforms or MVC?\n"
},
{
"from": "gpt",
"value": "When comparing Web Forms and MVC (Model-View-Controller) frameworks for web development, there are several factors to consider in terms of productivity gain... |
I know that there is no way to fully protect our code.
I also know that if a user wants to crack our app, then he or she is not a user that would buy our app.
I also know that it is better to improve our app.. instead of being afraid of anticracking techniques.
I also know that there is no commercial tool that can prot... | Hi Jag,
It's great to hear that you're considering adding some level of protection to your application. While it's true that no method can provide complete security, implementing some protective measures can deter casual users from tampering with your code.
Regarding the tools you've mentioned, here are some consider... | 43,454 | [
{
"from": "human",
"value": "I know that there is no way to fully protect our code.\nI also know that if a user wants to crack our app, then he or she is not a user that would buy our app.\nI also know that it is better to improve our app.. instead of being afraid of anticracking techniques.\nI also know th... |
I'm working with a database schema that is running into scalability issues. One of the tables in the schema has grown to around 10 million rows, and I am exploring sharding and partitioning options to allow this schema to scale to much larger datasets (say, 1 billion to 100 billion rows). Our application must also be... | Scaling databases through sharding and partitioning is a complex but essential topic as your dataset grows. Here are some resources across various mediums that can help you deepen your understanding and develop effective strategies for sharding and partitioning in databases like Oracle, MS SQL Server, and MySQL:
### B... | 43,490 | [
{
"from": "human",
"value": "I'm working with a database schema that is running into scalability issues. One of the tables in the schema has grown to around 10 million rows, and I am exploring sharding and partitioning options to allow this schema to scale to much larger datasets (say, 1 billion to 100 bil... |
can anybody please explain the following c# behaviour? I have written a small console application just to learn about CAS, but I can not seem to understand why the following lines of code work like they do:
string[] myRoles = new string[] { "role1", "role2", "role3" };
GenericIdentity myIdentity = new GenericIdentity("... | The behavior you're observing with the `SecurityManager.IsGranted()` method and the `PrincipalPermission.Demand()` method in C# is due to the different ways these mechanisms evaluate permissions and roles.
### Explanation:
1. **PrincipalPermission Class**:
- The `PrincipalPermission` class is used to check whether... | 43,944 | [
{
"from": "human",
"value": "can anybody please explain the following c# behaviour? I have written a small console application just to learn about CAS, but I can not seem to understand why the following lines of code work like they do:\nstring[] myRoles = new string[] { \"role1\", \"role2\", \"role3\" };\nG... |
I am having a issue with databinding child repeaters inside an accordion control, hopefully you can help...
I have an accordion in a ViewStack (of which,that ViewStack is also in another top-level ViewStack). I have a repeater in each child of the accordion control. The component looks like such:
<mx:Box
xmlns:m... | Data binding issues in Flex, especially when dealing with repeaters within components like accordions and view stacks, can indeed be tricky. Here are some strategies to ensure that both repeaters display their data properly:
### Step 1: Ensure Data is Available
Make sure that the data for both `rpGroups` and `rpConta... | 43,028 | [
{
"from": "human",
"value": "I am having a issue with databinding child repeaters inside an accordion control, hopefully you can help...\nI have an accordion in a ViewStack (of which,that ViewStack is also in another top-level ViewStack). I have a repeater in each child of the accordion control. The compone... |
In a database, I have a string that contains "default" written in it. I just want to replace that default with 0. I have something like:
select * from tblname where test = 'default'
I do not want quotes in the replacement for "default".
I want
select * from tblname where test = 0
is there any way to do this?
| Yes, you can achieve this by using an `UPDATE` statement to replace the string "default" with the number `0` in your database. However, you should ensure that the column `test` is of a numeric type in order to store the value `0`. If it's currently a string type, you may first need to convert or update the data type.
... | 46,995 | [
{
"from": "human",
"value": "In a database, I have a string that contains \"default\" written in it. I just want to replace that default with 0. I have something like: \nselect * from tblname where test = 'default'\n\nI do not want quotes in the replacement for \"default\".\nI want \nselect * from tblname w... |
I need to find whether the user clicking the browser back button or Refresh button.
I need to redirect the page to Error page when he clicks the back or refresh button. How to do this.
I need to do this in javascript for my ASP.net page
| To detect whether a user is clicking the back or refresh button in a web browser using JavaScript, you can use the `popstate` event and the `beforeunload` event. However, due to the nature of web browsers and security concerns, it's challenging to determine the exact action (like clicking back or refresh) directly. Nev... | 44,031 | [
{
"from": "human",
"value": "I need to find whether the user clicking the browser back button or Refresh button.\nI need to redirect the page to Error page when he clicks the back or refresh button. How to do this.\nI need to do this in javascript for my ASP.net page\n"
},
{
"from": "gpt",
"valu... |
I have a web-app that I would like to extend to support multiple languages with new URLs. For example, www.example.com/home.do stays English, but www.example.com/es/home.do is Spanish. My first thought was to create a Filter which rewrites incoming urls like /es/home.do to /home.do (and sets the Locale in the Request... | Great to hear you found a solution by wrapping the `HttpServletResponse` instead of the `HttpServletRequest`. That's indeed a valid and often effective approach for handling URL rewriting in web applications.
To elaborate on your solution and discuss some additional considerations:
### Wrapping HttpServletResponse
... | 43,176 | [
{
"from": "human",
"value": "I have a web-app that I would like to extend to support multiple languages with new URLs. For example, www.example.com/home.do stays English, but www.example.com/es/home.do is Spanish. My first thought was to create a Filter which rewrites incoming urls like /es/home.do to /ho... |
in Microsoft Access, is there a way which I can programatically set the Confirm Action Queries flag on the options screen to False? Ideally when the database is started up I would like to check if it's true, and if so, mark it as false for the currently logged in user.
The application is locked down reasonably tightly,... | In Microsoft Access, the "Confirm Action Queries" setting is a user-specific setting stored in the Access Options, which means there is no direct way to programmatically change this setting for the currently logged-in user using VBA or any other methods. However, you can work around this limitation by implementing a di... | 42,435 | [
{
"from": "human",
"value": "in Microsoft Access, is there a way which I can programatically set the Confirm Action Queries flag on the options screen to False? Ideally when the database is started up I would like to check if it's true, and if so, mark it as false for the currently logged in user.\nThe appl... |
I would like to replicate a MSSQL 2005 db (hosting through a shared hosting provider) directly on an integration server for development purposes. MSSQL server provides quite a few ways of performing data replication, but I am not sure that any of them is compatible with a typical shared hosting environment.
The idea wo... | Replicating a SQL Server 2005 database from a shared hosting environment to an integration server for development purposes can be challenging, especially given the limitations of shared hosting environments. However, there are several approaches you can consider:
### 1. **Backup and Restore**
This is the simplest met... | 43,120 | [
{
"from": "human",
"value": "I would like to replicate a MSSQL 2005 db (hosting through a shared hosting provider) directly on an integration server for development purposes. MSSQL server provides quite a few ways of performing data replication, but I am not sure that any of them is compatible with a typica... |
I am working on a web application that allows users to upload attachments. These attachments are stored on a different drive than that of the web application. How can I create an alias (equivalent to Apache HTTP server's aliases) to this drive so that users can download these attachments?
Currently I am creating a co... | To create an alias for serving files from a different directory in Apache Tomcat, using a context configuration is one approach, but since you are experiencing issues with the context file being deleted, there are a few alternatives you can consider to make your setup more robust.
### 1. Use `<Host>` and `<Context>` ... | 43,688 | [
{
"from": "human",
"value": "I am working on a web application that allows users to upload attachments. These attachments are stored on a different drive than that of the web application. How can I create an alias (equivalent to Apache HTTP server's aliases) to this drive so that users can download these ... |
Does anyone know what an Optional SQL Explain flag is?
| In the context of SQL databases, the term "Optional SQL Explain flag" typically refers to a configuration or option that you can set to enable or disable the generation of an execution plan for a SQL query. The "EXPLAIN" statement is a common SQL command used to obtain information about how the database engine will exe... | 45,700 | [
{
"from": "human",
"value": "Does anyone know what an Optional SQL Explain flag is?\n"
},
{
"from": "gpt",
"value": "In the context of SQL databases, the term \"Optional SQL Explain flag\" typically refers to a configuration or option that you can set to enable or disable the generation of an ex... |
As per the Emacs docs, every time you open a file, Emacs changes default-directory to the directory containing that file.
Then, if the cursor is in that buffer and you (for example) start SLIME, it uses default-directory as the current working directory for SLIME. If you try to open a new file, it opens the file wit... | Yes, you can achieve that behavior in Emacs by overriding the default behavior of changing `default-directory` every time you open a file. You can accomplish this by using a combination of hooks and setting `default-directory` to a specific value that you want to remain constant until you explicitly change it.
Here’s ... | 43,312 | [
{
"from": "human",
"value": "As per the Emacs docs, every time you open a file, Emacs changes default-directory to the directory containing that file. \nThen, if the cursor is in that buffer and you (for example) start SLIME, it uses default-directory as the current working directory for SLIME. If you try... |
I am unable to generate an excel in an Atlas Update Panel. (Since a response cannot be ended/written [XML] in the update panel) I don't want to use asp:updatepanel .. Is there any other way?
Any correct answer will be highly appreciated...
Thanks in advance
| If you want to generate an Excel file in an ASP.NET application but are having trouble doing so within an `UpdatePanel`, there are a few alternative approaches you can consider without using an `asp:UpdatePanel`. Here are some potential solutions:
### 1. Use JavaScript/Ajax to Trigger the Download
Instead of trying to... | 43,564 | [
{
"from": "human",
"value": "I am unable to generate an excel in an Atlas Update Panel. (Since a response cannot be ended/written [XML] in the update panel) I don't want to use asp:updatepanel .. Is there any other way?\nAny correct answer will be highly appreciated...\nThanks in advance\n"
},
{
"fr... |
I'm trying out Linq for the first time and having a bit of difficult retrieving the child objects of an entity. I have a course table which has a one to many relationship with the department table (ie. one department can have one or many courses).
When I select the a particular department I want to bind the courses r... | From your description, it sounds like you're facing an issue with retrieving the courses related to a specific department in your database using LINQ. The fact that `dept.Course.Count` returns zero suggests that the related courses are not being loaded correctly.
This could be happening due to lazy loading being turne... | 41,597 | [
{
"from": "human",
"value": "I'm trying out Linq for the first time and having a bit of difficult retrieving the child objects of an entity. I have a course table which has a one to many relationship with the department table (ie. one department can have one or many courses). \nWhen I select the a particul... |
I'd like to output html controls using xslt, but I need to be able to name the controls so that I can get at them when the form posts back.
I'd like to be able to name the radio button "action_" + _case_id.
<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="data.xsl"?>
<NewDataSet>
<Cases>
... | To name the radio button controls dynamically based on the `case_id` from the XML data, you can use XSLT to extract the `case_id` and concatenate it with the string "action_" to form the desired name for each radio button.
Here is the corrected XSLT that achieves this:
```xml
<?xml version="1.0" encoding="iso-8859-1"... | 41,455 | [
{
"from": "human",
"value": "I'd like to output html controls using xslt, but I need to be able to name the controls so that I can get at them when the form posts back.\nI'd like to be able to name the radio button \"action_\" + _case_id.\n<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<?xml-stylesheet type=\"... |
I want to build a LineChart component where the color of the line is indicative on how high the value is. I should be able to do this buy just using a gradient stroke (see below) but for some reason the gradient only goes from left to right and the "angle" property is being ignored. How could i do this?
<mx:PlotCha... | It seems like you want to create a gradient stroke for a line chart that reflects the value of the data points, using a vertical gradient rather than a horizontal one. The challenge you're facing is likely due to the inherent behavior of the `LinearGradientStroke` in the context of the `LineSeries` in Flex (assuming th... | 42,193 | [
{
"from": "human",
"value": "I want to build a LineChart component where the color of the line is indicative on how high the value is. I should be able to do this buy just using a gradient stroke (see below) but for some reason the gradient only goes from left to right and the \"angle\" property is being ig... |
Good afternoon,
I have a web query in Excel 2002 going against a web page that returns a date column. The dates are returned as DD/MM/YYYY, as I would like to show them in my spreadsheet. My machine running Excel has its regional settings set to en-GB, and the only language set under Internet Options is UK English.
N... | It sounds like you're facing an issue where the web query in Excel 2002 is not returning the dates in the expected format according to your regional settings. Here are some potential solutions to address this problem:
### 1. Change the Query Output Format
Since Excel 2002 may not have the option to change the date for... | 43,305 | [
{
"from": "human",
"value": "Good afternoon,\nI have a web query in Excel 2002 going against a web page that returns a date column. The dates are returned as DD/MM/YYYY, as I would like to show them in my spreadsheet. My machine running Excel has its regional settings set to en-GB, and the only language s... |
I have a PHP application and a need to generate a PDF with the result of query. The easiest way a found to do this was to use the DOMPDF to generate the PDF for me. So a made a function that generates the HTML for me then a pass this to DOMPDF. In the development and testing enviroment everything was fine but on produc... | Generating PDFs in a PHP application can indeed lead to memory issues, especially when dealing with larger datasets or complex HTML structures. Here are some strategies and alternatives you might consider to optimize your approach when using DOMPDF or other libraries for generating PDFs:
### 1. Optimize the HTML for D... | 41,719 | [
{
"from": "human",
"value": "I have a PHP application and a need to generate a PDF with the result of query. The easiest way a found to do this was to use the DOMPDF to generate the PDF for me. So a made a function that generates the HTML for me then a pass this to DOMPDF. In the development and testing env... |
Is it possible to set DataGridCell's template when using WpfToolkit's DataGrid? Or is it possible to set style property for a single cell at the time?
I know that there is a TemplateColumn class which lets the user set templates for displaying and editing cell's data but that's not what I'm looking for.
I need to displ... | Yes, it is indeed possible to customize the appearance of individual cells in a WPF Toolkit DataGrid by using a combination of data binding, styles, and triggers. You can achieve this without having to rely solely on `TemplateColumn`. Instead, you can use a `DataGridTemplateColumn`, but also leverage data triggers or c... | 40,679 | [
{
"from": "human",
"value": "Is it possible to set DataGridCell's template when using WpfToolkit's DataGrid? Or is it possible to set style property for a single cell at the time?\nI know that there is a TemplateColumn class which lets the user set templates for displaying and editing cell's data but that's... |
I have a Browser Helper Object project in c# that (obviously) references shdocvw.dll. I think I want to create a strongly named interop dll for shdocvw.dll. How do I do this - I've seen a bunch of suggestions out there with aximp.exe and tlimp but I'm not clear how they fit together.
| Creating a strongly named interop assembly for a COM object like `shdocvw.dll` can be a bit challenging since the default interop assemblies generated by tools like `tlbimp.exe` and `aximp.exe` are not strongly named. However, you can follow the steps below to create a strongly named interop assembly for `shdocvw.dll`.... | 44,204 | [
{
"from": "human",
"value": "I have a Browser Helper Object project in c# that (obviously) references shdocvw.dll. I think I want to create a strongly named interop dll for shdocvw.dll. How do I do this - I've seen a bunch of suggestions out there with aximp.exe and tlimp but I'm not clear how they fit toge... |
Is there an easier way to achieve the following?
var obj = from row in table.AsEnumerable()
select row["DOUBLEVALUE"];
double[] a = Array.ConvertAll<object, double>(obj.ToArray(), o => (double)o);
I'm extracting a column from a DataTable and storing the column in an array of doubles.
Assume that table is a ... | Yes, you can simplify your code for extracting a column from a `DataTable` and converting it directly into an array of doubles. You don't need to first convert the values to an object array and then convert it to a double array. Instead, you can use LINQ with type casting.
Here's a more concise way to achieve the same... | 45,098 | [
{
"from": "human",
"value": "Is there an easier way to achieve the following?\nvar obj = from row in table.AsEnumerable()\n select row[\"DOUBLEVALUE\"];\n\ndouble[] a = Array.ConvertAll<object, double>(obj.ToArray(), o => (double)o);\n\nI'm extracting a column from a DataTable and storing the colum... |
I have some library code which is used from my application and is also used by a .NET custom action in a Visual Studio installer project. The library code in turn uses the Enterprise Library logging block to do its logging. How can I get configuration information to the Enterprise Library in the context of my custom ... | It sounds like you're facing some challenges integrating the Enterprise Library logging with a custom action in a Visual Studio installer project, particularly because of the configuration management mechanism that the Enterprise Library relies on. Let’s address your situation step by step.
### Bootstrap Configuration... | 41,605 | [
{
"from": "human",
"value": "I have some library code which is used from my application and is also used by a .NET custom action in a Visual Studio installer project. The library code in turn uses the Enterprise Library logging block to do its logging. How can I get configuration information to the Enterp... |
I have downloaded Privoxy few weeks ago and for the fun I was curious to know how a simple version of it can be done.
I understand that I need to configure the browser (client) to send request to the proxy. The proxy send the request to the web (let say it's a http proxy). The proxy will receive the answer... but how c... | Creating a simple HTTP proxy in C# can indeed be a rewarding project, as it helps you understand the flow of HTTP requests and responses. Here's a basic explanation of how an HTTP proxy works and a sample code to help you get started.
### How an HTTP Proxy Works
1. **Client Configuration**: The browser is configured ... | 38,527 | [
{
"from": "human",
"value": "I have downloaded Privoxy few weeks ago and for the fun I was curious to know how a simple version of it can be done.\nI understand that I need to configure the browser (client) to send request to the proxy. The proxy send the request to the web (let say it's a http proxy). The ... |
The company I work for has historically had very little process as far as software development. Currently we don't really follow any specific method. The problem is of course it makes it difficult to plan, successfully have a decent release or even attract good software developers.
I think I may be able to convince... | Convincing management to adopt a Scrum process can be challenging, especially if they are hesitant about committing to specific features or timeframes. Here are several strategies you can incorporate into your approach to increase the chances of gaining buy-in:
### 1. **Understand Management's Concerns**
- **Listen... | 43,410 | [
{
"from": "human",
"value": "The company I work for has historically had very little process as far as software development. Currently we don't really follow any specific method. The problem is of course it makes it difficult to plan, successfully have a decent release or even attract good software develo... |
I want to add options to a dropdownbox on my aspx page from the c# code behind during load. I don't know how to get a reference to the control. I have some c# code that is triggered when the user changes the dropdownbox. In that I get a reference to the dropdown with:
DropDownBox ddb = (DropDownBox)info.Toolbar.Toolb... | In ASP.NET Web Forms, the way to access controls like `DropDownList` (I assume "DropDownBox" is a typo and you meant `DropDownList`) in the code-behind varies based on the lifecycle of the page. If you are trying to add options to the dropdown list during the page load process, you need to ensure you have a proper refe... | 43,447 | [
{
"from": "human",
"value": "I want to add options to a dropdownbox on my aspx page from the c# code behind during load. I don't know how to get a reference to the control. I have some c# code that is triggered when the user changes the dropdownbox. In that I get a reference to the dropdown with:\nDropDow... |
Should Singleton objects that don't use instance/reference counters be considered memory leaks in C++?
Without a counter that calls for explicit deletion of the singleton instance when the count is zero, how does the object get deleted? Is it cleaned up by the OS when the application is terminated? What if that Singl... | In C++, a Singleton is a design pattern that restricts the instantiation of a class to a single instance. Singleton objects can manage their own lifecycle, but the specifics can vary depending on how they are implemented.
### Memory Management and Destruction of Singleton Objects
1. **Lifetime Management**: If a Sing... | 44,339 | [
{
"from": "human",
"value": "Should Singleton objects that don't use instance/reference counters be considered memory leaks in C++?\nWithout a counter that calls for explicit deletion of the singleton instance when the count is zero, how does the object get deleted? Is it cleaned up by the OS when the appl... |
We have a product with an install base of about 50, over 50% of these installs have customizations in the code for the business logic, and that is currently done by huge IF and Switch statements.
We are currently in the process of updating the code to .NET 3.5 and would like to handle the customizations in a more mana... | Handling customizations across a codebase, especially when it involves a significant number of clients with varying requirements, can be challenging. The goal is to make the code more maintainable, extensible, and easier to manage without sacrificing performance or introducing unnecessary complexity. Here are some appr... | 40,071 | [
{
"from": "human",
"value": "We have a product with an install base of about 50, over 50% of these installs have customizations in the code for the business logic, and that is currently done by huge IF and Switch statements. \nWe are currently in the process of updating the code to .NET 3.5 and would like t... |
I'm beginner in Java. I'm reading data from device through serial port. I'm getting data for every one minute, but first reading is coming half, after that data is coming correctly.
Output I'm getting is:
6050.003120815340006050.003120815350006050.0
Correct output should be like this:
03120815340006050.00312081535... | It looks like you're encountering a common issue when reading data from a serial port. The first reading of data is incomplete, and subsequent readings are coming in correctly. This typically happens due to the way the buffer is managed, especially if the data arrives in chunks. Here's how you can address this issue:
... | 41,840 | [
{
"from": "human",
"value": "I'm beginner in Java. I'm reading data from device through serial port. I'm getting data for every one minute, but first reading is coming half, after that data is coming correctly.\nOutput I'm getting is: \n\n6050.003120815340006050.003120815350006050.0\n\nCorrect output should... |
I Have a problem where I occasionally (i.e. not always) see the below error popup from the Debug Flash Player after launching my app:
Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox violation: http://example.com/myApp.swf cannot load data from localhost:4499.
at org.mydomain.mypackage::MyC... | The issue you're encountering with the security error is not uncommon in Flash applications, especially when dealing with socket connections and local resources. Let's break down the potential reasons for the error you're seeing and how to address it.
### Explanation of the Error
The error message indicates that the ... | 39,342 | [
{
"from": "human",
"value": "I Have a problem where I occasionally (i.e. not always) see the below error popup from the Debug Flash Player after launching my app:\nError #2044: Unhandled securityError:. text=Error #2048: Security sandbox violation: http://example.com/myApp.swf cannot load data from localhos... |
I need some pointers on how to detect unknown hardware using .NET and C++/C#. I'm looking for the technique to use under NET to do this.
What I basically want is to identify the PCIID/USBID and so on for all the hardware in the machine. Of course I also need this for the hardware that doesn't yet has a driver installed... | Detecting unknown hardware in a Windows environment using .NET and C++/C# is a multifaceted task, particularly when you want to gather information about hardware devices that may not have drivers installed. Here are some pointers and techniques to help you get started:
### Techniques to Detect Hardware
1. **Using Win... | 41,214 | [
{
"from": "human",
"value": "I need some pointers on how to detect unknown hardware using .NET and C++/C#. I'm looking for the technique to use under NET to do this.\nWhat I basically want is to identify the PCIID/USBID and so on for all the hardware in the machine. Of course I also need this for the hardwa... |
I have the following Transact-Sql that I am trying to convert to LINQ ... and struggling.
SELECT * FROM Project
WHERE Project.ProjectId IN (SELECT ProjectId FROM ProjectMember Where MemberId = 'a45bd16d-9be0-421b-b5bf-143d334c8155')
Any help would be greatly appreciated ... I would like to do it with Lambda expressi... | Sure! To convert your Transact-SQL query to LINQ using lambda expressions, you can follow this structure. Assuming you have a context class that includes `Projects` and `ProjectMembers` DbSet properties, your LINQ query will look something like this:
Here's how you can write it in C# using Entity Framework:
```csharp... | 46,217 | [
{
"from": "human",
"value": "I have the following Transact-Sql that I am trying to convert to LINQ ... and struggling. \nSELECT * FROM Project\nWHERE Project.ProjectId IN (SELECT ProjectId FROM ProjectMember Where MemberId = 'a45bd16d-9be0-421b-b5bf-143d334c8155')\n\nAny help would be greatly appreciated .... |
On the web page, it looks like there is no current development in the old style .doc.
Is it good enough to create complex documents?
Can it read all .docs without crashing?
What features do (not) work?
I am not currently interested in the XML based formats, as I don't control the client side.
The excel support seem... | Creating complex documents using the old .doc format can be a mixed experience, depending on the software you are using for editing and viewing. Here are some considerations regarding the .doc format and its capabilities:
### Capability to Create Complex Documents
- **Basic Features**: Most word processors that suppor... | 44,562 | [
{
"from": "human",
"value": "On the web page, it looks like there is no current development in the old style .doc.\n\nIs it good enough to create complex documents? \nCan it read all .docs without crashing?\nWhat features do (not) work?\n\nI am not currently interested in the XML based formats, as I don't c... |
When browsing the cube in Microsoft SQL Server Analysis Services 2005, I would like to peek at the MDX (supposedly) queries generated by client access tools such as Excel. Is there a tool or method that enables me to do just that?
I'm really looking for something like Oracle's v$sessions -- I know about sp_who and sp_w... | In Microsoft SQL Server Analysis Services (SSAS) 2005, there is no direct equivalent to Oracle's `v$session` for monitoring live sessions and queries like in SQL Server. However, there are methods you can use to capture the MDX queries generated by client access tools like Excel.
Here are a few approaches you can cons... | 37,369 | [
{
"from": "human",
"value": "When browsing the cube in Microsoft SQL Server Analysis Services 2005, I would like to peek at the MDX (supposedly) queries generated by client access tools such as Excel. Is there a tool or method that enables me to do just that?\nI'm really looking for something like Oracle's ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.