Here we go again.

Member Avatar
Member Avatar
+0 forum 32

Hi, for my final thesis I choose to elaborate about fuzzing. When I will defending my thesis I should have some results, some bugs. I would like to test some unix program but I need to choose carefully. I need the probability of finding a bug to be the greatest. Any ideas? Thank you!

Member Avatar
Member Avatar
+0 forum 8

Hi guys, I had a test the other day and missed a question out because it confused the hell out of me. I dont know if it was a badly written question or just me. Heres the program below: public static class Mailing { public static void SendTestEmail() { List<Person> people = new List<Person>(); people.Add(new Person("Joe", "Bloggs", "Joe.Bloggs@foo.bar")); people.Add(new Person("John", "Smith", "John.Smith@foo.bar")); people.Add(new Person("Ann", "Other", "Ann.Other@foo.bar")); string emailSubject = "Training cancellation notification"; string emailText = "Dear user, this is an email to inform you that your training course on the 1st of January has been cancelled"; SendEmail(emailSubject, emailText, people); } …

Member Avatar
Member Avatar
+0 forum 8

Hey guys I had an assignment to recursively write the Towers of Hanoi then test it. I did not have too much of an issue getting the program written But I am not sure what the book means by test the efficiency do they want the number of moves my program makes, or do they want the time it takes to run. And how do I get either one? help is appreciated [CODE] import TerminalIO.KeyboardReader; public class towers { public static void main(String[] args) { KeyboardReader reader = new KeyboardReader(); int numberofRings = reader.readInt("Enter number of Rings: "); move (numberofRings, …

Member Avatar
Member Avatar
+0 forum 10

Hello, I was wondering if there is a way to display formatting in a richtextbox eg. If i put **test** the word "test" would be i bold (only the word "test" and the rest would stay the normal). or if i put `test` the word "test" would be i size 10 (only the word "test" and the rest would stay the normal size). Please help

Member Avatar
Member Avatar
+0 forum 3

Hi All, not the usual, "how can you help me" thread, but a heads-up on a templating engine I've been using for a while called RainTPL. A few users have posted threads of late asking about templates. I thought I'd give this one a plug, especially as Federico (the author) has just published a speed test page on his site: [url]http://www.raintpl.com/PHP-Template-Engines-Speed-Test/[/url] If you've used templaters like Smarty, RainTPL should seem very simple to use - just "8 tags and 2 methods". If you're interested, I've documented a multilingual implementation at [URL="http://diafol.org/rain.php"]diafol.org/rain.php[/URL], which is itself built on RainTPL. Anybody have any …

Member Avatar
Member Avatar
+0 forum 18

[CODE] #include <iostream> #include<stdio.h> #include<string.h> using namespace std; int main() { // cout << "Hello world!" << endl; int t,i,j,a,flag; char str[1000001]; cin>>t; while(t--) { a=1; scanf("%s",str); for(i=0;i<=strlen(str);i++) {flag=0; if(!isdigit(str[i])) {flag=0; for(j=i-1;isdigit(str[j]);j--) { if(str[j]!='0') { flag++; a*=str[j]-'0'; //cout<<"flag"<<flag<<" "<<a<<"A"<<endl; break; } } if(flag==0) { a=0;break; } } while(a>9) { if((a%10)!=0) { a=a%10; //cout<<"a"<<a<<endl; } else { a=a/10; } } } if(a) printf("%d\n",a); else printf("Robot hanged.\n"); } return 0; } [/CODE] This is the code for the following problem [URL="http://www.codechef.com/problems/TESTTT5"]link[/URL]. I am getting a wrong answer despite my code working for all the test cases. Can anyone tell me for which …

Member Avatar
Member Avatar
+0 forum 1

Hello everyone, my assignment is to calculate each student's test average and final letter grade from a class of 20 students with 3 tests. The scores for each test are located in the text files that I am attaching. I have worked on this code for some time now, but in the output, all of the averages are incorrect. Here is an example of what a section of an output might look like: Student #1: Class Average: 95 Final Grade: A But I want to display this for each of the 20 students. Instead, it gave me a class average …

Member Avatar
Member Avatar
+0 forum 6

Hi guys, my keyboard has not [B]Break[/B] key, so i cant braek a test run with the conventional [B]Ctrl + Break[/B]. Is there any other way to break a test run? Thanks in advance.

Member Avatar
Member Avatar
+0 forum 7

Okay, so I have a rather easy problem that I can't seem to figure out. I'm getting cannot find symbol errors for T item=(T)input.next(); The program is a test file for a Binary Tree program. I was told the input 'item' has to be in T type. Obviously they have to be in T type to be accepted by the insert, delete, and find methods in the actual tree program. I guess what I'm asking is how to make it so I can declare it as such in the test file. Tree: [CODE] package treePkg; import java.lang.SecurityException; import java.util.Scanner; import …

Member Avatar
Member Avatar
+0 forum 1

Hey I am trying to do a project on Test Engine. I need to retrieve random rows of questions from access database. I did the following code, but every time I once close and run it again, the sequence of questions is same. How can I change the sequence every time? [CODE] private void button1_Click(object sender, EventArgs e) { OleDbConnection con = new OleDbConnection(Connection.conStr); OleDbCommand cmd = new OleDbCommand("select * from dell order by Rnd(serialNumber)", con); OleDbDataAdapter adp = new OleDbDataAdapter(cmd); DataSet ds = new DataSet(); adp.Fill(ds, "new"); dataGridView1.DataSource = ds.Tables["new"]; } [/CODE]

Member Avatar
Member Avatar
+0 forum 5

I have two classes. The first class is called [ICODE]EmployeePayRoll.java[/ICODE] (this compiles fine) and the second is called [ICODE]TestEmployeePayRoll.java[/ICODE] (this does not compile). The trouble I'm having is that I'm trying to pass in methods as parameters when I instantiate my objects in the main method of the test class. I've tried a bunch of different things and I just get errors. I've had static/non-static related errors, null pointer errors, etc... I've got some tweaks I'm going to make when I get the test class to compile but this is holding me up. Any advice or suggestions would be appreciated. …

Member Avatar
Member Avatar
+0 forum 5

Hello All, On my local machine, my website works perfectly. All the functionality that I have made works great. I then copy my folders from my local machine to my test development web server. Once this occurs, certain functionality of my website no longer works, yet it is a direct copy from my local machine. Using MVC 2.0 and am copying to Windows Server 2008 machine. Any ideas of what may be happening?

Member Avatar
Member Avatar
+0 forum 1

Hi all, ive got a bit of an annoying problem regarding JUnit 4.5. I've created a bunch of unit tests which work properly when I right click the class and press 'Test' (in Netbeans). However, when I right click the whole project and press 'Test', i get a ClassNotFoundException. I checked the classpaths of the classes and the jar file of JUnit is added in all of them :/ This problem all started when I changed the directory for my tests' location - but it doesnt make any sense to me as they work when tested individually! Any suggestions? Thanks

Member Avatar
+0 forum 0

When I finally got the input to work in this code it stopped displaying the txt on the screen. Any suggestions on how to fix this. [code]import pygame, sys from pygame.locals import * import time mo = 0 # set up pygame pygame.init() # set up the window windowSurface = pygame.display.set_mode((500, 400), 0, 32) pygame.display.set_caption('Test') # set up the colors BLACK = (0, 0, 0) WHITE = (255, 255, 255) RED = (255, 0, 0) GREEN = (0, 255, 0) BLUE = (0, 0, 255) # set up fonts basicFont = pygame.font.SysFont(None, 48) # draw the black background onto the …

Member Avatar
+0 forum 0

Hello, I have a class named Time and when I run it I can enter the time, increase the hours and minutes, the minutes and hours will stored in their fields. I have another class called TimeTest, when this class is running, it needs to display the test results of my Time class, test results are basically what time I entered and what time it is. I need to return the results on terminal. Like the time is etc Time was increased x timees I used ++ increment on hours and minutes when increasing Here is my time class code …

Member Avatar
-1 forum 0

Hello all, I am taking a course in C++ and in Ada. Our professor has given us the choice to be tested in language profficiency in either C++ or Ada. The test format will be of simpler programming problems and more geared towards shortanswer concepts. I was wondering if anyone had a good introductory C++ or Ada tutorial that they highly recommend. (I have already googled some, but find they are either far to advanced or far too simple) Also, do you have any practice tests/exams that I could have? Thanks in advance!

Member Avatar
Member Avatar
+0 forum 5

The End.