Just an accumulation of worldly wisdom in question answer format. Q: "How Do You Get Holy Water?" A: "You Boil The Hell Out Of It."

Member Avatar
Member Avatar
+0 forum 19

I have a problem in this code .this code is for adding question to database.please advise thanks in advance. <?php include('includes/header.html'); ?> <div class="row"> <div class="col-md-offset-2 col-md-8"> <h1>Add Quiz</h1> <form action="process_quizAdd.php" method="post"> <div class="form-group"> <label for="question">Ask Question</label> <input type="text" class="form-control" id="question" name="question" placeholder="Enter your question here"> </div> <div class="form-group"> <label for="correct_answer">Correct answer</label> <input type="text" class="form-control" id="correct_answer1" name="correct_answer1" placeholder="Correct answer 1"> </div> <div class="form-group"> <label class="sr-only" for="correct_answer2">Correct answer 2</label> <input type="text" class="form-control" id="correct_answer2" name="correct_answer2" placeholder="Correct answer 2"> </div> <div class="form-group"> <label class="sr-only" for="correct_answer2">Correct answer 2</label> <input type="text" class="form-control" id="correct_answer3" name="correct_answer3" placeholder="Correct answer 3"> </div> <div class="form-group"> <label for="wrong_answer1">Wrong Answers</label> <input type="text" …

Member Avatar
Member Avatar
+0 forum 3

Hello, How I can bridge two calls in SIP by sending A party an indication to change SDP to B party and start playing the B party annoucement to A so A party will be hearing the ringing of B or annoucement of B. A Party SIP/GW B Party 1|---------INVITE---------->| | |<----------100------------| | | |------------IAM---------->|2 | |<=========Audio===========| | | |3 4|<------183 with SDP-------| | |<=========Audio===========| | 5| | | 6| | | 7| | | | |------------REL---------->|8 | |<-----------RLC-----------|9 10|-----------ACK----------->| | Is it possible to change the SDP and make the call communication between A and B directly in preanswer …

Member Avatar
+0 forum 0

Good day to everyone. I am new to Visual basic and I am having a hard time at school because they dont teach all the codes in visual basic 6.0 and they want us to have self study and all. What a bummer. For our midterm exams, our professor wanted us to make a program for interview. A simple question and answer program with a database. So we'll be using VB6.0 and MSAccess. It is an interview program that would interview working people of what might their problem be in there office. More likely a survey. I was hoping if …

Member Avatar
Member Avatar
+0 forum 5

A solution for the "Hartals" problem. Problem description: http://icpcres.ecs.baylor.edu/onlinejudge/external/100/10050.html Author: [Joana Matos Fonseca da Trindade](http://joanatrindade.wikidot.com) #include<stdio.h> int main() { int i,j,k,a,b,h,hd[100000],n,p,pd[150],tc,t,s; while(scanf("%d",&tc)==1) { for(i=0;i<tc;i++) { h=0; s=0; scanf("%d",&n); scanf("%d",&p); for(j=0;j<p;j++) scanf("%d",&pd[j]); for(j=0;j<p;j++) for(k=pd[j];k<=n;k+=pd[j]) if(k%7!=0 && k%7!=6) { h++; hd[h-1]=k; } for(a=1;a<h;a++) for(b=h-1;b>=a;b--) if(hd[b-1]>hd[b]) { t=hd[b-1]; hd[b-1]=hd[b]; hd[b]=t; } for(t=1;t<h;t++) if(hd[t]==hd[t-1]) s++; printf("%d\n",h-s); } } }

Member Avatar
+0 forum 0

I a new c++ programmer, and i started to solve the SPOJ online challenges just practising , and because of my few experiance.. it gives me wrong answers alwayes. See [ **the Challenge** ](http://www.spoj.com/problems/PALIN/) here. My Code : #include<iostream> #include <vector> using namespace std; int reverse(int input) { int last_digit; int reversedNum = 0; while (input != 0) { last_digit = input % 10; reversedNum = reversedNum * 10 + last_digit; input = input / 10; } return reversedNum; } bool check(int input) { if (reverse(input) == input) { return false; } else { return true; } } int main() …

Member Avatar
Member Avatar
+0 forum 2

I can subnet and im going for my CCENT exam Aug 20 and im a little stuck on this question, can someone show me in a really easy way on how the answer is got. I know the answer is 192.168.1.22 but how?: What is the last Usable host address on the third subnet for the following address and mask combination - 192.168.1.0 255.255.255.248?

Member Avatar
Member Avatar
+0 forum 3

I need to create a form where you have two possible finishing pages dependent on the answers you give in the form. For instance if you have the question: Do you like sweets? And have the two possible outcomes Yes or No The answer yes takes you to a yesilikesweets.php or if you answer no when you hit submit it takes you to noihatesweets.php Any help greatly received.

Member Avatar
Member Avatar
+0 forum 2

I just try to calculate 5.3 - 5, and the answer is a bit off. this is the code: [CODE]double answer = 5.3 - 5; println("answer = " + answer);[/CODE] and the output is: "answer = 0.2999999999999998" instead of 0.3. I use Eclipse on win 7 32 bit as a compiler and editor. Any idea why this is happening and how to fix this? tnx!

Member Avatar
Member Avatar
+0 forum 5

Hello! I want to know exactly What Is [COLOR="Green"]Difference[/COLOR] Between The [COLOR="Red"]FileFilter[/COLOR] and [COLOR="Red"]FileNameFilter[/COLOR] in java.io.*; Do they both work the same ? Please answer ....... [B]-> {Pratik Bhatt}[/B]:)

Member Avatar
Member Avatar
+0 forum 2

I've been learning python during one semester, and pygame in one week... Im making a simple kid guessing game where random images appear with one word. click on the correct image that the word describes and a little green right image appears and a red cross 'wrong' if it is wrong.... It's not working, I dunno why, I think it's a logical error and I am going nuts please please help. [CODE] import pygame,os from pygame.locals import * import random pygame.init() clock = pygame.time.Clock() screen = pygame.display.set_mode((1000,700)) pygame.display.set_caption('level 1') background = pygame.image.load('background.jpg') background = background.convert() screen.blit(background,(0,0)) #random pictues pic = …

Member Avatar
Member Avatar
+0 forum 6

In a gymnastics or diving competition each contestant`s scores is calculated by dropping the lowest scores received and then adding the remaining scores.Create a program that allows the user to enter 8 judge`s scores and outputs the points received by the contestant.Format the output with two decimal places. ( A judge awards points between 1 and 10, with 1 being the lowest and 10 being the highest )

Member Avatar
Member Avatar
-3 forum 4

Write a program that will correct a C++ program that has errors in which operator, << or >>, it uses with cin and cout. The program replaces each (incorrect) occurrence of cin<< With the corrected version cin>> And each (incorrect) occurrence of cout>> With the corrected version cout<< For an easier version, assume that there is always exactly one blank space between any occurrence of cin and a following <<, and similarly assume that there is always exactly one blank space between each occurrence of cout and a following >>. For a harder version, allow for the possibility that there …

Member Avatar
Member Avatar
+0 forum 6

I just read on a blog that Answers.com is becoming one of the top visited sites. I would have thought it be Yahoo Answers. I also have used Cha Cha answers in the past. So Im wondering, do you use these sites, and if so, why?

Member Avatar
Member Avatar
+0 forum 6

The End.