199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for dilse4sk

hi every one. i am making a booking app in vb.net and im using sql server as my database. i am confused about table creation. I have increment of 1 in customerid which is primary key in customer table. Suppose if a customer books a room and according to the …

Member Avatar for kingsonprisonic
0
314
Member Avatar for sujan.dasmahapa

I want to display a set of buttons when a button is pressed on the page. whats wrong in this code. it's giving errors [code] <?php if(isset($_POST['submit'])) { <form method="post" action=""> <input type="submit" name="submit1" value="Style1"> </form> <form method="post" action=""> <input type="submit" name="submit2" value="Style2"> </form> <form method="post" action=""> <input type="submit" name="submit3" …

Member Avatar for veedeoo
0
167
Member Avatar for trickist17

Hey, I'm trying to do a loop in javascript, that adds an array into a variable. Because it is a bit hard to explain exactly what I want, please look at this code, which does the (for the beginning) same. [CODE] var s="one, two, three"; //this can be changed var …

Member Avatar for Troy III
0
180
Member Avatar for Graphix

Hi everyone, I'm currently working on a cross-platform project to copy data from the computer onto a USB drive quickly. [B]Main problem: EOF in the middle of the file[/B] It's going good so far, but I stumbled across a problem in my copy_file function: [CODE]int copy_file(char *source_path, char *destination_path) { …

Member Avatar for Graphix
0
2K
Member Avatar for BlackStar0703

Basically I'm trying to create an app where it generates random questions and displays them in a dialog box. I've managed to create a dialog box ok but incorporating the sql database full of questions and answers is proving difficult. I've been trying to follow this tutorial and it's the …

Member Avatar for BlackStar0703
0
133
Member Avatar for Thropian

I started making a simple drawing program, to use for a level maker, and I came across a slight issue [CODE]from Tkinter import * class Main: def __init__(self,root): w,h = root.winfo_screenwidth(), root.winfo_screenheight() current = {} canvas = Canvas(root, width = w, height = h, bd=0) canvas.pack() root.overrideredirect(1) root.geometry("%dx%d+0+0" % (w, …

Member Avatar for Thropian
0
177
Member Avatar for petrovitch

Is it possible to run command line exec in the foreground instead of the background with PHP?

Member Avatar for edwinhermann
0
159
Member Avatar for joyagopian90

Hi I am a senior in business computing and I have a project to hand to my university in order to graduate and I have chosen a student registration system but in order to accomplish that I obviously need a well designed and organized database. here are the tables I …

Member Avatar for joyagopian90
0
2K
Member Avatar for radiat

I'm studying enumeration at the minute and i've a quick question. In the following code using enum, are you limited to ouputting the sequence number of the possible values, or can you use the enum operator to output the text "green"? [CODE] #include <iostream> #include <sstream> #include <fstream> #include "conio.h" …

Member Avatar for Ab000dy_85
0
186
Member Avatar for 69MASTER

Hey i'm trying to place a ship onto my grid but my translation function is trying to iterate over None type, if someone would write a simple horizontal ship placement in translation function i'm sure i can finish the rest, thank you! [CODE]class start(object): def __init__(self): self.GameT = int(raw_input("One Player …

Member Avatar for woooee
0
437
Member Avatar for Sturdy

Hi all, How can i validate a text in text box? I need to check that text length is 7 and first four characters is contain "ABCD" and last three characters must contain numbers. e.g : ABCD123 Thank you.

Member Avatar for Sturdy
0
1K
Member Avatar for general07z

Hello, This code is for (hospital management system). This code allow you to add patients. There are two types of patients. which is: 1. Normal patient. 2. Critically ill patient. once you added any patient. You will be able to show all patient using "ShowAllPatient;" method. -> i want the …

Member Avatar for WaltP
0
2K
Member Avatar for jaskij

Hi there everyone :) Recently, I started to feel a strong need to learn a scripting language. The question is which. Right now I'm pondering between Ruby and Python. The conditions are that it should be high-level, object or object oriented and not a functional language. What say you, geeks? …

Member Avatar for DavidB
0
114
Member Avatar for phorce

Hello, basically I want to return an array from a function (So I don't output things in the class - just main) But I seem to get the error: "invalid types 'int[int]' for array subscript" Here is the code: [code] #include <iostream> using namespace std; int matrix() { int matrix[10] …

Member Avatar for phorce
0
205
Member Avatar for sinatra87

I normally don't try to get outside help on homework that is still due, but I've kinda' hit a wall on this one. I'm trying to write a program that dynamically creates a list of scores for a group of students. It has to ask the user how many students …

Member Avatar for sinatra87
0
247
Member Avatar for rugged1529

need help here's code I'm almost finish I'm trying to find out how can i search down to the student who is taking at least two database classes here's the code [code] drop table student; create table student (student_id varchar(10) primary key not null, student_name varchar(10), major varchar(20), gpa decimal(10,1)); …

Member Avatar for babyDBA
0
203
Member Avatar for TIM_M_91
Member Avatar for thanatos1

Hey guys, I've been working on a game for the past few months and I've decided to read up on game scripting to see how it could help me improve my current game. What I've gathered so far, is that using a scripting language saves the developer time (since compiling …

Member Avatar for peter_budo
0
148
Member Avatar for marios_neo

hey guys does anyone know why i got an 'undefined invisArr in for loop' in my javascript code? I've got 3 div boxes in an absolute position and i m trying to make it visible whene i m presing one or two or three links. // [CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD …

Member Avatar for marios_neo
0
147
Member Avatar for kings

[CODE]<html> <head></head> <body> <?php print "<script type='text/javascript'>"; print "window.open='http://www.examples.com/page.html','new_window1','status=1,scrollbars=1,resizable=0,menu=no,width=320,height=220'"; print "</script>"; ?> </body> </html>[/CODE] Not able to open popup.Is this correct code.

Member Avatar for dremes
0
183
Member Avatar for Sturdy

Hi all, How do i know where the cursor position in the text at textbox? Anyone know how to do this? Thank you in advance

Member Avatar for Sturdy
0
4K
Member Avatar for riahc3

Hey I want to use something like Dreamweaver to design a HTML page. (Excluding all the links to pictures and such) how do I get Java to get all that and convert it to a well designed PDF document like I was seeing in Dreamweaver? Thanks

Member Avatar for peter_budo
0
318
Member Avatar for jayhall
Member Avatar for jayhall
0
84
Member Avatar for tharindupro
Member Avatar for klemme

Hey, I am trying to create this EVENT via phpmyadmin, but I get a syntax error which I cant see: This is the code for the event: [CODE] DELIMITER | CREATE EVENT delete_cart ON SCHEDULE EVERY 5 MINUTES DO BEGIN DECLARE cartID INTEGER; DECLARE cartProductID INTEGER; DECLARE cartAntal INTEGER; DECLARE …

Member Avatar for klemme
0
155
Member Avatar for phorce

Hello.. I'm doing a project that involves searching/matching 2 matrix's. The basic idea: Matrix 1: 0 1 0 1 0 1 0 1 0 1 1 1 1 0 1 Which will then be interpreted in memory as: 0 1 0 1 0 1 0 1 0 1 1 1 …

Member Avatar for mrnutty
0
107
Member Avatar for tomexlfc

Hi, I want to make my staff id text box only accept upper case letters and not lower cases, please how do i go about it? I wrote these lines but they stil dont work: [CODE]Private Sub txtStudID_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles txtStudID.KeyPress txtStudID.Text.ToUpper() End Sub[/CODE] …

Member Avatar for tomexlfc
0
277
Member Avatar for dalia_24

Write a C-Sharp code to make a “Matrix”. User must be asked to enter the following information: Size of the matrix and values. The program must compute the following operations: 1. sumMatrix (return the sum of all the values of array) 2. averageMatrix (return the average of all the values …

Member Avatar for thines01
0
111
Member Avatar for Ryujin

We're looking for a way to enable users to send us a file using one of our web pages. Cannot use MailAttachment because page doesn't have rights to write files to a directory (we can't change that) so are trying a Google Data API to upload to our Google Docs …

Member Avatar for Ryujin
0
315
Member Avatar for alexbnc

I want to get the information downloaded from a file (a BMP image) into a char array. I have this function [CODE] #define _countof(x) (sizeof(x) / sizeof(x[0])) char* DownloadBytes(char* szUrl) { HINTERNET hOpen = NULL; HINTERNET hFile = NULL; char* data = (char*)""; DWORD dataSize = 0; DWORD dwBytesRead = …

Member Avatar for alexbnc
0
335
Member Avatar for DanWebb3148

[CODE]sizeA = 2**28 M = [0]*sizeA[/CODE] The above code creates an array but, each element is 4 bytes each. How do create a large byte array with type 'B' (eight bits unsigned)? I would like it to be as large as possible. I need it for a sieve prime number …

Member Avatar for DanWebb3148
0
973
Member Avatar for newbie14

I have socket connection which keep reading data and then it will send it via a queue for next processing in another thread. I notice at times it just stop sending data to the queue. I will print this System.out.println("\n\nSending TO QUEUE : "+message); and stop but I do not …

Member Avatar for JamesCherrill
0
377
Member Avatar for ryklon

Hello! So here I am again asking for your knowledge and help.:$ I have this little project of embedding the g++ compiler in my software. What I have done so far is place the compiler inside the bin of my project folder, inside the Debug folder. I managed to call …

Member Avatar for ryklon
0
180
Member Avatar for foysal2012

Dear, I want to select 3 option for search,there are only 2 term [CODE]$term = $_POST['searchterm']; $term = $_POST['searchterm']; $term = $_POST['searchterm']; $sql = mysql_query("SELECT * FROM entry WHERE wre LIKE '%".$_POST['searchterm']."%' && searchterm LIKE '%".$_POST['searchterm']."%' && searchterm LIKE '%".$_POST['searchterm']."%'"); [/CODE] Please help me [QUOTE=Ragnarok;35163]The SQL would look something like …

Member Avatar for foysal2012
0
148
Member Avatar for devin2203

I needed to implement a simple cyclic graph in Java so it have nodes in such a way that it can be implemented to represent adjacency matrix or list. Any advice or resources to hep me start implementing this would be much appreciated! Many Thanks

Member Avatar for NormR1
0
392
Member Avatar for bigzos

Hey Guys, I am trying to create this application which can display the free space and the total space of logical drives,,I am very close but there is some little mistake which I am not being able to find out..Please help,,here is the code [CODE]Public Class Form2 Private strDrive As …

Member Avatar for bigzos
0
148
Member Avatar for n3red

Hi. I have a small dilema. I have 1 Picassa .ini file a contacts.xml file and a few images all in the same folder. On the images there are certian people, picassa.ini file holds the image name and id's of people included on that image in such format: [CODE][img_8538.jpg] faces=rect64(4ac022d1820c8624),d5a2d2f6f0d7ccbc …

Member Avatar for wortelkoek
0
233
Member Avatar for dsmith12

So my code is suppose to get information from the user and figure out how much funding the two professors get. My code runs twice but for some reason only the last entry is saved and outputted and my formula for calculating the new funding only outputs zero for some …

Member Avatar for stultuske
0
220
Member Avatar for skannigan

Hi, just a quick question. if i have an input file with 6 lines of data. for example(ingnore the numbers 1 to 6, they indicate the file number and is not part of the file physically) 1. Peter 3 / + - * 2. Dahne 8 + - / * …

Member Avatar for Ancient Dragon
0
212
Member Avatar for NinjaMediaD

I know that in a dev cycle the warnings are there to help you figure out what is wrong with your code, What I am wondering is what types of warnings should you just disregard? Are there any? are there warnings that are caused due to degradation of a command …

Member Avatar for NinjaMediaD
0
128
Member Avatar for Shahriyar.R

Hi, i have a problem while preparing to MySQL Developer Exam. Exactly i don't understand the question and the answer :) So Test is here: You work as database adminstrator for company inc. You have written following statement: [CODE]SELECT 'Student Name'||stud_name FROM students WHERE stud_id=50;[/code] Which of the following will …

Member Avatar for smantscheff
0
227
Member Avatar for swissknife007

[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) …

Member Avatar for StuXYZ
0
523
Member Avatar for dbsp

I've read many threads on how to remove a new line character '\n' using fgets()-- however, how would one go about removing a new line character simply by using getchar() ?

Member Avatar for deceptikon
0
3K
Member Avatar for zekstein

I need some help here.. I need an example to do that : ( a background task ) #includes blablalbalbla void?? ExecuteTask () { while(1) { cout << "first " << endl; } } int main () { ExecuteTask( ); while( 1 ) { cout << "lol" << endl; } …

Member Avatar for zekstein
0
189
Member Avatar for zEuSsE

Hi all! I'm using mac os X (intel core duo 2) and I'm quite new in assembly coding. I've got this problem: I'd like to read a file in USB memory using assembly. Does anybody know how is it possible? And more in general can you give me some links …

Member Avatar for zEuSsE
0
334
Member Avatar for PythonIsCool

For school I have to write a program that requests a 3 part name and breaks it into a first, middle, and last name. I wrote the code but the alignment of my output is not right. I was wonderng if someone can tell me what I did wrong and …

Member Avatar for TrustyTony
0
170
Member Avatar for cutterpillow20

Good day, can you give me some sample program that hold string in 3 dimensional array.. because our instructor didn't expound the discussion about multidimensional array then is it useful in our final project this semester..Hoping for reply Thank You

Member Avatar for cutterpillow20
0
366
Member Avatar for jefferson9

I'm using a BackgroundWorker object to start a process, the following is inside of my BackgroundWorker.DoWork event: [CODE] ... process.StartInfo.FileName = "process.exe"; process.StartInfo.Arguments = arguments; process.StartInfo.UseShellExecute = false; process.StartInfo.CreateNoWindow = true; process.StartInfo.RedirectStandardOutput = true; process.EnableRaisingEvents = true; process.OutputDataReceived += new DataReceivedEventHandler(p_OutputDataReceived); process.Start(); process.BeginOutputReadLine(); while (process.HasExited == false) { if (worker.CancellationPending …

Member Avatar for Cameronsmith63
0
693
Member Avatar for riahc3

Hey I have a folder in my current working path and I want to make a copy of a file inside it to the the current working path. Its kind of a dumb question, I know, but how do it do it? Thank you.

Member Avatar for riahc3
0
210
Member Avatar for riahc3

Hey I have this following code: [code] try { // Connection props Properties props = new Properties(); props.setProperty("mail.smtp.host", host); props.setProperty("mail.smtp.starttls.enable", "true"); props.setProperty("mail.smtp.port", "25"); props.setProperty("mail.smtp.user", usuario); props.setProperty("mail.smtp.auth", "true"); // Prepare the session Session session = Session.getDefaultInstance(props); // Constuct the message MimeMessage message = new MimeMessage(session); /*Test*/ message.setHeader("Content-Type", "multipart/mixed"); message.setFrom(new InternetAddress(CorreoOrigen)); message.addRecipient(Message.RecipientType.TO,new …

Member Avatar for riahc3
0
208

The End.