text stringlengths 8 267k | meta dict |
|---|---|
Q: What is String.CopyTo? Can any one explain why the output of this code is only 'hello' and what this code means?
( 0, characterArray, 0, characterArray.Length );
The output is showing:
The character array is: hello
The code follows:
string string1 = "hello there";
char[] characterArray = new char[ 5 ];
string1.Cop... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353569",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Beginner: Trying to understand how apps interact in Django I just got done working through the Django tutorials for the second time, and am understanding things much more clearly now. However, I'm still unclear how apps inside a site interact with one another.
For example, lets say I'm writing a blog application (a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353571",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "29"
} |
Q: Windows Centralized Configuration for third party applications? We are looking at a standard way of configuring the various "endpoints" of our application. Our application is a distributed system with Windows Desktop applications, Windows Server "services" and databases.
We currently configure each piece using XML f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353582",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do you publish a ClickOnce Build to a CD with MSBuild Does anyone know how to create a ClickOnce publication for a CD with the publish task in MSBuild?
VS2008 has a 'publish wizard' with a publish to CD radio button choice. It publishes a click once install to a local folder that is suitable for burning to a CD... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353592",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Can I Access an ADO .Net Data Service from Silverlight across domain with a proper crossdomain.xml file w/out relying on ADO .Net Silverlight Client? If I create an ADO .Net Data Service, can I access it from Silverlight across domains as long as I don't use the ADO .Net Silverlight Client helpers and I have a prope... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353595",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Error: Can only generate one of classes or datasets I've copied a Dataset from one csproj to another, and the new project gets the following compile warning:
"The custom tool 'MSDataSetGenerator' failed while processing the file 'Client.xsd'."
In researching this warning I discovered that if I opened a VS cmd prompt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353596",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Capturing nslookup shell output with C# I have a command-line process I would like to automate and capture in C#.
At the command line, I type:
nslookup
This launches a shell which gives me a > prompt. At the prompt, I then type:
ls -a mydomain.local
This returns a list of local CNAMEs from my primary DNS server an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353601",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Oxite: What are you going to do with it? Microsoft released the source for Oxite, their blogging engine that's intended to help .NET developers learn ASP.NET MVC. They also released the source for the Mix site, which was built with Oxite.
Microsoft says that developers can build applications with Oxite, since it has... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353605",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: help setting Sql server 2005 security I am new to SQL Server, and I have been tasked with setting permissions on a remote server. What I need to do is limit the domain admin from having access to any of the DB's on a particular server. How can I accomplish this?
A: Remove BUILTIN/Administrators from the SA group.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353609",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I make LINQ to XML and HTML work together? I have an html table
<table border="0" width="100%">
<tr class="headerbg">
<th width="5%">
No
</th>
<th width="30%">
Name
</th>
<th width="20%">
Dep... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353610",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Are there any practical applications for the format %n in printf/scanf family? int x;
printf("hello %n World\n", &x);
printf("%d\n", x);
A: It can be used to perform evil deeds.
A: Depends what you mean by practical. There are always other ways to accomplish it (print into a string buffer with s[n]printf and calc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353614",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: How does visual studio determine what to copy to the output directory with multi-project solutions? Let's say we have a solution with the following structure:
*
*Project.DAL - Data access layer,
depends on a lower-level library,
e.g. Oracle.DataAccess w/copy local
= true
*Project.BLL - Business logic layer, ref... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353617",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "31"
} |
Q: Increasing ASP.net WebForm Performance When designing a ASP.net WebForm application what are some important steps to take (or hacks if you like to use the term) to ensure the best possible performance (in terms of speed, stability, and scalability)?
A: You've got a ton of material, directly from Microsoft here.
Als... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353621",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: AI Bot programming environment I am just finishing up an Artificial Intelligence course where, as part of the assignments, I was able to program bot in a multi-player environment (BZFlags).
What I was able to do was to program the bot to interface with the world and play capture the flag against other bots or even h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353626",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Why use = to initialise a primitive type in C++? Where I work, people mostly think that objects are best initialised using C++-style construction (with parentheses), whereas primitive types should be initialised with the = operator:
std::string strFoo( "Foo" );
int nBar = 5;
Nobody seems to be able to explain why t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353632",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Are there any downsides to using UPX to compress a Windows executable? I've used UPX before to reduce the size of my Windows executables, but I must admit that I am naive to any negative side effects this could have. What's the downside to all of this packing/unpacking?
Are there scenarios in which anyone would reco... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353634",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "42"
} |
Q: How to create a folder which listens for changed files or new files I have a requirement where I create many swc files (swc files are similar to zip or jar files). I want that, whenever I create a new swc file and add it in a "particular folder" then these files should automatically get extracted (similar to what ha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353643",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Design patterns for Apple's Cocoa frameworks: MVC, MVP, Passive View... where is Apple heading? To lay the groundwork for this question, I'm going to state that I'm getting my definitions for MVC, MVP, and Passive View from the following:
Model View Controller (MVC)
Model View Presenter (MVP)
Passive View (PV)
Apple... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353646",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Open-source IDE's with Git support I'm having trouble finding an open-source IDE with support for Git. Are there any that you could point me to or recommend?
A: There's an Eclipse plugin in progress.
A: There's nbgit for NetBeans in development, but it's not yet stable.
A: If you only want a GUI for git, try QGit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353670",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Making update to AS400 from SQL 2000 I'm trying to update something in AS400 from sql server 2000 through openquery like following.
UPDATE
OPENQUERY(odbcname, 'SELECT * FROM "libname"."filename" WITH NC')
SET NBFLAG01=1
WHERE NBFLAG01 <> 1
Here's the error I'm getting.
"OLE DB provider 'MSDASQL' reported an error.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353673",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Hierarchical data binding with nested ListViews in WPF I have some data that has a detail table. I want the data to be presented in a ListView. I want the detail data to appear as a nested ListView when you select an item in the original list. I can't seem to figure out how to get the data binding to work.
Here's wh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353678",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Determine the centroid of multiple points I'm writing a mapping application that I am writing in python and I need to get the lat/lon centroid of N points.
Say I have two locations
a.lat = 101
a.lon = 230
b.lat = 146
b.lon = 200
Getting the center of two points is fairly easy using a euclidean formula. I would lik... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353684",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How to cast QVariant to custom class? I have a QVariant object within a QTreeWidgetItem, how can I cast it to my own object?
A: you need to declare somewhere in an .h file the following:
Q_DECLARE_METATYPE(MyStruct)
and then you can just use:
MyStruct s;
QVariant var;
var.setValue(s); // copy s into the variant
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353694",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Changing Mac OS X User Password Programmatically or via Script I need to be able to change a user's password from a cron task or from an ssh session. Is there an easy way to do that with a bash script? If not, what's the easiest way to do it in Cocoa?
A: Apple introduced CSIdentitySetPassword API in Mac OS 10.5 t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353698",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Building jQuery UI Plugins Beyond the official documentation, are there any recommended resources for learning to build jQuery plugins. I'm particularly interested in building plugins for the UI libary.
I've been looking at the source for some of the official ones, but I've found they all look quite different from ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353706",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: closing my jframe without using the close(X) button and terminating the JVM i have a frame that instantiates another frame but i don't want to use the close(x) button on the instantiated frame., so i created a button. how do i code that this button can be used to close the instantiated frame without quitting the JVM... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353715",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Deployment Project dlls cause 'type x exists in both' errors I have a WebApplication project, a business logic project, and a WebDeployment project for the web app.
When I build solution, the deployment "Release" bin contains 1 dll for each of the projects - so I get one for MyWeb.dll, MyWebBusiness.dll, and MyWeb... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353721",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: MVC + IIS7 = CSS Issue I have a web site running via IIS7 on Vista. The site is running on port 88, so http://localhost:88 should render the default /Home/Index view.
This works correctly, as do all other views.
However, one problem is resident. My script paths point to /Scripts/[FILE] and my CSS paths point to /C... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353726",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: What is the difference between Microsoft Passport and OpenID?
*
*OpenId is open source and can be
implemented by anyone.
*In both cases my credentials are
held on a third party server.
*The only advantage I can think of
for using Microsoft Passport is the
reliability of Microsoft.
A: OpenID is a decentralized... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353727",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: .NET Web Service Best Practice for multiple developers We have a large ASP.NET project consisting of several hundred reports. We are in the process of moving all the SQL Queries (running against an Oracle Database) into three web services. The web services are categorized by command, selections and report queries.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353730",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do you handle busy icons in an AJAX site? This question deals with concurrency issues, for suggestions on how to display a busy icon see this question: Javascript - loading/busy indicator or transparent div over page on event click
When a user initiates an AJAX request on a page it's useful to show some kind of ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353746",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Bubbling up newer records Is it possible to bubble up newer records in lucene search results?
ie.I want Lucene to give a higher score to records which are closer to today's date.
Thanks!
A: I have only used Lucene through Solr, but it has great support arbitrary document boosted according to a user-supplied functio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353755",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Does this sound like a good idea? ( svn / version control / webdev / deployment ) I've recently gotten charged with designing and implementing a source code version control, testing, and deployment scheme at the company I work.
Personally I've worked with Subversion for a few years on my own projects. But I've never... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353757",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: jQuery - making hide all/show this div image more generic i have the following jquery code.
basically i will have several overlapped divs and a list of links on the right of all those overlapped divs. when hovering over a link, the link's assigned div will fade in.
I have the following code and it works (it uses th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353772",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I determine when control key is held down during button click How can I determine when the control key is held down during button click in a C# Windows program? I want one action to take place for Ctrl/Click and a different one for Click.
A: Assuming WinForms, use Control.ModifierKeys, eg:
private void butt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353773",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: How do you access browser information from an AIR application? I am trying to build an Adobe AIR application that will run on Linux/Mac OS/Windows, which monitors user's browsing history.
How can my AIR application find out which browsers are installed? In other words, the list of browsers' history to monitor.
Als... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353777",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Beginner: Javascript must be on header to run? Does the declaration order of the functions matter? I have this function in my head:
<head>
window.onload = function(){
var x = new Array(0,2,3,4,5,6,7,8);
var y = new Array(20,10,40,30,60,50,70,10);
drawGraph(y,x);
}
</head>
Ca... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353786",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I get the location of the JDK directory in Java? Is there an similar property like System.getProperty("java.home") that will return the JDK directory instead of the JRE directory? I've looked https://docs.oracle.com/javase/1.5.0/docs/api/java/lang/System.html#getProperties() and there doesn't seem to be anyt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353788",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Query in MSSQL that returns .mdf and .ldf filename/location for specific database? Can I use a query in MSSQL to get the .mdf and .ldf filename/location for a specific database?
A: You can use:
exec sp_helpfile
Will return a query containing information about the files of the current database.
This will work on an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353793",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Repository Pattern and layering. Where do I apply security? I am doing my best to design my web app with good separation between the layers. I am using the repository pattern and as such have a SQLObjectRepository which is called by my ObjectService which is called by my Web front end.
In my object model, the user ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353799",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Is storing an array of objects in ASP.NET viewstate the best solution for this? I'm wondering if storing the data in viewstate is a good idea for this given problem.
He's a simplified example of what I am trying to achieve, firstly we have a Repeater control:
<asp:Repeater id="Repeater1" runat="server">
<ItemTemplat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353800",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Redirect to specified URL on PHP script completion? How can I get a PHP function go to a specific website when it is done running?
For example:
<?php
//SOMETHING DONE
GOTO(http://example.com/thankyou.php);
?>
I would really like the following...
<?php
//SOMETHING DONE
GOTO($url);
?>
I want to do something ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353803",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "41"
} |
Q: Conflicting CASCADE and RESTRICT foreign key requirements? I'm working on a database that tracks files and dependencies in projects. Briefly, I have two main tables; the PROJECTS table lists project names and other properties, the FILES table lists files. Every file entry points to a project as a foreign key set to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353804",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Implementing a WebView database quota delegate How do I implement this method (see below)? I'm new to Objective-C and I'm just not getting it right.
From: http://lists.apple.com/archives/Webkitsdk-dev/2008/Apr/msg00027.html
By default databases have a quota of 0; this quota must be increased before any database wil... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353808",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: automatic htaccess login - multiple protected dirs accessed from one login I am trying to make a php login page that allows users to access multiple .htaccess protected pages (on apache server). So a user would enter a password in a form on page 1 and depending on which login they provided, they would be sent to on... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353815",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Should every class have a virtual destructor? Java and C# support the notion of classes that can't be used as base classes with the final and sealed keywords. In C++ however there is no good way to prevent a class from being derived from which leaves the class's author with a dilemma, should every class have a virt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353817",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "57"
} |
Q: Binding from a custom property I'm new to the forum and very new to silverlight. Myself and my coworker are working on a custom application. We are building a menu system that will only display buttons if that useris in an assigned role. A new property was created to allow roles to be defined, and for testing pur... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353841",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: StringBuilder extension method for appending a collection in C# In C#, I'm trying to build an extension method for StringBuilder called AppendCollection() that would let me do this:
var sb1 = new StringBuilder();
var sb2 = new StringBuilder();
var people = new List<Person>() { ...init people here... };
var orders = ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353842",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Find through multiple attributes in XML I'm trying to search multiple attributes in XML :
<APIS>
<API Key="00001">
<field Username="username1" UserPassword="password1" FileName="Filename1.xml"/>
<field Username="username2" UserPassword="password2" FileName="Filename2.xml"/>
<field Username="username3" ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353843",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Where does the file Microsoft.CompactFramework.VisualBasic.targets come from? I have a Pocket PC 2003 solution, consisting of three projects, that was created in Visual Studio 2005. I open the solution in Visual Studio 2008 and two of the projects fail to convert due to errors like the following:
Unable to read the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353879",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: How does OpenID authentication work? I am a little curious to know about how OpenID authentication works.
Is there any difference between OpenID authentication and the authentication which sites use exclusively for themselves?
A: What is OpenID?
OpenID is an open, decentralized, free framework for user-centric dig... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353880",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "99"
} |
Q: Validate RadioButtonGroup Client Side <asp:RadioButton GroupName="EndorsementType" runat="server" ID="rdoAddProperty" Text="Add Property to TIV" />
<asp:RadioButton GroupName="EndorsementType" runat="server" ID="rdoRemoveProperty" Text="Remove Property from TIV" />
<asp:RadioButton GroupName="EndorsementType" runat=... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353882",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: csproj.user file in C# sln my machine did an automatic reboot, due to patch applied by my network in my company, and last error i saw reported something with the csproj.user file. Now each time i try to launch my solution, it opens and then brings the dialog to send the report to MS. If i look at the error log in ev... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353898",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: .NET Generic Set? Is there a generic container implementing the 'set' behaviour in .NET?
I know I could just use a Dictionary<T, Object> (and possibly add nulls as values), because its keys act as a set, but I was curious if there's something ready-made.
A: I use the Iesi.Collections. namespace that comes with NHib... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353901",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Functional programming: state vs. reassignment I need help getting my head around the difference between my current OOP notion of state, and the way it would be done in a functional language like Haskell or Clojure.
To use a hackneyed example, let's say we're dealing with simplified bank account objects/structs/what... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353912",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: What is this " var1 = Math.Ceiling(hours / (40.00M * 4.3M));" Anyone know what the C# "M" syntax means?
var1 = Math.Ceiling(hours / (40.00M * 4.3M));
A: it means that the number is a decimal type.
A: M is the suffix for Decimal. Stands for "money" I assume.
http://msdn.microsoft.com/en-us/library/364x0z75(VS.71).... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353926",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: JasperReports: subreports not working with positionType='Float' Subreports overlap in this example -- what am I doing wrong? The second one is supposed to "float" below the first one, with its 'y' attribute being ignored, but it isn't.
Thanks !!
<?xml version="1.0" encoding="UTF-8"?>
<jasperReport xmlns="http://jasp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353928",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: ASP.Net number of servers estimation Let's assume our average page weights P KBytes and we've got N visits per unit time (let's say, per hour). How could we estimate the number of servers needed to support this load with a reasonable response time?
A: There are so many factors to server performance (CPU, RAM, I/O, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353932",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ADO.NET Entity Data Model Allows Circular Foreign Key Refs I am using the new ADO.NET Entity Data Model on a simple database. I have a table/entity with a primary key (PageID) and a ParentID foreign key that references back to itself on PageID for a parent/child "0..1 to many" relationship. On a ASP.Net page, I'm... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353945",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Summary query from several fields in SQL Data table structure is:
id1,id2,id3,id4,... (some other fields).
I want to create summary query to find out how many times some ID value is used in every column.
Data
1,2,3,4,2008
2,3,5,1,2008
1,3,2,5,2007
1,2,3,6,2007
3,1,2,5,2007
For value 1, the result should be
1,0,0,1,2... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353948",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Setting the ASP.NET version via MSBUILD I am trying to create a new website on a remote server via msbuild (I like to call it "msdeploy"). I've downloaded and used the SDC tasks, the MSBuildExtension tasks and the MSBuildCommunity tasks but I simply can't get it right.
I figure that WebDirectorySetting (from MSBuil... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353953",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is there a way to do a 'scoped' add() in jQuery? The main jQuery method takes a second optional argument to provide context for the search.
eg
$(".setA", ancestorOfSetsA);
However, the jQuery add() method does not accept this context argument. What I am trying to accomplish is:
$(".setA", ancestorOfSetsA).add(".se... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353959",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: a newbie question on Linq To Sql When I do this manually
public class AdventureWorks : DataContext
{
public AdventureWorks(string connection) : base(connection) { }
public Table<Contact> Contacts;
}
[Table(Name = "Person.Contact")]
public class Contact
{
[Column(DbType = "int not null", IsPrimaryKey = ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353963",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Understanding .NET's "SecurityAction" parameter for permissions Can anyone explain the meaning of and purposes of the values for the SecurityAction enum?
The MSDN page is not terribly clear. It says LinkDemand occurs at just-in-time compilation whereas Demand occurs at runtime.
Why the distinction and in what situat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353968",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: what is the advantages if a standard supports SOAP Envelopes because i read that one of the advantages of WS-Discovery that it
"Support both SOAP 1.1 and SOAP 1.2 Envelopes"
so what?
A: I Think I finally found the answer to my question
if a standard supports SOAP Envelopes this makes it benefits from all SOAP advan... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353982",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Pattern matching characters for svn:ignore Making echo of a question around the web:
Is the syntax for svn:ignore patterns
documented somewhere? The only pattern
matching character I could find in the
SVN book under 'svn:ignore' is '*'.
Subversion Book: 'svn:ignore'
In particular I want to match a 32 charact... | {
"language": "en",
"url": "https://stackoverflow.com/questions/353992",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Mysql select where not in table I have 2 tables (A and B) with the same primary keys. I want to select all row that are in A and not in B. The following works:
select * from A where not exists (select * from B where A.pk=B.pk);
however it seems quite bad (~2 sec on only 100k rows in A and 3-10k less in B)
Is there ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354002",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "59"
} |
Q: Calling executable using Process crashes intermittently I am calling an executable in C#. When the executable runs, it writes out to the console so the C# code is getting the console output and writing it to a text file. When the crash happens a couple of things occur.
1) The output of the text file is not completel... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354004",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Really stupid ATM...why can't I reference Master.FindControl? oPanel = CType(Master.FindControl("panelSearch"), Panel)
This code resides on my masterpage's back-end (theMaster.master.vb), but I get a "Cannot refer to an instance member from within a shared class or shared member initializer without an explicit insta... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354005",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: SQL character field concatenation (without using CONCAT() or +) I'm trying to concatenate 3 [char(32)] fields:title1title2title3
into one field, but the catch is that I'm using an older version of SQL and it DOES NOT support the CONCAT() subroutine or the + operatorfor example:CONCAT(title1, title2, title3)(title1 +... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354006",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Need to speed up this query in SQL Server SELECT pe.prodtree_element_id prodID, pe.prodtree_element_name_s, li.line_name, av2.value
FROM prodtree_element pe
LEFT JOIN prodtree_link pl
ON pe.prodtree_element_id = pl.to_prodtree_node_id
LEFT JOIN line li
ON pe.line_code = li.line_code
I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354008",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I do a join in SQL based on table name? Ok, so we have a bunch of tables that are named like this:
training_data_001
training_data_002
training_data_003
training_data_004
training_data_005
And then to find those we look at a field in another table, let's just call it master.training_type.
Anyway, I was wonde... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354010",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Drawing in javascript with divs In my quest to learn javascript (which seems to be my latest source of questions for SO these days) i've found this API for drawing http://www.c-point.com/javascript_vector_draw.htm
Meanwhile I've been making some experiments with graphics, which tend to be heavy on the amount of stuf... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354014",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to model this in OO I have a UI-dialog something like this: You must choose a book from a list. Optionally, you can either choose a publisher (another class) from a list or enter the publisher-name as as a string.
I think this gives me 3 types as the output from the dialog.
*
*book
*book with publisher-clas... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354019",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Large MySQL tables For a web application I'm developing, I need to store a large number of records. Each record will consist of a primary key and a single (short-ish) string value. I expect to have about 100GB storage available and would like to be able to use it all.
The records will be inserted, deleted and read f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354020",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I grant limited access to sysprocesses in SQL Server 2005? I'm implementing some rudimentary SQL Server monitoring to watch for excessive blocking.
I have a stored procedure that looks like this:
CREATE PROCEDURE [dbo].[bsp_GetBlockedProcessCount]
AS
BEGIN
SET NOCOUNT ON;
DECLARE @count INT
SELE... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354021",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Sql Server Deadlock Object IDs are too large I am trying to trace a deadlock that is occurring in our SQL 2005 database (64-bit). We do not currently have snapshot isolation enabled.
I turned on tf-1204 and received the output below.
From this output I am able to determine that Node 1 is a stored procedure that s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354035",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: How do I find out which computer is the domain controller in Windows programmatically? I am looking for a way to determine what the Name/IP Address of the domain controller is for a given domain that a client computer is connected to.
At our company we have a lot of small little networks that we use for testing and ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354037",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "104"
} |
Q: How do I check if a string represents a number (float or int)? How do I check if a string represents a numeric value in Python?
def is_number(s):
try:
float(s)
return True
except ValueError:
return False
The above works, but it seems clunky.
If what you are testing comes from user i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354038",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1905"
} |
Q: What is "The Best" U.S. Currency RegEx? A quick search for currency regex brings up a lot of results.
The problem I have in choosing one is that regex is difficult to verify without testing all the edge cases. Does anyone have a regex for U.S. currency that has been thoroughly tested?
My only requirement is that the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354044",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "69"
} |
Q: Lightweight Java Decimal Class I am considering writing two limited precision alternatives to BigDecimal, namely DecimalInt and DecimalLong. These would be capable of dealing with numbers within the real bounds of int and long with an arbitrary number of decimal places, creatable in both mutable and immutable form.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354045",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: How do I pass pointers to a DLL using Win32:API? I am trying to passing in 3 pointers to a DLL function. I have:
{
$code=1;
$len=100;
$str=" " x $len;
$function = new Win32::API(DLLNAME,'dllfunction','PPP','V');
$function->Call($code,$str,$len);
}
The DLL is defined as void dllfunction(int* a, char* str, int* ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354050",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: jquery $.post not working in Firefox I am begging to use jquery. I have the following call that works in IE7 but not FF 3.0.4. But if I change the null to {} it works fine. Is null not valid for this case and I just got lucky that it worked in IE or is this an error with jquery.
$.post("complexitybar.ashx?a=init&... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354057",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Required Flash Player for Flash Catalyst I know that Flash Catalyst is still in Beta, but I'm trying to look ahead. A lot of our users are on intranets whose IT staff require a lot of lead time to upgrade the Flash Player on user's computers. Right now most users are on Flash Player 9.
So my question is, will SWF f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354061",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I set a default role for a new user using Windows Authentication with the SqlRoleProvider? I have an application that is using Windows Authentication and a SqlRoleProvider for user authentication and role management respectively. It is working fine with my test users that I have added to the database as defa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354068",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: SQL JOIN - WHERE clause vs. ON clause After reading it, this is not a duplicate of Explicit vs Implicit SQL Joins.
The answer may be related (or even the same) but the question is different.
What is the difference and what should go in each?
If I understand the theory correctly, the query optimizer should be able t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354070",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "906"
} |
Q: Available Maven Profiles Is there an easy way to figure out, preferably from the command line, what profiles are available for a particular project. I've got a big, multi-module project I'm trying to figure out.
A: leeand00 set me on the correct path. What I was looking for is help:all-profiles
A: http://maven.apa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354081",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What other sites do you go to for your coding questions? This site is pretty good but I'm wondering what other resources are out there. I guess it's probably pretty language dependent but in general I have not found any other sites with a good wealth of general programming knowledge where I can just post a question... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354082",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-4"
} |
Q: Silverlight - dynamic binding of a listbox.ItemTemplate I have this:
<ListBox x:Name="PART_lstAttributes" Grid.Row="1" Style="{StaticResource GlossyBlackListBox}">
<ListBox.ItemTemplate>
<DataTemplate>
<StackPanel>
<TextBlock x:Name="txtAttributeName" Text="{Binding AttributeName}"></TextBlock... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354087",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to configure vim to not put comments at the beginning of lines while editing python files When I add a # in insert mode on an empty line in Vim while editing python files, vim moves the # to the beginning of the line, but I would like the # to be inserted at the tab level where I entered it.
For example, when wr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354097",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "53"
} |
Q: What is the difference between indexOf() and search()? Being fairly new to JavaScript, I'm unable to discern when to use each of these.
Can anyone help clarify this for me?
A: I think the main difference is that search accept regular expressions.
Check this reference:
*
*search
*indexOf
A: indexOf is for plain... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354110",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "207"
} |
Q: How to make a resource (screen) accessible to only one user at a time in a distributed .Net application? I have a client server based windows forms application that needs an administrator only screen. The administrator functionality needs to be implemented in such a way that at any given time only one administrator ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354113",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Default value for generics How do I create the default for a generic in VB? in C# I can call:
T variable = default(T);
*
*How do I do this in VB?
*If this just returns null (C#) or nothing (vb) then what happens to value types?
*Is there a way to specify for a custom type what the default value is? For instanc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354136",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: Detecting divs as rendered in the window to implement Google-Reader-like auto-mark-as-read? When using Google Reader and browsing RSS entries in the "Expanded" view, entries will automatically be marked as 'read' once a certain percentage of the div is visible on the screen (difficult to tell what percentage has to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354139",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: How do I translate XML from one schema to another? I want to translate xml documents with a certain schema into another schema. I know both the old and new schemas...
I am planning to use python's xml.dom library , and translate line by line.
Any ideas on how to go about it ? Any tools or libraries in other langua... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354141",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Solution Structure and Restful ASP.NET MVC In making a restful ASP.NET MVC app I'm wondering about the best way to structure the projects in my solution. By convention, the controllers reside in the same project as the views. However, if I have a few different presentation tiers accessing my restful controllers, wou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354147",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to get file time by name in windows? Windows has GetFileTime API which allows getting file time information by open file handle. What I wanted to know is, if it is possible to get this information by file name without opening the file explicitly. And if possible is it also applicable to Windows Mobile platform?
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354151",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: 3rd party active directory component with built-in functionality I still havent' figured out active directory, so I was hoping you guys could recommend some 3rd party components that would have all the built in methods done for me :)
I usually build my own users table with permissions/role tables, but want to add ac... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354154",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: HTTP or SQL Server-based solutions for sql injection I'm working with SQL Server 2005 and Windows Server 2000 and wonder if there are any 'automated' ways of blocking SQL Injection attacks while I shore up my code.
Some have suggested that there are ways to:
*
*Put in some kind of ISAPI or HTTP module that filter... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354161",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Prevent stemming of proper nouns in PostgreSQL? In its enthusiasm to stemm tokens into lexemes, PostgreSQL Full Text Search engine also reduce proper nouns. For instance:
essais=> select to_tsquery('english', 'bortzmeyer');
to_tsquery
------------
'bortzmey'
essais=> select to_tsquery('english', 'balling');
to_tsq... | {
"language": "en",
"url": "https://stackoverflow.com/questions/354167",
"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.