text stringlengths 8 267k | meta dict |
|---|---|
Q: Why does global.asax change sql connection? In asp.net 3.5, I have a problem that if I upload my global.asax to the remote web server, the app starts looking for my local sql server and eventually times out. I use a different config file for the local and remote because of the sql server login. Local is windows a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/317891",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: LINQtoSQL Error: Sequence operators not supported for type 'System.String' For some reason my code won't work.
from tan in TANS
where tan.ID.ToString().Count() != 1
select tan
I want to select all IDs that are duplicates in a table so I am using the count != 1 and I get this error.
NotSupportedException... | {
"language": "en",
"url": "https://stackoverflow.com/questions/317893",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: SSCLI for .Net Framework 3.5 Is there a SSCLI equivalent for .Net Framework 3.5?
Something that can be debugged and stepped through.
A: If you are using Visual Studio 2008 (and especially VS2008 SP1) you should enable the ".NET Framework source stepping" debugger option.
A: You need to download a patch for the sou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/317911",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I check if form input is numeric in PHP? I need to be able to see if a form input in PHP is numeric. If it is not numeric, the website should redirect. I have tried is_numeric() but it does not seem to work.
Code examples will be nice.
I am developing a shopping cart that accepts an integer value for the q... | {
"language": "en",
"url": "https://stackoverflow.com/questions/317916",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Should I use HtmlHelper or roll my own controls? I'm just beginning to learn ASP.NET MVC and I've run into a question. I'm trying to determine whether I should use HtmlHelper to create client controls or if I should just roll my own. My gut wants to lean towards just rolling my own because it gives me total control... | {
"language": "en",
"url": "https://stackoverflow.com/questions/317921",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I find methods without an explicit access modifier? I am using FxCop and I would like to find all the methods or variables without an access modifier explicitly defined. For example:
class MyClass
{
int myInt = 0;
internal MyClass()
{
}
}
I would like FxCop to warn me that I didn't specify what... | {
"language": "en",
"url": "https://stackoverflow.com/questions/317927",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: The route addition failed: Cannot create a file when that file already exists I get this error when using c:>route add <route_and_interface_here>
This happens on a RRAS server that has a PPTP site-to-site VPN setup with demand-dialing static route. This route shows in RRAS routing table but does not show in c:>route... | {
"language": "en",
"url": "https://stackoverflow.com/questions/317932",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Tools to search for strings inside files without indexing I have to change some connection strings in an incredibly old legacy application, and the programmers who made it thought it would be a great idea to plaster the entire app with connection strings all over the place.
Visual Studio's "current project" search i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/317944",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "187"
} |
Q: How am I supposed to use the TortoiseSVN merge tool (TortoiseMerge)? How am I supposed to use merge with the latest version of Tortoise SVN? I'm an old ClearCase guy, and I've never understood it. When I merge a branch back into the trunk, I just select range of revisions and then leave the version numbers blank and... | {
"language": "en",
"url": "https://stackoverflow.com/questions/317950",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Loading Data Files on iPhone? What is the best way to load static data files containing game level maps on the iPhone? I have seen some use XML files, but that seems like overkill in my situation as the data files merely determine the layout of the game's level, ie where obstructions will go. Also, what project di... | {
"language": "en",
"url": "https://stackoverflow.com/questions/317959",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Standard C or Python libraries to compute standard deviation of normal distribution Say we have normal distribution n(x): mean=0 and \int_{-a}^{a} n(x) = P.
What is the easiest way to compute standard deviation of such distribution? May be there are standard libraries for python or C, that are suitable for that task... | {
"language": "en",
"url": "https://stackoverflow.com/questions/317963",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Is ENCODE() and DECODE() the "best" way to handle an application password field in MySQL? I am developing on a LAMP(erl) stack and know of several ways to store obscured passwords. I'd like to hear from those who feel they have a best practice, given MySQL 4.1.1 and Perl 5.8, and the reasons why it's the best.
One ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/317967",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: WPF DependencyProperties I have just realized I've been coercing binding/dependency properties and not really fundamentally understanding the concept.
Heres the dependency property:
public string Problem
{
get { return (string)GetValue(ProblemProperty); }
set { SetValue(ProblemProperty, value); }
}
public s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/317973",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Can Castle Windsor locate files in a subdirectory? I have a rich client application that uses Castle Windsor. At the moment all the assemblies including the application exe are in the one folder but it all looks rather untidy. I would like to put my dlls inside a subfolder such as "bin" but this prevents Castle from... | {
"language": "en",
"url": "https://stackoverflow.com/questions/317981",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Server Controls and MVC I've been lead to believe, without research, that server controls are forfeited in the MVC model. I am both very curious to know if this is true, and if so, how would one achieve something equivalent to a Repeater control, or any other view whose exact structure depends on the content of the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/317995",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Delphi adding {$R *.res} in the .dpr file Delphi sometimes adds {$R *.res} in front of the unit path in the .dpr file uses clauses, then I get a duplicated resources warning when trying to compile.
Anyone knows why the hell Delphi does that? I'm using Delphi 2009 but this happens since Delphi 2007 (maybe 2006 too)
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/317997",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: RoR: Best way to build 'dashboard' type page? In the admin section of a website i am building i would like to put together a dashboard page, or 'quick look' type page where the most recent changes/additions/etc in several different areas can be viewed.
I was thinking the best way to do this would be to use partials ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318018",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Why would Visual Studio/CLR produce a "bad" executable? This is a weird problem I have started having recently. My team is developing a COTS application and we have a few people with their hands in the code. A few weeks ago, I received an error message when trying to debug (and run the compiled EXE):
"Windows canno... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318019",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I securly pass user credentials from a server to a client? My goal is to launch an installation with admin credentials(user with install rights), In order to do this I need to pass these user credentials from a webservice. So the question is What is the most secure way I could pass this data. Keeping in min... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318039",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: String.Format (format,date) is ignoring format Not sure what's going on here.
I have a DateTime object, and when I try:
String.Format( "{0:dd/MM/yyyy}", _date)
the value returned is:
"24-05-1967"
What I want is
"24/05/1967"
Can anyone explain why my format string is being ignored?
A bit more background:
This is ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318056",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: How do you declare an interface in C++? How do I setup a class that represents an interface? Is this just an abstract base class?
A: You can also consider contract classes implemented with the NVI (Non Virtual Interface Pattern). For instance:
struct Contract1 : boost::noncopyable
{
virtual ~Contract1() = defa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318064",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "874"
} |
Q: Ambiguous column name error When executing the following (complete) SQL query on Microsoft SQL Server 2000:
SELECT B.ARTIFACTTNS, B.ARTIFACTNAME, B.ARTIFACTTYPE, B.INITIALBYTES, B.TIMESTAMP1, B.FILENAME, B.BACKINGCLASS,
B.CHARENCODING, B.APPNAME, B.COMPONENTTNS, B.COMPONENTNAME, B.SCAMODULENAME, B.SCACOMPONE... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318066",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Python: converting strings for use with ctypes.c_void_p() given a string:
msg="hello world"
How can I define this as a ctypes.c_void_p() data type?
the following code yields a "cannot be converted to pointer" exception:
data=ctypes.c_void_p(msg)
data is required to be a void* type in C, because it is being passed ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318067",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Why is this a "so close yet so far" if statement? I am working on an If statement and I want to satisfy two conditions to ignore the loop. This seemed easy at first, but now... I don't know. this is my dilemma...
if((radButton1.checked == false)&&(radButton2.checked == false))
{
txtTitle.Text = "go to work";
}... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318068",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Security implications of Request.ServerVariables("REMOTE_ADDR") vs Request.ServerVariables("HTTP_X_FORWARDED_FOR") Let's say we're tracking the end-user IP for a web service:
ip = Request.ServerVariables("HTTP_X_FORWARDED_FOR")
If ip = "" Then
ip = Request.ServerVariables("REMOTE_ADDR")
End If
I've read that th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318069",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to read ".NET Data Provider for SqlServer" performance counters from MS Test? How do I read from the performance counter "NumberOfActiveConnections" of the category ".NET Data Provider for SqlServer" from a unit test in MS Test?
I'm trying the following but it seems like I get the instance name wrong. The MSDN d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318071",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Fluent NHibernate, joined-subclass mapping I'm trying to map a joined-subclass scenario using Fluent NHibernate.
I have a class Entity defined in the namespace Core, and a class
SubClass : Entity in the namespace SomeModule
Now I obviously don't want class Entity to know about its derived
types, the SomeModules name... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318087",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How do I reference a scalar in a hash reference in Perl? Simple question:
How do I do this on one line:
my $foo = $bar->{baz};
fizz(\$foo);
I've tried \$bar->{baz}, \${$bar->{baz}}, and numerous others. Is this even possible?
-fREW
Update: Ok, the hashref is coming from DBI and I am passing the scalar ref into tem... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318090",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Strange Error in .net Application. - RijndaelManaged During a recent load test, I've been getting some strange "Index Out of Range Exception"
Stack trace:
at System.Security.Cryptography.RijndaelManagedTransform.DecryptData(Byte[] inputBuffer, Int32 inputOffset, Int32 inputCount, Byte[]& outputBuffer, Int32 out... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318095",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do you sort a generic list in C# and allow NULL items to appear first in the list? I have a generic list of objects in C#, for example sake, here's what the object might be.
public class Thing {
public string Name { get; set; }
public DateTime EditDate { get; set; }
}
var things = new List<Thing>();
No... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318096",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: MVC route localization While playing around with localization using Matt Hawley's approach. I wonder if someone has figured to localize routes. I can do this using global resources per site. But when I would try to make it a users choice (so users can switch between languages) the architecture does not allow it beca... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318103",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Application internationalization/translation experience using crowd-sourcing? Mechanical Turk? I have developed a web application using internationalization best practices such as putting all my displayable strings in property files, etc, etc.
I would like to have the strings in the property files translated into 5 ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318109",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How can I remove / clear items out of a list control in Flex? I have a list control in Flex that has been data bound to an e4x xml object from an HTTPService.
I would now like to have a button that clears the list, how can I do this?
I have tried:
list.dataProvider = null;
which does not seem to work, I have al... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318113",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Functional alternative? As I continue my quest of learning functional programming, I've come
to wonder if there may be alternatives to my default "procedural" way
of thinking. To be more specific, I'm looking at a function I
wrote. Here is what it does:
Swap two elements of an unordered list of numbers, such that on... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318128",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Javascript on scroll to end Sometimes software installers force you to scroll to the end of the EULA before the “I agree” box is enabled. How can I produce the same effect on a web page?
A: <html>
<head>
<script type="text/javascript">
function setupPage() {
var agreement = ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318129",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What is the difference between include and require in Ruby? My question is similar to "What is the difference between include and extend in Ruby?".
What's the difference between require and include in Ruby? If I just want to use the methods from a module in my class, should I require it or include it?
A: From Prog... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318144",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "517"
} |
Q: Looking for example xml to generate a Findbugs report using ANT to analyse multiple jars? How do I setup an Ant task to generate a Findbugs report when the source folder has many jars in it?
I'm looking for a worked example of the ant task required to output the fancy HTML from a folder containing multiple jars
A: ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318145",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is the best way to track and lower GD handles? what is the best way to track and lower GDI windows handles . .
A: Two links worth reading...
Resource Leaks: Detecting, Locating, and Repairing Your Leaky GDI Code
GDI Resource Leaks
A: Personally I use IARSN TaskInfo to see the number of handles my program us... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318154",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Subversion Merge Problem: Cannot reintegrate yet I'm evaluating subversion's branch/merge capabilities, and I decided to do a simple test - I branched an existing project, changed a comment in one file, and then did a merge reintegrate via Tortoise.
It failed:
Command: Reintegrate merge https://oscar/svn/Baxtech/Vi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318155",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Get Distinct result set from NHibernate using Criteria API? I'm trying to get distinct results using the Criteria API in NHibernate. I know this is possible using HQL, but I would prefer to do this using the Criteria API, because the rest of my app is written using only this method. I found this forum post, but have... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318157",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "30"
} |
Q: How do I set the margin of an object in IE? I am trying to set the margin of an object from JavaScript. I am able to do it in Opera & Firefox, but the code doesn't work in Internet Explorer.
Here is the JavaScript I have:
function SetTopMargin (ObjectID, Value)
{
document.getElementById(ObjectID).style.marginTop... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318158",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "26"
} |
Q: What is the difference between the KeyCode and KeyData properties on the .NET WinForms key event argument objects? The two key event argument classes KeyEventArgs and PreviewKeyDownEventArgs each have two properties, KeyCode and KeyData, which are both of the enumeration type Keys.
What is the difference between the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318160",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "51"
} |
Q: Best way to manage costly scrolling in JavaScript? We have a UI widget on our main UI that uses JavaScript to respond to scrolling events from the browser. The response to each scroll event is relatively expensive. A user can easily "queue" up a large set of scrolling events, while the first several are being proces... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318161",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: UAC/VS/W2K8: Why does VS not launch with admin privleges when I am in the Administrators group? Server 2008 machine with SP1, Visual Studio 2008 with SP1. My user; Developer, is in the local Administrators group. That said, some actions I perform in Visual Studio (use the properties window of a web application to in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318163",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Minimal runtime for Mono for a Vb.net VS2005 app on Windows? Does anyone know, or have a link to an article or a step by step tutorial, that would tell me how to distribute a .net MONO application with a minimum install? The full package of Mono is like 75 MB but I know al lot of that is the compiler and libraries t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318175",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is JCE needed if you have LDAP? Do you need to have JCE embedded in your Java application when you already have LDAP authentication in place?
A: I believe it depends on what kind of authentication you're doing with the LDAP server.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/318185",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: What's the most bullet-proof way to upload large files in a web app? We have to accept large file uploads (video content) and want to do that in a way that works well across all standards-compliant browsers and plug-ins. Our current setup looks like this:
*
*SWFUpload
*input type="file" for graceful degradation
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318186",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: ActiveMQ web console doesn't work with embedded broker I have an embedded broker completely configured through java code (no deployable xml files). When I point my browser to the web console I just get a 404, and an lsof shows that nothing is listening on 8161. Is it possible to use the web console with only java co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318193",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Display arbitrary size 2d image in opengl I need to display 2d images in opengl using textures.
The image dimensions are not necessarily powers of 2.
I thought of creating a larger texture and restricting the display to the part I was using but the image data will be shared with openCV so I don't want to copy data a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318194",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to filter out null elements of an array in MS Access I'm generating titles out of a few other fields, and want the "right" way to do:
Me.Title.Value = Join(Array([Conference], [Speaker], partstr), " - ")
Except any of [conference], [speaker] or partstr might be null, and I don't want the extra "-"'s. Are there... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318198",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: File structure for javascript-based web application I'm planning to write a javascript-based web application. I'm wondering what the best way to implement it in terms of file stucture is.
There is one main page (main.html) containing a menu and a main div section. The way it works is simple: When the user clicks on ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318199",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Realign namespace definitions with file structure Like all developers with OCD I try to organise my namespaces within our project so that they match where the file they are contained within sits of disk.
However after a pretty massive refactoring session within VS.NET I've moved files within projects and created new... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318201",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I search in files (for example in Java files) in Vista? Is there a way or tool for Vista I can use to search for content in Java files? (I do not have an Eclipse project set up for it)
I used to be able to do it easily in the windows search tool when I had Windows 2000.
Edit: I have already enabled "search f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318206",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How should I cast for Java generic with multiple bounds? Is it possible to cast an object in Java to a combined generic type?
I have a method like:
public static <T extends Foo & Bar> void doSomething(T object) {
//do stuff
}
Calling this method is no problem if I have a class that implements both interfaces (F... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318208",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: Compare equality between two objects in NUnit I'm trying to assert that one object is "equal" to another object.
The objects are just instances of a class with a bunch of public properties. Is there an easy way to have NUnit assert equality based on the properties?
This is my current solution but I think there may ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318210",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "155"
} |
Q: php/pear package for "remember me on this computer" I know this is usually done with cookies, but I am getting unpredictable results on different browsers and decided to look for a pear package that focuses on this. Just wondering if there's a package (HTTP_Client for example?) that anyone has had success using for... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318214",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: ASP.NET MVC Authenticate is it possible to create something like this i ASP.NET MVC beta 1
i have tried but the
override bool OnPreAction(string actionName,
System.Reflection.MethodInfo methodInfo)
does not exsist anymore and
override void OnActionExecuting(ActionExecutingContext filterCo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318215",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: SQL Server Hash Indexes When using the CHECKSUM column type to artificially create a hash index, is the lookup actually O(1) or is it still O(lg n) like it is for a clustered index? I have a table from which I will select based on its ID column and I need the lookup to be as fast as possible, so is the clustered ind... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318219",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: How can I programmatically create a Windows VPN connection? I have a support environment where we connect to many of our customers' systems using VPN and Remote Desktop. Right now, support personnel have to manually set up the VPN connection on their workstation. Is there a way to programmatically create the VPN con... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318233",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: How do you validate that a string is a valid IPv4 address in C++? I don't need to validate that the IP address is reachable or anything like that. I just want to validate that the string is in dotted-quad (xxx.xxx.xxx.xxx) IPv4 format, where xxx is between 0 and 255.
A: Here's one straightforward method.
bool Is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318236",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "53"
} |
Q: How do I set environment variables from Java? How do I set environment variables from Java? I see that I can do this for subprocesses using ProcessBuilder. I have several subprocesses to start, though, so I'd rather modify the current process's environment and let the subprocesses inherit it.
There's a System.geten... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318239",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "388"
} |
Q: Tomcat context.xml files, is there a hierarchy? I am trying to use symbolic links in one of the applications I have running on Tomcat5. Thanks to some help from another StackOverflow question I was able to do it
by creating a context.xml file in
/...myapplication/META-INF/context.xml
I am now trying to implement ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318241",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Problems in ClassLoaders for Long running Tomcat process We have hosted our web applications on Tomcat 6.0.18 and experienced the following problem:
There are two web apps WebApp1 and WebApp2, both are same system but of different versions.
Now the problem is when the tomcat has been running for a week or longer ti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318243",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: RoR: named_scope, all records created within last 7 days? how do i define a named_scope to return all the records that were created within the last 7 days, and then how do i use that named scope in a controller?
A: I would recommend watching the Railscast Episode on named_scope.
Ideally, the code you're looking for... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318246",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Preparing a development tools machine I am working on a small project with a few friends and need to set up a server to run our tools. I looked around at hosted solutions like Unfuddle but they don't provide a CI server.
I am now considering buying a Linode and running the following on it:
*
*Mail : ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318250",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: string separation and formatting in C I have a string like "1234567890". Now I need to store/print out this with the following format,
123-456-7890
What is the best method to implement this in C?
Thanks for comments/answers.
A: There will be two schools of thought on this as far as what is "bes... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318255",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: .mobi is it worth it? Where is .mobi headed? Will the mobile devices use proprietary browsers that simplify a .com site or are they going to use browsers on a .mobi basis? I have a feeling it will be a flop... not sure though.
Thanks
A: My feeling is that smart phone browsers are getting more and more like desktop ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318258",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Should I use self-signed certificates in general? For SVN in particular? How secure is it to use self-signed certificates? As far as I understand it, an attacker could pretend to be my server if I don't have a certificate from an authority. Is this much of a risk?
Should I buy a certificate for Subversion?
A: The... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318263",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Launching a Process from a Service I'm trying to launch another process from a service (it's a console app that collects some data and writes it to the registry) but for some reason I can't get it to launch properly.
I basics of what I'm am trying to do is as follows:
*
*Launch the process
*Wait for the process ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318265",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to shift your paradigm to test-driven development I've had been hearing about test driven development for a couple years now, and I never really paid too much attention to it from a practical level until recently when I started getting more interested in the .NET MVC. I've been playing around a lot with the MVC ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318269",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: WPF MouseLeftButtonUp Not Firing When I use the MouseUp event, I can get it to fire with a mouse right-click. But MouseLeftButtonUp won't fire with either click!
<Button MouseLeftButtonUp="btnNewConfig_MouseUp" Name="btnNewConfig">
<StackPanel Orientation="Horizontal">
<Image Source="Icons\new.ico" Heig... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318288",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: Elegant way of downloading images to iPhone PHP5.2.x back end. The text data transfer is using JSON objects.
Am looking at how best to transfer around 10, 30kB PNG images from the server to the iPhone client.
Have looked at Base64 encoding the images on the server and using JSON to transport. However this does co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318297",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Set a variable to the smaller of two other variables When I try to use the code below I get a duplicate variable error because variables are immutable. How do I set the smaller of the two variables ($nextSubPartPos and $nextQuestionStemPos) as my new variable ($nextQuestionPos)?
<xsl:variable name="nextQues... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318303",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: mysql stored procedure question I have a table with a credit and debit column.
I need to get the highest balance out of that, and I think a stored procedure is the way to do it, but I have no idea how.
I need to start with the first row, add the debits, subtract the credits and store the value A.
Second row is A+deb... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318311",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Transparent Window (or Draw to screen) No Mouse Capture In an app I'm coding I would like to make an alert message to appear that displays a large semi-transparent warning message without affecting the users work. Basically I will fade in the message but never set it's opacity to 1 and I want the user to be able to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318327",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: How can I have the user create a has_many :through table without any user-input attributes? I have two models (users and courses) and a JOIN table that allows enrollments in the course:
class User < ActiveRecord::Base
has_many :enrollments, :dependent => :destroy
has_many :courses, :through => :enrollments
end... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318333",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Monitoring processes to see if they've crashed in vb6 I've got a program that tends to crash quite often while I'm asleep and I need to keep it running. So I thought I might writeup a vb6 application that monitors the process list, if something disappears it will relaunch it. Anyone know of an easy way?
A: You co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318334",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Moving a DOM element containing a dynamically created script tag I'm using the Fish Gadget (http://abowman.com/google-modules/fish/) within a wiki based CMS, and need to reposition the gadget from one HTML element to another. (Note: the fish gadget is an example -- the problem occurs with other gadgets as well.)
If ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318336",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Create a DSL vs. Embed an Existing Language This often comes up: your application has gotten extensive enough that it's time to add some programmability into it to make it flexible. One example might be a finance application - you want to add a formula editor so that you can create your own custom formulas without h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318340",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to fopen() on the iPhone? The iPhone SDK docs claim fopen() is a supported method of file access but I am unable to get it to return a FILE handle. I am accessing a directory which is included in my project. I have tried fopen "filename","dir/filename","./filename","./dir/filename","/dir/filename" all returnin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318341",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Using The StackTrace To Infer The Caller Of A Method Edit: Warning - I now realize that the following technique is generally regarded as a bad idea because it creates hidden dependencies for the sake of looking neat.
I recently discovered that you can use the StackTrace to infer information about the caller of a me... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318347",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Visual Studio Crashes when using Crystal Reports Group Editor I have a crystal report in my Visual Studio 2008 ASP.NET project, and when I choose "Group Expert" from the Crystal Reports -> Report menu, Visual Studio crashes / hangs and I have to use Task Manager to close the program. This happens no matter how many... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318348",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Tool for making a video tutorial? I'd like to make a video tutorial for my SDK--one of those videos that shows the screen while some dude talks about what he's doing. Can someone direct me to easy and preferably free tools for doing so?
Desired features:
- Cuts (recording several snippets of video and putting them t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318349",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: SQL Conditional Order By I am doing a join on two tables. One is a user's table and the other a list of premium users. I need to have the premium members show up first in my query. However, just because they are in the premium user table doesn't mean they are still a premium member - there is an IsActive field that ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318356",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Timed Tasks (cron-like) in PHP Is there a full featured, job scheduling package available for PHP? I'm looking for the PHP equivalent to Java's Quartz. I'm fine having things triggered externally from cron to drive the system. The functionality I'd be looking for:
*
*Ability to register task (class/method) to be ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318361",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Fetching pictures from the net and displaying it sequentially
*
*I want to create a scrollable list of pictures fetched from the internet and give the user the ability to click on it. How do i go about doing it in WinForms/C#? Is it possible to add picturebox control/ controls to the listBox?
*I tried adding a li... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318368",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Exception handling models of GCC GCC supports Setjump-longjump (sjlj) and Dwarf2 table-based unwinding (dw2) exception handling models. What is the difference between the two models and how to choose the appropriate model? Why is Dwarf2 table-based unwinding (dw2) the more efficient model? I understand that the two ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318383",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Basics of SharpZipLib. What am I missing? I have the following method in my code:
private bool GenerateZipFile(List<FileInfo> filesToArchive, DateTime archiveDate)
{
try
{
using (ZipOutputStream zipStream = new ZipOutputStream(File.Create(GetZipFileName(archiveDate))))
{
zipStream... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318387",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Use GDB to examine Objective C class from crash (HandleDelegateSource bad access) I am trying to debug an intermittent error on the iPhone, a crash with a trace that looks like:
objc_message_send
__invoking__
[NSInvocation invoke]
HandleDelegateSource
MainRunLoop
....
When GDB stops, I'd like to be able to determin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318388",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Running numpy from cygwin I am running a windows machine have installed Python 2.5. I also used the windows installer to install NumPy.
This all works great when I run the Python (command line) tool that comes with Python.
However, if I run cygwin and then run Python from within, it cannot find the numpy package.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318390",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Why does C++ compilation take so long? Compiling a C++ file takes a very long time when compared to C# and Java. It takes significantly longer to compile a C++ file than it would to run a normal size Python script. I'm currently using VC++ but it's the same with any compiler. Why is this?
The two reasons I could thi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318398",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "608"
} |
Q: Can this build system be sped up? Our build is dog slow. It uses nested gnu makefiles on linux. It creates three builds for three different targets from the same source tree. It uses symlinks to point to each of the three parallel directory trees in turn. We can do partial builds by using make inside subdirectories,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318405",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: ApplicationVerifier is not detecting handle leaks, what do I do? I did select the executable correctly, because I can get it to respond to certain things I do. But I can't get ApplicationVerifier to properly detect a handle leak.
Here is an example:
int APIENTRY _tWinMain(HINSTANCE hInstance,
H... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318420",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Any good converter for GB, Big5, Unicode Any good converter for GB, Big5, Unicode?
Convert GB to Unicode, Unicode to GB, Big5 to Unicode, Unicode to Big5, GB to Big5.
A: iconv should be able to do the job. It's part of the GNU C Library.
http://en.wikipedia.org/wiki/Iconv
http://www.gnu.org/software/libiconv/
A:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318434",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Truststore and Keystore Definitions What's the difference between a keystore and a truststore?
A: *
*A keystore contains private keys. You only need this if you are
a server, or if the server requires client authentication.
*A truststore contains CA certificates to trust. If your server’s
certificate is signed by... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318441",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "317"
} |
Q: UI to indicate a "Partially-required" field in web form? I have a set of radio buttons where a selection is required. In addition, there is an optional text box that shows up next to one of the selections.
What would be the best way to make it clear what is required and what is optional?
<strong>User Availability:<... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318449",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Skinned C# form with huge black flicker while resizing! I'm trying to create some skinned forms (just the border and caption) with a different approach than you usually see but I'm having some issues with form flickering while I resize the form.
I don't know how else to explain the problem, so here's a video I creat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318452",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to identify the GC Finalizer thread? I have a .NET (C#) multi-threaded application and I want to know if a certain method runs inside the Finalizer thread.
I've tried using Thread.CurrentThread.Name but it doesn't work (returns null).
Anyone knows how can I query the current thread to discover if it's the Final... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318462",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: SQL Server - update one table with first and last rows from another table I have a couple of tables which are used to log user activity for an application. The tables looks something like this (pseudo code from memory, may not be syntactically correct):
create table activity (
sessionid uniqueidentifier not null,
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318473",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Database files and ASP.NET Login controls I was trying the ASP.NET login control tutorial and everything works well. However, I do not know how to have the Log-in control use my own database (SQL Server 2005) instead of using it's mdf file. I also have no idea where this file was created from since it doesn't show u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/318475",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.