text stringlengths 8 267k | meta dict |
|---|---|
Q: Image causing vertical alignment problems I have the following div layout:
Everything is fine when I put normal txt elements in both the blue and the orange div. However, when I place an image in the orange div (which is 31px), the elements in the blue div get pushed down by about half the height of the blue div.
(... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296148",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What are the best practices to log an error? Many times I saw logging of errors like these:
System.out.println("Method aMethod with parameters a:"+a+" b: "+b);
print("Error in line 88");
so.. What are the best practices to log an error?
EDIT:
This is java but could be C/C++, basic, etc.
A: Apache Commons Logging i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296150",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: How to correctly serialize a base class to JSON in silverlight? I have the following structure:
class Base
{
}
class Child : Base
{
}
When I try to do the following:
DataContractJsonSerializer serializer = new DataContractJsonSerializer(typeof(Base));
serializer.WriteObject(stream, data);
It fails with the error ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296163",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I copy files with specific file extension to a folder in my python (version 2.5) script? I'd like to copy the files that have a specific file extension to a new folder. I have an idea how to use os.walk but specifically how would I go about using that? I'm searching for the files with a specific file extensio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296173",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: How to get Printer Info in .NET? In the standard PrintDialog there are four values associated with a selected printer: Status, Type, Where, and Comment.
If I know a printer's name, how can I get these values in C# 2.0?
A: As dowski suggested, you could use WMI to get printer properties. The following code displays ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296182",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "50"
} |
Q: Branches for Every Little Change? We have a client (who has a client, who has a client) who is driving us mad with change requests to a code base (in PHP). Our first response was to just work in a main trunk in SVN, but the client often comes back and requests that a certain change needs to get pushed to the live se... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296183",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: Cannot get .NET application to access AD groups across domains I have a .NET application distributed through ClickOnce. Security within the application is implemented through the WindowsPrincipal.IsInRole(GroupName) method using a set of groups as resources. This structure works well for us for users within the same... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296193",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is there any 'out-of-the-box' 2D/3D plotting library for C++? I looked at the different options for plotting functions (or other types of graphs) in an interactive window. I mostly use wxWidgets but I'd be open to any other "interfaces".
Looking at what is available, here is what I've found:
wxPlot: Not updated sin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296199",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "76"
} |
Q: JAXM soap message parsing I am getting the following XML back from a .net service:
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296202",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Recommended C++ Database Abstraction Layers What Database Abstraction Layer libraries would you recommend for use with C++? I am more interested in solutions for non-Windows platforms, but that is personal preference. Which libraries would you recommend and why?
A: Take a look at SOCI
Apparently, it is a serious ca... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296205",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Can I unit test the DOM? We have a Ruby on Rails app that uses some javascript in the views. Since we have good test coverage on the rest of the app, we want to continue that here. The js we use manipulates the DOM to show/hide divs and perform incremental searching for a combobox selecting from a table.
Does anyo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296229",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: RegExp to match words wrapped in braces In javascript, I've got a block of HTML like this:
<h2>{title}</h2>
<p><a href="{url}">{content}</a></p>
And I'm trying use regex "match" to spit out an array of all the {item}'s. So my output should look like:
['title', 'url', 'content']
I've gotten as far as:
var pattern =... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296230",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Multi-lingual Flex app - preferred fonts for embedding specific languages I work on a collaboration web app, built with Flex 3, that needs to support multiple languages.
Does anyone know which fonts are best for creating embedded font libraries for Chinese, Korean, Japanese, and Russian languages? I know Arial Uni... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296248",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Create an object knowing only the class name? I have a set of classes, each one is a different strategy to do the same work.
namespace BigCorp.SuperApp
{
public class BaseClass { }
public class ClassA : BaseClass { }
public class ClassB : BaseClass { }
}
The choice of which strategy to use is configura... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296251",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Parse C files I am looking for a Windows based library which can be used for parsing a bunch of C files to list global and local variables. The global and local variables may be declared using typedef. The output (i.e. list of global and local variables) can then be used for post processing (e.g. replacing the varia... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296256",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Using a WPF Custom Control, How can I give my custom control a name to access it via the code behind? When I try using a Name="id" and\or x:name="id" I get a compiler error:
The Type 'MyName' was not found. Verify that you are not missing an assembly reference and that all referenced assemblies have been built.
Whe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296261",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: What is the meaning of '@' symbol in Oracle SQL? What is the @ symbol mean in oracle?
For example:
select * from question_answer@abcd where id = '45'
A: It refers to a non-local table, the bit behind the @ is the db descriptor.
select * from question_answer@abcd where id = '45'
Means select not from the local qu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296263",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Using Regular Expressions in JSP EL In EL expressions, used in a jsp page, strings are taken literally. For example, in the following code snippet
<c:when test="${myvar == 'prefix.*'}">
test does not evaluate to true if the value of myvar is 'prefixxxxx.' Does anyone know if there is a way to have the string int... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296264",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Is there a recommended, suggested, or conventional structure for .NET and/or ASP.NET projects? I'm thinking about starting work on a fairly large scale .NET or ASP.NET project (I haven't decided yet, but it is likely that, eventually, it will be accessible from both a desktop application written in .NET as well as a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296268",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Which is more efficient in Python: standard imports or contextual imports? I apologize in advance if this question seems remedial.
Which would be considered more efficient in Python:
Standard import
import logging
try:
...some code...
exception Exception, e:
logging.error(e)
...or...
Contextual import
try:
.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296270",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Visual Studio Installer does not include satellite resource assembly I have a VS2008 installer project which installs a .NET Windows Service. One of the service's dependencies is a .NET assembly which has localized resources in the form of a satellite assembly. The installer is not packaging or installing the sate... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296278",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to make an ATL COM class derived from a base class? The "ATL simple object" wizard doesn't provide a way to specify that a new class is derived from an existing coclass and its interface. In Visual Studio 2008, how do I make a new ATL COM class derived from an existing one (i.e. Base implements IBase, and I want... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296283",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: MVC Dynamic Routes I would like to create dynamic urls that route to controller actions with an Id value. I've created the following route using a catch-all parameter
routes.MapRoute(
"RouteName",
"{id}/{*Url}",
new { controller = "... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296284",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Installed package with Maven How do I install a specific package, like derbytools, with Maven without specifying it as a dependency of project?
A: Here is a sample using the mvn install goal. I used windows style env vars in place of parameters you will need to provide.
mvn install:install-file -DgroupId=%DERBYTOO... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296294",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Open a file for shared writing The following code is just a simplified example to demonstrate my problem:
using System;
using System.IO;
using System.Diagnostics;
using System.Threading;
namespace ConsoleApplication5
{
class Program
{
static string LogFile = @"C:\test.log";
static void Main... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296309",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: spring beans configuration I'm using Spring's dependency injection but I'm running into difficulty loading a resource in my Spring config file.
The resource is an XML file and is in a JAR file on my classpath. I try to access it as follows:
<import resource="classpath:com/config/resources.xml" />
however I keep ge... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296312",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Add Your Own Custom Namespace to the My Namespace in VB.Net I know how to add methods to the MY namesapce, but what I'd like to do is create my own namespaces. For example. My.Nation.State.City.Restraunt or whatever.
A: See msdn or codeproject. I believe what you want would come under the "Adding Custom Objects t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296318",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is there any other strongly-integrated presentation layer tool other than JSF/JSP for Java EE? I'm teaching Java EE at the university, and this was a question a student asked. I said "no", but I wasn't really sure, so I thought I might ask you mighty developers. :)
Basically, what I'd like to do is to use entities i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296325",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Import Process maxing SQL memory I have an importer process which is running as a windows service (debug mode as an application) and it processes various xml documents and csv's and imports into an SQL database. All has been well until I have have had to process a large amount of data (120k rows) from another table ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296333",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there a set of best practices for building a Lucene index from a relational DB? I'm looking into using Lucene and/or Solr to provide search in an RDBMS-powered web application. Unfortunately for me, all the documentation I've skimmed deals with how to get the data out of the index; I'm more concerned with how to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296365",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I extract lines of text from a file? I have a directory full of files and I need to pull the headers and footers off of them. They are all variable length so using head or tail isn't going to work. Each file does have a line I can search for, but I don't want to include the line in the results.
It's usually ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296366",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Open source library to convert DOC and other MS-Office files to image(s) Can you recommend an open source library (C or C++) to convert MS Office files into a set of images?
I am evaluating ImageMagick and while it does support PDF files, it does not work with MS Office files.
A: This library is quite popular and u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296367",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I view a property in H2 SQL How does one view a property with a SELECT query? I've got some properties that I need to see the value of in a running H2 DB. I've got the Console app up and running.
A: Ok, it was as easy as I thought. Say the property is "SIZE", then
SELECT @SIZE
D'oh
| {
"language": "en",
"url": "https://stackoverflow.com/questions/296372",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Generating a picture/graphic of a graph In working on a shortest path algorithm across a network I would like to generate a picture of the network. I'd like to represent nodes (circles), links (lines), cost to traverse the link (number in the middle of the link line), and capacity of the link (number on the link lin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296377",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Best practice for handling worm URLs We've been getting request (from worms?) of the form
http://www.example.com/MSOffice/cltreq.asp?...
http://www.example.com/_vti_bin/owssvr.dll?...
What is the best practice for dealing with these?
I've considered either returning a 404 or trying to terminate the connection whil... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296389",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Concatenate strings in JSP EL? I have a List of beans, each of which has a property which itself is a List of email addresses.
<c:forEach items="${upcomingSchedule}" var="conf">
<div class='scheduled' title="${conf.subject}" id="scheduled<c:out value="${conf.id}"/>">
...
</div>
</c:forEach>
This renders... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296398",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: How to Check if File is ASCII or Binary in C++ So using the system command file we can use file to determine if a file is ASCII Text or "data". I wanted to know if there is a way to check in code which one it was? I want to basically throw a corrupt error if the file is 'data'. I am using ifstream for reading the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296400",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: dominating set of a tournament graph I am writing an algorithm to find the dominating set of a tournament graph. Is the minimum spanning tree of a directed graph equivalent to the dominating set of the graph? In other words, if I find the smallest MST for the tournament graph (by iterating through all of the vertice... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296405",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do you stub out User.Identity.Name in ASP.NET MVC? I'm trying to unit test a page in my ASP.NET MVC application that, when posted to, will delete a user's item. I want to restrict this page so that it can only be posted to by the owner of said item. Originally, I wanted to just stick a quick check in the contr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296414",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: DataGridview Column Resize Problem I have a datagridview where the users can select which subset of columns to view.
The problem I am having is that when I change the columns being displayed, the column widths are only being determined by the width of the Header Cells, not the data in it.
I do have each column set ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296418",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: ULONGLONG value corrupted in WinPE I have an MFC app running in WinPE (Windows Preinstallation Environment), and I'm trying to make a method call with a 64-bit value in a ULONGLONG as a parameter. I've determined that the value is correct (ie. 0x1b432d6000) before the call, but is corrupt (ie. 0x432d60000000000a) i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296438",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I tell if a file is on a remote filesystem with Perl? Is there a quick-and-dirty way to tell programmatically, in shell script or in Perl, whether a path is located on a remote filesystem (nfs or the like) or a local one? Or is the only way to do this to parse /etc/fstab and check the filesystem type?
A: Yo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296455",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Typed DataSet connection - required to have one in the .xsd file? In the .xsd file for a typed DataSet in .NET, there's a <Connections> section that contains a list of any data connections I've used to set up the DataTables and TableAdapters.
There are times when I'd prefer not to have those there. For instance, so... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296458",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How can I obtain the OU of the logged in user in C#? I'm looking for a method to obtain the current logged in user's full Active Direcory LDAP path. e.g.
LDAP://CN=john.smith,OU=UK,OU=Sales,DC=Company,DC=local
A: Query the LDAP directory (e.g. the AD) with this filter:
(&(objectCategory=user)(sAMAccountName=<user... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296466",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I remove a specific number of files using python (version 2.5)? I would like to remove two files from a folder at the conclusion of my script. Do I need to create a function responsible for removing these two specific files? I would like to know in some detail how to use os.remove (if that is what I should us... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296490",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What would be the expected behavior for a window that hides itself upon keystroke This is a subjective question, but I need opinions.
I have a WinForms C# application whose window hides itself after a specific keystroke (Enter or Escape), with possible modifiers (e.g. Ctrl-Enter). When hiding on KeyDown or KeyPress,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296497",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I zip the contents of a folder using python (version 2.5)? Once I have all the files I require in a particular folder, I would like my python script to zip the folder contents.
Is this possible?
And how could I go about doing it?
A: Here is a recursive version
def zipfolder(path, relname, archive):
pat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296499",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "28"
} |
Q: Dynamically added control not doing postback I am overriding a Grid, adding some customer features. One of the features is a drop-down to adjust page size. I am extending the grid using a customer server control, which works great for what I've done so far. Now, however I am having a bit of trouble getting the dy... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296501",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: WPF User Control's DataContext is Null I have a user control where the XAML of the control can bind to the appropriate properties from the parent's data context like normal (the data context propagates in xaml).
For example, I have a window whose DataContext I am setting to ObjectA for example. My user control with... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296503",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: Graduate Level Degree for Simulation/Statistics/Prediction? I am wondering if anyone has any insight into this. I am thinking of going to grad school to get some computer science related degree. I have always been intrigued by people who are working on problems using statistical packages or simulation to solve probl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296513",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Best way to pass an array from JavaScript to C#? I need to pass an array from JavaScript to a page method in C#. I have tried using a parameter in the C# method of IList and also a string[] array. Both ways throw an exception "cannot convert an object of type system.string to xxx", where xxx is the parameter type in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296517",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: `(cd X; pwd)` sometimes returns two-line I have shell script which starts with:
sdir=`dirname $0`
sdir=`(cd "$sdir/"; pwd)`
And this usually gets expanded (with 'sh -h') into
++ dirname /opt/foo/bin/bar
+ sdir=/opt/foo/bin
++ cd /opt/foo/bin/
++ pwd
+ sdir=/opt/foo/bin
but for single user for single combination o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296519",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Win32 console processes in VISTA - 10% CPU, but VERY SLOW I have a Win32 console application which is doing some computations, compiled in Compaq Visual Fortran (which probably doesn't matter).
I need to run a lot of them simultaneously.
In XP, they take around 90-100% CPU together, work very fast.
In Vista, no mat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296520",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What is the best query to get the current records in an archive table (SQL Server 2005/2008) Example
There is an application that measures temperature in each town of the world. Each measurement is taken every 5 minutes and written in to the Measurement table.
CREATE TABLE [dbo].[Measurement](
[MeasurementID] [i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296525",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: WPF ListView Very Slow Performance - Why? (ElementHost, or Other Reason?) I have a Windows Forms app, that has a single ElementHost containing a WPF UserControl... in my WPF, I have a VERY simple ListView:
<ListView Margin="4" ItemsSource="{Binding Notifications}">
<ListView.View>
<GridView>
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296533",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "27"
} |
Q: SCSF vs Acropolis What's the different between SCSF and Acropolis ?
A: SCSF (Smart client Software Factory) is a set of tools (using the Guidance Automation Extensions to Visual Studio) for building apps using the Composite UI Application Block.
The Composite UI Application Block is an application framework that is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296534",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to urlencode data for curl command? I am trying to write a bash script for testing that takes a parameter and sends it through curl to web site. I need to url encode the value to make sure that special characters are processed properly. What is the best way to do this?
Here is my basic script so far:
#!/bin/... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296536",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "494"
} |
Q: IsInRole problem I'm working for the first time with Forms Authentication, I'm using an example from the web to learn, I included in my web.config
<authentication mode="Forms">
<forms name="MYWEBAPP.ASPXAUTH" loginUrl="Login.aspx" protection="All" path="/"/>
</authentication>
<authorization>
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296538",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Embedded MSHTML: mouse wheel ignored In my VC++ application I have an embedded browser (MSHTML). It works fine and handles the mouse properly (for instance, clicks and selects are processed OK). However, mouse wheel rotations over the embedded browser do not have any effect. This is my problem.
I am not very familia... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296548",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: using date range in Lucene.net I understand how Lucene.net can work for text indexing. Will I be able to efficiently search for documents based on a given date range? Or will Lucene.net just use text matching to match the dates?
A: Lucene.Net will just use text matching, so you'd need to format the dates correctly ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296550",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Mount/Unmount USB drives with VBSCript I am looking for a way to mount\unmount a USB flash drive using VBScript. This is the closest I was able to get.
Sub EjectDrive(strDrive)
On Error Resume Next
CONST SSF_DRIVES = 17
Set objShell = CreateObject("Shell.Application")
Set objDrive = objShell.Namespace(SSF_DRIVES).P... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296560",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How to write spam filter I'm stuck in having to write a simple spam filter
I'm not really sure about how I'm going to do it.
So far I've come up with wordlist and domain filtering, which will give or remove points up to a certain threshold.
For example, if you're writing about "v1agr4" from a blacklisted domain, you... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296579",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Create object instance without invoking constructor? In C#, is there a way to instantiate an instance of a class without invoking its constructor?
Assume the class is public and is defined in a 3rd party library and the constructor is internal. The reasons I want to do this are complicated but it would be helpful t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296584",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "74"
} |
Q: Light weight alternative to Hibernate? I have a single user java program that I would like to have store data in a light weight database such as Derby or Sqlite. I would like to use a data abstraction layer in my program. Hibernate appears to require a lot of configuration and is overkill for what I need. What are l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296587",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "117"
} |
Q: Does your email client let you add custom headers programmatically? I'm working on an anti-spam project (centmail) that involves having the sender use a client plugin that adds a custom header (as well as a signature, but that part's easier). The general problem is to add an email header to your outgoing mail where... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296603",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Browser displaying "Page Not Found" message when error is thrown in an ASP .NET page When i navigate to an ASP.NET page, the browser displays a "Page Not Found" message. The page exists and is in a virtual directory, I am able to browse it on the IIS on my local development machine. What could be causing this proble... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296604",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: When extending a asp.net web control, at which event should additional web controls be injected? I'm trying to avoid a composite control or using and ASCX by extending an existing control. However, I'm having trouble with getting the controls added to the inherited control and keep their view-state/post-back integri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296609",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Redirecting to EXEs with Query String Params and IE6/7 Greetings!
I'm scratching my head, wondering why when I do the following:
Response.Redirect(@"http://www.example.com/file.exe?id=12345");
Both IE6 and IE7 will download the file as "file" (with no extension), but Firefox, Opera, Google Chrome and Safari have no... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296615",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: if-else in FreeMarker template FreeMarker templates support an if-statement with the following syntax
<#if hot>
It's hot.
</#if>
I've looked in the documentation and can't find any support for an if-else statement. Of course, I could achieve the same result with:
<#if hot>
It's hot.
</#if>
<#if !hot>
I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296619",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: Apache Access Control I'm trying to configure Apache to allow read only access and ask for user to write to a SVN repository when you are coming from the local network (10.*) but not allow any access unless logged in when coming from external network.
I sort of understand how the Order, Deny, Allow, and Limit direct... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296632",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Projects folder structure recommendation I'm getting ready to implement a source control system (subversion) but I'm facing some doubts on how to structure my folders.
I use Delphi for all my development and compile the projects from within the IDE.
My current projects folder structure is as follows:
-E:\Work\1. Sh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296643",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Performance comparison of Thrift, Protocol Buffers, JSON, EJB, other? We're looking into transport/protocol solutions and were about to do various performance tests, so I thought I'd check with the community if they've already done this:
Has anyone done server performance tests for simple echo services as well as se... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296650",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "70"
} |
Q: Defining macros in Visual Studio - /D or #define? Recently, when porting some STL code to VS2008 I wanted to disable warnings generated by std::copy by defining the new _SCL_SECURE_NO_WARNINGS flag. You can do this in two ways:
*
*Using the /D compiler switch, which can be specified in the project properties. Yo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296657",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: What is the best, light-weight JSON/ajax script? I am creating a joomla plugin and want to load an array of images after the page has loaded. To do that, I'm currently using mootools.js to call myserver URL, obtain the JSON response and parse the response into javascript variables that represent each image url. It... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296658",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Overriding a JavaScript function while referencing the original I have a function, a(), that I want to override, but also have the original a() be performed in an order depending on the context. For example, sometimes when I'm generating a page I'll want to override like this:
function a() {
new_code();
orig... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296667",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "167"
} |
Q: A resonable request: Iframes in IE that indicate loading progress? One thing that bugs me about IE is that when it goes to load a page with an iframe it will wait until the iframe has finished loading before it will render the page. Firefox by contrast will render all the other page elements while the iframe is loa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296674",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Page auto reload with parameters I am trying to autoreload my page after every 20 seconds. I am using JavaScript for this instead of the <meta>.
I have <body onload="SetTimer()">
and here is my JavaScript function
function SetTimer(){
setTimeout('window.location.replace(window.location.pathname)', 20000)... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296685",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to get Build output, error list, when running Project.Build() in a custom build task? Environment:
C# projects, Visual studio 2008, C#, .Net 3.5, MSBuild
Objective:
Run my own custom build task for my C# projects, and based on the platform (Soln configuration platform), I do some manipulations to the Project obj... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296695",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Making sure public VBA methods don't show up in the list of Excel macros In Excel VBA (2003), I've noticed that any Public or Friend Sub method in either a module or ThisWorkbook that doesn't have any arguments will show up as a Macro that can be run by the user. I.e. when the user goes to Tools --> Macro --> Macros... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296696",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "28"
} |
Q: Good name for an class that holds a object with an onset time I'm creating a (Java) class to represent an object in a musical score that has a specific onset time, and possibly a duration as well. I need a good name for this class. Is something like "Timed" or "TimedObject" appropriate? I've tried to come up with... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296702",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: zcat won't unzip files properly I need to unzip a compressed file on the fly in my program. It works when I try it on my own linux computer, but for some reason the school computers fail whenever I tell them to do it. To unzip I'm using the following command:
zcat /file/address/file.tar.gz
and get the error:
/f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296717",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "49"
} |
Q: When should I start a method name that gets a property with the "get-" prefix? What's a good rule of thumb for naming methods that return properties/attributes/members of an object? If an object has some immutable quality "blarg", should a method that returns that quality be called "blarg()" or "getBlarg()"? The J... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296719",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: When should I use Scope Locking (Application, Server, etc...) vs named locking in ColdFusion? When is it appropriate to use <cflock scope="application"> or it's ilk as opposed to <cflock name="foo">?
Specifically, I'm interested in using CFLock to protect shared objects in the application, session, or server scope... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296721",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Build solution for C++ I'd like to setup a build server for unmanaged C++ code developed in Visual Studio 2005. The build server should be able to do the following:
*
*Monitor a Subversion repository for code changes and schedule a build
*Checkout code from Subversion and run unit tests
*Provide some sort of re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296728",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Disappearing Foreign Keys in phpMyAdmin I am creating a new table inside mysql and I am trying to add a foreign key constraint to one of the fields.
CREATE TABLE `onlineorder` (
`receiptid` varchar(10) NOT NULL default '',
`delivereddate` date default NULL,
`cid` int(10) NOT NULL,
`card#` int(10) default NU... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296730",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Does Fluent-NHibernate support mapping to procedures? I've been wondering if it's possible to have Fluent-NHibernate communicate with stored procedures that already exist and assign mapping from the result set to my own domain objects.
Also is Fluent-NHibernate able to directly execute procedures with no result set ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296732",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: In iplanet 6, where is the webapp directory defined? I'm trying to deploy my first war file on an existing iplanet 6 install, and the only place in the config directory that specifies what looks like the web app directory is in server.xml:
<PROPERTY name="docroot" value="/usr/local/ns-home/docs"/>
<USERDB id="defa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296735",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to recreate an oracle 9i database from backup files (ora files) I'm a developer so I'm a little lost in the DBA world. Our systems guys have given me a backup of an Oracle 9i database. I have installed oracle 9i on my pc and am now trying to 'import' the backup files so I have a normal database to work with.
T... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296736",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I parse relative dates with Perl? I'd love to know if there is a module to parse "human formatted" dates in Perl. I mean things like "tomorrow", "Tuesday", "next week", "1 hour ago".
My research with CPAN suggest that there is no such module, so how would you go about creating one? NLP is way over the top fo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296738",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Adding handlers to Dynamically Created Context Menu I need to populate a context menu from a database at run time. I do not know the number of items that will be in the list, so I would like to handle the click event in a single place. How do I declare the handler so I can tell which menu item actually triggered t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296740",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Long Transaction Time Solution for Java EE? A problem I've encountered a few time in my career is in a tiered service architecture a single downstream system can bring down the entire client application if it gets into a state where all its threads are consumed on a deadlock or some sort of infinite loop bug in that... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296741",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: IE7 label positioning problem, problem with the div width I have problem with labels inside a fieldset (feedback form). It is correctly shown in Firefox, Opera, IE6, but it looks ugly in IE7 See this page here.
You can also find pg.css (main ccs file), ie6.css, ie.css.
HTML code:
<fieldset>
<legend>Вы можете отп... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296744",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What is the meaning of "h" in "<%=h [ ...] %>"? When I generate a default scaffold, the display tags on show.html.erb have
<%=h @broker.name %>
I know the difference between <% and <%=. What's the "h" do?
A: html escape. It's a method that converts things like < and > into numerical character references so that r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296747",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "64"
} |
Q: Changing a Property into a Method - any side effects? I have a class that has some properties. And I want something that calculates a Score out of these properties. Since this is a trivial task (some additions and divisions, but nothing spectacular).
So naturally, the question is: "When to use a Property with some c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296750",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: WCF + NHibernate + ISession =? I'm a beginner concerning both WCF and NHibernate.
However, I have to do a little project involving several services (made with WCF) and a persistent layer (made with NHibernate).
My problem concerns the usage of ISession and ISessionFactory.
I have read (and seen) that the instantiati... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296753",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Child Scope & CS0136 The following code fails to compile stating "A local variable named 'st' cannot be declared in this scope because it would give a different meaning to 'st', which is already used in a 'child' scope to denote something else":
var l = new List<string>();
l.Find(st => st.EndsWith(... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296755",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: ThreadAbortException calling OdbcDataReader.ExecuteReader() I'm running an SQL query against a mainframe DB2 database using the OdbcDataReader class and ExecuteReader() method. This code is in production and has been running fine for months.
The query normally takes 1-2 minutes to execute. This past Friday, the que... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296781",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Resharper: vars Why does Resharper want you to change most variables to var type instead of the actual type in the code?
A: By default, it will "green squiggle" declarations of this type :
Person p = new Person();
^^^^^^
Because of the repetition.
It will also suggest (small green underscore) var when it can be in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296783",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: SQL Server Mgt Studio Query Editor window tabs aren't descriptive In SQL Server Mgt Studio 2005, when I open the Object Explorer to script an object to a new Query Editor window, the tab for that new script window is titled something like 'MyServerName.MyDatabaseName - sqlquery37.sql'
Not very descriptive. So when ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296789",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Haskell IO and closing files When I open a file for reading in Haskell, I've found that I can't use the contents of the file after closing it. For example, this program will print the contents of a file:
main = do inFile <- openFile "foo" ReadMode
contents <- hGetContents inFile
putStr contents
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/296792",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "41"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.