text stringlengths 8 267k | meta dict |
|---|---|
Q: Is it possible to use Soundex (or other SQL functions) in LinqToSql? I'm refactoring some code currently implemented in stored procedures to use LinqToSql (for use in training). Is it possible to use SQL functions in a linqToSql Query?
A: Here is some helpful information from a MSDN Forum Post. Soundex and LINQ.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/154179",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How does NUnit (and MSTest) handle tests that change static/shared variables? I have some code that uses the shared gateway pattern to implement an inversion of control container. I have several hundred NUnit unit tests that exercises the code that uses this IOC. They all work (on my machine!) but I am concerned t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/154180",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Setting WPF dependency property without triggering events I need to set a dependency property on a control (Slider.Value) in my code without it triggering a ValueChanged event (since I set the value, not the user). What is the best way to handle this situation in WPF?
For clarification, what I am trying to do is ho... | {
"language": "en",
"url": "https://stackoverflow.com/questions/154184",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: What is object marshalling? I have heard this concept used frequently, but I don't have a really good grasp of what it is.
A: Marshalling is the process of transforming the memory representation of an object to a data format that could be stored or transmitted. It's also called serialization (although it could be d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/154185",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "68"
} |
Q: Modifying default tab size in RichTextBox Is there any way to change the default tab size in a .NET RichTextBox?
It currently seems to be set to the equivalent of 8 spaces which is kinda large for my taste.
Edit: To clarify, I want to set the global default of "\t" displays as 4 spaces for the control. From what I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/154204",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: Can You Use A DynamicResource in a Storyboard Contained Within Style Or ControlTemplate I am trying to use a DynamicResource in Storyboard contained within a ControlTemplate.
But, when I try to do this, I get a 'Cannot freeze this Storyboard timeline tree for use across threads' error.
What is going on here?
A: No,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/154206",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Hitting Webservice on Different Subnet I know this is somewhat of a server question, but I wanted to ask anyways in case someone has done this before.
I have a web service that is on our internal 172.x.x.x subnet and a web server that is on our internal 10.x.x.x subnet. The webserver needs to hit the 172 web servic... | {
"language": "en",
"url": "https://stackoverflow.com/questions/154207",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I create a (Type, ID) (aka 'polymorphic')- foreign key column in MS Access? In Ruby-on-Rails, this is called a "polymorphic association."
I have several Commentable things in my application, the tables for each are below:
Post
id | title | text | author (FK:Person.id) | ...
Person
id | name | ...
Photo
id |... | {
"language": "en",
"url": "https://stackoverflow.com/questions/154209",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Evaluating OPF3 (ORM framework for .NET) Is anyone using or has anyone evaluated OPF3 as an ORM (.NET)? How does it stack up against EntitySpaces or Subsonic?
One thing about OPF3 I like in my evaluation so far is that it is very easy to customize. Since it binds database fields to object members using attributes, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/154217",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: ASP.NET 2.0 app runs on Win 2003 in IIS 5 isolation mode but not in (default) IIS 6 mode The app uses DLLImport to call a legacy unmanaged dll. Let's call this dll Unmanaged.dll for the sake of this question. Unmanaged.dll has dependencies on 5 other legacy dll's. All of the legacy dll's are placed in the WebApp/bin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/154232",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Digital Right Management (DRM) forward lock in Windows Mobile Is it possible to apply DRM forward lock to windows mobile applications?
A: Yes it does.
You need to use the Windows Mobile File-Based Digital Rights Management API. This is a WM5 API, so it's not supported under WM 2003.
Your device needs to have a FD... | {
"language": "en",
"url": "https://stackoverflow.com/questions/154242",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Editing a text buffer Ok, this is a bit of a cheeky question. I want to build a simple text editor (using my own text mode screen handling). I just want a good example of data structures that can be used to represent the text buffer, and some simple examples of char/text insertion/deletion. I can handle all the rest... | {
"language": "en",
"url": "https://stackoverflow.com/questions/154245",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: How do I configure IE7 to download filetype instead of opening in browser I have written a watir script that downloads files. One of the files it downloads has a .dcf extension. Months ago, on my machine, I changed a setting somewhere so that .dcf files prompt for download ("Do you want to open or save this file?") ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/154247",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to add an attribute to an XML node in Java 1.4 I tried:
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
DocumentBuilder db = dbf.newDocumentBuilder();
Document doc = db.parse(f);
Node mapNode = getMapNode(doc);
System.out.print("\r\n elementName "+ mapNode.getNodeName());//This works fine.
E... | {
"language": "en",
"url": "https://stackoverflow.com/questions/154248",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Running many virtual machines on a single host I have a need to run a relatively large number of virtual machines on a relatively small number of physical hosts. Each virtual machine isn't doing to much - each only needs to run essentially one basic network service - think SMTP or the like. Furthermore, the load on ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/154250",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Is there a way to iterate through all enum values?
Possible Duplicate:
C#: How to enumerate an enum?
The subject says all. I want to use that to add the values of an enum in a combobox.
Thanks
vIceBerg
A: You could iterate through the array returned by the Enum.GetNames method instead.
public class GetNamesTest ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/154256",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "31"
} |
Q: How to join the newest rows from a table? I frequently run into problems of this form and haven't found a good solution yet:
Assume we have two database tables representing an e-commerce system.
userData (userId, name, ...)
orderData (orderId, userId, orderType, createDate, ...)
For all users in the system, select ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/154261",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Example code required for how to access embedded .Net image resources in C# It's very easy to mark an image file to become an embedded resource however how does one access the image thereafter. Please can I have some example code?
A: 1) Adding and Editing Resources (Visual C#)
System.Drawing.Bitmap bitmap1 = myPro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/154262",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Stuff in Windows Form Move When Maximized - C# It's been a while since I've programmed a GUI program, so this may end up being super simple, but I can't find the solution anywhere online.
Basically my problem is that when I maximize my program, all the things inside of the window (buttons, textboxes, etc.) stay in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/154270",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Windows path searching in LoadLibrary with manifest If you call LoadLibrary without a path (e.g., LoadLibrary("whatever.dll"), Windows will generally follow its standard search algorithm, the same one it uses to find EXEs.
My question is this: suppose that an application manifest specifies specifies a particular ver... | {
"language": "en",
"url": "https://stackoverflow.com/questions/154281",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: php Access violation I am trying to install Php on Vista (IIS 7). The installation and configuration seems to be fine. Pretty much followed everything mentioned in http://blogs.iis.net/bills/archive/2006/09/19/How-to-install-PHP-on-IIS7-_2800_RC1_2900_.aspx
I can even bring up a test.php which is basically and can ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/154290",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Any issues with ActiveMQ broker and clients running on different JDKs? We have a distributed system with components (including the ActiveMQ broker) running on jdk 1.6.
A potential customer would like to integrate a component that was built on jdk 1.4 with our system. While this customer is willing to write code to i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/154292",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Trailing slash on an ASP.NET MVC route In the latest MVC preview, I'm using this route for a legacy URL:
routes.MapRoute(
"Legacy-Firefox", // Route name
"Firefox-Extension/", // URL with parameters
new { controller = "Home", action = "Firefox", id = "" } // Parameter defaults
);
The problem is that both of these U... | {
"language": "en",
"url": "https://stackoverflow.com/questions/154295",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: How to set working directory when debugging VB6 app? I am debugging a VB6 executable. The executable loads dlls and files from it's current directory, when running. When run in debugger, the current directory seems to be VB6's dir.
How do I set working directory for VB6?
A: Solution that I have found that works us... | {
"language": "en",
"url": "https://stackoverflow.com/questions/154299",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Is it possible to ScaleTransform everything on a Canvas/Grid except for 1 Control? Given the following canvas:
<Canvas>
<Canvas.LayoutTransform>
<ScaleTransform ScaleX="1" ScaleY="1" CenterX=".5" CenterY=".5" />
</Canvas.LayoutTransform>
<Button x:Name="scaleButton" Content="Scale Me" Canvas.Top=... | {
"language": "en",
"url": "https://stackoverflow.com/questions/154305",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Why are entries in addition order in a .Net Dictionary? I just saw this behaviour and I'm a bit surprised by it...
If I add 3 or 4 elements to a Dictionary, and then do a "For Each" to get all the keys, they appear in the same order I added them.
The reason this surprises me is that a Dictionary is supposed to be a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/154307",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: How can I figure out what is holding on to unfreed objects? One of our programs is sometimes getting an OutOfMemory error on one user's machine, but of course not when I'm testing it. I just ran it with JProfiler (on a 10 day evaluation license because I've never used it before), and filtering on our code prefix, t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/154309",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: XML Parsing Error: SYSTEM or PUBLIC, the URI is missing I am parsing an RSS feed from the following URL:
http://rss.sciam.com/ScientificAmerican-Global?format=xml
// $xml_text is filled with the contents read from the URL
$xml_parser = xml_parser_create();
$res = xml_parse($xml_parser, $xml_text);
if (!$res) {
$e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/154310",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: When should one use final for method parameters and local variables? I've found a couple of references (for example) that suggest using final as much as possible and I'm wondering how important that is. This is mainly in the the context of method parameters and local variables, not final methods or classes. For cons... | {
"language": "en",
"url": "https://stackoverflow.com/questions/154314",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "193"
} |
Q: How can I stream an XPS document to a browser and embed it in a webpage? I'm looking for some suggestions on how to go about this. Any input is appreciated!
Currently, I have an ASP.NET MVC application. On the client, I have a link with an ID of an XPS document. When the user clicks the link, they are taken to a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/154318",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How can I use mysqldump to replicate views between accounts? I'm using mysqldump to replicate a database between accounts on a particular machine. Everything works just great, except when we get to our defined views. Because the dump includes a line like the following ...
/*!50013 DEFINER=`user_a`@`localhost` SQL ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/154332",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: ubuntu trouble with SDL I'm trying to learn to use SDL for a little game I'm writing , but I have a problem . One single application can play sound at a given time on my system . If for example I have amarok or kaffeine ( or even firefox while playing a flash video ) , no other application can play sound . The only ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/154348",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Hibernate.initialize() and second-level cache Does anybody know if Hibernate's static initialize() method, which populates a proxy object, will attempt to hit the second-level cache before going to the database? My code seems to be behaving that way, and I can't seem to find anything in the documentation about this... | {
"language": "en",
"url": "https://stackoverflow.com/questions/154352",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Convert nmake makefile into Visual Studio 2005 project We have some old C code here that's built with nmake.
Is there an automated way to pull the Makefile into Visual Studio 2005 and create a project? Some searching on MSDN indicates VS6 could do this, but it looks like VS7/8 dropped the feature.
If necessary I can... | {
"language": "en",
"url": "https://stackoverflow.com/questions/154364",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: search 25 000 words within a text I need to find occurrences of ~ 25 000 words within a text. What is the most suitable algorithm/library for this purpose?
target language is C++
A: if the corpus is so large, try to optimize it in this way:
compute an hash of each word you need to check, assigning to each char an i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/154365",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: What is the Best Way to Represent Summer Time Rules? I need to store the summer time (daylight saving time) change-over rules for different world regions in a database. I already have a way of storing regions and sub-regions (so the whole "half of Australia"/Arizona/Navaho problem is taken care of), but I'm wonderi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/154369",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How to list of all the tables defined for the database when using active record? How do I get a list of all the tables defined for the database when using active record?
A: Call ActiveRecord::ConnectionAdapters::SchemaStatements#tables. This method is undocumented in the MySQL adapter, but is documented in the Pos... | {
"language": "en",
"url": "https://stackoverflow.com/questions/154372",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "131"
} |
Q: ASP.NET Image Listbox I want to display a list of images (instead of text) for the user to choose from. The control is databound (the URLs come from the database) Instead of the typical vertical scroll bar in a listbox, I want this box to be horizontal. I'm looking for an ASP.NET server control similar to this: http... | {
"language": "en",
"url": "https://stackoverflow.com/questions/154382",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to draw delphi group boxes to have transparent backgrounds I'm trying to get something very subtle to work, it looks pretty awful right now. I'm trying to paint the background of a TGroupBox which I have overloaded the paint function of so that the corners are show through to their parent object. I've got a bun... | {
"language": "en",
"url": "https://stackoverflow.com/questions/154387",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: .NET Framework platform support tradition From the first days the .NET framework came out there was a minimum OS support:
*
*.NET 1.0 - Windows NT or higher (Windows 98/ME are also supported)
*.NET 2.0 - Windows 2000 or higher (Windows 98/ME are also supported)
*.NET 3.0 - Windows XP or higher
*.NET 3.5 - Wind... | {
"language": "en",
"url": "https://stackoverflow.com/questions/154396",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: User interface for generating Phing build files? I want to use Phing as a build tool and I was wondering if there any (web) interface for generating build files.
Any recommendations on alternative methods to writing those by hand would be appreciated as well.
A: There are a couple of GUI editors for ANT build file... | {
"language": "en",
"url": "https://stackoverflow.com/questions/154402",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Visio VBA function to see if there's a shape in front of/behind a shape Is there a way in Visio VBA to see if there is a shape in front of or behind a shape in Visio?
I imagine I could write something that checks the bounding box of each shape in a page to see if it occupies the same space as my shape.
I'd rather us... | {
"language": "en",
"url": "https://stackoverflow.com/questions/154408",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do I get Team Build to run MbUnit tests? I am having trouble getting Team Build to execute my MbUnit unit tests. I have tried to edit TFSBuild.proj and added the following parts:
<Project ...>
<UsingTask TaskName="MbUnit.MSBuild.Tasks.MbUnit" AssemblyFile="path_to_MbUnit.MSBuild.Tasks.dll" />
...
...
<It... | {
"language": "en",
"url": "https://stackoverflow.com/questions/154411",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Individual DirecShow merit on audio renders My computer has two external audiocards and one in the motherboard with windows vista. In Vista it sees two entities for the same soundcard, a digital- and a analog output.
When i try to play an videofile with digital audio, say an dvd, it chooses 'Default DirectSound' wh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/154412",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: JQuery Datepicker returned Date object type What's the object type returned by Datepicker?
Supposing I have the following:
$("#txtbox").datepicker({
onClose: function(date){
//something
}
});
What is date? I'm interested in reading the date object from another Datepicker for comparison, somethin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/154427",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Persistent storage of encrypted data using .Net I need to store encrypted data (few small strings) between application runs. I do not want the user to provide a passphrase every time (s)he launches the application. I.e. after all it goes down to storing securely the encryption key(s).
I was looking into RSACryptoSer... | {
"language": "en",
"url": "https://stackoverflow.com/questions/154430",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Getting Excel to refresh data on sheet from within VBA How do you get spreadsheet data in Excel to recalculate itself from within VBA, without the kluge of just changing a cell value?
A: Sometimes Excel will hiccup and needs a kick-start to reapply an equation. This happens in some cases when you are using custom f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/154434",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "51"
} |
Q: Set up an HTTP proxy to insert a header I need to test some HTTP interaction with a client I'd rather not modify. What I need to test is the behavior of the server when the client's requests include a certain, static header.
I'm thinking the easiest way to run this test is to set up an HTTP proxy that inserts the he... | {
"language": "en",
"url": "https://stackoverflow.com/questions/154441",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "60"
} |
Q: How to avoid .pyc files? Can I run the python interpreter without generating the compiled .pyc files?
A: Solution for ipython 6.2.1 using python 3.5.2 (Tested on Ubuntu 16.04 and Windows 10):
Ipython doesn’t respect %env PYTHONDONTWRITEBYTECODE =1 if set in the ipython interpretor or during startup in ~/.ipython/pr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/154443",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "292"
} |
Q: Help someone new to C# variables I am trying to save data to a database on a button push, but the variables seem to be private by the nature of where they are defined. I have tried to move where they are defined, but this seems to produce other errors.
Given a fix, why was it fixed that way?
The code follows.
namesp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/154446",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: SharpZipLib - ZipException "End of extra data" - Why am I getting this exception? I'm using SharpZipLib version 0.85.5 to unzip files. My code has been working nicely for a couple of months until I found a ZIP file that it doesn't like.
ICSharpCode.SharpZipLib.Zip.ZipException: End of extra data
at ICSharpC... | {
"language": "en",
"url": "https://stackoverflow.com/questions/154463",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Unnamed/anonymous namespaces vs. static functions A feature of C++ is the ability to create unnamed (anonymous) namespaces, like so:
namespace {
int cannotAccessOutsideThisFile() { ... }
} // namespace
You would think that such a feature would be useless -- since you can't specify the name of the namespace, it'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/154469",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "623"
} |
Q: How to Conditionally Format a String in .Net? I would like to do some condition formatting of strings. I know that you can do some conditional formatting of integers and floats as follows:
Int32 i = 0;
i.ToString("$#,##0.00;($#,##0.00);Zero");
The above code would result in one of three formats if the variable is ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/154483",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "33"
} |
Q: How to test SqlServer connection without opening a database The title pretty much says it all. I want to create a SqlConnection and then check that connection without opening a database, cause at that point I don't know yet where will I connect to. Is it possible to do that?
The SqlConnection class has a 'Open' mem... | {
"language": "en",
"url": "https://stackoverflow.com/questions/154485",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Are static indexers not supported in C#? I've been trying this a few different ways, but I'm reaching the conclusion that it can't be done. It's a language feature I've enjoyed from other languages in the past. Is it just something I should just write off?
A: No, static indexers aren't supported in C#. Unlike other... | {
"language": "en",
"url": "https://stackoverflow.com/questions/154489",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "36"
} |
Q: Software for Mac OS X Leopard to track and record network usage I'm looking for a program that I can install on a Mac that will tell me how many bytes I download each day, and store that info in such a way that I could later view the results.
Limiting by ports (80, 443, 21, 22) would be awesome as well.
Does such a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/154501",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Color differences between images and html I'm having issues with color matching css background colors with colors in images on the same html page. What gives?
A: I'm guessing that you use a PNG image? This is a gamma correction “feature”. Mark Ransom has posted a useful text about this.
Notice that the pngcrush sol... | {
"language": "en",
"url": "https://stackoverflow.com/questions/154502",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Is timsort general-purpose or Python-specific?
Timsort is an adaptive, stable,
natural mergesort. It has supernatural
performance on many kinds of partially
ordered arrays (less than lg(N!)
comparisons needed, and as few as
N-1), yet as fast as Python's previous
highly tuned samplesort hybrid on
rando... | {
"language": "en",
"url": "https://stackoverflow.com/questions/154504",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "32"
} |
Q: Questions about use of snapshot in Maven2 I am writing a POM file for a in-house jar artifact. The artifact depends on several other in-house artifacts which our team writes. When declaring the dependencies of the target, should I limit those dependencies to fixed release version or leave them to SNAPSHOT version. I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/154516",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Best way to bind WPF properties to ApplicationSettings in C#? What is the best way to bind WPF properties to ApplicationSettings in C#? Is there an automatic way like in a Windows Forms Application? Similar to this question, how (and is it possible to) do you do the same thing in WPF?
A: In case you are a VB.Net d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/154533",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "51"
} |
Q: How do I ensure Visual Studio 2005 displays the tables and images correctly? I have used Photoshop CS2's "Save for Web" feature to create a table of images for my site layout.
This HTML appears fine in a web browser, however when imported into Visual Studio and viewed in the site designer, the metrics are wrong and ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/154535",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Encode/Decode URLs in C++ Does anyone know of any good C++ code that does this?
A: I faced the encoding half of this problem the other day. Unhappy with the available options, and after taking a look at this C sample code, i decided to roll my own C++ url-encode function:
#include <cctype>
#include <iomanip>
#inclu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/154536",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "101"
} |
Q: How can I disable copy / paste in Flex Text controls? Long story short, I need to put some text in my Flex application and I don't want users to be able to copy. I was going to use a label, but apparently labels do not support text wrapping. Can I make it so that users cannot select text in a Flex Text control?
Than... | {
"language": "en",
"url": "https://stackoverflow.com/questions/154538",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How important is it to make your website layout fit on low-res displays? How important is it to make a website layout fit on 640 x 480 and 800 x 600 displays? For some time I have been designing with the assumption of at least 1024 x 768, but I haven't been doing it professionally (just on my site which is just a b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/154542",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Panel.Dock Fill ignoring other Panel.Dock setting If you create a panel on a form and set it to Dock=Top and drop another panel and set its Dock=Fill, it may fill the entire form, ignoring the first panel. Changing the tab order does nothing.
A: Another, potentially cleaner option is to use the TableLayout control.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/154543",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "170"
} |
Q: Control for getting hotkeys like tab and space I have a dialog box that allows users to set hotkeys for use in a 3d program on windows. I'm using CHotKeyCtrl, which is pretty good, but doesn't handle some keys that the users would like to use - specifically, tab and space.
The hotkey handling is smart enough to be... | {
"language": "en",
"url": "https://stackoverflow.com/questions/154547",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Migrate SQL2000 Database to SQL2005 on another machine I've been beating myself over the head with this app migration for a few days now. What I have is an old MSSQL Server 2000-backed application that is being upgraded to a Windows 2003 Server running SMSQL Server 2005. I know little about SQL Server but obviously ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/154549",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Volatile vs. Interlocked vs. lock Let's say that a class has a public int counter field that is accessed by multiple threads. This int is only incremented or decremented.
To increment this field, which approach should be used, and why?
*
*lock(this.locker) this.counter++;,
*Interlocked.Increment(ref this.counter... | {
"language": "en",
"url": "https://stackoverflow.com/questions/154551",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "774"
} |
Q: minOccurs="0" on required parameters in WSDL on ASP.NET web service I'm writing a simple web service using Microsoft Visual Web Developer 2005 (Express Edition), and the dynamically generated WSDL has a minOccurs="0" for all the parameters.
How do I get minOccurs="1" for the required parameters without resorting to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/154554",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: splitting files for P2P application I have to implement a middleware system for file sharing, and it has to split the files not unlike what happens on bittorrent, where it sends and receives separate pieces simultaneously from varios sources. How do i do that? Is it a library or i have to implement the file splittin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/154563",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Polymorphism vs Overriding vs Overloading In terms of Java, when someone asks:
what is polymorphism?
Would overloading or overriding be an acceptable answer?
I think there is a bit more to it than that.
IF you had a abstract base class that defined a method with no implementation, and you defined that method in ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/154577",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "375"
} |
Q: I am getting a "fatal error 7987" error from SQL Server 2000 The error happens trying to do an insert from a stored proc. I tried running DBCC CHECKDB as suggested by the kb article that Jonathan Holland suggested and it returned with the all clear.
A: Bummer dude.
http://support.microsoft.com/kb/828337
A: Ran a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/154585",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Anyone have a pointer for what is needed to make an MP3 Tag applicaiton? I get FLAC files a lot and want to automate the taging of the end point MP3 files after I have converted them.
What is my best library to interface with? Vista machine and C# for my code base.
The flac files come with a text file for the sho... | {
"language": "en",
"url": "https://stackoverflow.com/questions/154587",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to alter a column and a computed column In SQL SERVER DB, I need to alter a column baseColumn and a computed column upperBaseColumn. The upperBaseColumn has index on it.
This is how the table looks
create table testTable (baseColumn varchar(10), upperBaseColumn AS (upper(baseColumn))
create index idxUpperBaseCo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/154591",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Python module for wiki markup Is there a Python module for converting wiki markup to other languages (e.g. HTML)?
A similar question was asked here, What's the easiest way to convert wiki markup to html, but no Python modules are mentioned.
Just curious. :) Cheers.
A: Django uses the following libraries for markup:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/154592",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "30"
} |
Q: Is there a way to define an action for unhandled exceptions in a WinForms .NET 3.5 app? Note, I realize that this has been addressed here. That post discusses exception handling in .NET 1.1 while implying that there is a better solution for >.NET 2.0 so this question is specifically about the more recent .NET versi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/154597",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Implementing a replacement for Ruby's IO.popen() and system() IO.popen() and system() in Ruby is sorely lacking several useful features, such as:
*
*obtaining the return value of the function
*capturing both stdout and stderr (seperately and merged)
*running without spawning an extra cmd.exe or /bin/sh process
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/154598",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: ${1:+"$@"} in /bin/sh I've noticed that sometimes wrapper scripts will use ${1:+"$@"} for the parameters rather than just "$@".
For example, http://svn.macosforge.org/repository/macports/trunk/dports/editors/vim-app/files/gvim.sh uses
exec "$binary" $opts ${1:+"$@"}
Can anyone break ${1:+"$@"} down into English and... | {
"language": "en",
"url": "https://stackoverflow.com/questions/154625",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "30"
} |
Q: performance testing for web services (Microsoft web application stress tool?) We need to provide a solution to do performance testing for our Web Services residing in our development environment. We were planning to create the test scripts using the object model of Microsoft Web Application Stress Tool. I have resea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/154629",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Recommended GCC warning options for C Other than -Wall, what other warnings have people found useful?
Options to Request or Suppress Warnings
A: I routinely use:
gcc -m64 -std=c99 -pedantic -Wall -Wshadow -Wpointer-arith -Wcast-qual \
-Wstrict-prototypes -Wmissing-prototypes
This set catches a lot for people u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/154630",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "86"
} |
Q: Embedding the Java h2 database programmatically At the moment we use HSQLDB as an embedded database, but we search for a database with less memory footprint as the data volume grows.
Derby / JavaDB is not an option at the moment because it stores properties globally in the system properties. So we thought of h2.
Whi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/154636",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "33"
} |
Q: Tips/Tricks for DataFlex Is anyone out there still using DataFlex? If so, what are you favorite tips and tricks for this venerable 4GL?
A: It all depends on the version of DF you're using, but here's a couple:
*
*Do not use "While" when traversing record sets. Always use repeat. (see example at bottom)
*The da... | {
"language": "en",
"url": "https://stackoverflow.com/questions/154652",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Question about XMLTextWriters and Streams We have a VXML project that a 3rd party parses to provide us with a phone navigation system. We require them to enter an id code to leave a message, which is later reviewed by our company.
We currently have this working as follows:
Response.Cache.SetCacheability(HttpCacheabi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/154655",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Pre-setting locations for looking for source files in Visual C++ 6.0 Due to the legacy nature of some of our code, we're still using Microsoft Visual 6.0 (SP6). When I attach to a running process to debug it for the first time, it has no knowledge of where the source files are located when I break into the process. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/154661",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What can I do to increase the performance of a Lua program? I asked a question about Lua perfromance, and on of the responses asked:
Have you studied general tips for keeping Lua performance high? i.e. know table creation and rather reuse a table than create a new one, use of 'local print=print' and such to avoid g... | {
"language": "en",
"url": "https://stackoverflow.com/questions/154672",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "37"
} |
Q: LINQ query with multiple aggregates How would I create the equivalent Linq To Objects query?
SELECT MIN(CASE WHEN p.type = "In" THEN p.PunchTime ELSE NULL END ) AS EarliestIn,
MAX(CASE WHEN p.type = "Out" THEN p.PunchTime ELSE NULL END ) AS LatestOUt
FROM Punches p
A: Single enumeration yielding both min an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/154680",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Specify remote port to use for mail via exim4 I've got a stock Debian Etch system, using Exim4. The domains are mostly local but there are some that are remote. To handle the delivery of remote mail I use the Debian configuration file:
/etc/exim4/hubbed_hosts
This file lists the domain names, and remote MX machi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/154686",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Get Numeric Value from DataGridViewCell? I'm trying to retrieve numeric values from a DataGridView. So far, the only way I've found is to retrieve them as a string and convert them to numeric.
Convert.ToDouble(MyGrid.SelectedRows[0].Cells[0].Value.ToString());
There must be an easier way. The cell is originally pop... | {
"language": "en",
"url": "https://stackoverflow.com/questions/154697",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I keep a class from being inherited in C#? In java, I could do this with the 'final' keyword. I don't see 'final' in C#. Is there a substitute?
A: Also be aware that "I don't think anybody will ever need to inherit from this" is not a good reason to use "sealed". Unless you've got a specific need to ensure ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/154698",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: CrystalReportViewer Buttons Broken using MVC Framework We are using the MVC framework (release 5) and the CrystalReportViewer control to show our reports. I cannot get any of the buttons at the top of the report viewer control to work.
If I'm working with the report 'HoursSummary'. If I hover over any of the butto... | {
"language": "en",
"url": "https://stackoverflow.com/questions/154702",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Can I split a string in c# VB6-style without referencing Microsoft.VisualBasic? Unfortunately, there seems to be no string.Split(string separator), only string.Split(char speparator).
I want to break up my string based on a multi-character separator, a la VB6. Is there an easy (that is, not by referencing Microsoft... | {
"language": "en",
"url": "https://stackoverflow.com/questions/154706",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What is the best way to store media files on a database? I want to store a large number of sound files in a database, but I don't know if it is a good practice. I would like to know the pros and cons of doing it in this way.
I also thought on the possibility to have "links" to those files, but maybe this will carry ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/154707",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "67"
} |
Q: Multi-Line group and search with Regex Ok, Regex wizards. I want to be able to search through my logfile and find any sessions with the word 'error' in it and then return the entire session log entry.
I know I can do this with a string/array but I'd like to learn how to do it with Regex but here's the question. If ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/154708",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Precedence: header in email My web application sends email fairly often, and it sends 3 kinds of emails: initiated by user, in response to an event in the system, and in automatic response to an email received by the application.
I would like to make sure that the third type of email does not get stuck in an endless... | {
"language": "en",
"url": "https://stackoverflow.com/questions/154718",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "38"
} |
Q: Can anyone explain how the oracle "hash group" works? I've recently come across a feature of doing a large query in oracle, where changing one thing resulted in a query that used to take 10 minutes taking 3 hours.
To briefly summarise, I store a lot of coordinates in the database, with each coordinate having a proba... | {
"language": "en",
"url": "https://stackoverflow.com/questions/154722",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: When would you use a WeakHashMap or a WeakReference? The use of weak references is something that I've never seen an implementation of so I'm trying to figure out what the use case for them is and how the implementation would work. When have you needed to use a WeakHashMap or WeakReference and how was it used?
A:
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/154724",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "167"
} |
Q: TableLayoutPanel does the TableLayoutPanel exist in VS 2005?
A: Yes.
A: Yes, it first appeared in .NET 2.0
http://msdn.microsoft.com/en-us/library/system.windows.forms.tablelayoutpanel(VS.80).aspx
A: Yes, TableLayoutPanel is a standard component of the .NET 2.0, thus it is usable from VS2k5.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/154726",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: How do I use ResourceBundle to avoid hardcoded config paths in Java apps? I'd like to eliminate dependencies on hardcoded paths for configuration data in my Java apps, I understand that using ResourceBundle will help me use the classloader to find resources.
Can someone tell me how I would replace a hardcoded path t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/154728",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Capturing video out of an OpenGL window in Windows I am supposed to provide my users a really simple way of capturing video clips out of my OpenGL application's main window. I am thinking of adding buttons and/or keyboard shortcuts for starting and stopping the capture; when starting, I could ask for a filename and ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/154730",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Understanding IIS6 permissions, ACL, and identity--how can I restrict access? When an ASP.NET application is running under IIS6.0 in Windows 2003 Server with impersonation, what user account is relevant for deciding file read/write/execute access privileges? I have two scenarios where I am trying to understand what... | {
"language": "en",
"url": "https://stackoverflow.com/questions/154735",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.