I am not too familiar with the specifics of every javascript implementation on each browser. I do know however that using setTimeout, the method passed in gets called on a separate thread. So would using a setTimeout recursively inside of a method cause its stack to grow indefinitely until it causes a Stack Overflow? Or would it create a...
I'm having trouble making something happen over and over without a for loop. Take a look at this:
package {
import flash.display.Sprite;
import flash.events.Event;
public class Main extends Sprite {
public function Main() {
addEventListener("done", caller);
caller();
...
I have developed my homework from the post.
Problem: to do posts similarly as in SO so that the first post is the question and the other posts are replies after the question.
Question: How would you improve the interfaces? Would some simpler data structure make things easier?
...
Hello there,
i've been trying to write a java class to solve the n queens problem using some sort of stacking and recursion, the answers are stored in grids(two dimensionnal arrays), but i've hit a dead wall which is stack overflow for recursion at n=8 (max recursion depth reached 2298)
So i've been wondering if there is some way to bypa...
In embedded software, how do you handle a stack overflow in a generic way?
I come across some processor which does protect in hardware way like recent AMD processors.
There are some techniques on Wikipedia, but are those real practical approaches?
Can anybody give a clear suggested approach which works in all case on today's 32-bit emb...
Hi,
I am trying to find out why i am getting a stack overflow exception. I am creating a simple card game for a school assignment and when i clone the cards to return them i get the stack overflow exception.
So i got this card class:
public class Card : ICloneable
{
....
#region ICloneable Members
public object Clone()
...
(A jQuery Question about filtering stuff on StackOverflow. I swear, it doesn't belong on Meta!)
Question
I am looking to use a Greasemonkey script to filter the questions on the Home, Questions, and Unanswered Page. Right now I have a solution for it (below), but it takes a few seconds to process, and I was wondering if there is a bette...
I am trying to create a stackoverflow type notice message. I found most of the code I needed from other posts but was having problems closing messages if multiple notices were used. Ideally if the second box out of 3 was closed, then it would fade away and the 3rd box would take the second's place
HTML
<div class="message" style=...
When editing JSPs in Eclipse, I periodically get stack overflows. Once I get one, each time I click a character I get a pop-up telling me there was another stack overflow. This continues until I close the JSP and re-open it, at which time it's fine for a while.
org.eclipse.jst.jsp.core.internal.parser.JSPSourceParser:
input could...
Most web applications have a Location field, in which uses may enter a Location of their choice.
How would you classify users into different countries, based on the location entered.
For eg, I used the Stackoverflow dump of users.xml and extracted users' names, reputation and location:
['Jeff Atwood', '12853', 'El Cerrito, CA']
['Jarr...
I'm writing a screen-scraper for StackOverflow. The bit I'm writing now takes the HTML and puts all the information into a model object. I've run into a bit of bother while parsing the information from an answer.
The problem is the date format that StackOverflow uses to describe absolute times. DateTime.Parse doesn't work on them. I've...
#include <stdio.h>
int doHello(){
doHello();
}
int main(){
doHello();
printf("\nLeaving Main");
return 0;
}
When you run the program quits without printing the message "Leaving Main" on the screen. This is a case of Stack Overflow and because of which program is terminating but I don't see any error messages on the co...
I am starting to learn ocaml, and am really appreciating the power of recursion in the language. However, one thing that I am worried about is stack overflows.
If ocaml uses the stack for function calls, won't it eventually overflow the stack? For example, if I have the following function:
let rec sum x =
if x > 1 then f(x - 1) + x...
In RTOses like vxworks whenever we create a task the stacksize is specified . Can we write a routine in C which checks if the stack is overflowing or not for the task ?
...
Attempting to be DRY, I'm trying to assign to a model's instance variable after object initialization.
class WorkNote < ActiveRecord::Base
def after_initialize
self[:clockin]= WorkNote.last_clockout
end
def self.last_clockout
WorkNote.find(:first, :order => "clockout DESC").clockout
end
end
However, the method call i...
Hello,
How can I implement background processing queues in my ASP.NET MVC web app? While most data changes, updates etc. need to be visible immediately, there are other updates that don't need real time processing which I would like to hand off to a lower-priority background process which will take care of it at its own pace.
As an exa...
In all my web-projects I've made 1 unique nickname for 1 user (i.e. in DB table User has primary key ID and unique varchar 'nickname' or 'login' or whatever else).
At Stackoverflow we can see just the opposite solution and many users have the same nickname.
Futhermore, user can change his nickname here whenever he wants.
I wonder wha...
Hello world.
Recently I became very interested in grid computing because I am trying to solve a problem which requires huge, huge amounts of processing power that can be performed in parallel. My question is if there are any grids that are publicly accessible to harness the computing power of thousands of computers? I know only of the W...
I have a problem with openMP in i7 CPU.
I have used openMP just to parallel a 'for' loop. Algorithm was used on several different PC's and worked without any problem. Recently, we tried to run it on i7 system and we got a problem on it. Software usually runs for some time and after several cycles it reported "not enough memory" and we t...
In the highscalability blog, Todd Hoff talks about the wiki architecture SO adopted (initially), crunches that followed and mentions the painful refactoring needed to get back on track.
To quote:
Stack Overflow copied a key part of
the Wikipedia database design. This
turned out to be a mistake which will
need massive and pai...