text stringlengths 8 267k | meta dict |
|---|---|
Q: How to automatically set Version Info in Delphi? I would like to have my CodeGear Delphi 2007 project to automatically set the debug module attributes depending on whether my project is in debug or release mode.
I can manually set this value by right clicking on the project->Version Info->Edit values as needed. Thes... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290792",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How can I find out which library is home to a given object? I'm programming in FORTRAN and C on an SGI running Irix 6.5, but this should be applicable to all Unix-like systems. How do I find which library I need to link to my program when I get an "unresolved text symbol" link error? Here's an example of what I'm ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290799",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Do you try to make your code look pretty? I might be one anal programmer, but I like code that looks good from a distance. I just found myself lining up a CSS style so that instead of this:
#divPreview {
text-align: center;
vertical-align: middle;
border: #779 1px solid;
overflow: auto;
width: 21... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290806",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "30"
} |
Q: Are delegates and callbacks the same or similar? Are delegates the same thing as callbacks? Or are they related somehow?
A: They are hand in hand related.
A delegate is the description on how the callback function looks like:
delegate void MyDelegate(string Text);
Then you can have a function that can take in th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290819",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "60"
} |
Q: Array slicing / group_concat limiting in MySQL Let's say I have a table:
i j
---
a 1
a 2
a 3
a 4
b 5
b 6
b 7
b 8
b 9
Obvoiusly SELECT a, GROUP_CONCAT(b SEPARATOR ',') GROUP BY a would give me
a 1,2,3,4
b 5,6,7,8,9
But what if I want to get only a LIMITED number of results, like 2, for example:
a 1,2
b 5,6
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290840",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to detect the language of a document - in PHP? The basics have already been answered here. But is there a pre-built PHP lib doing the same as Lingua::Identify from CPAN?
A: There's a PEAR package Text_LanguageDetect that I've used before. Get's the job done well enough. I'm not sure of any other libs that are m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290851",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Sample web Page using Mono and XSP on windows box I'm attempting to get my first ASP.NET web page working on windows using Mono and the XSP web server.
I'm following this chaps example. The first part of his example works very well with the latest version of mono. however the web part seems to fall over with the fol... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290860",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to XML Serialize a 'Type' How do I serialize a 'Type'?
I want to serialize to XML an object that has a property that is a type of an object. The idea is that when it is deserialized I can create an object of that type.
public class NewObject
{
}
[XmlRoot]
public class XmlData
{
private Type t;
public ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290867",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: How do you comment your RTML code? <rant-mode>
Have you ever seen a programming language that does not allow to add comments to the code? Welcome to the world of RTML (may it burn in hell)!
</rant-mode>
Question
What is the best technique (if any) you've adopted to comment your RTML code?
Thank you!
A: To create ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290875",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Inconsistencies with viewstate/function/server vs development server The code goes something like this:
protected bool IsOKToSend()
{
bool IsOK = true;
lblErrorSending.Visible = false;
if (txtUserName.Text == "" )
{
lblErrorSending.Text = "Please enter your username before sending.";
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290880",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is the reason behind "non-static method cannot be referenced from a static context"? The very common beginner mistake is when you try to use a class property "statically" without making an instance of that class. It leaves you with the mentioned error message:
You can either make the non static method static o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290884",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "359"
} |
Q: SQL Server 2000 "NO JOIN PREDICATE" warning - Why? I've got a strange problem with SQL Server 2000, and I just can't think of a reason for this to happen.
There are two tables, both having a combined primary key with a clustered index on it, both keys have the same structure:
(VARCHAR(11), INT, DATETIME) /* can't ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290885",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Video sharing site with embeddable upload control I'm in the process of building a site with embedded videos. I'd prefer not dealing with the videos myself and instead use something like Vimeo Plus. I also would like the future administrators of the site to be able to upload videos directly from the administration i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290888",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Django Forms - How to Not Validate? Say I have this simple form:
class ContactForm(forms.Form):
first_name = forms.CharField(required=True)
last_name = forms.CharField(required=True)
And I have a default value for one field but not the other. So I set it up like this:
default_data = {'first_name','greg'}
f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290896",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Overriding functionality with modules in Linux kernel Without getting into the details of why, I'm looking for a clean (as possible) way to replace kernel functions and system calls from a loadable module. My initial idea was to write some code to override some functions, which would take the original function (per... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290898",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: How do I call a Windows shell command using VB6? How exactly using VB6 can I can call any Windows shell command as you would from the command-line?
For example, something as trivial as:
echo foo
A: I've always used the Run method of the wshShell object, which is available after you reference the Windows Script Hos... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290899",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: WMI event when machine comes online Is there a WMI event you can subscribe to that will fire when a remote machine boots up and comes online, or goes offline?
My application needs to be able to monitor machines for their availability, and ideally, I'd like something that can work via events instead of continuous pol... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290908",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: C++: Derived + Base class implement a single interface? In C++, is it possible to have a base plus derived class implement a single interface?
For example:
class Interface
{
public:
virtual void BaseFunction() = 0;
virtual void DerivedFunction() = 0;
};
class Base
{
public:
virtual v... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290913",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: How to apply SQL scripts on a remote SQL Server? I'm trying to completely automate my builds and part of it is applying SQL scripts to the SQL Server.
I've created a batch file that calls SQL Server utility (OSQL.EXE) to apply scripts and it works if I call it directly on the SQL server.
But I cannot use it on my bu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290922",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I disable CVS Sticky Option -kk for keyword substitution? I have a file in cvs that has Sticky Options set to -kk. This replaces all cvs keywords with just the keyword name to facilitate diffs. For example, $Author: Alex B$ becomes $Author$.
How do I disable the -kk behavior and get back to "normal" cv... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290923",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How much computation is behind a HttpContext.Current call? Is it expensive?
I am developing an HtmlHelper that renders directly to Response.Output in order to save unnecesary string creation and I need to choose between:
<% Validator.RenderClient(Response.Output); %>
and
<% Validator.RenderClient(); %>
and get th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290927",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Using ActiveMQ 5, is it possible to configure the broker with in memory and network connections? We have a set of applications that I want to use JMS for messaging between. Right now, our applications all make TCP connections to the ActiveMQ broker. Is it possible to make the 15 or so applications that are on the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290928",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Determine whether browser allows focus on radios/checkboxes Does anyone know if it's possible to determine, using JavaScript, whether the user's browser allows checkboxes and radio buttons to be focused? In other words, whether you can tab to select them.
I can't just use browser detection to do this, because in at ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290940",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: CakePHP and Flex - How to keep $this->Auth->user() valid? Hey all.... I am having a little bit of difficulty to make the integration between flex and cakephp to work with authentication...
I have an MVC on Flex that comunicates with Users MVC on cakephp. It authenticates and sends me back the logged user, but when I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290948",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Best practices for web login / authentication? Writing the code for the user authentication portion of a web site (including account registration, logins, and password resets) is pretty simple, but what do you need to make a really good user authentication setup? For example, I'd consider not storing plaintext pass... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290951",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: How to know (in GCC) when given macro/preprocessor symbol gets declared? Suppose I have #define foo in various header files. It may expand to some different things. I would like to know (when compiling a .cc file) when a #define is encountered, to what it will expand, it which file it is and where it got included fr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290952",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Webresource.axd problem between regular and secure domain paths In our setup there are two different websites in IIS 7 setup that point to the same physical path. One with the binding http://websitename.domain.com/ (virtual root ~ is /)
and the second at https://webserver.domain.com/userid/websitename (so the virtu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290958",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is Memcached interchangeable with ASP.NET State Server? I use ASP.NET and WCF services in a load balanced web server environment, using Memcached in the service layer.
I also wanted to replace the use of ASP.NET State Server (for Session State) with Memcached.
Now I am afraid it is not a good thing, because from wha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290966",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Migrating from one DBMS to another Does anyone have any experience migrating from one DBMS to another? If you have done this, why did you do it? Features? Cost? Corporate Directive?
At times, I've worked with DBAs who insisted that we not use features specific to a DBMS (for example, CLR Stored Procedures in SQL Se... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290970",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Silverlight Control Template Color Property I am creating a Control Template for the Button control in Silverlight 2. I started with an empty template and added the visual elements I wanted. The main visual element is just a path (shape) filled with a color. The button control already has a Color property associa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290979",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Error: A strongly-named assembly is required I have a Windows forms project (VS 2005, .net 2.0). The solution has references to 9 projects. Everything works and compiles fine on one of my computers. When I move it to a second computer, 8 out of the 9 project compile with no problem. When I try to compile the 9th pro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290980",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "35"
} |
Q: Java Class Type I have a block of code that works and I wanted to ask what exactly is happening here?
Class<?> normalFormClass = null;
---added---
The wildcard "<?>" is the part that is confusing for me. Why would this be used rather than not using it (generics)?
A: Also, the generic version
Class<?> normalClass ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290982",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: When should a UI be updated? I'm working on an online tool for students in my faculty to calculate their final grade for their degrees, and for a while I've had little problems. Students seem to like using the new UI and I've suffered no criticism for a while. Now, I need to add some functionality to the program, me... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290993",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Http status code with libcurl? How do I get the HTTP status code (eg 200 or 500) after calling curl_easy_perform?
A: http://curl.haxx.se/libcurl/c/curl_easy_getinfo.html
CURLINFO_RESPONSE_CODE
Pass a pointer to a long to receive the last received HTTP or FTP code. This
option was known as CURLINFO_HTTP_CODE in ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290996",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "100"
} |
Q: How to force a Descendant class to either use directly the Ancestor method or have a new implementation not calling inherited? We have the TAncestor class which has a virtual method GetFile.
We will have some TDescendant = class(TAncestor) which may override GetFile.
We want to insure that in such a case those overr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/290997",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Tree library for PHP using left & right ids I'm looking for a library in PHP that can create a tree structure from a database (or array of values) with left and right ids. For the result when getting values I am only looking for an array so I can create any type of view. For adding and removing, it would be nice if ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/291000",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: differences between 2 JUnit Assert classes The JUnit framework contains 2 Assert classes (in different packages, obviously) and the methods on each appear to be very similar. Can anybody explain why this is?
The classes I'm referring to are: junit.framework.Assert and org.junit.Assert.
A: JUnit 3.X: junit.framework... | {
"language": "en",
"url": "https://stackoverflow.com/questions/291003",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "265"
} |
Q: Connect to Outlook through asp.net application? I need to connect to Outlook through ASP.NET web application using user credentials. What are my options?
FYI: User logs into the web site by using Windows Authentication. I'm working with Outlook 2003.
A: Sounds like you actually want to connect to Exchange. For ex... | {
"language": "en",
"url": "https://stackoverflow.com/questions/291012",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Render < instead of < in ASP.NET I'm writing a small page to show the employees in our company. I've written a query to pull the info from our database. Then I'm binding that to a GridView to do the dirty work. Here is the query.
"SELECT tblEmpID.empid AS [Empl ID], tblEmpID.posno AS [Pos #], [name] & ""<br />"" & ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/291015",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why are web applications more popular than local applications? I ask this because at work I am supposed to develop a web-application that is used in an intranet, by two people. It's an application that should keep some states in a workflow. So I have to keep data in a session and have to care about concurrency. It... | {
"language": "en",
"url": "https://stackoverflow.com/questions/291019",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Use AppleScript or other Mac OS method to get filename and path of open files Is there any way to use AppleScript (or something else) to query currently running applications for the filename and path of the current file that they have open? I know some applications show the filename in the window title which is scr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/291028",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: JSP : JSTL's tag Writing a JSP page, what exactly does the <c:out> do? I've noticed that the following both has the same result:
<p>The person's name is <c:out value="${person.name}" /></p>
<p>The person's name is ${person.name}</p>
A: c:out also has an attribute for assigning a default value if the value of pers... | {
"language": "en",
"url": "https://stackoverflow.com/questions/291031",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "120"
} |
Q: Are there people using the Scheme programming language out there? I have just started to study computer sciences at my university where they teach us programming in Scheme.
Since I have learned C++ for the last 6 years, Scheme appears a little odd to me. My instructors tell me you can write any program you can writ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/291033",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "52"
} |
Q: Set ASP:ContentPlaceHolder Content programmatically What is the easiest way to set the contents of an <asp:ContentPlaceHolder> programmatically? I imagine ill have to do a Master.FindControl call?
A: If your page inherits from a MasterPage, then you should have an asp:Content control on your page with some id, lik... | {
"language": "en",
"url": "https://stackoverflow.com/questions/291037",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: C#: trying a simple project I am new to C#. I wanted to do a simple program with some type of loops.
I wanted my program to loop through the numbers that the user enters and if it is less than a number then write keep guessing,but once they enter the number 25 i wanted it to say Merry Christmas.. Please Help
int n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/291057",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: ASP.NET authentication options I'm creating an asp.net app with just some lite data access from xml files. However, I need to be able to authenticate administrative users (via forms) to manage that data. I don't want to stand up a sql db just for authentication purposes. I'd like to use xml, but not sure about se... | {
"language": "en",
"url": "https://stackoverflow.com/questions/291059",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: invalid QName when transforming a .net XSLTransform I have a piece of XML that is structured similar to this:
<root>
<score name="Exam 1"><value>76</value></score>
<score name="Exam 2"><value>87</value</score>
</root>
and I would like to transform it to look like this:
<root>
<Exam 1>76</Exam 1>
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/291060",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Google Earth popup video (ActiveX) Is it possible to place an ActiveX control in a Google Earth placemark pop up?
I have a proprietary third party activex control that I can put in embed in HTML. Would this work for Google Earth?
A: You should try and place the html mark-up for your activex control into a simple Km... | {
"language": "en",
"url": "https://stackoverflow.com/questions/291061",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Saving extra data in a dll, how did they do it? let me tell you a bit about where this question came from. I have been playing around with the SDK of Serious Sam 2, a first person shooter which runs on the Serious Engine 2. This engine introduces something called MetaData. MetaData is used in the engine to serialize... | {
"language": "en",
"url": "https://stackoverflow.com/questions/291065",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Does .NET 3.5 installer include 3.0 SP2? We're trying to track down some .Net assembly dependency problems.
On Windows XP, does the .Net 3.5 installer include 3.0 SP2 automatically?
A: .NET 3.5 contains .NET 3.0 SP1
.NET 3.5 SP1 contains .NET 3.0 SP2
A: I'm not sure but I believe that Microsoft is building on top ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/291080",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Ideas for XSRF Security implementation in ASP.NET MVC using Double Submitted Cookies I've decided to attempt using the double submitted cookies technique to attempt to prevent XSRF attacks on the site I'm working on. So the way I have it written down here is, all actions that actually DO something other than GET in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/291102",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Are there any systems for logging or keeping track of which type of bugs you encounter as you develop? I'm not looking for bug tracking, per se. But more like a build tool: as a developer, it would be awesome if every time I compiled or tried to run code, I could redirect debugging output and record the bugs I most... | {
"language": "en",
"url": "https://stackoverflow.com/questions/291111",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Java Swing - Using JScrollPane and Having it scroll back to top I'm using JScrollPane to allow scrolling in a JFrame that has a text component that's serving as a text editor. What I want to do, after setting the text in this editor, is have it scroll back up to the top, so you can see what's at the beginning of t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/291115",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "86"
} |
Q: Multilingual Winforms in .Net - opinions and suggestions So I've got a program that needs to be multilingual. The only difference between what I'm needing and what I've found on the web is that all the computers my program will run on are set to the localization of EN.
We have spanish speaking employees that will us... | {
"language": "en",
"url": "https://stackoverflow.com/questions/291117",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: method_missing gotchas in Ruby Are there any things to be careful about when defining the method_missing method in Ruby? I'm wondering whether there are some not-so-obvious interactions from inheritance, exception throwing, performance, or anything else.
A: A somewhat obvious one: always redefine respond_to? if yo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/291132",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "51"
} |
Q: ArrayList to String - VS2008 - C# ArrayList filters = new ArrayList();
filters.Add(new string[] { "Name", "Equals", "John" });
ObjectDataSource1.SelectParameters.Add("AppliedFilters",
string.Join(",",(string[])filters.ToArray(typeof(string))));
Am trying to add a parameter to my object data sour... | {
"language": "en",
"url": "https://stackoverflow.com/questions/291135",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How to align variable size controls inside the WrapPanel in WPF I have a wrap panel that is dynamically populated with Label and TextBox control. The display will be something like this:
Label 1 [textbox] Label 4 [textbox]
Label 2 [textbox] Label 5 [textbox]
Label 3 [textbox]
and so on...
How can I setu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/291139",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is the Subversion 'stack' a realistic alternative to Team Foundation Server? I'm evaluating Microsoft Team Foundation Server for my customer, who currently uses Visual SourceSafe and nothing else. They have explicitly expressed a desire to implement a more rigid and process-driven environment as their application is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/291145",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: CompareValidator inside an UpdatePanel - VS2008 I'm using an UpdatePanel and want to put a CompareValidator on two text boxes, to verify that the user-entered password and confirmation are the same.
This is working fine (I have VS2008 and am using .NET 3.5) out of the box, with one minor problem:
The validation is f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/291152",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: data structure for bigger number of files I'm looking for effective way to sort albums with songs. I have around 10000 and growing albums with approx 10 songs in every album. So that means 100000 files.
Now I do not want to store all folders (albums) in one main folder, but I'm looking for a better way to store it.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/291155",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: How to use jQuery to grab the values of checkboxes and spit them into a different form field I have a form that contains a bunch of checkboxes. Before submitting the form, I'd like to grab the values of the checkboxes and stick them into a text field, then submit that.
So I might have:
Red
Orange
X Yellow
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/291162",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What characters must I escape in a Perl pre-compiled regex? I'm having a hard time determining what characters must be escaped when using Perl's qr{} construct
I'm attempting to create a multi-line precompiled regex for text that contains a myriad of normally escaped characters (#*.>:[]) and also contains another pr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/291163",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Should I store all the text in my database in uppercase or in lowercase? Which one do you prefer to store text in your database? The original casing of the data, or some kind of normalization. Also, should I enforce this with triggers? or should I preprocess input data with client code?
I ask you, because I'm not su... | {
"language": "en",
"url": "https://stackoverflow.com/questions/291166",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Event log code error not being able to find the Event Source? I am trying to use the Event Log to write some debug information and I can't make it works. It complains about not being able to find the Event Source. Do I have to install something on the OS?
A: Here a code that I modified from one of our application. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/291169",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: In SQL, can I use a variable scoped outside a nested select within the nested select itself? I'm trying to get the following SQL statement to work:
UPDATE myschema.tableA update_tableA
SET field_id =
( SELECT src.field_id
FROM myschema.srcTable src
INNER JOIN myschema.tableB tableB ON
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/291172",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Software maintenance fees paid annually, should it guarantee new major releases? if you pay like 25% of the license cost as a annual maintenance fee for software, that usually gives you free upgrades (even major releases).
this should mean that the software company has to release a major version right? otherwise why... | {
"language": "en",
"url": "https://stackoverflow.com/questions/291177",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: jQuery syntax error on POST in Opera I have a little javascript function which is attached to an onClick event of a button. It appears to work perfectly in Firefox(3.0.4), but both Opera(9.62) and IE fails to execute any other JS from the same .js file, including what normally works. The following function is the cu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/291183",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Relative positioning in Safari It has to be simple, here's my CSS:
.progressImage
{
position:relative;
top:50%;
}
.progressPanel
{
height:100%;
width:100%;
text-align:center;
display:none;
}
<asp:Panel ID="pnlProgress" runat="server" CssClass="progressPanel">
<asp:Image ID="Image1" runat="server" CssClass="p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/291189",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: What do I need to run ASP.NET web applications on my personal machine for testing purposes? I'm running Windows XP SP3 and I do have the latest .NET libraries installed, as well as Visual Studio 2008. I'm also running (and would like to continue to run) Apache HTTP Server as well, if that matters.
Perhaps someone ca... | {
"language": "en",
"url": "https://stackoverflow.com/questions/291191",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why does VS 2008 create PDBs for some RELEASE projects but not others? I have a solution containing several projects that have migrated from VS 2003, 2005, 2008. When compiling all the projects for the RELEASE configuration, VS 2008 creates PDB files for some projects, but not others. Why?
In the Build tab of the Pr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/291214",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Building Eclipse from source I have been trying to build eclipse fetched from CVS, but cannot find where to begin?
Usually it has been simple, make X, build X, but I am not finding it that easy with this. There are hundreds of plugins, and I cannot seem to find where to build them all and have the eclipse IDE.
Is th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/291238",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Django: How do I model a tree of heterogeneous data types? I need to store a tree data structure in my database, for which I plan on using django-treebeard or possibly django-mptt. My source of confusion is that each node could be one of three different possible types: root nodes will always be a type A entity, lea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/291249",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Language Agnostic Build Management System Several times in my career, I have worked in a software group that determined that
a) We needed a build/test system
b) We should write our own
c) We can have a developer spend a week, get it done and they shouldn't have to touch it again
Every time, this has resulted in a s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/291252",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: does silverlight support remoting? Does silverlight support the remoting functionality of the .net framework?
A: Due to the security requirements of being sandboxed in the host web browser, binary serialization is not supported. So no, .NET Remoting is not supported. Thank goodness we have a fairly sufficient WCF i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/291253",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Object element fails to load in Internet Explorer I have an HTML document that is using to embed a control. In some cases, IE fails to load the control in the tag and loads my alternative text.
Only problem... I don't know why it is failing. It doesn't show up as an error in the exclamation in the lower-left. I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/291259",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I specify attributes for a Html.TextBox helper while maintaining the value retrieval from ViewData? I am using the Html.TextBox helper to create textboxes. I want to set attributes on the textbox, which I understand is done using the following overload:
Html.TextBox (string name, object value, object htmlAt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/291274",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "36"
} |
Q: TAPI Versioning What is the best way to get the TAPI version and additional TAPI information with C#?
A: Interop.
Use the lpdwAPIVersion parameter of the lineInitializeEx function.
http://msdn.microsoft.com/en-us/library/ms735983(VS.85).aspx
"Upon successful completion of this request, this location is filled with... | {
"language": "en",
"url": "https://stackoverflow.com/questions/291278",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Getting Started With Java EE I am about to start a web project and have been working almost exclusively with a LAMP stack for the past 5 years. I would like to build something larger and more scalable and hence have been looking into Java EE. The division of logic between JSP and EJB seems ideal for what I want to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/291279",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: Java Not Converting String to Long Object Properly We're using Spring/Hibernate on a Websphere Application Server for AIX. On my Windows machine, the problem doesn't occur--only when running off AIX. When a user logs in with an account number, if they prefix the '0' to their login ID, the application rejects the l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/291286",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Security and Access control in a MVC application I have only recently started working with the MVC approach, so I suppose this is an easy one for you gurus here:
Where do I put access control?
*
*In a view? I don't want to have any logic besides switches and flags in my templates, so that sounds like the least vi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/291294",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Jquery and Safari I'm having an issue with JQuery and Safari (Windows Version). The code works on FF/IE7/Chrome but not Safari.
I have a simple <li> that has a <div> embedded in to - clicking the <li> should expose the hidden div, but not in Safari.
The HTML:
<ul>
<li>something</li>
<li>something2</li>
<li class="m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/291304",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: inserting hex value into mysql Can there any way to insert a hex value into MYSQL?
I also want to be able to retreive it in hex form.
For example, something like:
INSERT INTO table ( hexTag )
VALUES ( HEX(0x41) );
And if I do this, I want it to put an 'A' into the table
A: For that particular use case, you can eith... | {
"language": "en",
"url": "https://stackoverflow.com/questions/291305",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Modifying WordPress's "post-new.php" File for Custom Blog Entries Has anyone ever modified the "post-new.php" file in their WordPress installation?
I want to modify the look of this page to include pieces that I standardly include in my blog posts, and I just don't know if it is do-able/easy/worth my time.
Should ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/291310",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to Export/Import Toolbars in Visual Studio I export my settings in Visual Studio and if I ever move to a new machine or have problems, I use those backed up settings to restore Visual Studio to the way I like it. It also allows me to maintain a consistent development environment between the various machines that... | {
"language": "en",
"url": "https://stackoverflow.com/questions/291311",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: delphi 2007 command line compiler dcc32.cfg problem I'm using the command line compiler for builds. One problem I see is that the paths mentioned there seem to need to be the short versions of the filenames such that they don't contain any spaces. I don't know so much about this even though I have used it for some... | {
"language": "en",
"url": "https://stackoverflow.com/questions/291326",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: flow chart diagrams : tools / best practices Are there any free online tools out there to make visio kind of diagrams. I would like to practice my flowchart skills. Are there any good sites or books or articles out there that discuss best practices for flowchart diagrams.
A: Dia is an open source option:
http://pro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/291327",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Syntax for creating View delegate in Objective-C I am trying to create a delegate protocol for a custom UIView. Here is my first attempt:
@protocol FunViewDelegate
@optional
- (void) funViewDidInitialize:(FunView *)funView;
@end
@interface FunView : UIView {
@private
}
@property(nonatomic, assign) id<FunViewD... | {
"language": "en",
"url": "https://stackoverflow.com/questions/291328",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do you reduce the size of a folder's index file in NTFS? I have a folder in NTFS that contains tens of thousands of files. I've deleted all files in that folder, save 1. I ran contig.exe to defragment that folder so now it's in 1 fragment only. However, the size of that folder is still 8MB in size. This implies ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/291336",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Mark parameters as NOT nullable in C#/.NET? Is there a simple attribute or data contract that I can assign to a function parameter that prevents null from being passed in C#/.NET? Ideally this would also check at compile time to make sure the literal null isn't being used anywhere for it and at run-time throw Argum... | {
"language": "en",
"url": "https://stackoverflow.com/questions/291340",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "111"
} |
Q: Sql Server Query Selecting Top and grouping by SpousesTable
SpouseID
SpousePreviousAddressesTable
PreviousAddressID, SpouseID, FromDate, AddressTypeID
What I have now is updating the most recent for the whole table and assigning the most recent regardless of SpouseID the AddressTypeID = 1
I want to assign the most r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/291343",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Repository Pattern vs DAL Are they the same thing? Just finished to watch Rob Connery's Storefront tutorial and they seem to be similar techinques. I mean, when I implement a DAL object I have the GetStuff, Add/Delete etc methods and I always write the interface first so that I can switch db later.
Am I confusing t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/291344",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "94"
} |
Q: What is needed to execute visual studio 2005 web tests? Our test department has a series of web tests created using Visual Studio 2005 Team Tester Edition.
I would like to be able to execute these tests against my local machine. I attempted to use the mstest command line tool to accomplish this as described in this ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/291350",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: C# Reflection Indexed Properties I am writing a Clone method using reflection. How do I detect that a property is an indexed property using reflection? For example:
public string[] Items
{
get;
set;
}
My method so far:
public static T Clone<T>(T from, List<string> propertiesToIgnore) where T : new()
{
T ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/291359",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: another sound as with subtitles is it possible to get other sounds to a divx as it is with getting subtitles?
what is that format of that?
A: Yes, you can have multiple audio streams in your video file. Here's some more information (I'm guessing you're using AVI as your container format).
| {
"language": "en",
"url": "https://stackoverflow.com/questions/291360",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What would lead to an "Unknown object in backup file" problem when restoring a backup of a MySQL database? Unfortunately, the problem is not more specific than that. I've found a few examples of people reporting similar problems by doing a Google search, but I can't find the part of the restore that is actually caus... | {
"language": "en",
"url": "https://stackoverflow.com/questions/291369",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Walking an XML tree in C# I'm new to .net and c#, so I want to make sure i'm using the right tool for the job.
The XML i'm receiving is a description of a directory tree on another machine, so it go many levels deep. What I need to do now is to take the XML and create a structure of objects (custom classes) and popu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/291387",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: jQuery: Referencing the calling object(this) when the bind/click event is for a class Thanks for reading this.
I am dynamically generating some data which includes a select drop-down with a text box next to it. If the user clicks the select, I am dynamically populating it (code below). I have a class on the select a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/291391",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Rational numbers in C# and XML I'm working with an XML file that subscribes to an industry standard. The standards document for the schema defines one of the fields as a rational number and its data is represented as two integers, typically with the second value being a 1 (e.g. <foo>20 1</foo>). I've been hunting ar... | {
"language": "en",
"url": "https://stackoverflow.com/questions/291395",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Multi-lingual websites with ASP.NET MVC When building a multi-lingual website (with ASP.NET web forms), I'll use an HTTP module to rewrite the URLs to end up with something friendly (for humans & search engines) like:
uk/products/product_category_one/sub_category_one/index.aspx
uk/products/product_category_one/sub_c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/291405",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Extract files from ZIP file with VBScript When extracting files from a ZIP file I was using the following.
Sub Unzip(strFile)
' This routine unzips a file. NOTE: The files are extracted to a folder '
' in the same location using the name of the file minus the extension. '
' EX. C:\Test.zip will be extracted to C:\T... | {
"language": "en",
"url": "https://stackoverflow.com/questions/291406",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.