stackoverflow

Catching a StackOverflowException

How do I catch a StackOverflowException? I have a program that allows the user to write scripts, and when running arbitrary user-code I may get a StackOverflowException. The piece running user code is obviously surrounded with a try-catch, but stack overflows are uncatchable under normal circumstances. I've looked around and this is th...

StackOverflow in List(Of T)

I have a program that uses Lucene.net in ASP.NET (VB.NET), when you search a term, results are stored in the Lucene.net data structure "hits". I want to read out the hits into an data structure and work with them, after that I display them in a DataGrid. By searching a term with a lot of results, often (but not always) there is an erro...

How to implement stackoverflow's "related questions" feature using jquery?

With Stackoverflow's "Ask Question" feature, when I've finished typing the title of the question I'm asking, the area beneath the title would open up and display a list of "related questions." How do I implement that using jquery/javascript? Is there any plugins or open source code I could use for that? I'm building a site using Django...

How do I get of the most common words in various languages?

Stackoverflow implemented its "Related Questions" feature by taking the title of the current question being asked and removing from it the 10,000 most common English words according to Google. The remaining words are then submitted as a fulltext search to find related questions. How do I get such a list of the most common English words?...

Login system like Stackoverflow's

I want to make a login system just like Stackoverflow's which have at least Facebook, Twitter and Google openid system. Is there a all-in-one library for this purpose which can be used in Asp.Net Mvc 2? ...

Upload images component for Stackoverflow

Hi. What component is used for uploading images,when ask question in Stackoverflow: Is it third-party or WMD editor part? On official wmd editor site(wmd editor site) in demo it's visible, that uploading is possible from http external: ...

How can I ask for reopen a closed question?

How can I ask for reopen this question from user ManMohan? my question was if it is possible to add somehow my answer to the closed question from user ManMohan... his question was closed in 45 minutes without accepted answer and I think his question shouldnt be closed, because it was answerable his question was: How can I print the num...

java StackOverflowError when local and instance objects creation

Hi can anybody please explain me why is this code snippet giving me StackOverflowError I really appreciate if you can explain what is happening when instanceObj initializing and calling ObjectTest constructor and java.lang.Object constructor. It seems to me ObjectTest constructor loop over and over.But I don't know exact reason? So any ...

My regex is causing a stack overflow in Java; what am I missing?

I am attempting to use a regular expression with Scanner to match a string from a file. The regex works with all of the contents of the file except for this line: DNA="ITTTAITATIATYAAAYIYI[....]ITYTYITTIYAIAIYIT" in the actual file, the ellipsis represents several thousand more characters. When the loop that reads the file arrives on...

StackOverflowError using joda-time new Period(long)

First, sorry this is so long. I probably don't need all the code, but wanted to be sure. Second, my actual question is, am I doing something wrong, or is this a bug in the joda-time library? I'm trying to use joda-time (1.6.1) to calculate, then format time durations. I'm currently using Period, which may be the wrong choice. Please l...

PHP: How to layout records horizontally and vertically

I have a users table which I want to display like the stackoverflow users page. So say display 5 records then take a new row, display 5 records, take a new row... What's the best way to achieve this? Thanks, Billy ...

stackoverflow exception in DataView row filter

Hi All, I am getting "An unhandled exception of type 'System.StackOverflowException' occurred in System.Data.dll" in my DataView rowfilter property. I'm not getting any stack trace for that. So can any one help me on that. Please find below the code where i'm getting the error in filterView. DataSet metalAttributeDS = L...

Eclipse started crashing

Hi everyone, I have been using eclipse for a couple of weeks now, and all of a sudden it has started crashing with this error: An internal error occurred during: "Selection Job titile". java.lang.StackOverflowError Here's some other info: It's the most recent build of Eclipse Helios I have installed subclipse I use mylyn a bit My ...

Authentication Like StackOverflow in C#

Guys, Can Anybody tell me, I want to give same Authentication Mechanism (No Registration on the site) as of Stack overflow, Is there any link Or Something to start with. ...

Does Stackoverflow use Linq to SQL generated classes directly?

I wonder if someone knows whether Stackoverflow uses the classes generated by Linq to SQL directly in their application or how they do it. Thanks. ...

Legal implications of redistributing web-content?

If you have a site that uses Javascript with no mention of a license in the Javascript, is it legal to take that Javascript, package it, and redistribute it? I'm looking to write a Google Chrome extension for Stackoverflow -- I've recently requested permissions on master.js to eliminate this ambiguity; but, now I'm curious if I had to d...

C programming language, array, pointer.

int main() { int j=97; char arr[4]="Abc"; printf(arr,j); getch(); return 0; } this code gives me a stack overflow error why? But if instead of printf(arr,j) we use printf(arr) then it prints Abc. please tell me how printf works , means 1st argument is const char* type so how arr is treated by compiler. sorry! abo...

Increase Minimum Stack Overflow Size in Mac Common Lisp 5.0

Hi, I'm relatively new to Lisp (I just know the very basics) and I'm currently trying to run an algorithmic composition program created by David Cope. It runs in MCL 5.0, and I keep getting the following error: Error in process play: Stack overflow on value stack. To globally increase stack space, increase *minimum-stack-overflow-...

Stack Overflow in multi threaded application

Hopefully someone can help me out a little bit. I have a c# application running under .NET 2.0. It's a strange app. It is listening on the network for any UDP packets. When it receives a UDP packet with the first 8 bytes spelling out 'Catalina', it parses the packet and then sends the information to an appropriate socket connection (asyn...

Fastest way to break in WinDbg for specific exception? .net 4.0 app.

Folks, Debugging a .net 4.0 app using WinDbg (I'm a beginner to WinDbg). I'm trying to break when I hit a stack overflow: (NTSTATUS) 0xc00000fd – A new guard page for the stack cannot be created Unfortunately, this overflow happens about 2-hours into a long-running process and logs tells me that it doesn't always happen at the same ti...