student-question

Scalability on the web

I've been arguing with some friends on the university, and we can't get to a point to which is the framework with more scalability for web applications (and still very fast). One calls for jsp, the other one for ruby other for php and so on. Could i ask you to clarify us on what as more scalability potential? Tks, hope I'm not duplicat...

I need a project idea for an Artificial Intelligence class. Do you have one?

I wanted to ask Stack Overflow users for a nice idea for a project that could entertain a fellow student programmer during a semester. Computer vision might look interesting, although I couldn't say if a project on that field is something that could be achievable in 4 months. What do you think? ...

Android IllegalThreadStateException in LunarLander

Hey, Just come to polishing my application and making it resume after the user has left. When the application restores I get an IllegalThreadStateException, which is quite annoying. This problem is present in the example google gives of Lunar Lander. Has anyone found a way to restore working when using surfaceView? Cheers ...

how to find sql queries question on SO

I have a test coming up soon for my Database class. I just want to ready as many questions as possible. I thought SO would work best, as I dont have to spend my time by digging through the answere for finding the correct one. I thought sql-query tag would work best for me, however, it only fetched 7 questions.. ...

What is a driver class? (Java)

Hi, I was reading through a Java textbook, and it mentions something called a "driver class". What is it, and how is it different from a normal class? ...

SQL Query for a particular problem??

Lets frame the question again--- table1{date, bID, sName, fID} {11/05,B1,A1,P1} {12/05,B2,A2,P2} {13/05,B1,A3,P1} {15/05,B3,A4,P1} {16/05,B1,A5,P2} {19/05,B1,A6,P2} This is the table and the data stored in the table is also specified... Now the query that i want is that:- Depending of fId (lets say, P1 is s...

Why passing {a, b, c} to a method doesn't work ?

Hello, I've tried to pass an initialization list {...} to a constructor and it didn't work. When I instead declared it in a method local variable (int[]) it worked flawlessly. Why is that? public class QuickSort { int[] a; public QuickSort(int[] a) { this.a = a; } public static void main(String[] args) { //...

C Program to search n-th smallest element in array without sorting?

Hi all, I wanted to write a program to find the nth smallest element without using any sorting technique.. Can we implement it as a technique used in quick sort, which divides the problem into smaller sub-problems but how is my question.. Please provide some hint.. Thankx ...

How do I design the transition functions for this pushdown automaton?

I'm studying for a test on PDA, and I want to know how to design a pushdown automaton that recognizes the following language: L = {a^max(0,n-m)b^n a^m| n,m >=0} How can I design a transition function to recognize if n-m is greater than 0? And please, if you have some course materials with exercises of this level solved, put a link, m...

xaml: trigger dialog 'Apply' button state

I want to enable 'Apply' dialog button when content of some textboxes in this dialog changes. Here what I came up with <Window.Resources> <ResourceDictionary> ... <Style x:Key="SettingTextBoxStyle" TargetType="{x:Type TextBox}"> <Style.Triggers> <EventTrigger RoutedEvent="TextBox.TextChan...

Can I cause memory leaks during debug of my program ?

I'm developing on Ubuntu 9.10 I'm writing a C program, during my tests & debugs I'm calling malloc and always remember to call free() - This is obviously just during debug. I'm curious: Am I eating up the free memory the system has which each debugging session? Or does the kernel cleans up the process memory after I shutdown my applica...

summary: malloc.c:3074 - Why does this code causes the error

The attached below C code when run gives the error summary: malloc.c:3074: sYSMALLOc: Assertion `(old_top == (((mbinptr) (((char *) &((av)->bins[((1) - 1) * 2])) - __builtin_offsetof (struct malloc_chunk, fd)))) && old_size == 0) || ((unsigned long) (old_size) >= (unsigned long)((((__builtin_offsetof (struct malloc_chunk, fd_nextsize))+...

should i concentrate on logical and puzzles part in programming, i want to be a web (flex)developer?

I'm a student not good and can't easily crack at more puzzle, complex mathematics, hard logic problems? in college i studied c++, java, oops. I'm comfortable with all syntax and writing programs and using API's and doing mashups, i can do.......... but once a friend asked help on coding contest, i was in dilemma and frustration? It was...

ASP.Net User Control Event Bubbling (C#)

Many thanks in advance. I've done my due diligence and researched for 2 days, but can't seem to wrap my mind around what online tutorials describe. The situation: Lead Programmer ups and quits. Owner of firm knows I've done some (novice) VB.NET on the side and asks me to wire up functionality between 2 custom user controls on his intr...

How can I make this work with every delimiter? - C++

Hi, I just wrote a program that tokenizes a char array using pointers. The program only needed to work with a space as a delimiter character. I just turned it in and got full credit, but after turning it in I realized that this program only worked if the delimiter character was a space. My question is, how could I make this program wor...

web and flex developer carrer question ......

i'm a student in computer science and been learning flex and actionscript 3.0 since 4 months. i know its easy to program in mxml and actionscript 3.0 is pretty easy with bunch of classes. When i try to code in c++,c in some contests, my algorithms go weak, no efficiency and i'm getting scared!! since i'm a student, i've no experienc...

NachOS + Eclipse debugging issues

Hey guys I'm trying to set up a nachos project in Eclipse on my ubuntu machine. I meticulously followed the instructions here: http://inst.eecs.berkeley.edu/~cs162/fa06/Nachos/eclipse/#nachosfs It runs fine, but when I set a breakpoint and hit debug I get: New_configuration [Java Application] nachos.machine.Machine at localho...

What's wrong with my code?

void GasPump::dispense() { bool cont = true; char stop; do{ cout << "Press any key, or enter to dispense.\n" << "Or press 0 to stop: \n"; cin.get(stop); gasDispensed = gasDispensed + gasDispensedPerCycle; charges = costPerGallon*gasDispensed; displayGasNCharges()...

what does public static void mean in java?

what does public static void mean in java? I'm in in the process of learning. In all the examples in the book i'm working from public.static.void comes before any method that is being used or created. What does this mean? ...

How do I use parameters correctly in Java and why are they advantageous?

Here is the code: class Time { public static void printTime (int hour, int minute) { System.out.print (hour) ; System.out.print (":") ; System.out.print (minute) ; } public static void main (String[] args) { hour = 11 ; minute = 30 ; printTime () ; } } Here is what terminal says when I try to compile it: david-allenders-macb...