instruction stringlengths 14 27.6k | completion stringlengths 3 38.3k | __original_row_idx int64 0 50k | conversations listlengths 2 2 |
|---|---|---|---|
I'm talking about http://en.wikipedia.org/wiki/Quality_of_service. With streaming stackoverflow podcasts and downloading the lastest updates to ubuntu, I would like to have QoS working so I can use stackoverflow without my http connections timing out or taking forever.
I'm using an iConnect 624 ADSL modem which has QoS... | Quality of Service (QoS) is designed to manage bandwidth and prioritize traffic on your network, making sure that critical applications (like streaming or VoIP) maintain performance even when the network is congested. When it comes to your situation with the iConnect 624 ADSL modem and issues with streaming Stack Overf... | 231 | [
{
"from": "human",
"value": "I'm talking about http://en.wikipedia.org/wiki/Quality_of_service. With streaming stackoverflow podcasts and downloading the lastest updates to ubuntu, I would like to have QoS working so I can use stackoverflow without my http connections timing out or taking forever.\nI'm usin... |
I'm just designing the schema for a database table which will hold details of email attachments - their size in bytes, filename and content-type (i.e. "image/jpg", "audio/mp3", etc).
Does anybody know the maximum length that I can expect a content-type to be?
| The `Content-Type` header in HTTP, which is what you are referring to, typically follows the MIME type format. The most common structure of a MIME type is `type/subtype`, where both `type` and `subtype` can be made up of letters, digits, and a few special characters.
While there's no official maximum length specified ... | 1,692 | [
{
"from": "human",
"value": "I'm just designing the schema for a database table which will hold details of email attachments - their size in bytes, filename and content-type (i.e. \"image/jpg\", \"audio/mp3\", etc).\nDoes anybody know the maximum length that I can expect a content-type to be?\n"
},
{
... |
So the ADO.NET Entity Framework has gotten a little bit of bad press (in the form of blog entries and a petition) but I don't want to rush to judgement. I'm limited in time for experimentation but I was wondering has anyone worked with it yet with more empirical feedback?
Finally, what are thoughts on using NHibernate... | The ADO.NET Entity Framework (EF) and NHibernate are both popular Object-Relational Mapping (ORM) frameworks, each with its strengths and weaknesses. Here’s a summary of empirical feedback and comparisons between the two to help you with your decision.
### Entity Framework (EF)
**Pros:**
1. **Integrated with .NET:** ... | 286 | [
{
"from": "human",
"value": "So the ADO.NET Entity Framework has gotten a little bit of bad press (in the form of blog entries and a petition) but I don't want to rush to judgement. I'm limited in time for experimentation but I was wondering has anyone worked with it yet with more empirical feedback? \nFina... |
I'm using Castle Windsor to do some dependency injection, specifically I've abstracted the DAL layer to interfaces that are now being loaded by DI.
Once the project is developed & deployed all the .bin files will be in the same location, but for while I'm developing in Visual Studio, the only ways I can see of getting ... | When working with dependency injection in a solution with multiple projects, it's common to encounter the issue of ensuring that the appropriate assemblies are available in the startup project’s `bin` directory during development. While your options of using post-build events or adding project references are valid, the... | 179 | [
{
"from": "human",
"value": "I'm using Castle Windsor to do some dependency injection, specifically I've abstracted the DAL layer to interfaces that are now being loaded by DI.\nOnce the project is developed & deployed all the .bin files will be in the same location, but for while I'm developing in Visual S... |
Having a heckuva time with this one, though I feel I'm missing something obvious. I have a control that inherits from System.Web.UI.WebControls.Button, and then implements an interface that I have set up. So think...
public class Button : System.Web.UI.WebControls.Button, IMyButtonInterface { ... }
In the codebehind o... | To find all instances of your custom button that implements `IMyButtonInterface` in the control tree of an ASP.NET page, you can use the `is` operator to check if a control implements the interface. If you're using LINQ, it can be very handy for filtering.
Here's how you can accomplish this using a recursive method to... | 986 | [
{
"from": "human",
"value": "Having a heckuva time with this one, though I feel I'm missing something obvious. I have a control that inherits from System.Web.UI.WebControls.Button, and then implements an interface that I have set up. So think...\npublic class Button : System.Web.UI.WebControls.Button, IMyBu... |
The following C++ code uses a ifstream object to read integers from a text file (which has one number per line) until it hits EOF. Why does it read the integer on the last line twice? How to fix this?
Code:
#include <iostream>
#include <fstream>
using namespace std;
int main()
{
ifstream iFile("input.txt"); // ... | The issue you're experiencing with the C++ code stems from the way the `eof()` function works in conjunction with the input operation. In your current implementation, the loop continues until the end of the file (EOF) is reached. However, after reading the last integer, the stream's state is not updated to reflect that... | 1,322 | [
{
"from": "human",
"value": "The following C++ code uses a ifstream object to read integers from a text file (which has one number per line) until it hits EOF. Why does it read the integer on the last line twice? How to fix this?\nCode:\n#include <iostream>\n#include <fstream>\nusing namespace std;\n\nint m... |
I am having a strange DB2 issue when I run DBUnit tests. My DBUnit tests are highly customized, but I don't think it is the issue. When I run the tests, I get a failure:
SQLCODE: -1084, SQLSTATE: 57019
which translates to
SQL1084C Shared memory segments cannot be allocated.
It sounds like a weird memory issue, ... | The error message `SQLCODE: -1084, SQLSTATE: 57019` indicates that DB2 is having trouble allocating shared memory segments, which is often related to configuration or environment issues. Given that your tests succeed when you SSH into the database server and run the `connect to MY_DB` command, it's likely that the envi... | 110 | [
{
"from": "human",
"value": "I am having a strange DB2 issue when I run DBUnit tests. My DBUnit tests are highly customized, but I don't think it is the issue. When I run the tests, I get a failure: \n\nSQLCODE: -1084, SQLSTATE: 57019\n\nwhich translates to \n\nSQL1084C Shared memory segments cannot be al... |
This is starting to vex me. I recently decided to clear out my FTP, and stumbled across an old Wordpress install I forgot I had (oh yes, very security conscious me). Anyway, for some reason deleting the directory failed so I investigated to see what was causing the blockage and I've narrowed it down to a file in wp-con... | It sounds like you've run into an interesting situation with the symbolic link (symlink) in your WordPress installation. Here are some steps you can take to resolve the issue of deleting the symlink:
1. **Understanding Symbolic Links**: A symlink is a file that points to another file or directory. In this case, it app... | 545 | [
{
"from": "human",
"value": "This is starting to vex me. I recently decided to clear out my FTP, and stumbled across an old Wordpress install I forgot I had (oh yes, very security conscious me). Anyway, for some reason deleting the directory failed so I investigated to see what was causing the blockage and ... |
Sorry for the basic question - I'm a .NET developer and don't have much experience with LAMP setups.
I have a PHP site that will allow uploads to a specific folder. I have been told that this folder needs to be owned by the webserver user for the upload process to work, so I created the folder and then set permissions ... | You're on the right track with setting permissions, but the challenge you're facing is due to how Unix-like operating systems manage file ownership and permissions. In your setup, the webserver (running as `apache`) owns the files, and the FTP user does not have permission to modify them.
To achieve the functionality ... | 810 | [
{
"from": "human",
"value": "Sorry for the basic question - I'm a .NET developer and don't have much experience with LAMP setups.\nI have a PHP site that will allow uploads to a specific folder. I have been told that this folder needs to be owned by the webserver user for the upload process to work, so I cr... |
Say we have the following method:
private MyObject foo = new MyObject();
// and later in the class
public void PotentialMemoryLeaker(){
int firedCount = 0;
foo.AnEvent += (o,e) => { firedCount++;Console.Write(firedCount);};
foo.MethodThatFiresAnEvent();
}
If the class with this method is instantiated and the P... | Yes, in the current setup, calling the `PotentialMemoryLeaker` method multiple times would lead to a memory leak due to how event handlers work in C#. When you attach a lambda expression (like the one in your code) as an event handler, a new delegate instance is created and attached to the event each time `PotentialMem... | 846 | [
{
"from": "human",
"value": "Say we have the following method:\nprivate MyObject foo = new MyObject();\n\n// and later in the class\n\npublic void PotentialMemoryLeaker(){\n int firedCount = 0;\n foo.AnEvent += (o,e) => { firedCount++;Console.Write(firedCount);};\n foo.MethodThatFiresAnEvent();\n}\n\nIf ... |
I haven't used C++ since college. Even though I've wanted to I haven't needed to do any until I started wanting to write plugins for Launchy.
Is there a good book to read to get back into it?
My experience since college is mainly C# and recently ruby. I bought some book for C# developers and it ended up being on ho... | Welcome back to C++! Given your background in C# and Ruby, you'll want a book that emphasizes modern C++ practices while helping you get reacquainted with the language. Here are some recommendations that can help you bridge the gap:
1. **"The C++ Programming Language" by Bjarne Stroustrup**
This book is written b... | 1,356 | [
{
"from": "human",
"value": "I haven't used C++ since college. Even though I've wanted to I haven't needed to do any until I started wanting to write plugins for Launchy. \n\nIs there a good book to read to get back into it?\n\nMy experience since college is mainly C# and recently ruby. I bought some book ... |
I have seen these being used every which way, and have been accused of using them the wrong way (though in that case, I was using them that way to demonstrate a point).
So, what do you think are the best practices for employing Extension Methods?
Should development teams create a library of extension methods and deploy... | Extension methods are a powerful feature in C# that allow developers to "add" new methods to existing types without modifying their source code. However, they can be misused or overused, leading to code that is difficult to understand and maintain. Here are some best practices for employing extension methods, along wit... | 513 | [
{
"from": "human",
"value": "I have seen these being used every which way, and have been accused of using them the wrong way (though in that case, I was using them that way to demonstrate a point).\nSo, what do you think are the best practices for employing Extension Methods?\nShould development teams creat... |
I'm looking for some way to effectively hide inherited members. I have a library of classes which inherit from common base classes. Some of the more recent descendant classes inherit dependency properties which have become vestigial and can be a little confusing when using IntelliSense or using the classes in a visual... | Hiding inherited members in WPF or Silverlight can indeed be challenging, especially when you want to maintain usability in design tools and IntelliSense. Here are some potential approaches that could help you address this issue:
1. **Using `new` Keyword**: While you mentioned that using the `new` operator to hide mem... | 288 | [
{
"from": "human",
"value": "I'm looking for some way to effectively hide inherited members. I have a library of classes which inherit from common base classes. Some of the more recent descendant classes inherit dependency properties which have become vestigial and can be a little confusing when using Inte... |
I have a list of Foo. Foo has properties Bar and Lum. Some Foos have identical values for Bar. How can I use lambda/linq to group my Foos by Bar so I can iterate over each grouping's Lums?
| You can use LINQ in C# to group your `Foo` objects by the `Bar` property. The grouping can be done using the `GroupBy` method, and then you can iterate over each group to access the `Lum` properties.
Here’s an example demonstrating how to do this:
```csharp
using System;
using System.Collections.Generic;
using System... | 818 | [
{
"from": "human",
"value": "I have a list of Foo. Foo has properties Bar and Lum. Some Foos have identical values for Bar. How can I use lambda/linq to group my Foos by Bar so I can iterate over each grouping's Lums?\n"
},
{
"from": "gpt",
"value": "You can use LINQ in C# to group your `Foo` ob... |
How do I "name" a browser window in ROR, such that I can open a page in it later, from another (popup) window (using the target="name" html parameter)
| In Ruby on Rails (RoR), you can control the browser window's naming through the `target` attribute in your HTML links. When you want to open a new page in a specific browser window that you've named, you will use the `target` attribute with the value of the name you want to give that window.
Here's how you can set thi... | 180 | [
{
"from": "human",
"value": "How do I \"name\" a browser window in ROR, such that I can open a page in it later, from another (popup) window (using the target=\"name\" html parameter)\n"
},
{
"from": "gpt",
"value": "In Ruby on Rails (RoR), you can control the browser window's naming through the... |
The following code works great in IE, but not in FF or Safari. I can't for the life of me work out why. The code is supposed to disable radio buttons if you select the "Disable 2 radio buttons" option. It should enable the radio buttons if you select the "Enable both radio buttons" option. These both work...
Howeve... | The behavior you're experiencing is likely due to how different browsers handle the `onchange` event for `<select>` elements, as well as the handling of the `<option>` elements.
To fix the issue and ensure cross-browser compatibility, you can simplify and correct the code. Here's a revised version of your code that s... | 650 | [
{
"from": "human",
"value": "The following code works great in IE, but not in FF or Safari. I can't for the life of me work out why. The code is supposed to disable radio buttons if you select the \"Disable 2 radio buttons\" option. It should enable the radio buttons if you select the \"Enable both radio... |
So I've got a JPanel implementing MouseListener and MouseMotionListener:
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class DisplayArea extends JPanel implements MouseListener, MouseMotionListener {
public DisplayArea(Rectangle bounds, Display display) {
setLayout(null);
... | The issue you're facing is that although you've implemented the `MouseListener` and `MouseMotionListener` interfaces in your `DisplayArea` class, you haven't actually registered the `DisplayArea` instance as a listener for mouse events.
To ensure that your `DisplayArea` can listen for mouse events, you need to explic... | 1,140 | [
{
"from": "human",
"value": "So I've got a JPanel implementing MouseListener and MouseMotionListener:\nimport javax.swing.*;\nimport java.awt.*;\nimport java.awt.event.*;\n\npublic class DisplayArea extends JPanel implements MouseListener, MouseMotionListener {\n public DisplayArea(Rectangle bounds, Dis... |
In Perl, what is a good way to perform a replacement on a string using a regular expression and store the value in a different variable, without changing the original?
I usually just copy the string to a new variable then bind it to the s/// regex that does the replacement on the new string, but I was wondering if ther... | In Perl, your current method of copying the string and then performing a substitution on the new variable is quite common and perfectly acceptable. However, if you're looking for a more concise or idiomatic way to achieve the same goal without explicitly copying the string to a new variable, you can use the `s///` oper... | 1,255 | [
{
"from": "human",
"value": "In Perl, what is a good way to perform a replacement on a string using a regular expression and store the value in a different variable, without changing the original?\nI usually just copy the string to a new variable then bind it to the s/// regex that does the replacement on t... |
In .NET, is it more appropriate to throw an argument null exception for an Integer if the value is Integer.MinValue or Integer = 0 (assuming that 0 is not a valid value)?
| In .NET, when you need to validate parameters for a method, it is important to determine the appropriate exception to throw when a parameter is not valid.
If you have a situation where an integer parameter should not accept certain values, the most appropriate choice between `ArgumentNullException` and `ArgumentExcept... | 1,361 | [
{
"from": "human",
"value": "In .NET, is it more appropriate to throw an argument null exception for an Integer if the value is Integer.MinValue or Integer = 0 (assuming that 0 is not a valid value)?\n"
},
{
"from": "gpt",
"value": "In .NET, when you need to validate parameters for a method, it ... |
I didn't see any similar questions asked on this topic, and I had to research this for something I'm working on right now. Thought I would post the answer for it in case anyone else had the same question.
| That sounds great! Sharing your findings can be really helpful for others who might have the same question. What topic did you research, and what answer did you come up with? | 3,158 | [
{
"from": "human",
"value": "I didn't see any similar questions asked on this topic, and I had to research this for something I'm working on right now. Thought I would post the answer for it in case anyone else had the same question.\n"
},
{
"from": "gpt",
"value": "That sounds great! Sharing yo... |
Suppose we have a table A:
itemid mark
1 5
2 3
and table B:
itemid mark
1 3
3 5
I want to join A*B on A.itemid=B.itemid both right and left ways. i.e. result:
itemid A.mark B.mark
1 5 3
2 3 NULL
3 NULL 5
Is there a way to do it in one query in MySQL?
| Yes, you can achieve the desired result using a `FULL OUTER JOIN` in MySQL. However, MySQL does not directly support `FULL OUTER JOIN`. You can emulate a full outer join by combining a `LEFT JOIN` and a `RIGHT JOIN` using the `UNION` operator.
Here's how you can write the SQL query to get the result you want:
```sql
... | 2,269 | [
{
"from": "human",
"value": "Suppose we have a table A:\nitemid mark\n1 5\n2 3\n\nand table B:\nitemid mark\n1 3\n3 5\n\nI want to join A*B on A.itemid=B.itemid both right and left ways. i.e. result:\nitemid A.mark B.mark\n1 5 3\n2 3 NULL\n3 NULL 5\n\nIs there ... |
I really feel that I should learn Lisp and there are plenty of good resources out there to help me do it.
I'm not put off by the complicated syntax, but where in "traditional commercial programming" would I find places it would make sense to use it instead of a procedural language.
Is there a commercial killer-app out ... | Lisp is a powerful and versatile language with unique features that can make it particularly suitable for certain types of applications. While it's less common in traditional commercial programming than languages like Java, C#, or Python, there are specific areas where Lisp shines:
1. **Artificial Intelligence (AI) an... | 1,203 | [
{
"from": "human",
"value": "I really feel that I should learn Lisp and there are plenty of good resources out there to help me do it.\nI'm not put off by the complicated syntax, but where in \"traditional commercial programming\" would I find places it would make sense to use it instead of a procedural lan... |
I have a bunch of wizards created for MSVS 2005. Is it possible to convert them to MSVS 2008 format automatically?
| Yes, you can generally convert wizards created for Microsoft Visual Studio 2005 to work with Microsoft Visual Studio 2008, but there is no direct automated tool provided by Microsoft for this specific purpose. However, here are some steps you can take to facilitate the conversion process:
1. **Open in Visual Studio 20... | 1,481 | [
{
"from": "human",
"value": "I have a bunch of wizards created for MSVS 2005. Is it possible to convert them to MSVS 2008 format automatically?\n"
},
{
"from": "gpt",
"value": "Yes, you can generally convert wizards created for Microsoft Visual Studio 2005 to work with Microsoft Visual Studio 20... |
I need a C# profiler.
Although I'm not averse to paying for one, something which is free or at least with a trial version would be ideal since it takes time to raise a purchase order.
Any recommendations?
| Certainly! Here are some profiling tools for C# that offer free versions or trial options:
1. **dotTrace by JetBrains**:
- **Trial Version**: It offers a 30-day free trial.
- **Features**: Provides a powerful profiling tool for performance analysis, including CPU and memory profiling, and can integrate with Vi... | 689 | [
{
"from": "human",
"value": "I need a C# profiler.\nAlthough I'm not averse to paying for one, something which is free or at least with a trial version would be ideal since it takes time to raise a purchase order.\nAny recommendations?\n"
},
{
"from": "gpt",
"value": "Certainly! Here are some pr... |
When I've registered an object foo to receive KVO notifications from another object bar (using addObserver:...), if I then deallocate foo do I need to send a removeObserver:forKeyPath: message to bar in -dealloc?
| Yes, you should send a `removeObserver:forKeyPath:` message to `bar` in the `-dealloc` method of `foo`.
When you register `foo` to observe changes to a property of `bar` using Key-Value Observing (KVO) with `addObserver:forKeyPath:options:context:`, you create a relationship where `bar` will notify `foo` of changes. ... | 1,652 | [
{
"from": "human",
"value": "When I've registered an object foo to receive KVO notifications from another object bar (using addObserver:...), if I then deallocate foo do I need to send a removeObserver:forKeyPath: message to bar in -dealloc?\n"
},
{
"from": "gpt",
"value": "Yes, you should send ... |
Is it possible to configure nHibernate to connect to Paradox database (*.db files)?
| As of my last knowledge update in October 2023, NHibernate does not have built-in support for Paradox databases (*.db files). NHibernate primarily supports relational database management systems (RDBMS) such as SQL Server, MySQL, PostgreSQL, Oracle, and others through its various dialects.
However, if you want to use ... | 491 | [
{
"from": "human",
"value": "Is it possible to configure nHibernate to connect to Paradox database (*.db files)?\n"
},
{
"from": "gpt",
"value": "As of my last knowledge update in October 2023, NHibernate does not have built-in support for Paradox databases (*.db files). NHibernate primarily sup... |
Recently I have been investigating the possibilities of caching in ASP.NET.
I rolled my own "Cache", because I didn't know any better, it looked a bit like this:
public class DataManager
{
private static DataManager s_instance;
public static DataManager GetInstance()
{
}
private Data[] ... | Your custom caching implementation demonstrates a good understanding of the caching concept, but it has several limitations and potential issues compared to using the built-in caching mechanisms provided by ASP.NET, such as the `MemoryCache` class or the `HttpRuntime.Cache`. Below are some benefits of using the built-i... | 1,075 | [
{
"from": "human",
"value": "Recently I have been investigating the possibilities of caching in ASP.NET.\nI rolled my own \"Cache\", because I didn't know any better, it looked a bit like this:\npublic class DataManager\n{\n\n private static DataManager s_instance;\n\n public static DataManager Ge... |
There is a conversion process that is needed when migrating Visual Studio 2005 web site to Visual Studio 2008 web application projects.
It looks like VS2008 is creating a .designer. file for every aspx when you right click on a file or the project itself in Solution Explorer and select 'Convert to Web Application.'
Wha... | When migrating a Visual Studio 2005 website to a Visual Studio 2008 web application project, the `.designer.cs` files created during the conversion serve a specific purpose related to the way ASP.NET handles the code-behind of web forms.
### Purpose of `.designer.cs` Files
1. **Code Separation**: The `.designer.cs` f... | 83 | [
{
"from": "human",
"value": "There is a conversion process that is needed when migrating Visual Studio 2005 web site to Visual Studio 2008 web application projects.\nIt looks like VS2008 is creating a .designer. file for every aspx when you right click on a file or the project itself in Solution Explorer an... |
I'm having issues getting the C sockets API to work properly in C++ on z/OS.
Although I am including sys/socket.h, I still get compile time errors telling me that AF_INET is not defined.
Am I missing something obvious, or is this related to the fact that being on z/OS makes my problems much more complicated?
I discover... | The issues you're encountering with the C sockets API on z/OS seem to stem from the need to define certain macros in order to correctly set up the environment for compiling socket code. Let’s break down your issues and the necessary steps to resolve them.
### Understanding `_OE_SOCKETS`
In z/OS, the macro `_OE_SOCKET... | 140 | [
{
"from": "human",
"value": "I'm having issues getting the C sockets API to work properly in C++ on z/OS.\nAlthough I am including sys/socket.h, I still get compile time errors telling me that AF_INET is not defined.\nAm I missing something obvious, or is this related to the fact that being on z/OS makes my... |
What's going on here?
printf.sh:
#! /bin/sh
NAME="George W. Bush"
printf "Hello, %s\n" $NAME
Command line session:
$ ./printf.sh
Hello, George
Hello, W.
Hello, Bush
UPDATE: printf "Hello, %s\n" "$NAME" works. For why I'm not using echo, consider
echo.sh:
#! /bin/sh
FILE="C:\tmp"
echo "Filename: $FILE"
Command-line:
... | The behavior you're experiencing with both `printf.sh` and `echo.sh` is due to how shell handles word splitting and variable expansion.
### In `printf.sh`
Here's the content of `printf.sh` again for reference:
```sh
#! /bin/sh
NAME="George W. Bush"
printf "Hello, %s\n" $NAME
```
When you execute this script, the va... | 1,142 | [
{
"from": "human",
"value": "What's going on here?\nprintf.sh:\n#! /bin/sh\nNAME=\"George W. Bush\"\nprintf \"Hello, %s\\n\" $NAME\n\nCommand line session:\n$ ./printf.sh\nHello, George\nHello, W.\nHello, Bush\n\nUPDATE: printf \"Hello, %s\\n\" \"$NAME\" works. For why I'm not using echo, consider\necho.sh:... |
I am working on a Office Word add-in for Word 2003. When I reopen the project, the VS2008 auto covert dialog box opens and tries to convert it to the Word 2007 format.
How can I reopen this file and keep it in the Word 2003 format?
| When you open a Word 2003 document in Visual Studio 2008 and the auto-conversion dialog appears, it indicates that Visual Studio is attempting to upgrade your project to a newer format compatible with Word 2007 and later. To avoid this automatic conversion and maintain compatibility with Word 2003, you can follow these... | 562 | [
{
"from": "human",
"value": "I am working on a Office Word add-in for Word 2003. When I reopen the project, the VS2008 auto covert dialog box opens and tries to convert it to the Word 2007 format.\nHow can I reopen this file and keep it in the Word 2003 format?\n"
},
{
"from": "gpt",
"value": "W... |
Windows has a feature that allows an administrator to perform auto-logon whenever it is started. How can this feature be activated?
| To enable the auto-logon feature in Windows, follow these steps. Please note that these steps can vary slightly depending on your version of Windows, but the general process is similar.
### Important:
Using auto-logon can expose your system to security risks, as anyone with physical access to the computer can log in... | 1,342 | [
{
"from": "human",
"value": "Windows has a feature that allows an administrator to perform auto-logon whenever it is started. How can this feature be activated?\n"
},
{
"from": "gpt",
"value": "To enable the auto-logon feature in Windows, follow these steps. Please note that these steps can vary... |
In this question the answer was to flip on a switch that is picked up by the debugger disabling the extraneous header that was causing the problem. The Microsoft help implies these switched are user generated and does not list any switches.
<configuration>
<system.diagnostics>
<switches>
<add name="Remote.... | The `Remote.Disable` switch you referenced is part of the debugging and diagnostics infrastructure provided by .NET. Specifically, it is used to enable or disable certain aspects of remote debugging or behavior related to remote connections. The value `1` typically means that the switch is turned on, whereas a value of... | 289 | [
{
"from": "human",
"value": "In this question the answer was to flip on a switch that is picked up by the debugger disabling the extraneous header that was causing the problem. The Microsoft help implies these switched are user generated and does not list any switches.\n<configuration>\n <system.diagnosti... |
When building a VS 2008 solution with 19 projects I sometimes get:
The "GenerateResource" task failed unexpectedly.
System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
at System.IO.MemoryStream.set_Capacity(Int32 value)
at System.IO.MemoryStream.EnsureCapacity(Int32 value)
... | The `System.OutOfMemoryException` error that you're encountering while building your Visual Studio 2008 solution suggests that the process is running out of memory, even if your system has available memory. This can happen due to several reasons, particularly with large solutions or projects that have many resources.
... | 169 | [
{
"from": "human",
"value": "When building a VS 2008 solution with 19 projects I sometimes get:\nThe \"GenerateResource\" task failed unexpectedly.\nSystem.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.\n at System.IO.MemoryStream.set_Capacity(Int32 value)\n at System.... |
I have a database that contains a date and we are using the MaskedEditExtender (MEE) and MaskedEditValidator to make sure the dates are appropriate. However, we want the Admins to be able to go in and change the data (specifically the date) if necessary.
How can I have the MEE field pre-populate with the database va... | To pre-populate a masked input field with a value from the database when using the `MaskedEditExtender` (MEE) and `MaskedEditValidator` in ASP.NET, you need to ensure that you correctly set the value of the input field (usually a `TextBox`) after fetching the data from the database. The `InitialValue` property of the `... | 274 | [
{
"from": "human",
"value": "I have a database that contains a date and we are using the MaskedEditExtender (MEE) and MaskedEditValidator to make sure the dates are appropriate. However, we want the Admins to be able to go in and change the data (specifically the date) if necessary. \nHow can I have the M... |
When desinging UI for mobile apps in general which resolution could be considered safe as a general rule of thumb. My interest lies specifically in web based apps. The iPhone has a pretty high resolution for a hand held, and the Nokia E Series seem to oriented differently. Is 240×320 still considered safe?
| When designing UI for mobile web applications, it's important to consider a range of screen resolutions and devices to ensure a good user experience across the board. While 240x320 pixels (QVGA) was once a common baseline, it has largely become outdated due to the increasing prevalence of higher-resolution screens.
##... | 1,498 | [
{
"from": "human",
"value": "When desinging UI for mobile apps in general which resolution could be considered safe as a general rule of thumb. My interest lies specifically in web based apps. The iPhone has a pretty high resolution for a hand held, and the Nokia E Series seem to oriented differently. Is 24... |
Given this HTML:
<ul id="topnav">
<li id="topnav_galleries"><a href="#">Galleries</a></li>
<li id="topnav_information"><a href="#">Information</a></li>
</ul>
And this CSS:
#topnav_galleries a, #topnav_information a {
background-repeat: no-repeat;
text-indent: -9000px;
padding: 0;
margin: 0 0;
... | To turn the `topnav` list into an inline list, you need to change the default block display behavior of the list items (`<li>`) so that they are displayed inline. You can achieve this by modifying the CSS.
Here's how you can do it:
1. Add a CSS rule to set the list items to display inline (using `display: inline;`).... | 1,517 | [
{
"from": "human",
"value": "Given this HTML:\n<ul id=\"topnav\">\n <li id=\"topnav_galleries\"><a href=\"#\">Galleries</a></li>\n <li id=\"topnav_information\"><a href=\"#\">Information</a></li>\n</ul>\n\nAnd this CSS:\n#topnav_galleries a, #topnav_information a {\n background-repeat: no-repeat;\n... |
How do I create a branch in SVN?
| Creating a branch in SVN (Subversion) is a straightforward process. Here are the general steps to create a branch:
1. **Check out the repository** (if you haven't already):
You first need to check out the repository where you want to create the branch. You can do this using the `svn checkout` command.
```bash
... | 1,234 | [
{
"from": "human",
"value": "How do I create a branch in SVN?\n"
},
{
"from": "gpt",
"value": "Creating a branch in SVN (Subversion) is a straightforward process. Here are the general steps to create a branch:\n\n1. **Check out the repository** (if you haven't already):\n You first need to che... |
I am developing an Isolated Shell that caters to "designers/special content creators" performing specific tasks, using the Shell. As they operate on files, they need to be able to use TFS for source control. This is mainly due to the fact that Developers will also operate on the same files from TFS but using Visual stu... | Integrating Team Foundation Server (TFS) functionality into a Visual Studio 2008 Isolated Shell application can be challenging, especially since Team Explorer is designed primarily for use within the full Visual Studio IDE. Here are some considerations and potential solutions to explore:
### 1. **Using the TFS Client ... | 953 | [
{
"from": "human",
"value": "I am developing an Isolated Shell that caters to \"designers/special content creators\" performing specific tasks, using the Shell. As they operate on files, they need to be able to use TFS for source control. This is mainly due to the fact that Developers will also operate on t... |
Trying to setup an SSH server on Windows Server 2003. What are some good ones? Preferably open source. I plan on using WinSCP as a client so a server which supports the advanced features implemented by that client would be great.
| Setting up an SSH server on Windows Server 2003 can be a bit challenging, given that it's an older operating system and many modern tools may not support it. However, there are a few open-source options you can consider:
1. **OpenSSH for Windows**: While the original OpenSSH was primarily developed for Unix-like syste... | 371 | [
{
"from": "human",
"value": "Trying to setup an SSH server on Windows Server 2003. What are some good ones? Preferably open source. I plan on using WinSCP as a client so a server which supports the advanced features implemented by that client would be great.\n"
},
{
"from": "gpt",
"value": "Sett... |
This is my first post here and I wanted to get some input from people doing iPhone development. Other than the Apple DevCenter, where are there good sites to learn iPhone developement?
I know Apple has a tough NDA but there has to be people talking about writing applications for the iPhone.
| Welcome to the iPhone development community! You're correct that the Apple Developer Center is a primary resource, but there are many other great sites and communities where you can learn and discuss iPhone development. Here are some suggestions:
1. **Ray Wenderlich**: This site offers a wealth of tutorials, books, an... | 991 | [
{
"from": "human",
"value": "This is my first post here and I wanted to get some input from people doing iPhone development. Other than the Apple DevCenter, where are there good sites to learn iPhone developement?\nI know Apple has a tough NDA but there has to be people talking about writing applications f... |
I have a record set that includes a date field, and want to determine how many unique dates are represented in the record set.
Something like:
Record.find(:all).date.unique.count
but of course, that doesn't seem to work.
| In order to count unique dates from a set of records in Ruby on Rails, you can achieve this by utilizing Active Record queries more effectively. You can use the `distinct` method along with `pluck` to get unique date values and then count them. Here's how you can do that:
```ruby
unique_date_count = Record.distinct.pl... | 2,550 | [
{
"from": "human",
"value": "I have a record set that includes a date field, and want to determine how many unique dates are represented in the record set.\nSomething like:\nRecord.find(:all).date.unique.count \n\nbut of course, that doesn't seem to work.\n"
},
{
"from": "gpt",
"value": "In orde... |
I previously asked about Version Cue 3 vs Subversion. I think this is a better question and someone suggested http://www.gridironsoftware.com/Flow/ I hope this question will allow others to join in and suggest other tools or give specific recommendation to using Version Que versus other tools.
| When comparing Version Cue 3 to Subversion (SVN) and other version control systems (VCS), it’s important to consider the specific needs of your project, team size, workflow, and the type of assets you are managing (e.g., code, graphics, documents). Here’s a breakdown of considerations and alternatives:
### Version Cue... | 796 | [
{
"from": "human",
"value": "I previously asked about Version Cue 3 vs Subversion. I think this is a better question and someone suggested http://www.gridironsoftware.com/Flow/ I hope this question will allow others to join in and suggest other tools or give specific recommendation to using Version Que vers... |
What is the best full text search alternative to Microsoft SQL? (which works with MS SQL)
I'm looking for something similar to Lucene and Lucene.NET but without the .NET and Java requirements. I would also like to find a solution that is usable in commercial applications.
| If you're looking for a full-text search solution that can work alongside Microsoft SQL Server and doesn't rely on .NET or Java, consider the following alternatives:
1. **Elasticsearch**:
- **Overview**: A highly scalable open-source full-text search engine based on Apache Lucene. It provides a distributed, RESTfu... | 6 | [
{
"from": "human",
"value": "What is the best full text search alternative to Microsoft SQL? (which works with MS SQL)\nI'm looking for something similar to Lucene and Lucene.NET but without the .NET and Java requirements. I would also like to find a solution that is usable in commercial applications.\n"
... |
For a person without a comp-sci background, what is a lambda in the world of Computer Science?
| In computer science, particularly in programming and functional programming, a "lambda" typically refers to an anonymous function—essentially a small piece of code that you can define without giving it a specific name. These functions are often used when you need a simple function for a short period of time and don’t w... | 965 | [
{
"from": "human",
"value": "For a person without a comp-sci background, what is a lambda in the world of Computer Science?\n"
},
{
"from": "gpt",
"value": "In computer science, particularly in programming and functional programming, a \"lambda\" typically refers to an anonymous function—essenti... |
We are experiencing this annoying problem where we have a context menu on our tray icon, if we display this context menu we have to SetForegroundWindow and bring it to the front. This is really annoying and not at all what we want.
Is there a workaround, I notice that Outlook MS Messenger and other MS apps do not suffe... | The behavior you're experiencing with the context menu of a tray icon (system tray icon) is a known limitation in Windows UI programming. When you call `TrackPopupMenu` to display a context menu, Windows expects that the owning window (the one that created the context menu) is the one that should be brought to the fore... | 328 | [
{
"from": "human",
"value": "We are experiencing this annoying problem where we have a context menu on our tray icon, if we display this context menu we have to SetForegroundWindow and bring it to the front. This is really annoying and not at all what we want.\nIs there a workaround, I notice that Outlook M... |
NOTE: XMLIgnore is NOT the answer!
OK, so following on from my question on XML Serialization and Inherited Types, I began integrating that code into my application I am working on, stupidly thinking all will go well..
I ran into problems with a couple of classes I have that implement IEnumerable and ICollection<T>
The ... | It sounds like you're running into some of the common limitations of the `XmlSerializer` in .NET, especially when dealing with collections and interface implementations. Here are a few approaches you might consider without removing the interface implementations:
### 1. Use a Backing Field
You can create a private bac... | 775 | [
{
"from": "human",
"value": "NOTE: XMLIgnore is NOT the answer!\nOK, so following on from my question on XML Serialization and Inherited Types, I began integrating that code into my application I am working on, stupidly thinking all will go well..\nI ran into problems with a couple of classes I have that im... |
What are the fundamentals to accomplish data encryption with exactly two keys (which could be password-based), but needing only one (either one) of the two keys to decrypt the data?
For example, data is encrypted with a user's password and his company's password, and then he or his company can decrypt the data. Neither... | To implement a data encryption scheme that allows decryption with one of two keys while not storing the keys, you can use a combination of symmetric key cryptography and a specific technique that allows for dual-key access. One viable approach is as follows:
### Overview
1. **Key Derivation**: Use both keys (passwords... | 10 | [
{
"from": "human",
"value": "What are the fundamentals to accomplish data encryption with exactly two keys (which could be password-based), but needing only one (either one) of the two keys to decrypt the data?\nFor example, data is encrypted with a user's password and his company's password, and then he or... |
While the C# spec does include a pre-processor and basic directives (#define, #if, etc), the language does not have the same flexible pre-processor found in languages such as C/C++. I believe the lack of such a flexible pre-processor was a design decision made by Anders Hejlsberg (although, unfortunately, I can't find ... | The idea of creating or using a pre-processor in C# to handle specific cases, such as avoiding string literals in notification methods, can be tempting, especially if you want to make your code cleaner and less error-prone. However, there are several considerations to take into account before deciding to build your own... | 136 | [
{
"from": "human",
"value": "While the C# spec does include a pre-processor and basic directives (#define, #if, etc), the language does not have the same flexible pre-processor found in languages such as C/C++. I believe the lack of such a flexible pre-processor was a design decision made by Anders Hejlsber... |
How do I check if an object property in JavaScript is undefined?
| In JavaScript, you can check if an object property is `undefined` using several methods. Here are some common ways to do this:
### 1. Using the `typeof` Operator
You can use the `typeof` operator to check if a property is `undefined`:
```javascript
const obj = { a: 1, b: undefined };
if (typeof obj.b === 'undefined'... | 404 | [
{
"from": "human",
"value": "How do I check if an object property in JavaScript is undefined?\n"
},
{
"from": "gpt",
"value": "In JavaScript, you can check if an object property is `undefined` using several methods. Here are some common ways to do this:\n\n### 1. Using the `typeof` Operator\nYou... |
How can you obtain the Type (the name as a string is sufficient) of an Object in VB6 at runtime?
i.e. something like:
If Typeof(foobar) = "CommandButton" Then ...
/EDIT: to clarify, I need to check on Dynamically Typed objects. An example:
Dim y As Object
Set y = CreateObject("SomeType")
Debug.Print( <The type name... | In VB6, you can obtain the type of a dynamically typed object at runtime using the `TypeName` function. This function returns the name of the type of the specified variable as a string. Here's how you can use it in your case:
```vb
Dim y As Object
Set y = CreateObject("SomeType") ' Replace "SomeType" with the actual t... | 2,039 | [
{
"from": "human",
"value": "How can you obtain the Type (the name as a string is sufficient) of an Object in VB6 at runtime?\ni.e. something like:\nIf Typeof(foobar) = \"CommandButton\" Then ...\n\n/EDIT: to clarify, I need to check on Dynamically Typed objects. An example:\nDim y As Object \n\nSet y = Cre... |
Looking for feedback on :
http://code.google.com/p/google-perftools/wiki/GooglePerformanceTools
| I can't browse external websites directly, including the link you provided. However, I can offer feedback based on general knowledge of Google Performance Tools, such as CPU profiler, heap profiler, and thread sanitizer.
Here are some common points of feedback regarding performance tools:
1. **Documentation Clarity*... | 1,875 | [
{
"from": "human",
"value": "Looking for feedback on :\nhttp://code.google.com/p/google-perftools/wiki/GooglePerformanceTools\n"
},
{
"from": "gpt",
"value": "I can't browse external websites directly, including the link you provided. However, I can offer feedback based on general knowledge of G... |
Can you suggest some light weight fuzzy text search library?
What I want to do is to allow users to find correct data for search terms with typos.
I could use full-text search engines like Lucene, but I think it's an overkill.
Edit:
To make question more clear here is a main scenario for that library:
I have a large li... | There are several lightweight libraries and techniques you can consider for fuzzy text search that can handle typos and approximate matching. Here are some alternatives to ShuffleText:
1. **FuzzySearch (Python)**:
- A lightweight library that uses Levenshtein distance to provide fuzzy searching capabilities. It's s... | 896 | [
{
"from": "human",
"value": "Can you suggest some light weight fuzzy text search library?\nWhat I want to do is to allow users to find correct data for search terms with typos.\nI could use full-text search engines like Lucene, but I think it's an overkill.\nEdit:\nTo make question more clear here is a main... |
When creating and executing a ajax request queue with $.manageAjax, I call ajaxManager.abort();, to abort the entire queue due to error, at which time I get an error stating: q[num] has no properties (jquery.ajaxmanager.js line 75)
Here is the calling code:
var ajaxManager = $.manageAjax({manageType:'sync', maxReq:0});... | The error you are encountering seems to be related to the way you are aborting the AJAX requests using the `$.manageAjax` library. It looks like you are trying to abort the queue while processing an AJAX request, which may lead to some race conditions, causing the error you see (`q[num] has no properties`).
Here are a... | 789 | [
{
"from": "human",
"value": "When creating and executing a ajax request queue with $.manageAjax, I call ajaxManager.abort();, to abort the entire queue due to error, at which time I get an error stating: q[num] has no properties (jquery.ajaxmanager.js line 75)\nHere is the calling code:\nvar ajaxManager = $... |
The default shell in Mac OS X is bash, which I'm generally happy to be using. I just take it for granted. It would be really nice if it auto-completed more stuff, though, and I've heard good things about zsh in this regard. But I don't really have the inclination to spend hours fiddling with settings to improve my comm... | Switching from bash to zsh can offer some benefits, especially if you're looking for enhanced features and user experience without necessarily diving deep into configuration. Here are two perspectives: one for sticking with bash and one for making the switch to zsh.
### Stick with Bash: Reason from Rodney Amato
1. **... | 1,019 | [
{
"from": "human",
"value": "The default shell in Mac OS X is bash, which I'm generally happy to be using. I just take it for granted. It would be really nice if it auto-completed more stuff, though, and I've heard good things about zsh in this regard. But I don't really have the inclination to spend hours ... |
I'm looking for the best JavaScript editor available as an Eclipse plugin. I've been using Spket which is good. But, is there more better one?
| If you're looking for JavaScript editors as Eclipse plugins, there are a few options available that you might find useful:
1. **Eclipse Wild Web Developer**: This is a powerful and feature-rich plugin that supports a wide range of web technologies, including JavaScript, HTML, CSS, and more. It offers advanced features... | 1,409 | [
{
"from": "human",
"value": "I'm looking for the best JavaScript editor available as an Eclipse plugin. I've been using Spket which is good. But, is there more better one?\n"
},
{
"from": "gpt",
"value": "If you're looking for JavaScript editors as Eclipse plugins, there are a few options availa... |
I'm suddenly back to WinForms, after years of web development, and am having trouble with something that should be simple. I have an ArrayList of business objects bound to a Windows Forms DataGrid. I'd like the user to be able to edit the cells, and when finished, press a Save button. At that point I'd like to it... | Welcome back to WinForms development! While working with a `DataGrid` (or `DataGridView`, which is generally preferred in newer applications) and `ArrayList` might feel limiting, you can still achieve the functionality you're looking for without the need to switch to `DataTables`. Below are some pointers to help you wo... | 518 | [
{
"from": "human",
"value": "I'm suddenly back to WinForms, after years of web development, and am having trouble with something that should be simple. I have an ArrayList of business objects bound to a Windows Forms DataGrid. I'd like the user to be able to edit the cells, and when finished, press a S... |
I'm working on a .net solution that is run completely inside a single network. When users make a change to the system, I want to launch an announcement and have everyone else hear it and act accordingly. Is there a way that we can broadcast out messages like this (like UDP will let you do) while keeping guaranteed del... | To achieve a broadcast messaging system with guaranteed delivery in a small network (about 30 clients), you might want to consider a combination of different techniques rather than sticking with pure UDP or TCP. Here are some approaches you can take:
### 1. **Use TCP with Publish-Subscribe Pattern**
One of the most e... | 168 | [
{
"from": "human",
"value": "I'm working on a .net solution that is run completely inside a single network. When users make a change to the system, I want to launch an announcement and have everyone else hear it and act accordingly. Is there a way that we can broadcast out messages like this (like UDP will... |
I have a large table with 1 million+ records. Unfortunately, the person who created the table decided to put dates in a varchar(50) field.
I need to do a simple date comparison -
datediff(dd, convert(datetime, lastUpdate, 100), getDate()) < 31
But it fails on the convert():
Conversion failed when converting datetime f... | It looks like you've already resolved the issue with the help of others, but I'll summarize a comprehensive approach to ensure you can sanitize the `varchar` date field correctly while handling the conversion and filtering effectively.
Here's a complete query based on your requirements, which utilizes `CASE` and `ISDA... | 1,644 | [
{
"from": "human",
"value": "I have a large table with 1 million+ records. Unfortunately, the person who created the table decided to put dates in a varchar(50) field.\nI need to do a simple date comparison -\ndatediff(dd, convert(datetime, lastUpdate, 100), getDate()) < 31\n\nBut it fails on the convert():... |
I've got a situation where I have a main form that pops up an advanced configuration form that just has half a dozen matched check boxes and combo boxes to select some advanced options (the check boxes to enable/disable, the combo to select a media if enabled).
If I just pass the individual settings for the check and c... | You're right to consider both efficiency and coding practices when designing your configuration dialog. Having a large number of parameters in a constructor can indeed lead to code that's hard to read and maintain. Here are some options that strike a balance between clarity and conciseness:
### 1. Use a Configuration ... | 757 | [
{
"from": "human",
"value": "I've got a situation where I have a main form that pops up an advanced configuration form that just has half a dozen matched check boxes and combo boxes to select some advanced options (the check boxes to enable/disable, the combo to select a media if enabled).\nIf I just pass t... |
I have a product which has been traditionally shipped as an MSI file. It is deployed through some sort of SMS push to thousands of desktops by our various clients. The software we use to create these installers is getting long in the tooth and we are looking to replace it. We have already standardized on InstallAnyw... | SMS (System Management Server), now known as Microsoft Endpoint Configuration Manager, can handle various installer formats, including .exe files. However, the ability to deploy .exe files depends on how the application is packaged and whether it can be silently installed without user interaction. If your clients curre... | 1,281 | [
{
"from": "human",
"value": "I have a product which has been traditionally shipped as an MSI file. It is deployed through some sort of SMS push to thousands of desktops by our various clients. The software we use to create these installers is getting long in the tooth and we are looking to replace it. We... |
Is it possible to somehow use a .bat file to script the schema and/or content of a SQL Server database?
I can do this via the wizard, but would like to streamline the creation of this file for source control purposes.
I would like to avoid the use of 3rd party tools, just limiting myself to the tools that come with SQL... | Yes, you can use a `.bat` file to script the schema and content of a SQL Server database using the tools that come with SQL Server, specifically using SQLCMD or PowerShell. Below are the steps you can follow to create a `.bat` file that will export the schema and/or content of a SQL Server database.
### 1. Exporting D... | 906 | [
{
"from": "human",
"value": "Is it possible to somehow use a .bat file to script the schema and/or content of a SQL Server database?\nI can do this via the wizard, but would like to streamline the creation of this file for source control purposes.\nI would like to avoid the use of 3rd party tools, just limi... |
I've been having a hard time trying to understand PyPy's translation. It looks like something absolutely revolutionary from simply reading the description, however I'm hard-pressed to find good documentation on actually translating a real world piece of code to something such as LLVM. Does such a thing exist? The of... | PyPy is indeed an interesting project, particularly its ability to translate Python code into efficient machine code via its translation toolchain. If you're looking to understand how to translate real-world Python code to LLVM using PyPy, here’s a general overview and some steps you can follow:
### Getting Started wi... | 426 | [
{
"from": "human",
"value": "I've been having a hard time trying to understand PyPy's translation. It looks like something absolutely revolutionary from simply reading the description, however I'm hard-pressed to find good documentation on actually translating a real world piece of code to something such a... |
I am running oracle and have a query which pulls some results from the database. I would like to write the results as a text file. How would I go about doing this?
My prefered way would be by using UTL_FILE. Would some one have an example of how to do this?
| Certainly! To write the results of a query to a text file in Oracle using the `UTL_FILE` package, you need to follow several steps. Here's a simple example to guide you through the process.
### Step-by-Step Guide
1. **Create a Directory Object**: First, you need to create a directory object in Oracle where the file w... | 425 | [
{
"from": "human",
"value": "I am running oracle and have a query which pulls some results from the database. I would like to write the results as a text file. How would I go about doing this?\nMy prefered way would be by using UTL_FILE. Would some one have an example of how to do this?\n"
},
{
"fro... |
I'm trying to serialize a Type object in the following way:
Type myType = typeof (StringBuilder);
var serializer = new XmlSerializer(typeof(Type));
TextWriter writer = new StringWriter();
serializer.Serialize(writer, myType);
When I do this, the call to Serialize throws the following exception:
"The type System.Tex... | The exception you're encountering arises from the fact that the `XmlSerializer` in .NET does not know how to serialize `Type` objects, as they represent metadata about types at runtime rather than actual data. The `XmlSerializer` can only work with types that it understands how to serialize, such as objects with public... | 497 | [
{
"from": "human",
"value": "I'm trying to serialize a Type object in the following way:\nType myType = typeof (StringBuilder);\nvar serializer = new XmlSerializer(typeof(Type));\nTextWriter writer = new StringWriter();\nserializer.Serialize(writer, myType);\n\nWhen I do this, the call to Serialize throws t... |
Let's say I have four tables: PAGE, USER, TAG, and PAGE-TAG:
Table | Fields
------------------------------------------
PAGE | ID, CONTENT
TAG | ID, NAME
USER | ID, NAME
PAGE-TAG | ID, PAGE-ID, TAG-ID, USER-ID
And let's say I have four pages:
PAGE#1 'Content page 1' tagged with tag#1 by us... | To achieve your goal of counting how many tags from a specified list appear for each page, we can structure the SQL query to group the results by the page and utilize a `CASE` statement or a `COUNT` with a filtering condition to count only those tags that are in the provided list.
Here’s how you can write the SQL quer... | 1,195 | [
{
"from": "human",
"value": "Let's say I have four tables: PAGE, USER, TAG, and PAGE-TAG:\nTable | Fields\n------------------------------------------\nPAGE | ID, CONTENT\nTAG | ID, NAME\nUSER | ID, NAME \nPAGE-TAG | ID, PAGE-ID, TAG-ID, USER-ID\n\nAnd let's say I have four pages... |
I'm missing something here:
$objSearcher = New-Object System.DirectoryServices.DirectorySearcher
$objSearcher.SearchRoot = New-Object System.DirectoryServices.DirectoryEntry
$objSearcher.Filter = ("(objectclass=computer)")
$computers = $objSearcher.findall()
So the question is why do the two following outputs ... | The discrepancy you're observing in the output of the two different commands is due to how PowerShell processes strings and variable expansions within double-quoted strings.
Let's break it down:
### Your Commands
1. **First Command:**
```powershell
$computers | %{
"Server name in quotes $_.propertie... | 1,098 | [
{
"from": "human",
"value": "I'm missing something here:\n$objSearcher = New-Object System.DirectoryServices.DirectorySearcher \n$objSearcher.SearchRoot = New-Object System.DirectoryServices.DirectoryEntry \n$objSearcher.Filter = (\"(objectclass=computer)\") \n$computers = $objSearcher.findall() \n\nSo ... |
When should I include PDB files for a production release? Should I use the Optimize code flag and how would that affect the information I get from an exception?
If there is a noticeable performance benefit I would want to use the optimizations but if not I'd rather have accurate debugging info. What is typically done f... | When preparing for a production release, the inclusion of PDB (Program Database) files and the use of optimization flags are important considerations that can affect debugging, performance, and overall application behavior.
### Inclusion of PDB Files
1. **Debugging**: PDB files contain debugging symbols, which are cr... | 124 | [
{
"from": "human",
"value": "When should I include PDB files for a production release? Should I use the Optimize code flag and how would that affect the information I get from an exception?\nIf there is a noticeable performance benefit I would want to use the optimizations but if not I'd rather have accurat... |
What is a good data structure for storing phone numbers in database fields? I'm looking for something that is flexible enough to handle international numbers, and also something that allows the various parts of the number to be queried efficiently.
Edit: Just to clarify the use case here: I currently store numbers in ... | Based on your use case and requirements for handling international phone numbers and efficient querying, here's a recommended approach for structuring your database fields for storing phone numbers:
### 1. Database Table Structure
You might want to create a dedicated table or enhance your existing table with the follo... | 388 | [
{
"from": "human",
"value": "What is a good data structure for storing phone numbers in database fields? I'm looking for something that is flexible enough to handle international numbers, and also something that allows the various parts of the number to be queried efficiently.\nEdit: Just to clarify the us... |
We have a situation where users are allowed to upload content, and then separately make some changes, then submit a form based on those changes.
This works fine in a single-server, non-failover environment, however we would like some sort of solution for sharing the files between servers that supports failover.
Has any... | In a multi-server environment with the need for file uploads that can be shared among instances, you have several viable options that can facilitate this while supporting failover scenarios. Here are some common solutions:
1. **Network Attached Storage (NAS)**:
- **Setup a NAS**: Use a network attached storage syst... | 348 | [
{
"from": "human",
"value": "We have a situation where users are allowed to upload content, and then separately make some changes, then submit a form based on those changes.\nThis works fine in a single-server, non-failover environment, however we would like some sort of solution for sharing the files betwe... |
An app I'm writing always crashes on a clients computer, but I don't get an exception description, or a stack trace.
The only thing I get is a crash report that windows wants to send to Microsoft.
I would like to get that dump file and investigate it myself, but I cannot find it.
When I "View the contents of the error ... | If your application is crashing and you're seeing Windows Error Reporting (WER) prompts, you can retrieve the memory dump files manually from the system. Here's how to find and access the crash dump files:
### Accessing Crash Dump Files
1. **Check the WER Settings**: Before accessing the dump files, ensure that the W... | 620 | [
{
"from": "human",
"value": "An app I'm writing always crashes on a clients computer, but I don't get an exception description, or a stack trace.\nThe only thing I get is a crash report that windows wants to send to Microsoft.\nI would like to get that dump file and investigate it myself, but I cannot find ... |
I am fed up having to turn them on every time I open the application.
| It sounds like you're dealing with a frustrating issue where certain features or settings need to be re-enabled each time you open an application. Here are a few general troubleshooting steps you can try:
1. **Check Application Settings**: Look for options within the application's settings or preferences that allow yo... | 2,174 | [
{
"from": "human",
"value": "I am fed up having to turn them on every time I open the application.\n"
},
{
"from": "gpt",
"value": "It sounds like you're dealing with a frustrating issue where certain features or settings need to be re-enabled each time you open an application. Here are a few ge... |
Given the URL (single line):
http://test.example.com/dir/subdir/file.html
How can I extract the following parts using regular expressions:
The Subdomain (test)
The Domain (example.com)
The path without the file (/dir/subdir/)
The file (file.html)
The path with the file (/dir/subdir/file.html)
The URL without the path ... | You can use the following regular expression to extract the desired components from the URL. Below is a Python code snippet that demonstrates how to do this using the `re` module:
```python
import re
url = "http://test.example.com/dir/subdir/file.html"
# Regular expression to match the components of the URL
regex = ... | 630 | [
{
"from": "human",
"value": "Given the URL (single line):\nhttp://test.example.com/dir/subdir/file.html\nHow can I extract the following parts using regular expressions:\n\nThe Subdomain (test)\nThe Domain (example.com)\nThe path without the file (/dir/subdir/)\nThe file (file.html)\nThe path with the file ... |
I want to be able to do:
For Each thing In things
End For
CLASSIC ASP - NOT .NET!
| In classic ASP, you can iterate over a collection of items using a `For Each` loop. Here's a simple example to demonstrate how you can do this:
1. First, ensure you have a collection (like an array or a dictionary) to iterate over.
2. Use the `For Each` loop to go through each item in that collection.
Here's a comple... | 2,161 | [
{
"from": "human",
"value": "I want to be able to do:\nFor Each thing In things\nEnd For\n\nCLASSIC ASP - NOT .NET!\n"
},
{
"from": "gpt",
"value": "In classic ASP, you can iterate over a collection of items using a `For Each` loop. Here's a simple example to demonstrate how you can do this:\n\n... |
I have created a template for Visual Studio 2008 and it currently shows up under File->New Project->Visual C#. However, it is only really specific to Visual C#/Windows but I can't work out how to get it to show up under the "Windows" category and not the more general "Visual C#".
| To ensure your Visual Studio 2008 project template shows up under the "Windows" category rather than under the broader "Visual C#" category, you will need to adjust the `.zip` file that contains your template. This typically involves modifying the `MyTemplate.vstemplate` file within your project template package. Here’... | 457 | [
{
"from": "human",
"value": "I have created a template for Visual Studio 2008 and it currently shows up under File->New Project->Visual C#. However, it is only really specific to Visual C#/Windows but I can't work out how to get it to show up under the \"Windows\" category and not the more general \"Visual ... |
Say I have the following file structure:
app/
app.py
controllers/
__init__.py
project.py
plugin.py
If app/controllers/project.py defines a class Project, app.py would import it like this:
from app.controllers.project import Project
I'd like to just be able to do:
from app.controllers import Project
H... | To enable the import statement `from app.controllers import Project` while keeping the structure of your application intact, you can utilize the `__init__.py` file in the `controllers` directory to expose the `Project` class. This is a common practice in Python to simplify imports from a package.
Here's how you can do... | 1,333 | [
{
"from": "human",
"value": "Say I have the following file structure:\napp/\n app.py\n controllers/\n __init__.py\n project.py\n plugin.py\n\nIf app/controllers/project.py defines a class Project, app.py would import it like this:\nfrom app.controllers.project import Project\n\nI'd like to just b... |
I was recently brushing up on some fundamentals and found merge sorting a linked list to be a pretty good challenge. If you have a good implementation then show it off here.
| Certainly! Merge sorting a linked list is an interesting challenge because it allows us to leverage the properties of linked lists while implementing a classic sorting algorithm. The merge sort algorithm is particularly well-suited to linked lists due to its O(n log n) time complexity and the fact that it doesn't requi... | 266 | [
{
"from": "human",
"value": "I was recently brushing up on some fundamentals and found merge sorting a linked list to be a pretty good challenge. If you have a good implementation then show it off here.\n"
},
{
"from": "gpt",
"value": "Certainly! Merge sorting a linked list is an interesting cha... |
How do I determine the size of my array in C?
That is, the number of elements the array can hold?
| In C, you can determine the size of a statically allocated array using the `sizeof` operator. This operator returns the total number of bytes used by the array. To find the number of elements in the array, you can divide the total size of the array by the size of a single element.
Here's how you can do it:
```c
#incl... | 1,780 | [
{
"from": "human",
"value": "How do I determine the size of my array in C? \nThat is, the number of elements the array can hold?\n"
},
{
"from": "gpt",
"value": "In C, you can determine the size of a statically allocated array using the `sizeof` operator. This operator returns the total number o... |
What are the best practices to consider when catching exceptions and re-throwing them? I want to make sure that the Exception object's InnerException and stack trace are preserved. Is there a difference between the following code blocks in the way they handle this?
try
{
//some code
}
catch (Exception ex)
{
thr... | When catching exceptions and re-throwing them, it is important to follow best practices to ensure that the exception's context is preserved. Here are some best practices and considerations regarding re-throwing exceptions:
### Best Practices
1. **Preserve Stack Trace**: When re-throwing exceptions, you should avoid c... | 617 | [
{
"from": "human",
"value": "What are the best practices to consider when catching exceptions and re-throwing them? I want to make sure that the Exception object's InnerException and stack trace are preserved. Is there a difference between the following code blocks in the way they handle this?\ntry\n{\n ... |
I'm building a listing/grid control in a Flex application and using it in a .NET web application. To make a really long story short I am getting XML from a webservice of serialized objects. I have a page limit of how many things can be on a page. I've taken a data grid and made it page, sort across pages, and handle... | It looks like you're trying to manipulate an `XMLList` in ActionScript, specifically removing a node from that list and then adding a new node in its place. The issue you're encountering with the `delete` operation on an `XMLList` can arise because `delete` works a bit differently in ActionScript than you might expect ... | 804 | [
{
"from": "human",
"value": "I'm building a listing/grid control in a Flex application and using it in a .NET web application. To make a really long story short I am getting XML from a webservice of serialized objects. I have a page limit of how many things can be on a page. I've taken a data grid and ma... |
Is it still worth to add the log4j library to a Java 5 project just to log
let's say some exceptions to a file with some nice rollover settings.
Or will the standard util.logging facility do the job as well?
What do you think?
| When deciding whether to use log4j or the standard `java.util.logging` (JUL) facility in a Java 5 project, there are several factors to consider:
### Advantages of log4j:
1. **Flexibility and Features**: Log4j offers more advanced features such as configuration through XML or properties files, customizable logging lev... | 781 | [
{
"from": "human",
"value": "Is it still worth to add the log4j library to a Java 5 project just to log\nlet's say some exceptions to a file with some nice rollover settings.\nOr will the standard util.logging facility do the job as well?\nWhat do you think?\n"
},
{
"from": "gpt",
"value": "When... |
Most wiki software I've presents lots of "features" on their pages. This is fine for desktop users, but is annoying when using an iPhone or other mobile device. I'd prefer pages that just had the content, along with maybe an Edit button and a Search button. The editors are also often too fancy for mobile users; a si... | If you're looking for a wiki software package that prioritizes simplicity and usability on mobile devices, there are a few options you might consider:
1. **MediaWiki with MobileFrontend**: MediaWiki is the platform that powers Wikipedia, and it has a responsive design when paired with the MobileFrontend extension. Thi... | 985 | [
{
"from": "human",
"value": "Most wiki software I've presents lots of \"features\" on their pages. This is fine for desktop users, but is annoying when using an iPhone or other mobile device. I'd prefer pages that just had the content, along with maybe an Edit button and a Search button. The editors are ... |
In the How Can I Expose Only a Fragment of IList<> question one of the answers had the following code snippet:
IEnumerable<object> FilteredList()
{
foreach(object item in FullList)
{
if(IsItemInPartialList(item))
yield return item;
}
}
What does the yield keyword do there? I've seen it... | The `yield` keyword in C# is used to simplify the implementation of enumerators for collections. When you use `yield return` in a method, it allows the method to return a sequence of values one at a time, as they are requested, rather than returning all values at once. This is known as deferred execution or lazy evalua... | 583 | [
{
"from": "human",
"value": "In the How Can I Expose Only a Fragment of IList<> question one of the answers had the following code snippet:\nIEnumerable<object> FilteredList()\n{\n foreach(object item in FullList)\n {\n if(IsItemInPartialList(item))\n yield return item;\n }\n}\n\n... |
Is there a simple way of getting a HTML textarea and an input type="text" to render with (approximately) equal width (in pixels), that works in different browsers?
A CSS/HTML solution would be brilliant. I would prefer not to have to use Javascript.
Thanks
/Erik
| Yes, you can achieve equal widths for a `<textarea>` and an `<input type="text">` using CSS. Here’s a simple approach that works consistently across different browsers.
### HTML
```html
<div class="input-group">
<input type="text" class="equal-width" placeholder="Input Text">
<textarea class="equal-width" pla... | 1,248 | [
{
"from": "human",
"value": "Is there a simple way of getting a HTML textarea and an input type=\"text\" to render with (approximately) equal width (in pixels), that works in different browsers?\nA CSS/HTML solution would be brilliant. I would prefer not to have to use Javascript.\nThanks\n/Erik\n"
},
{... |
I'm currently experimenting with build script, and since I have an ASP.net Web Part under source control, my build script should do that at the end:
Grab the "naked" Windows 2003 IIS VMWare or Virtual PC Image from the Network
Boot it up
Copy the Files from the Build Folder to the Server
Install it
Do whatever else is... | Both VMware Server and Virtual PC 2007 SP1 have their own automation capabilities, but each has its strengths and weaknesses. Here’s a breakdown to help you decide which one is better suited for your needs, especially in the context of automating your ASP.NET web part deployment process.
### VMware Server
**Pros:**
- ... | 889 | [
{
"from": "human",
"value": "I'm currently experimenting with build script, and since I have an ASP.net Web Part under source control, my build script should do that at the end:\n\nGrab the \"naked\" Windows 2003 IIS VMWare or Virtual PC Image from the Network\nBoot it up\nCopy the Files from the Build Fold... |
Disclaimer: Near zero with marshalling concepts..
I have a struct B that contains a string + an array of structs C. I need to send this across the giant interop chasm to a COM - C++ consumer.
What are the right set of attributes I need to decorate my struct definition ?
[ComVisible (true)]
[StructLayout(LayoutKind.Seq... | When you're dealing with interop between managed code (like C#) and unmanaged code (like C++ COM), especially with structures that contain strings and arrays, you need to carefully specify how data is marshaled.
The example you provided has a few issues, especially concerning how strings and arrays are handled. Below... | 784 | [
{
"from": "human",
"value": "Disclaimer: Near zero with marshalling concepts..\nI have a struct B that contains a string + an array of structs C. I need to send this across the giant interop chasm to a COM - C++ consumer.\nWhat are the right set of attributes I need to decorate my struct definition ? \n[Com... |
I need to keep the files & folders on two Windows-based, non-domain machines synchronized across a public network.
I was thinking rsync over SSH - but I was wondering if there is a simpler solution? Any possibility of using the sync framework over SFTP/SCP/SSH?
Or I'm open to better ideas?
| Synchronizing files and folders between two Windows machines across a public network can be achieved in several ways, including using `rsync` over SSH. However, if you're looking for simpler solutions or alternatives, here are some options you might consider:
### 1. **RoboCopy**
RoboCopy is a built-in command-line too... | 567 | [
{
"from": "human",
"value": "I need to keep the files & folders on two Windows-based, non-domain machines synchronized across a public network. \nI was thinking rsync over SSH - but I was wondering if there is a simpler solution? Any possibility of using the sync framework over SFTP/SCP/SSH? \nOr I'm ope... |
I have a JavaScript object. Is there a built-in or accepted best practice way to get the length of this object?
const myObject = new Object();
myObject["firstname"] = "Gareth";
myObject["lastname"] = "Simpson";
myObject["age"] = 21;
| In JavaScript, objects do not have a built-in length property like arrays do. However, you can determine the number of properties in an object using `Object.keys()`, which returns an array of the object's own enumerable property names. The length of this array will give you the number of properties in the object.
Here... | 2,436 | [
{
"from": "human",
"value": "I have a JavaScript object. Is there a built-in or accepted best practice way to get the length of this object?\nconst myObject = new Object();\nmyObject[\"firstname\"] = \"Gareth\";\nmyObject[\"lastname\"] = \"Simpson\";\nmyObject[\"age\"] = 21;\n\n"
},
{
"from": "gpt",... |
Is there a Box Plot graph, or box and whisker graph available for Reporting Services 2005? From the looks of the documentation there doesn't seem to be one out of the box; so I am wondering if there is a third party that has the graph, or a way to build my own?
| Reporting Services 2005 (SSRS 2005) does not include a built-in Box Plot (or Box and Whisker) chart type. However, there are a few approaches you can consider to implement this functionality:
### 1. **Custom Code or Expressions**:
You can create a Box Plot using a combination of built-in charts in SSRS, such as line c... | 1,054 | [
{
"from": "human",
"value": "Is there a Box Plot graph, or box and whisker graph available for Reporting Services 2005? From the looks of the documentation there doesn't seem to be one out of the box; so I am wondering if there is a third party that has the graph, or a way to build my own?\n"
},
{
"... |
Does anyone have a regular expression for matching function calls in C programs ?
| Matching function calls in C using regular expressions can be quite tricky due to the complexity of the C syntax. However, for simple cases, you can use the following regular expression to match basic function calls:
```regex
\b\w+\s*\([^)]*\)
```
### Explanation:
- `\b` asserts a word boundary to ensure that we are ... | 551 | [
{
"from": "human",
"value": "Does anyone have a regular expression for matching function calls in C programs ?\n"
},
{
"from": "gpt",
"value": "Matching function calls in C using regular expressions can be quite tricky due to the complexity of the C syntax. However, for simple cases, you can use... |
I know that you can insert multiple rows at once, is there a way to update multiple rows at once (as in, in one query) in MySQL?
Edit:
For example I have the following
Name id Col1 Col2
Row1 1 6 1
Row2 2 2 3
Row3 3 9 5
Row4 4 16 8
I want to combine all the following Updates into ... | Yes, you can update multiple rows in MySQL using a single query by employing a `CASE` statement. This allows you to specify different values for each row based on the conditions that identify them.
Given your example, you can combine all the updates you mentioned into a single SQL `UPDATE` query like this:
```sql
UPD... | 1,495 | [
{
"from": "human",
"value": "I know that you can insert multiple rows at once, is there a way to update multiple rows at once (as in, in one query) in MySQL?\nEdit:\nFor example I have the following\nName id Col1 Col2\nRow1 1 6 1\nRow2 2 2 3\nRow3 3 9 5\nRow4 4 16 8\n\... |
If I have managed to locate and verify the existence of a file using Server.MapPath and I now want to send the user directly to that file, what is the fastest way to convert that absolute path back into a relative web path?
| To convert an absolute file path back into a relative web path in an ASP.NET application, you can use the `VirtualPathUtility` class. The `VirtualPathUtility` class provides methods that help convert between physical paths and virtual paths (relative URLs).
Here’s an example of how you can do this:
1. Use `Server.Map... | 902 | [
{
"from": "human",
"value": "If I have managed to locate and verify the existence of a file using Server.MapPath and I now want to send the user directly to that file, what is the fastest way to convert that absolute path back into a relative web path?\n"
},
{
"from": "gpt",
"value": "To convert... |
I'm considering dumping boost as a dependency... atm the only thing that I really need is shared_ptr<>, and I can get that from std::tr1, available in gcc suite 4.*
| If your primary use of Boost is just for `boost::shared_ptr`, you might consider alternatives that are available in the C++ standard library, especially if you're using a modern C++ compiler.
1. **C++11 and Later**: Starting from C++11, the Standard Library includes `std::shared_ptr`, which is a part of the `<memory>`... | 1,802 | [
{
"from": "human",
"value": "I'm considering dumping boost as a dependency... atm the only thing that I really need is shared_ptr<>, and I can get that from std::tr1, available in gcc suite 4.*\n"
},
{
"from": "gpt",
"value": "If your primary use of Boost is just for `boost::shared_ptr`, you mig... |
I am currently using Windows Server 2008 Standard and have several Hyper V machines. These are development VM's and I want to now switch back Vista x64 because I am missing Aero.
I know Windows Server 2008 can have aero but the host performance is very very bad when I run VM in Hyper V.
I want to export my Hyper V mach... | Exporting your Hyper-V virtual machines (VMs) to use with Virtual PC can be a bit challenging because Hyper-V and Virtual PC use different virtual machine formats and configurations. However, you can achieve this by following the steps below:
### 1. Export the Hyper-V VM
1. **Open Hyper-V Manager**: Go to your Window... | 378 | [
{
"from": "human",
"value": "I am currently using Windows Server 2008 Standard and have several Hyper V machines. These are development VM's and I want to now switch back Vista x64 because I am missing Aero.\nI know Windows Server 2008 can have aero but the host performance is very very bad when I run VM in... |
Whenever I design a database, I always wonder if there is a best way of naming an item in my database. Quite often I ask myself the following questions:
Should table names be plural?
Should column names be singular?
Should I prefix tables or columns?
Should I use any case in naming items?
Are there any recommended gu... | Naming conventions in a database are essential for clarity, consistency, and ease of maintenance. While there isn't a one-size-fits-all answer, there are several best practices and guidelines that can help you create a naming schema that works well for your database design. Here are some recommendations for the questio... | 246 | [
{
"from": "human",
"value": "Whenever I design a database, I always wonder if there is a best way of naming an item in my database. Quite often I ask myself the following questions:\n\nShould table names be plural?\nShould column names be singular?\nShould I prefix tables or columns?\nShould I use any case ... |
The obvious way to plot a path with virtual earth (VEMap.GetDirections) is limited to 25 points. When trying to plot a vehicle's journey this is extremely limiting.
How can I plot a by-road journey of more than 25 points on a virtual earth map?
| To plot a journey with more than 25 points on a Virtual Earth map (now known as Bing Maps), you can take several approaches, as the built-in `VEMap.GetDirections` method is indeed limited to 25 waypoints. Here are some strategies to work around this limitation:
### 1. Segment Your Journey
If your journey has more than... | 422 | [
{
"from": "human",
"value": "The obvious way to plot a path with virtual earth (VEMap.GetDirections) is limited to 25 points. When trying to plot a vehicle's journey this is extremely limiting.\nHow can I plot a by-road journey of more than 25 points on a virtual earth map?\n"
},
{
"from": "gpt",
... |
In Maven, dependencies are usually set up like this:
<dependency>
<groupId>wonderful-inc</groupId>
<artifactId>dream-library</artifactId>
<version>1.2.3</version>
</dependency>
Now, if you are working with libraries that have frequent releases, constantly updating the <version> tag can be somewhat annoying. Is t... | Yes, you can configure Maven to always use the latest available version of a dependency by utilizing a version range or by using the special version identifier "LATEST". However, it's important to note that using "LATEST" is generally discouraged because it can lead to unpredictability in your builds and can create iss... | 1,504 | [
{
"from": "human",
"value": "In Maven, dependencies are usually set up like this:\n<dependency>\n <groupId>wonderful-inc</groupId>\n <artifactId>dream-library</artifactId>\n <version>1.2.3</version>\n</dependency>\n\nNow, if you are working with libraries that have frequent releases, constantly updating ... |
As you may know, in VS 2008 ctrl+tab brings up a nifty navigator window with a thumbnail of each file. I love it, but there is one tiny thing that is annoying to me about this feature: the window stays around after releasing the ctrl key. When doing an alt+tab in windows, you can hit tab to get to the item you want (wh... | Unfortunately, Visual Studio 2008 does not provide a built-in way to change the behavior of the Ctrl+Tab file navigation window to dismiss it upon releasing the Ctrl key. The default behavior in Visual Studio is to keep the window open until you either select an item or explicitly close the navigation window.
While yo... | 2,065 | [
{
"from": "human",
"value": "As you may know, in VS 2008 ctrl+tab brings up a nifty navigator window with a thumbnail of each file. I love it, but there is one tiny thing that is annoying to me about this feature: the window stays around after releasing the ctrl key. When doing an alt+tab in windows, you ca... |
Things like $log$ and $version$ which add data upon check-in to the file. I'm interested in seeing the other ones and what information they can provide, but I can't get much info unless I know what they are called.
| It sounds like you're referring to metadata or file attributes that are commonly added to files in version control systems or certain file formats. In many cases, such information can help track changes, authorship, and other details about the file. Here are some common types of metadata and information that can be inc... | 764 | [
{
"from": "human",
"value": "Things like $log$ and $version$ which add data upon check-in to the file. I'm interested in seeing the other ones and what information they can provide, but I can't get much info unless I know what they are called.\n"
},
{
"from": "gpt",
"value": "It sounds like you'... |
I know, I would have thought the answer was obviously "no" as well, but I am experiencing a strange situation where when I view my site from our staging server it appears slightly larger than when I view it from my local dev server. I have used Charles to confirm that all of the content -- the HTML, the images, the CS... | It sounds like you're encountering a frustrating issue, especially since you've already confirmed that the content being served is the same. Here are a few potential explanations and troubleshooting steps to consider:
1. **CSS Differences**: Double-check to ensure there are no differences in the CSS being applied to y... | 923 | [
{
"from": "human",
"value": "I know, I would have thought the answer was obviously \"no\" as well, but I am experiencing a strange situation where when I view my site from our staging server it appears slightly larger than when I view it from my local dev server. I have used Charles to confirm that all of ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.