text stringlengths 8 267k | meta dict |
|---|---|
Q: Flex binding and AS3 I have a degrafa surface into a canvas container.
I want to link both width and height.
When i use binding like it works as expected:
// binding
BindingUtils.bindProperty(rect,"height",this,"height");
BindingUtils.bindProperty(rect,"width",this,"width");
Now, someone told me that i shou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/324315",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: c# databound ComboBox : InvalidArgument=Value of '1' is not valid for 'SelectedIndex' I'm having problems setting the SelectedIndex on a bound ComboBox (on a windows form) that I'm adding to a form at runtime and I suspect there's something odd going on.
When I try this, I get the error "InvalidArgument=Value of '1'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/324331",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Best asp.net calendar/schedule component? I'm looking for the BEST asp.net calendar/schedule component that it out there.
I like the look of google calendar, and it absolutely needs to be a native .net component, which can be customized.
I don't mind if it is part of a bigger framework (like telerik, for example).
L... | {
"language": "en",
"url": "https://stackoverflow.com/questions/324334",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Call a factory from Constructor to get a new version of "this" I may be going about this backwards...
I have a class which is like a document and another class which is like a template. They both inherit from the same base class and I have a method to create a new document from a template (or from another document, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/324341",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Bizarre Firefox Input Bug I'm a bit flabbergasted at this, so I'm wondering if any SOers have encountered it before.
I have an essentially flat page with a number of input=text seeded in the markup with default values of say A,B,C,D,E in order. The markup looks like this in view source:
<td class="action invoice">
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/324344",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to restrain one's self from the overwhelming urge to rewrite everything? Setup
Have you ever had the experience of going into a piece of code to make a seemingly simple change and then realizing that you've just stepped into a wasteland that deserves some serious attention? This usually gets followed up with an ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/324346",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "45"
} |
Q: Splitting a linked list Why are the split lists always empty in this program? (It is derived from the code on the Wikipedia page on Linked Lists.)
/*
Example program from wikipedia linked list article
Modified to find nth node and to split the list
*/
#include <stdio.h>
#include <stdlib.h>
typedef struct... | {
"language": "en",
"url": "https://stackoverflow.com/questions/324353",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Zero-pad digits in string I need to cast single figures (1 to 9) to (01 to 09). I can think of a way but its big and ugly and cumbersome. I'm sure there must be some concise way. Any Suggestions
A: Solution using str_pad:
str_pad($digit,2,'0',STR_PAD_LEFT);
Benchmark on php 5.3
Result str_pad : 0.286863088608
Res... | {
"language": "en",
"url": "https://stackoverflow.com/questions/324358",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "153"
} |
Q: How to create website shortcut in a VS Setup project? How do I create a shortcut to my website in the VS 2008 Setup project?
I'd like to have a shortcut created inside User's Program Menu\MyProgram , after the application is installed.
I could create a shortcut to the application itself but I have no idea how to mak... | {
"language": "en",
"url": "https://stackoverflow.com/questions/324367",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: WebPartManager & Mobile Controls Can WebPartManager be used with web parts constructed from mobile web controls? If possible, should it be done?
A: I looks promising and you just have to tried it out. In mobile development you always need to have full control of the generated output, and this looks like a tool to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/324370",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Creating a web service without an ASMX file? I have written an ASP.NET composite control which includes some Javascript which communicates with a web service.
I have packaged the classes for the control and the service into a DLL to make it nice and easy for people to use it in other projects.
The problem I'm having... | {
"language": "en",
"url": "https://stackoverflow.com/questions/324373",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: How can I force some pages to end in a slash [.htaccess] This is a multi-site problem. I have a lot of sites with .htaccess files with multiple line similar to:
rewriterule ^(page-one|page-two|page-three)/?$ /index.php?page=$1 [L]
This means that both www.domain.com/page-one and www.domain.com/page-one/ will both ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/324381",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Logging over the wire? We have cases wherein we write a lot of log files to the host increasing the i/o on a host. Are there any good open source logging over the wire solutions.
The application language is C++ on Red Hat Linux 3.
A: A very simple logging option is to use syslog and rely on (after correct configura... | {
"language": "en",
"url": "https://stackoverflow.com/questions/324386",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is it possible to change Garbage Collection behavior in Java ME? I was wondering if it is possible to tweak the way garbage collector works on JavaMe in order to improve performance somehow(may reducing the number of passages)? I´ve seen some articles about it, but mostly directed Java SE and most of them says GC is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/324398",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I redirect URLS that begin with /test/ to a separate script? I have an existing htaccess that works fine:
RewriteEngine On
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule (.*) /default.php
DirectoryIndex index.php /default.php
I wish to modify this so that all urls that st... | {
"language": "en",
"url": "https://stackoverflow.com/questions/324400",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I simplify the below expressions using primitive recursion?
Possible Duplicate:
Symbolic simplification in Haskell (using recursion?)
The simplifications I have in mind are
0*e = e*0 = 0
1*e = e*1 = 0+e = e+0 = e-0 = e
and simplifying constant subexpressions, e.g. Plus (Const 1) (Const 2) would become Con... | {
"language": "en",
"url": "https://stackoverflow.com/questions/324428",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: ActiveX on Visual C++ 6 Tutorial I have to build an application based in an ActiveX library (MIL for Matrox framegrabbers).
The library should be already working, since it compiles and run a console application provided as example. (Yes, the console application is probably not using any ActiveX at all... I actually ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/324433",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Can I set the process title for IIS6's w3wp.exe? In Visual Studio's "Attach to Process" dialog I can see a Title column for each of the processes available. Is there any way for me to set the title for a specific w3wp.exe process to reflect the application pool it's hosting?
PS - I'm aware of iisapp.vbs and the way ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/324435",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Converting pdf files to txt files with php There's this program, pdftotext, that can convert a pdf file to a text file. To use it directly on the linux console:
pdftotext file.pdf
That will generate a file.txt on the same directory as the pdf file. I was looking for a way to do it from inside a php program, and aft... | {
"language": "en",
"url": "https://stackoverflow.com/questions/324436",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Disable Carbon Emacs scroll beep I've been looking into adopting Carbon Emacs for use on my Mac, and the only stumbling block I've run into is the annoying scroll beep when you try to scroll past the end of the document. I've looked online but I can't seem to find what I should add to my .emacs that will stop it fro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/324457",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Form top most? How can I display something over all other application. I want to to display something over all form of my program and all other programs open on my desktop (not mine).
*Top Most doesn't work I have tested and my browser can go OVER my application :S
Here is an image of when I use TopMost to TRUE. You... | {
"language": "en",
"url": "https://stackoverflow.com/questions/324463",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Doing XNA in Delphi Prism I have installed Delphi Prism and XNA Game Studio 3.0. I have managed to translate to Delphi Prism XNA Tutorial 1 "Displaying a 3D Model on the Screen" (http://msdn.microsoft.com/en-us/library/bb197293.aspx).
Project compiles fine, but I cannot load a model. It looks like there is a new "c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/324466",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: HTTP headers encoding/decoding in Java A custom HTTP header is being passed to a Servlet application for authentication purposes. The header value must be able to contain accents and other non-ASCII characters, so must be in a certain encoding (ideally UTF-8).
I am provided with this piece of Java code by the develo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/324470",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: C# ASP.NET - how to use the default view engine standalone? I would like to be able to use an ASP.NET view as an email template, complete with the <%= "hi there" %> syntax. Is there a way to invoke/setup this view engine in a standalone way?
A: One option would be to use Cassini to host a site; however, have you c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/324473",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: In a Django form, how do I make a field readonly (or disabled) so that it cannot be edited? In a Django form, how do I make a field read-only (or disabled)?
When the form is being used to create a new entry, all fields should be enabled - but when the record is in update mode some fields need to be read-only.
For ex... | {
"language": "en",
"url": "https://stackoverflow.com/questions/324477",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "513"
} |
Q: Problem building a Setup project I'm working on a tool to simplify an application's deployment. Hence I'm aiming to automate the build of the setup project.
The Situation:
When I use Visual Studio to build the setup project this, creates the msi and exe files and concludes successfully. The problem occurs when I run... | {
"language": "en",
"url": "https://stackoverflow.com/questions/324482",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to check if a Active Directory server is up and running using .Net? Before trying to query the AD server I would like to check if it is alive and kicking.
Looks like a trivial thing, but I haven´t found anything to elucidate this.
How can I do that?
A: I just try to get the current domain context associated wi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/324484",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How do you read CSS rule values with JavaScript? I would like to return a string with all of the contents of a CSS rule, like the format you'd see in an inline style. I'd like to be able to do this without knowing what is contained in a particular rule, so I can't just pull them out by style name (like .style.width ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/324486",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "130"
} |
Q: Programmatic Creation of a Notes Link Hotspot (URL) Earlier versions of the Notes client would automatically turn a sent URL into a clickable link for the recipient (regardless of mail client) but with 6.5 (and presumably later) this no longer happens; that is, the URL is sent as plain text. The Notes UI allows it t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/324488",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: floating point hex octal binary I am working on a calculator that allows you to perform calculations past the decimal point in octal, hexadecimal, binary, and of course decimal. I am having trouble though finding a way to convert floating point decimal numbers to floating point hexadecimal, octal, binary and vice ve... | {
"language": "en",
"url": "https://stackoverflow.com/questions/324491",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can generate views in asp.net-mvc unit tests? Im trying to generate views in unit tests but i can't get around the missing VirtualPathProvider. Most viewengines use the VirtualPathProviderViewEngine base class that gets the provider from the current HostingEnvironment.
protected VirtualPathProvider VirtualPathPr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/324492",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: asp.net mvc & popup dialogs What do people recommend for creating popup's in ASP.Net MVC? I have used the AJAX toolkit and component art's methods in the web forms world and am looking something with similar capability.
What JQUERY plugins do people like? SimpleModal, JBOX (I think this was, what it was called)
Is ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/324495",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I add elements from one Perl array that aren't already in the other array? Given:
my @mylist1;
push(@mylist1,"A");
push(@mylist1,"B");
push(@mylist1,"C");
my @mylist2;
push(@mylist2,"A");
push(@mylist2,"D");
push(@mylist2,"E");
What's the quickest way in Perl to insert in mylist2 all elements that are in my... | {
"language": "en",
"url": "https://stackoverflow.com/questions/324498",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Java still uses system memory after deallocation of objects and garbage collection I am running JVM 1.5.0 (Mac OS X Default), and I am monitoring my Java program in the Activity Monitor. I have the following:
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.ut... | {
"language": "en",
"url": "https://stackoverflow.com/questions/324499",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Problem with Boolean Expression with a string value from a lIst I have the following problem:
# line is a line from a file that contains ["baa","beee","0"]
line = TcsLine.split(",")
NumPFCs = eval(line[2])
if NumPFCs==0:
print line
I want to print all the lines from the file if the second position of t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/324506",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: .NET: How to look up a user in Active Directory? How do you look up a user in Active Directory?
Some example usernames are:
*
*avatopia\ian
*avatar\ian
*ian@avatopia.com
*ian@avatopia.local
*avatopia.com\ian
It's important to note that i don't know the name of the domain, and i shouldn't be hard-coding it.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/324518",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: How can I run a program from a batch file without leaving the console open after the program starts? For the moment my batch file look like this:
myprogram.exe param1
The program starts but the DOS Window remains open. How can I close it?
A: Loads of answers for this question already, however I am posting this to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/324539",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "200"
} |
Q: WPF: How do I edit the contents of a DockPanel that is located inside a UserControl? I've created a user control (in vb.net code) that contains two dock panels, one for header content (called HeaderDockPanel) and one for other content (called RootDockPanel). The dockPanels are depedency properties of the user contro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/324552",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to use eclipse debugger to debug stacktrace of JSF core libraries? Welcome
I am extending some application written with Sprint and JSF. My work is partly writing xml config files. After some changes I got reports from library generators.
Can I access with Eclipse debugger attached jars and fount what method thro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/324564",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Follow a URL using JavaScript Is there any way to follow a URL in JavaScript without setting the document.location.href?
I have a page that displays a list of objects and each object may have a file download associated with it, which is accessed via a hyperlink. Clicking the link initiates an AJAX request that ultim... | {
"language": "en",
"url": "https://stackoverflow.com/questions/324571",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Actionscript 3 Bind variables I am trying to set one bindable variable to be bound to another. Essentially I want to create an alias. I would give up, but this seems like something that would be good to know.
essentially, I want changes in model.configView to be reflected in view, so that things bound to view.... ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/324572",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is the best approach for creating a Common Information Model? I would like to know the best approach to create a Common Information Model. Just to be clear, I've also heard it referred to as a canonical information model, semantic information model, and master data model - As far as I can tell, they are all ref... | {
"language": "en",
"url": "https://stackoverflow.com/questions/324573",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: WCF: Best practice to send Form Data to a Web Service? We are using C#, ASP.NET & WCF. I am trying to send form data to a web service which in turn inserts/updates a database with the data from my form. How should I send over my data?
We have the forms populated fine but are having some issues with sending updates b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/324599",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: LINQ to XML Newbie Question: Returning Nodes By Node Name Greetings!
If I have XML such as this:
<Root>
<AlphaSection>
.
.
.
</AlphaSection>
<BetaSection>
<Choices>
<SetA>
<Choice id="choice1">Choice One</Choice>
<Choice id="choice2">Choic... | {
"language": "en",
"url": "https://stackoverflow.com/questions/324604",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: MySQL Trigger - Storing a SELECT in a variable I have a trigger in which I want to have a variable that holds an INT I get from a SELECT, so I can use it in two IF statements instead of calling the SELECT twice. How do you declare/use variables in MySQL triggers?
A: CREATE TRIGGER clearcamcdr AFTER INSERT ON `aster... | {
"language": "en",
"url": "https://stackoverflow.com/questions/324605",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "57"
} |
Q: Understanding the type error: "expected signature Int*Int->Int but got Int*Int->Int" The comments on Steve Yegge's post about server-side Javascript started discussing the merits of type systems in languages and this comment describes:
... examples from H-M style systems where you can get things like:
expected sig... | {
"language": "en",
"url": "https://stackoverflow.com/questions/324612",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Multi-byte character set in MFC application I have a MFC application in which I want to add internationalization support. The project is configured to use the "multi-byte character set" (the "unicode character set" is not an option in my situation).
Now, I would expect the CWnd::OnChar() function to send me multi-b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/324624",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is the best way to include data in an HTML page? What is the best way to include data in an HTML page? The data is not human-readable and will be processed by a script once the page has loaded. The options I can think of are:
*
*Using class and title attributes on hidden/empty <div> or <span> elements within... | {
"language": "en",
"url": "https://stackoverflow.com/questions/324627",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Easiest way of finding photos with no tags using the Flickr API I'm working on a small project to help me tag content on Flickr.
I've been looking through the API and there's obvious ways to search for tagged content, but not a simple way of finding what content hasn't been tagged (without just looping through image... | {
"language": "en",
"url": "https://stackoverflow.com/questions/324629",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why doesn't .NET have a SoftReference as well as a WeakReference, like Java? I really love WeakReference's. But I wish there was a way to tell the CLR how much (say, on a scale of 1 to 5) how weak you consider the reference to be. That would be brilliant.
Java has SoftReference, WeakReference and I believe also a th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/324633",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: IBM U2 (UniVerse 10.2) - Create Schema - How We have a traditional UV account. Data files in one directory, application programs & subroutines in another directory. Our latest projects is implementing JDBC and in order to fully access the subroutines from java, I belive I need to create a schema on the existing uv a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/324634",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to make the contents of a round-cornered border be also round-cornered? I have a border element with rounded corners containing a 3x3 grid. The corners of the grid are sticking out of the border. How can I fix that? I tried using ClipToBounds but didn't get anywhere.
Thanks for your help
A: So I just came acros... | {
"language": "en",
"url": "https://stackoverflow.com/questions/324641",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "61"
} |
Q: What is the equivalent of map > in Python? In C++ often do something like this:
typedef map<int, vector<int> > MyIndexType;
Where I then use it like this:
MyIndexType myIndex;
for( ... some loop ...)
{
myIndex[someId].push_back(someVal);
}
If there was no entry in the map the code will insert a new empty vector ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/324643",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: How do you set the width of an HTML Helper TextBox in ASP.NET MVC? Some examples I found that apparently worked with older versions of mvc suggest that there was a length parameter of sorts:
<%=Html.TextBox("test", 50)%>
But that may have been mistakenly setting the value.
How do this work in the current release? P... | {
"language": "en",
"url": "https://stackoverflow.com/questions/324649",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "48"
} |
Q: Visual Studio 2005 Intellisense with Rhino Mocks The Rhino Mocks download comes with a "Rhino.Mocks.xml" file that apparently adds Intellisense for Rhino Mocks.
What do you need to do with this file in order to get it to work?
A: Put it in the same directory as the DLL you're referencing, and it should be picked up... | {
"language": "en",
"url": "https://stackoverflow.com/questions/324656",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Which is faster: in_array() or a bunch of expressions in PHP? Is it faster to do the following:
if ($var != 'test1' && $var != 'test2' && $var != 'test3' && $var != 'test4') { ... }
Or:
if (!in_array($var, array('test1', 'test2', 'test3', 'test4') { ... }
Is there a number of values at which point it's faster to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/324665",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: Should +initialize/+load always start with an: if (self == [MyClass class]) guard? When implementing an +initialize or +load method in one of your Objective-C classes, should you always start with this kind of guard?:
@implementation MyClass
+ (void)initialize {
if (self == [MyClass class]) {
...
}
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/324666",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: JSF : java.lang.IllegalStateException: Client-id : _idJsp35 is duplicated in the faces tree in Alfresco Web Client I am extending Alfresco Web Client and in one page while expanding panels I get this error. I do not get it always.
JSF : java.lang.IllegalStateException: Client-id : _idJsp35 is duplicated in the faces... | {
"language": "en",
"url": "https://stackoverflow.com/questions/324668",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Safe stream update of file We perform updates of large text files by writing new records to a temp file, then replacing the old file with the temp file. A heavily abbreviated version:
var tpath = Path.GetTempFileName();
try
{
using (var sf = new StreamReader(sourcepath))
using (var tf = new StreamWriter(tpat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/324670",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: SQL statement to designate a cluster master I have clustered applications that requires one of the nodes to be designated as the master. The cluster nodes are tracked in a table with nodeID, isMaster, lastTimestamp columns.
Each node in the cluster will try to become a master every X seconds. Node can only become a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/324677",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: C# Add HyperLinkColumn to GridView I'm trying to add HyperLinkColumns dynamically to my GridView. I have the following code:
HyperLinkColumn objHC = new HyperLinkColumn();
objHC.DataNavigateUrlField = "title";
objHC.DataTextField = "Link text";
objHC.DataNavigateUrlFormatString = "id, title";
objHC.DataTextFormatStr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/324682",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Command line reserved tokens When building an application with a CLI, it is useful to avoid using tokens that are commonly used for shell features.
For example, | is used for piping output of one application to input of the next.
Please supply a complete list of tokens that would need to be escaped to be used?
As a ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/324695",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Can I make an XMLHttpRequest to another domain? Is there a way to use XMLHttpRequest in combination with other domains?
I would like to parse some xml from Google without having to use a server so it is minimalistically complex to run.
var req = getXmlHttpRequestObject();
...
req.open('GET', 'http://www.google.de/ig... | {
"language": "en",
"url": "https://stackoverflow.com/questions/324697",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: ARM. Access user R13 and R14 from Supervisor mode How do I access the user R13 and R14 which are saved when supervisor mode is entered? I am using an ARM7TDMI.
I.E. I do not want to access supervisor R14 which now contains the return address to user mode, instead want the value of user mode's link register. This is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/324704",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Writing stringstream contents into ofstream I'm currently using std::ofstream as follows:
std::ofstream outFile;
outFile.open(output_file);
Then I attempt to pass a std::stringstream object to outFile as follows:
GetHolesResults(..., std::ofstream &outFile){
float x = 1234;
std::stringstream ss;
ss << x << st... | {
"language": "en",
"url": "https://stackoverflow.com/questions/324711",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "66"
} |
Q: What means digits in Stack Trace Exact duplicate of this question.
When you get an error in .Net application we got an a Stack Trace.
For example
[ADOException: cannot open connection]
NHibernate.Impl.SessionFactoryImpl.OpenConnection() +153
Hibernate.AdoNet.ConnectionManager.GetConnection() +119
NHibernate.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/324714",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: C++ MySQL database connection I not a DB expert, so am looking for advice for a web-based system I'm thinking of setting up.
The general set up of the system I have is that it will have a web-based interface (possibly in PHP) for logging in etc, and some C++ code running on the server doing some processing. Both the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/324722",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: xsd pattern restriction - disallow backslash I have a requirement to disallow backslash characters in a given string field defined by an xsd document. However, being as green as I am, I am not confident with my xsd and/or regex knowledge. Here is what I have so far:
<xs:simpleType name="BackslashRestrictedField">
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/324724",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is there a way to execute php code in a sandbox from within php I want to execute a php-script from php that will use different constants and different versions of classes that are already defined.
Is there a sandbox php_module where i could just:
sandbox('script.php'); // run in a new php environment
instead of
i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/324726",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: How do I mock the method GetValues() in System.Data.IDataReader? How do I mock the method GetValues() in System.Data.IDataReader?
This method changes the array of objects passed to it, so it can’t simply return a mocked value.
private void UpdateItemPropertyValuesFromReader( object item, IDataReader reader )
{
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/324727",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: UK Suburb Database This is not a really technical question but is required for a system I am building. I am after a UK suburb/postcode database. I haven't been able to find this anywhere and wonder if it is available (freely). I know in Australia is is freely downloadable from Australia Post. Also a US suburb/zip da... | {
"language": "en",
"url": "https://stackoverflow.com/questions/324736",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I reserve memory for pointer to an array in Delphi? I'm developing class to represent special kind of matrix:
type
DifRecord = record
Field: String;
Number: Byte;
Value: smallint;
end;
type
TData = array of array of MainModule.DataRecord;
type
TDifference = array of DifRecord;
type
T... | {
"language": "en",
"url": "https://stackoverflow.com/questions/324748",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Authenticate and GetRoles of ActiveDirectory users in a disconnected WPF application via MembershipProvider I have a project requirement where I need to authenticate against ActiveDirectory in a remote/disconnected WPF application.
There is probably several ways to attempt to do this, but what would be the best appr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/324752",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Open-source parser code for Mediawiki markup I'm interested in selectively parsing Mediawiki XML markup to generate a customized HTML page that's some subset of the HTML produced by the actual PHP Mediawiki render engine.
I want it for BzReader, an offline Mediawiki compressed dump reader written in C#. So a C# par... | {
"language": "en",
"url": "https://stackoverflow.com/questions/324758",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How can remote web services be consumed from a client-side script? From what I understand, due to the "same origin policy" enforcement in current browsers, it's impossible to obtain data from an XmlHttpRequest sent to a different domain than the Javascript's original domain.
I have close to zero experience regarding... | {
"language": "en",
"url": "https://stackoverflow.com/questions/324771",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Crystal Reports: Passing Multiline Parameter Values I want to pass some parameters to a Crystal Report like this:
ReportDocument.DataDefinition.FormulaFields[parameterName].Text = 'Text';
This workes fine unless I want to pass a multiline textbox from ASPX
(containing \n and \r chars.)
The reportviewer reports t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/324776",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Strategies for speeding up batch ORM operations in Django One of my API calls can result in updates to a large number of objects (Django models). I'm running into performance issues with this since I'm updating each item individually, saving, and moving on to the next:
for item in Something.objects.filter(x='y'):
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/324779",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: How do you store your personal snippets database in order to use it everywhere (work, etc)? I've read the several discussions about storing code snippets but I did't find the info that I'm looking for, so let's define it:
*
*At home, I have several side projects, most of them quite small, one large, and numerous ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/324786",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Is there a sweet, efficient way to call the same method twice with two different arguments? Say for example I have the following string:
var testString = "Hello, world";
And I want to call the following methods:
var newString = testString.Replace("Hello", "").Replace("world", "");
Is there some code construct that s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/324797",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: eof detection for DirectShow Is there a way to detect that a DirectShow filtergraph has reached the end of its file? By end of its file, I mean that a filtergraph with a SampleGrabber filter will never receive another SampleCB call.
Here are some things that don't work:
*
*Trust IMediaDet::get_StreamLength (it's... | {
"language": "en",
"url": "https://stackoverflow.com/questions/324803",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do i remove all linebreaks? I have something like this:
<node TEXT=" txt A "/>
<node TEXT="
txt X
"/>
<node>
<html>
<p>
txt Y
</p>
</html>
</node>
<node TEXT="txt B"/>
and i want to use XSLT to get this:
txt A
txt X
txt Y
txt B
I want to strip all useless whitespaces and ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/324822",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Good Source Of .Net Design Patterns I'm looking for a good online resource of software patterns. Preferably something with a comprehensive selection and concise well written explanations, not just a collection of links. .Net examples would be nice, but not essential.
A: Enterprise Solutions Patterns using Microsoft... | {
"language": "en",
"url": "https://stackoverflow.com/questions/324824",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Need help refactoring a simple jquery animation script I have a status message box (div box) positioned at the bottom of a web page using position: fixed; and bottom: 0;. Its height is initially 11px.
I want to allow users to double click it when there are more status messages than what can fit within the default hi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/324825",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Breaking out of a nested loop If I have a for loop which is nested within another, how can I efficiently come out of both loops (inner and outer) in the quickest possible way?
I don't want to have to use a boolean and then have to say go to another method, but rather just to execute the first line of code after the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/324831",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "241"
} |
Q: LinqToEntities and Foreign Keys I'm trying to use LinqToEntities and just noticed that there are no foreign key fields in the data model. That seems to cause some trouble when trying to add a record.
Reading around I found that when adding a record you can do something like this (Product has a foreign key to the Ca... | {
"language": "en",
"url": "https://stackoverflow.com/questions/324847",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I customize the text color of the back button in a UINavigationController header view? I'm using a custom tintColor on my UINavigationController's navigation bar, and because the color is so light I need to use dark colored text. It's relatively easy to swap out the title view, and the custom buttons I've ad... | {
"language": "en",
"url": "https://stackoverflow.com/questions/324860",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: C++ Strings Modifying and Extracting based on Separators Kind of a basic question but I'm having troubles thinking of a solution so I need a push in the right direction.
I have an input file that I'm pulling in, and I have to put it into one string variable. The problem is I need to split this string up into differ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/324867",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I evaluate an expression? How can I evaluate an expression, given a list of values for the variables it contains?
eval::[(Variable,Integer)]->Expr->Integer
Example:
eval[("x",2), ("y",4)](Mult(Plus(Var "x") (Const))(Var "y"))= 12
A: Variable and Expr are not inbuild types in Haskell.
If you are using a li... | {
"language": "en",
"url": "https://stackoverflow.com/questions/324878",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Why isn't my page redirecting to the login screen for this protected page? I added the following to my web.config to redirect the user to the login page if they aren't authenticated, but going to the URL does cause a redirect?
<location path="user/add">
<system.web>
<authorization>
<deny users="?"... | {
"language": "en",
"url": "https://stackoverflow.com/questions/324904",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to handle encoded inputs that need to be edited? Using Microsoft's AntiXssLibrary, how do you handle input that needs to be edited later?
For example:
User enters:
<i>title</i>
Saved to the database as:
<i>title</i>
On an edit page, in a text box it displays something like:
<i>title</i> b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/324905",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Modifying HTML textarea as the user types? How do you manipulate text inside of a textarea as the user types in it?
A: You'd use the onKeyUp event to detect key presses, then use the value property of the textarea to get and/or set the value.
<script language="text/javascript">
function change_text() {
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/324906",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: mysqldump with federated tables I need mysqldump including the data, but in database there are also couple of tables with FEDERATED engine. The mysqldump includes INSERTs for FEDERATED tables too, what makes for exemaple "Duplicate entry" errors (because the table is already filled with data).
I can dump structure a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/324911",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is it possible to render web content over a clear background using WebKit? I'm trying to gauge the possibility of a patch to WebKit which would allow all rendered graphics to be rendered onto a fully transparent background.
The desired effect is to render web content without any background at all, it should appear t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/324923",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "35"
} |
Q: Check for new version everytime I visit a web page - caching I work at a college that uses an intranet based student management solution not developed by us.
Recently changes were made that caused us to have to set internet explorer to check for a new version of a web page each time it visits. Otherwise certain pag... | {
"language": "en",
"url": "https://stackoverflow.com/questions/324927",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: MySQL "WITH" clause I'm trying to use MySQL to create a view with the "WITH" clause
WITH authorRating(aname, rating) AS
SELECT aname, AVG(quantity)
FROM book
GROUP BY aname
But it doesn't seem like MySQL supports this.
I thought this was pretty standard and I'm sure Oracle supports this. Is there anyway to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/324935",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "115"
} |
Q: JDBC & MSSQL seem to be truncating large fields I'm using jython 2.2.1, and jdbc 1.2 and connecting to a mssql 2000 database, writing the contents of an email to it. When I get to the body of the email which can be quite large sometimes I need to truncate the data at 5000 chars. Except mssql & jdbc gang up on me lik... | {
"language": "en",
"url": "https://stackoverflow.com/questions/324945",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: This expression should have type 'unit', but has type 'ConsoleKeyInfo' I just wanted to pause in an F# console application, so I wrote:
Console.ReadKey()
But this gives the warning: This expression should have type 'unit', but has type 'ConsoleKeyInfo'.
What can I do to fix this?
A: Solution:
Console.ReadKey() |> i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/324947",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "35"
} |
Q: Writing Comments table in database I'm working on a social networking system that will have comments coming from several different locations. One could be friends, one could be events, one could be groups--much like Facebook. What I'm wondering is, from a practical standpoint, what would be the simplest way to wri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/324949",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Single ASP.net site with Multiple Instances & web.configs We have a legacy ASP.net powered site running on a IIS server, the site was developed by a central team and is used by multiple customers. Each customer however has their own copy of the site's aspx files plus a web.config file. This is causing problems as c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/324957",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Pass Query String to rDirectory Is it possible to pass a query string to Namescape's rDirectory? I'd like to build a web-app that can do a search and display the results in rDirectory, rather than first launching rDirectory and doing said search.
A: After some digging around and peeking at some rDirectory code, it ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/324959",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.