text stringlengths 8 267k | meta dict |
|---|---|
Q: What's the difference between a worker thread and an I/O thread? Looking at the processmodel element in the Web.Config there are two attributes.
maxWorkerThreads="25"
maxIoThreads="25"
What is the difference between worker threads and I/O threads?
A: Fundamentally not a lot, it's all about how ASP.NET and IIS all... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137400",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "27"
} |
Q: Is there any way in .NET to programmatically listen to HTTP traffic? I'm using browser automation for testing web sites but I need to verify HTTP requests from the browser (i.e., images, external scripts, XmlHttpRequest objects). Is there a way to programmatically instantiate a proxy or packet sniffer for the browse... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137407",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Using client side reporting vs. server side reporting? When do we use client side reporting and when do we use server side reporting?
Which reporting is best practice (client/server)?
This pertains to SSRS reporting.
A: Well... client side reporting you'd use if you've got something like a winforms client that you ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137422",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do I automate a web proxy in .NET for unit tests (including set up and tear down)? Following Jonathan Holland's suggestion in his comment for my previous question: Is there any way in .NET to programmatically listen to HTTP traffic? I've made a separate (but not exactly a duplicate) question for what I really wa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137425",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I turn an image file of a game map into boundaries in my program? I have an image of a basic game map. Think of it as just horizontal and vertical walls which can't be crossed. How can I go from a png image of the walls to something in code easily?
The hard way is pretty straight forward... it's just if I ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137443",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Redundancy in C#? Take the following snippet:
List<int> distances = new List<int>();
Was the redundancy intended by the language designers? If so, why?
A: The reason the code appears to be redundant is because, to a novice programmer, it appears to be defining the same thing twice. But this is not what the code is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137448",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: CSS for hover that includes all child elements I have a draggable div element with a hover style. This works fine, but the div contains some form elements (label, input). The problem is that when the mouse is over these child elements the hover is disabled.
<div class="app_setting">
<label">Name</label>
<input t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137449",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "31"
} |
Q: How do I change SQL Server 2005 to be case sensitive? I hate case sensitivity in databases, but I'm developing for a client who uses it. How can I turn on this option on my SQL Server, so I can be sure I've gotten the case right in all my queries?
A: How about:
ALTER DATABASE database_name COLLATE collation_name
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137452",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: What does the "private" modifier do? Considering "private" is the default access modifier for class Members, why is the keyword even needed?
A: The private modifier explains intent.
A private member variable is not intended for direct manipulation outside the class. get/set accessors may or may not be created for t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137454",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "30"
} |
Q: Null vs. False vs. 0 in PHP I am told that good developers can spot/utilize the difference between Null and False and 0 and all the other good "nothing" entities.
What is the difference, specifically in PHP? Does it have something to do with ===?
A: In PHP you can use === and !== operators to check not only if the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137487",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "160"
} |
Q: Fully unwrap a view In Oracle, is there an easy way to fully unwrap a view? eg: If I have a view which is made up of selects on more views, is there some way to unwrap it to just select directly on real tables?
A: *
*Get the query text of your view.
SELECT text FROM dba_views
WHERE owner = 'the-owner' AND view_nam... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137497",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How do I programmatically show or hide the Outlook envelope icon? For example, how do I show or hide the Outlook envelope icon from an Outlook Rule?
The envelope icon option is set by going to:
*
*Tools -> Options...
*E-mail Options
*Advanced E-mail Options
*Show an envelope icon in the notification area
Th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137519",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How to protect a Rails model attribute? My Invoice model has an address_id attribute, and I don't want this address_id to change FOREVER. So I don't want this to happen outside the class:
invoice.address_id = 1
invoice.address = some_address
Rails automatically adds this address_id attribute to the model from the i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137521",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Where can I find tools for learning assembler on OS X? I'd like to learn assembler. However, there are very few resources for doing assembler with OS X.
Is there anyone out there who has programmed in assembly on a Mac? Where did you learn?
And, is there any reason I shouldn't be doing assembly? Do I risk (signif... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137523",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: How can I set what encoding must be used by a site? On some systems it is UTF-8, on others latin-1. How do you set this? Is it something in php.ini?
(I know you can set the encoding/charset for a given page by setting HTTP headers, but this is not what I am looking for.)
Alex
A: There is a default_charset setting i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137526",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why is my stored procedure receiving a null parameter? Ok, this is a curly one. I'm working on some Delphi code that I didn't write, and I'm encountering a very strange problem. One of my stored procedures' parameters is coming through as null, even though it's definitely being sent 1.
The Delphi code uses a TADOQue... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137530",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What makes this the fastest JavaScript for printing 1 to 1,000,000 (separated by spaces) in a web browser? I was reading about output buffering in JavaScript here, and was trying to get my head around the script the author says was the fastest at printing 1 to 1,000,000 to a web page. (Scroll down to the header "The... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137534",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Assembler library for .NET, assembling runtime-variable strings into machine code for injection Is there such a thing as an x86 assembler that I can call through C#? I want to be able to pass x86 instructions as a string and get a byte array back. If one doesn't exist, how can I make my own?
To be clear - I don't wa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137544",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Is programming a subset of math? I've heard many times that all programming is really a subset of math. Some suggest that OO, at its roots, is mathematically based, but I don't get the connection, aside from some obvious examples:
*
*using induction to prove a recursive algorithm,
*formal correctness proofs,
*f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137550",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "66"
} |
Q: How can I perform a HEAD request with the mechanize library? I know how to do a HEAD request with httplib, but I have to use mechanize for this site.
Essentially, what I need to do is grab a value from the header (filename) without actually downloading the file.
Any suggestions how I could accomplish this?
A: Mech... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137580",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I embed a custom user-control in MS Word? Context: The environment is .Net 3.0 + WPF land, the DB is abstracted well out into the distance and the solution would need to work for Office 2000 and up I guess..
The need is to get a customized report for which the user would like to have certain application wind... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137586",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What is the best way to parse a web page in Ruby? I have been looking at XML and HTML libraries on rubyforge for a simple way to pull data out of a web page. For example if I want to parse a user page on stackoverflow how can I get the data into a usable format?
Say I want to parse my own user page for my current r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137605",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Is it ok to call a virtual method from Dispose or a destructor? I can't find a reference to it but I remember reading that it wasn't a good idea to call virtual (polymorphic) methods within a destructor or the Dispose() method of IDisposable.
Is this true and if so can someone explain why?
A: Calling virtual method... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137621",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is Test Driven Development good for a starter? Expanding this question on how I learnt to pass from problem description to code Two people mentioned TDD.
Would it be good for a starter to get into TDD ( and avoid bad habits in the future ? ) Or would it be too complex for a stage when understand what a programmin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137623",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: How do you render primitives as wireframes in OpenGL? How do you render primitives as wireframes in OpenGL?
A: In Modern OpenGL(OpenGL 3.2 and higher), you could use a Geometry Shader for this :
#version 330
layout (triangles) in;
layout (line_strip /*for lines, use "points" for points*/, max_vertices=3) out;
in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137629",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "243"
} |
Q: Encapsulating SQL in a named_scope I was wondering if there was a way to use "find_by_sql" within a named_scope. I'd like to treat custom sql as named_scope so I can chain it to my existing named_scopes. It would also be good for optimizing a sql snippet I use frequently.
A: While you can put any SQL you like in th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137630",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: How do you pipe an inputstream to a zipped file as it's read in with Java? I'm wanting to execute a program and as it runs read in it's output and pipe out the output into a zipped file. The output of the program can be quite large so the idea is to not hold too much in memory - just to send it to the zip as I get ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137645",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: IoC Containers - Which is best? (.Net) I'd like to get a feel for what people are using for IoC containers. I've read some good things about Castle Windsor, but I know a lot of people use StructureMap, Unity, Ninject, etc.
What are some of the differences amongst those mentioned (and any I neglected). Strengths? We... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137647",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Free install wizard software Is there something like InstallShield that I can use for free?
A: Inno Setup has worked very well as the Zeus installer for many years.
A: I googled for "free installer" and found Advanced Installer, which I recall that I have used successfully in the past.
A: I have been using Inno S... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137657",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "66"
} |
Q: Persistence of std::map in C++ Do you know any easy or simple way to make a map object (from the STL library) persistent (i.e. write it to a file) so that you can recover its state later when the program in run later ??
Thanks for your help
A: The answer is serialization. Specifics depend on your needs and your env... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137659",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Where does Console.WriteLine go in ASP.NET? In a J2EE application (like one running in WebSphere), when I use System.out.println(), my text goes to standard out, which is mapped to a file by the WebSphere admin console.
In an ASP.NET application (like one running in IIS), where does the output of Console.WriteLine()... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137660",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "369"
} |
Q: How do you do polymorphism in Ruby? In C#, I can do this:
class Program
{
static void Main(string[] args)
{
List<Animal> animals = new List<Animal>();
animals.Add(new Dog());
animals.Add(new Cat());
foreach (Animal a in animals)
{
Console.WriteLine(a.Make... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137661",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Apache Redirect only when entering a password I setup phpMyID on one of my machines, and I'm trying to get apache to redirect to HTTPS only when a password is being submitted. I am doing this as my original setup of redirecting all openid traffic didn't work stackoverflow doesn't like my self signed certificate. T... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137679",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: C# 3 new feature posts (and not about .Net 3.5 features) There are a lot of new features that came with the .Net Framework 3.5. Most of the posts and info on the subject list stuff about new 3.5 features and C# 3 changes at the same time. But C# 3 can be used without .Net 3.5. Does anyone know of a good post describ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137688",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Does WebMethods ESB scale? I'm looking for people who have had experiences scaling WebMethods ESB to large traffic volumes (both size and number of messages). How has that gone? Were there any issues and how did you solve them?
A: From the environments I've dealt with (from 4 to 1000 servers) it scales pretty well.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137699",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Do you use WaTiR? Is there a better unit testing tool than WaTiR for Ruby web testing? Or is the defacto standard? What unit testing tools do you use?
A: We use it for all our web application testing, not just ruby based web applications. We did look into a number of products but felt that WaTiR was the best. Plu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137711",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Spell-check in Aquamacs Emacs won't work: "Wrong endian order." This is aquamacs 1.5 on a macbook. Exact error when I try to spell-check:
Error: The file "/Library/Application Support/cocoAspell/aspell6-en-6.0-0//en-common.rws" is not in the proper format. Wrong endian order.
ADDED: I indeed had the wrong version o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137717",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Which distro of Linux is best suited for Java web apps? There are so many Linux distributions to choose from! What is the "best" linux flavor for a web hosting environment running primarily:
Apache HTTP, Tomcat or JBoss, MySQL and Alfresco (not necessarily all in the same instance).
Are there any significant differ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137720",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Free mulitplatform installer Expanding on Free install wizard software I am looking for a cross platform installer. We support something like 27 platform variations and most of the installers mentioned in the other question are windows only. We are looking for something portable, possibly java based but I suppose ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137723",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: How do I upload a HTML form with a username, password, multiple file uploads and then process it with PHP? How to post a username, password and multiple binary files from a single html form and process it using php? I'm not allowed to use ajax.
A: first off check out these pages on PHP.net
*
*file upload info
*... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137730",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: How to use POP3 over SSL in C I would like to know and understand the steps involved in fetching mail from pop3 server
using plain c language
A: Steps:
*
*Connect to the server's port (usually 995) using OpenSSL
*Verify the certificate
*Send regular pop3 commands over the SSL socket you just opened. (LIST, RE... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137741",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: MDIParent Tiling children Is there any way to tile all of the form children of an mdi parent easily? I'm looking for most of the functionality that windows offers, tile cascade. Anyone know of an easy way?
A: try these...
// Tile all child forms horizontally.
this.LayoutMdi( MdiLayout.TileHorizontal );
// Tile all... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137743",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Can i update a signed jar using an ANT Task? Hi I am trying to deploy an application using webstart. I have a requirement to update a jar which is signed before i actually deploy( basically to update the IP/Port info). I am trying to use ANT to update the jar. Is there are way to achive this?
A: I can't speak spec... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137745",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What is the best data structure in .NET for look-up by string key or numeric index? I'm looking for the most ideal data structure (for performance and ease of use) from which values can be retrieved by string key or index. Dictionary doesn't work because you can't really retrieve by index. Any ideas?
A: You want ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137753",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How is a real-world simulation designed? I am fascinated by the performance of applications such as "Rollercoaster Tycoon" and "The Sims" and FPS games. I would like to know more about the basic application architecture. (Not so concerned with the UI - I assume MVC/MVP piriciples apply here. Nor am I concerned wit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137755",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: What does the "no version information available" error from linux dynamic linker mean? In our product we ship some linux binaries that dynamically link to system libraries like "libpam". On some customer systems we get the following error on stderr when the program runs:
./authpam: /lib/libpam.so.0: no version info... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137773",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "103"
} |
Q: Should extension properties be added to C# 4.0? I've wanted this for fluent interfaces. See, for example this Channel9 discussion. Would probably require also adding indexed properties.
What are your thoughts? Would the advantages outweigh the "language clutter"?
A: It's about databinding, let's say I have an objec... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137775",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: Expand a random range from 1–5 to 1–7 Given a function which produces a random integer in the range 1 to 5, write a function which produces a random integer in the range 1 to 7.
A: Why not do it simple?
int random7() {
return random5() + (random5() % 3);
}
The chances of getting 1 and 7 in this solution is lower... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137783",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "715"
} |
Q: SSRS: Change SQL Statement Dynamically I have a report in SSRS 2005 that's based on a query that's similar to this one:
SELECT * FROM MyTable (NOLOCK)
WHERE col1 = 'ABC'
AND col2 LIKE '%XYZ%'
I need to be able to dynamically include the AND part of the WHERE clause in the query based on whether the user has check... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137784",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Suggestions on using Flex with WCF and Linq to Entities So I am working on a project that uses a ASP.NET server and we have entities being passed over WCF from LINQ-to-Entity queries. I have already overcome the cyclic reference issue with WCF. Now that I am looking toward the next step, the Flex UI, I am wondering ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137793",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: SQL SERVER, SELECT statement with auto generate row id Does anyone happen to remember the function name used to generate sequential row number built-in SQL Server 2000.
A: If you are making use of GUIDs this should be nice and easy, if you are looking for an integer ID, you will have to wait for another answer.
SEL... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137803",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: What's your favorite C++0x feature? As many of us know (and many, many more don't), C++ is currently undergoing final drafting for the next revision of the International Standard, expected to be published in about 2 years. Drafts and papers are currently available from the committee website. All sorts of new feature... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137812",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "41"
} |
Q: Can Windows PE 2.0 support the .NET framework? I'm interested in building a PC for a car that will boot off of a USB flash drive. I'm planning on using Windows PE 2.0 for it with the GUI being written in C# or VB.NET.
Obviously, for this to work, I'd need to have .NET 2.0 or later installed. Understanding that .NET ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137817",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: newline character(s) Does your software handle newline characters from other systems?
Linux/BSD linefeed ^J 10 x0A
Windows/IBM return linefeed ^M^J 13 10 x0D x0A
old Macs return ^M 13 x0D
others?
For reasons of insanity, I am going with using the Linux version of the newli... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137837",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Moving WCF service from IIS to a Windows service We have an existing WCF service that makes use of wsDualHttpBinding to enable callbacks to the client. I am considering moving it to netTcpBinding for better performance, but I'm quite wary of moving away from the IIS-hosted service (a "comfort zone" we currently enjo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137840",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Determining whether an object is a member of a collection in VBA How do I determine whether an object is a member of a collection in VBA?
Specifically, I need to find out whether a table definition is a member of the TableDefs collection.
A: Isn't it good enough?
Public Function Contains(col As Collection, key As V... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137845",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "71"
} |
Q: Running Apache without explicitly declaring listening on ports such as :3000 or :6600 Using Ruby and Thin as a web service. Apache is also loaded. Can't access the web service because listing ports, such as :3000 or :6600, in the GET url is not allowed. How is the port requirement removed?
A: Use Apache ProxyPas... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137849",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Using the "final" modifier whenever applicable in Java In Java, there is a practice of declaring every variable (local or class), parameter final if they really are.
Though this makes the code a lot more verbose, this helps in easy reading/grasping of the code and also prevents mistakes as the intention is clearly m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137868",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "209"
} |
Q: How to change directory security attributes using InstallShield? I'd like to change the security attribute of a directory that InstallShield creates under the CSIDL_COMMON_APPDATA - can someone please advise on how to do that during the installation process?
It's a script-defined folder.
Thank you.
A: Under Install... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137870",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Can JQuery.Validate plugin prevent submission of an Ajax form I am using the JQuery form plugin (http://malsup.com/jquery/form/) to handle the ajax submission of a form. I also have JQuery.Validate (http://docs.jquery.com/Plugins/Validation) plugged in for my client side validation.
What I am seeing is that the vali... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137872",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: How can you automate Firefox from C# application? Start with the simplest task of capturing the URL in Firefox from a C# application. It appears using user32.dll Windows API functions will not work as is the approach for capturing the URL within IE.
A: Should I need to do a capture of the URL with AutoHotkey, fo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137880",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: C# Mono - Low Level Keyboard Hook I'm using code that I found on the CodeProject.com for a low-level keyboard hook. The only problem is it uses external DLL calls that don't work in mono. I was wondering if anyone knew of a way to accomplish the same thing as that code, but will run in both Windows using .net, and... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137893",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What's the best way to add tags to the head in Plone? I want to add the link tags to redirect my web-site to my OpenID provider. These tags should go in the head element. What's the best way to add them in Plone?
I understand that filling the head_slot is a way to do it, but that can only happen when you are adding ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137911",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Is Firebug on Firefox 3 stable yet? I really should upgrade to Firefox 3, but I'm very dependent on Firebug working properly.
I know there is a version of Firebug that is supposed to work with Firefox 3, but last time I looked, there seemed to be problems with it.
So, for those that have made the jump, is Firebug on... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137926",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What is the best scripting language to embed in a C# desktop application? We are writing a complex rich desktop application and need to offer flexibility in reporting formats so we thought we would just expose our object model to a scripting langauge. Time was when that meant VBA (which is still an option), but the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137933",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "99"
} |
Q: How to jump to an occurrence from Vim search list In Vim editor I opted ]I on a function (in C++ code).
This presented a list, which says 'Press ENTER or type command to continue'.
Now to jump to an occurrence say 6, I type 6 - but this is not working.
What commands can I type in such a case, and how do I jump to N... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137935",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How does cherrypy handle user threads? I'm working on a django app right and I'm using cherrypy as the server. Cherrypy creates a new thread for every page view. I'd like to be able to access all of these threads (threads responsible for talking to django) from within any of them. More specifically I'd like to be ab... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137950",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Reading all values from an ASP.NET datagrid using javascript I have an ASP.NET Datagrid with several text boxes and drop down boxes inside it. I want to read all the values in the grid using a JavaScript function. How do i go about it?
A: Easily done with jQuery. I don't recall what kind of markup the Datagrid crea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137951",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Vim Markdown highlighting (list items and code block conflicts) I decide to learn more about vim and its syntax highlighting.
Using examples for others, I am creating my own syntax file for Markdown. I have seen mkd.vim and it has this problem too.
My issue is between list items and code block highlighting.
Code Blo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137952",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Hudson job hangs at Runtime.exec I'm running Hudson as a windows service through Tomcat, with no slaves involved. The last build step in the job is a batch file that invokes some Java code. The code uses PostgreSQL's command line tool psql (via Runtime.exec()) to create a database on the local machine and eventually... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137972",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What are drawbacks or disadvantages of singleton pattern? The singleton pattern is a fully paid up member of the GoF's patterns book, but it lately seems rather orphaned by the developer world. I still use quite a lot of singletons, especially for factory classes, and while you have to be a bit careful about multith... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137975",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2146"
} |
Q: Q's on pgsql I'm a newbie to pgsql. I have few questionss on it:
1) I know it is possible to access columns by <schema>.<table_name>, but when I try to access columns like <db_name>.<schema>.<table_name> it throwing error like
Cross-database references are not implemented
How do I implement it?
2) We have 10+ table... | {
"language": "en",
"url": "https://stackoverflow.com/questions/137998",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to make XMLHttpRequest work over HTTPS on Firefox? When I try to send an HTTP GET request through XMLHttpRequest it works on non-secure HTTP.
But when sent over HTTPS, different browsers gave different results:
On Firefox 3.0.2:
- The GET request doesn't reach the web server.
On IE 7:
- The GET request reached t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/138000",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Do you know update site addresses for *latest* eclipse components? I am looking for all addresses related to:
*
*3.x eclipse itself (milestones and/or integration builds)
*3.x other components (GEF, GMF, EMF, ...)
In the spirit of answering my own question, I do have an answer for:
*
*3.5 eclipse itself, wi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/138004",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Is the best approach a typed or not typed view in ASP.NET MVC? In ASP.NET MVC it's possible to choice between having a typed view were you define in the codebehind what kind of data the view can should expect. But it's also possible to not define this and just pass any kind of data to view in a ViewData container.
W... | {
"language": "en",
"url": "https://stackoverflow.com/questions/138009",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is it possible to call a COM API from Java? Is it possible to call a COM API from Java (specifically the HP/Mercury Quality Center OTA API)? If so, what's the best way?
Is something like JACOB appropriate?
Code fragments would be helpful for the basics :-)
A: after a comparison of all the above, none was totally sa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/138028",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Get Bound Event Handler in Tkinter After a bind a method to an event of a Tkinter element is there a way to get the method back?
>>> root = Tkinter.Tk()
>>> frame = Tkinter.Frame(root, width=100, height=100)
>>> frame.bind('<Button-1>', lambda e: pprint('Click')) # function needed
>>> frame.pack()
>>> bound_event_me... | {
"language": "en",
"url": "https://stackoverflow.com/questions/138029",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to create a resizable CDialog in MFC? I have to create a dialog based application, instead of old CFormView type of design. But CDialog produces fixed-size dialogs. How can I create dialog based applications with resizable dialogs?
A: Since Visual Studio 2015, you can use MFC Dynamic Dialog Layout, but it seems... | {
"language": "en",
"url": "https://stackoverflow.com/questions/138040",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "29"
} |
Q: Find the next TCP port in .NET I want to create a new net.tcp://localhost:x/Service endpoint for a WCF service call, with a dynamically assigned new open TCP port.
I know that TcpClient will assign a new client side port when I open a connection to a given server.
Is there a simple way to find the next open TCP port... | {
"language": "en",
"url": "https://stackoverflow.com/questions/138043",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "81"
} |
Q: Is there something like Python's getattr() in C#? Is there something like Python's getattr() in C#? I would like to create a window by reading a list which contains the names of controls to put on the window.
A: Use reflection for this.
Type.GetProperty() and Type.GetProperties() each return PropertyInfo instances,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/138045",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: When editing Lisp code, can emacs be configured to display each nested level of parentheses in a different color? In other words, a block of code like this:
(setq initial-major-mode
(lambda ()
(text-mode)
(font-lock-mode)
))
... would come out looking like something like this:
If something like this ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/138056",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Detecting file being reopened in Java I'm working on a small Java application (Java 1.6, Solaris) that will use multiple background threads to monitor a series of text files for output lines that match a particular regex pattern and then make use of those lines. I have one thread per file; they write the lines of in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/138059",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: TFS Build Server drop location error We're using TFS Build Server to ensure that all files checked in by developers are going to compile to a working source tree, cuz there's nothing worse than a broken build!
Anyway we've having some problems with the drop location that Build Server wants to use, we keep getting th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/138060",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to determine whether a drive is network mounted? I am searching for all drives and their contents. I don't want to search network drives. How can I determine if a given drive is network mounted? What I would want further is to get similar information one gets using NET USE command?
A: You want the GetDriveType ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/138065",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Catching exceptions within .aspx and .ascx pages The questions says everything, take this example code:
<ul id="css-id">
<li>
<something:CustomControl ID="SomeThingElse" runat="server" />
<something:OtherCustomControl runat="server" />
</li>
</ul>
Now if an error gets thrown somewhere inside these ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/138071",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to log a stored procedure error Scenario: C# apps uses SQL2000. It excecute 3 stored procs within a try catch in the app. In the catch the error is suppressed. Due to some legalities, the c# code cannot be changed and implemented.
Q: How do I trap the actual SQL error in the stored proc into a log file or other... | {
"language": "en",
"url": "https://stackoverflow.com/questions/138073",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Emulate hard disk in .NET Is there a way to emulate a disk drive in .NET, intercepting read/write/lock operations?
I would like to create something with a front-end similar to GMail Drive in C#.
Thanks,
Tom
A: On Linux you can use the Mono.Fuse API (http://www.jprl.com/Projects/mono-fuse.html) to implement .NET-bas... | {
"language": "en",
"url": "https://stackoverflow.com/questions/138080",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to protect application against duplication of a virtual machine We are using standard items such as Hard Disk and CPU ID to lock our software licenses to physical hardware. How can we reduce the risk of customers installing onto a virtual machine and then cloning the virtual machine, bypassing our licensing?
A:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/138081",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: How to add a Page to Frame using code in WPF I have a Window where I have put a Frame. I would like to add a Page to the Frame when I click a button that is also on the Window but not in the Frame. There are several buttons in the Window and each click on a button should load a different Page in the Frame.
Since I'm... | {
"language": "en",
"url": "https://stackoverflow.com/questions/138096",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: How do I find my PID in Java or JRuby on Linux? I need to find the PID of the current running process on a Linux platform (it can be a system dependent solution). Java does not support getting the process ID, and JRuby currently has a bug with the Ruby method, Process.pid.
Is there another way to obtain the PID?
A... | {
"language": "en",
"url": "https://stackoverflow.com/questions/138097",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: How do I add a type to GWT's Serialization Policy whitelist? GWT's serializer has limited java.io.Serializable support, but for security reasons there is a whitelist of types it supports. The documentation I've found, for example this FAQ entry says that any types you want to serialize "must be included in the seri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/138099",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "35"
} |
Q: Delphi Pop Up menu visibility Is there a way in Delphi 7 to find out if a pop-up menu is visible (shown on the screen) or not, since it lacks a Visible property.
A: You could make your own flag by setting it in the OnPopup event. The problem is knowing when the popupmenu is closed. Peter Below has a solution for th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/138105",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Change order of images in icon file Is there an app that can change the order of images inside an icon?
Thanks!
A: What you'll need to do that is a resource editor. A google search will reveal many free ones out there. The restorator is a great one, but not free and over-priced IMO.
Any decent resource editor wi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/138115",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What happens when I click the Stop button on the browser? Let's say I click a button on a web page to initiate a submit request. Then I suddenly realize that some data I have provided is wrong and that if it gets submitted, then I will face unwanted consequences (something like a shopping request where I may be forc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/138116",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "26"
} |
Q: how to send rich text message in system.net.mail how to send rich text message in system.net.mail need code for send a mail as html
A: System.Net.Mail.MailMessage mm = new System.Net.Mail.MailMessage();
mm.Body = "<html>...</html>";
mm.IsBodyHtml = true;
A: //create the mail message
MailMessage mail = new MailMe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/138117",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to create a very big bitmap in C++/MFC / GDI I'd like to be able to create a large (say 20,000 x 20,000) pixel bitmap in a C++ MFC application, using a CDC derived class to write to the bitmap. I've tried using memory DCs as described in the MSDN docs, but these appear to be restricted to sizes compatible with ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/138122",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: When does the Community believe that it is appropriate to use a Singleton?
Possible Duplicate:
Singleton: How should it be used
Following on from Ewan Makepeace 's excellent earlier question about the Singleton pattern, I thought I would ask "when does the Community believe that it is appropriate to use a Singlet... | {
"language": "en",
"url": "https://stackoverflow.com/questions/138124",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to split a string (e.g. a long URL) in a table cell using CSS? Here's the situation: I'm trying my hand at some MySpace page customisations. If you've ever tried [stackoverflow], I'm sure you understand how frustrating it can be.
Basically it can be all customised via CSS, within a certain set of rules (e.g. the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/138132",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Is there a standard framework for .NET parameter validation that uses attributes? Is there a standard framework (maybe part of Enterprise Library... or .NET itself) that allows you to do common parameter validation in method attributes?
A: The Microsoft Enterprise Library has the Microsoft.Practices.EnterpriseLibra... | {
"language": "en",
"url": "https://stackoverflow.com/questions/138133",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: BUILTIN\Administrators removed - how to undo it SQL Server 2000 Standard, Windows 2003
My coworker removed 'BUILTIN\Administrators' group from SQL Server which results in 'SQL Server Agent' not working.
All my TSQLs to synchronize databases stopped working.
I have Administrator rights on the server and my database... | {
"language": "en",
"url": "https://stackoverflow.com/questions/138142",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.