199,113 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for apals

MY problem is related to entry of research data. The researchformula is entered into a textbox alongwith other usual form entries like title,subject,startdate etc. The formula consists of alzebra, trignometric, otherfunctions etc. Example [CODE] [B]x = 12; y = 24 + tit[x] + mixer[x]; z = x + sin(x) + …

Member Avatar for apals
0
243
Member Avatar for melbahtoast

So I've done quite a few forms before but I'm running into trouble with this one. I'm not exactly sure what I need to do, but let me explain. I have: Form A Form B Form A collects basic data from a customer. Form B give you the option to …

Member Avatar for melbahtoast
0
246
Member Avatar for Valiantangel

hi Got 2 questions. 1.How can i simplify 4 variables all with same condition? if a,b,c,d <1 System.out.println("Invalid input");? How to put this in a simple code?I know it can be done individually. 2.if the above condition is false i dont want my code to go further and calculate the …

Member Avatar for DJSAN10
0
90
Member Avatar for srinidelite

Hello Their, i'm new asp.net and I've assigned to design a ERP supplier page and when i started designing the page i used lot of space tag(&nbsp) for spacing and my project guide insist me to find another way to align text box and label using css and ceratainly i …

Member Avatar for srinidelite
0
165
Member Avatar for logicmonster

alright, well the code I have is a complete mess and there HAS to be a better way of doing it as well.... it's right here [CODE]#include <stdio.h> #include <stdlib.h> int toExit(int exit){ while(exit != 1 || exit !=2){ printf("\n\nPlease Choose:\n1) Exit\n2) Run program again\nYour choice: "); scanf("%d", &exit); printf("\n"); …

Member Avatar for logicmonster
0
297
Member Avatar for FALL3N

[CODE] import os; def callAS(cmd): os.system(cmd); def selectFile(): callAS("""osascript -e 'tell application "Finder" to return choose file "Select the file:"'""") def fixPath(raw): arr = raw.split(' '); return(str(arr[1])); thePath = selectFile() thePath = fixPath(thePath); print(thePath); [/CODE] When the above code is run in IDLE, it just gives an error. But, when …

Member Avatar for FALL3N
0
293
Member Avatar for faezshingeri

Hi, What would be the best way to extract an array of strings (only the first strings separated by a "," ) encapsulated within the curly braces ( { } )from within a file...? Eg: Test.txt *************************** This is also in the text file { abc def ghi , jkl …

Member Avatar for faezshingeri
0
186
Member Avatar for jaymayne

Program wont run error says 1>c:\users\owner\documents\visual studio 2008\projects\ia\ia\jb bakery.c(16) : warning C4013: 'sleep' undefined; assuming extern returning int 1>Linking... 1>JB Bakery.obj : error LNK2019: unresolved external symbol _sleep referenced in function _welcome 1>C:\Users\Owner\Documents\Visual Studio 2008\Projects\IA\Debug\IA.exe : fatal error LNK1120: 1 unresolved externals 1>Build log was saved at "file://c:\Users\Owner\Documents\Visual Studio 2008\Projects\IA\IA\Debug\BuildLog.htm" …

Member Avatar for jaymayne
0
461
Member Avatar for onew1ng3d

If I had a structure like this [CODE]typedef struct { char word[101]; int freq; char filename[100]; } WordArray;[/CODE] and declared this inside a method instead of it being a global variable(so its local) [CODE] WordArray words[10000];[/CODE] then how would I allocate memory to this? I've had this [CODE] for (i=0;i<10000;i++) …

Member Avatar for histrungalot
0
80
Member Avatar for daniel1977

I am wondering if the algorithm is correct that it shows for the insertAt(int, const elemType&) function for an array-based list: template <class elemType> void arrayListType<elemType>::insertAt (int location, const elemType& insertItem) { if (location < 0 || location >= maxSize) cerr << "The position of the item to be inserted …

Member Avatar for ChrisPadgham
0
139
Member Avatar for Reclaimer0418

I've been staring at this code for about 3 hours, changing things back and forth and making myself feel really stupid....please, anyone, help me. [CODE]#include <iostream> #include <cstdio> #include <string> using namespace std; int main() { //declare variables int gas, time, distance; // could have used \n all in one …

Member Avatar for MandrewP
0
776
Member Avatar for eman neercs

This simple query is proving to be a problem for me as I'm missing something obvious. Its a query to show Sales by Market ($var2) by Month ($var1). Any pointers as to what I'm doing wrong. [CODE]<html> <head><title>Monthly Sales Rank </title> <LINK REL=StyleSheet HREF="style.css" TYPE="text/css" MEDIA=screen> <script src="sorttable.js"></script> </head> <body> …

Member Avatar for ko ko
0
133
Member Avatar for ItecKid

Hello all, I am trying to understand the concept of pipe-ing input/output through a C program. I wrote this simple code: [CODE] #include <stdio.h> #include <stdlib.h> void in_read (int *foo) { read (0, foo, 1); } void in_write (int foo) { write (1, &foo, 1); } int main (int argc, …

Member Avatar for histrungalot
0
189
Member Avatar for nova37

[ICODE]$w3 = mysql_query( "SELECT * FROM w3" ) or die("SELECT Error: ".mysql_error()); $worth = mysql_query( "SELECT * FROM worth" ) or die("SELECT Error: ".mysql_error()); // fetching data while ($get_w3 = mysql_fetch_assoc($w3db) && $get_worth = mysql_fetch_assoc($worth)) { // Loading Urls for Comparing echo $w3url=$get_w3['domain']; // cant echo echo $worthurl=$get_worth['domain']; // ok …

Member Avatar for ko ko
0
106
Member Avatar for inspire_all

i am a bit confused.i am feeling that one should be expert at data structures rather than language.i am learning c++ this semester,learning oop and data structures.[COLOR="Red"]is data structures more important than language?[/COLOR]what can get u into a good company?

Member Avatar for WaltP
0
128
Member Avatar for zrony

hello everybody how can bind all username exit in database with dropdownlist(means it fetch all the data from database and can apply on dropdownlist).so that i can used in searching time

Member Avatar for vaultdweller123
0
74
Member Avatar for MikeFL

I'm still kinda new to php and have been getting this error: PHP Parse error: syntax error, unexpected T_STRING in /var/www/index.php on line 33 It's all running on a LAMP server in a local VM. Been looking at it for the last 2 days and can't find what is wrong, …

Member Avatar for MikeFL
0
3K
Member Avatar for clc_services

Hi, I'm creating a web page which links to a mysql database. I have managed to get all of the data to appear in a table and i have also been able to get the combobox to be populated based on a table in the database. The part which I …

Member Avatar for clc_services
0
2K
Member Avatar for porkchop970

Hello, I would like to ask the way to change [url]http://abc.com.hk/article.php?product=1&side=2[/url] to [url]http://abc.com.hk/article/1/2[/url] I just write in .htaccess as below: RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}\.php -f RewriteRule ^(.*)$ $1.php It works only for this link: [url]http://abc.com.hk/article[/url], but not valid for [url]http://abc.com.hk/article/1/2[/url]

Member Avatar for vaultdweller123
0
206
Member Avatar for aodpreacher

Hi i am currently a Computer Science undergrad and i was just doing some thinking for a Master degree. I like software and web development and i am leaning towards more of a web development specific for my masters but what are the options i have for trying to get …

Member Avatar for bjelline
0
297
Member Avatar for neartoyou

Forgive me if this thread was repost. :( I am a novice in database system for game development. Can Mr./Mrs. (Master) in here give me an example of a saving system for game? or it just use a database?(Like SQL?):idea: Like a feature for "Save the Games" and sometimes the …

Member Avatar for neartoyou
0
257
Member Avatar for Diamond3x

What is "std" and "::" .Like for example, std::cout. Now i know what is cout for but what is std and what are these "::" for?

Member Avatar for neartoyou
0
255
Member Avatar for VijayKumaran

Dear friends, In VB.NET... How to write coding "Form Text characters move slowly right to left using of Timer"? Please help me and solve my doubt. Yours, Vijaykumaran

Member Avatar for person_112
0
3K
Member Avatar for Jdsiteworks

[CODE] <?php # Script 16.6 - register.php // This is the registration page for the site. require_once ('includes/config.inc.php'); $page_title = 'Register'; include ('includes/header.html'); if (isset($_POST['submitted'])) { // Handle the form. require_once (MYSQL); // Trim all the incoming data: $trimmed = array_map('trim', $_POST); // Assume invalid values: $fn = $ln = …

Member Avatar for vaultdweller123
0
321
Member Avatar for kass2112

Hello, The form i am doing takes from the user the item price, then it will calcuate the subtotal, tax, shipping, and total when the button is clicked. How can i update it so if the user adds another item it will update the subtotal, tax, and total when the …

Member Avatar for kass2112
0
154
Member Avatar for juce

I need a code which will print union of two strings. for example string1="1,2,3" string2="3,4,5" and print the result string3: 1,2,3,4,5 Could someone help me how to solve this?

Member Avatar for mazzica1
0
1K
Member Avatar for mjacqu4

Hey, I'm a bit rusty at c++ and I'm sure that I'm just missing something stupid, but I have a class that takes in an ifstream object in its constructor. In my main function I create an ifstream, open a file, then pass the ifstream object by reference into the …

Member Avatar for mjacqu4
0
845
Member Avatar for basamdamdu

Hi all, I am a newbie when it comes to js/jquery. I am trying to have the content of a div (let's call it "quote") added to the body of a mailto. the content of the div "quote" is randomly generated (stored in .js file) by pressing a "next" button. …

Member Avatar for basamdamdu
0
4K
Member Avatar for juss2022

Hello everybody. I've a question. I tried to change font size of textBox named "textBox1" Here is the function of the NumericUpDown: [CODE]private: System::Void numericUpDown2_ValueChanged(System::Object^ sender, System::EventArgs^ e) { String^ Num2 = this->numericUpDown2->Text; this->textBox1->Font->Size = Num2; };[/CODE] Errors that occur: [CODE] error C2039: 'set' : is not a member of …

Member Avatar for Ancient Dragon
0
457
Member Avatar for jkembo

I would like to move the mouse cursor from one position to another within a Jtextfield after a condition is satisfied. I do not know what to use. Thank you

Member Avatar for jkembo
0
644
Member Avatar for dark_sider_1

Hi there, I'm not sure if this is impossible to achieve or not, but I have a C program that I created that is compiled with an a.out executable. Is there a way that I could have it start/run automatically after I log in? I have a Mac running on …

Member Avatar for dark_sider_1
0
217
Member Avatar for mz_rigel

Hi, I'm trying to write a program that converts a base x to a base y. It says that we are suppose to use two functions to do so: one that converts base x to base 10 and one that converts base 10 to base y but I don't understand …

Member Avatar for WaltP
0
1K
Member Avatar for MicroD

Hello guys. I'm wondering is it possible to stream mp3 songs from some site with java? I tried to find something but allways everything what i found was only for reading mp3 songs from local disk. If you know feel free to answer me. - Regards, David.

Member Avatar for RicardoE
0
1K
Member Avatar for dsmith12

My professor told me these things are wrong:1) For getting the "#" sign in your board, you need to call the createTicTacToeBoard() method to create the board. The returning type of the method is char[][] createTicTacToeBoard() not the string, and you don't need to pass any array into this method …

Member Avatar for DavidKroukamp
0
155
Member Avatar for rahul.patil123

There is a sqi vulnerability in my client website. I cant give you the links but can you guys suggest how to avoid it.

Member Avatar for debasisdas
0
119
Member Avatar for artemix22

i try to put picture in mysql with vb.net, first i convert with this function : [CODE]Public Function convertImage(ByVal myImage As Image) As Byte() Dim mStream As New MemoryStream() myImage.Save(mStream, System.Drawing.Imaging.ImageFormat.Jpeg) Dim myBytes(mStream.Length = 1) As Byte mStream.Position = 0 mStream.Read(myBytes, 0, mStream.Length) Return myBytes End Function[/CODE] i try to …

Member Avatar for Reverend Jim
0
433
Member Avatar for adil_bashir

please check the following piece of code and give the correct code as my program is showing some error. here is the code. public class passingArray { public int getCipherText(int[] c, int len) { int cipher = 0; int e = 7; int n = 130; cipher = (int)((Math.pow(c[len],e)) % …

Member Avatar for DavidKroukamp
0
238
Member Avatar for passionated

(C language) Hi.. Can anyone write a function to accept a character and display it 10 times?? Thanks in advance..

Member Avatar for WaltP
0
593
Member Avatar for kolibrizas

[CODE]SqlCommand command = new SqlCommand("SELECT Id FROM users WHERE Username=@Username AND Password=HASHBYTES('MD5', @Password)"); command.Parameters.AddWithValue("@Username", pieces[1]); command.Parameters.AddWithValue("@Password", pieces[2]);[/CODE] doesn't return correct result [CODE]SqlCommand command = new SqlCommand("SELECT Id FROM users WHERE Username=@Username AND Password=@Password"); command.Parameters.AddWithValue("@Username", pieces[1]); command.Parameters.AddWithValue("@Password", pieces[2]);[/CODE] returns correct result, however the data in mssql database has to be not …

Member Avatar for kolibrizas
0
183
Member Avatar for cVz

Hi , I have 2 columns named 1. Tel_H 2. Tel_H_Code How can i merge these two columns to make them one ?? I am clueless here...The best i can do is to view them as one [code] SELECT Tel_H_Code + Tel_H AS 'Tel_H' FROM Detailed_List [/code]

Member Avatar for Todster
0
212
Member Avatar for Alex_2011

How are you, I created a simple cash register code that makes the user selects the order from different buttons. I have some problem figuring out the following: 1. How can I get the total (if the user selects 1 or 2 or 3 different orders). I need to find …

Member Avatar for Alex_2011
0
371
Member Avatar for cool_zephyr

hello, my visual studio 2010 came with silverlight 3..now i have to use 3rd party components that require silverlight 4 above..so i installed silverlight 5 for developers..but when creating a silverlight application visual studio only shows silverlight version 3..could anyone help me please?? i get the following error in the …

0
134
Member Avatar for TIM_M_91

Hi guys well my code is below I am trying to set up error checking so that CREATETABLE will only execute when String v and string d are false and when string t is true. I've started the code. Which it works when String v or String d are null …

Member Avatar for TIM_M_91
0
240
Member Avatar for arindam31

Hi All . I am trying to make a Frame to which we add dynamically Add panels. Also I want to remove panel dynamically . The dynamic Addition is working perfect. Please see the code below: # panels.py #self.Fit() causes the whole frame to shrink.So we are using self.Layout instead …

Member Avatar for arindam31
0
307
Member Avatar for rayden150

I am trying to make a recursive program that prints out the numbers from 1-100 without using any iterations such as loops, but every-time it just keeps printing out 5050..? [CODE] #include<stdio.h> #include<stdlib.h> int counter(int num); int sum=0; int main(){ int result, num=100; result = counter(num); printf("%d", result); system("PAUSE"); return …

Member Avatar for siaswar
0
297
Member Avatar for Stein102

I want to start C++, and I already know a fair amount of Java. So I ordered the book Accelerated C++ because I've read that it's a good book. But I was told that It's not a very good first c++ book? The only other c++ book I have access …

Member Avatar for Senovit
0
68
Member Avatar for servet

Hi! I use scanners delimiter. The next() function for scanner should return me the string by these punctuators: | . : space But i don't know what to write inside scanner.useDelimiter("") parameter? For example for this string "abc.123,zqw ttt|AAA", scanner.next() should return abc scanner.next() should return 123 scanner.next() should return …

Member Avatar for JamesCherrill
0
126
Member Avatar for bhallarahul

can you please tell me what is make and what is use of it Can you also tell me what is meaning of a given statement "Apache Ant is a Java-based build tool. In theory, it is kind of like make, without [B]make's wrinkles"[/B]

Member Avatar for ~s.o.s~
0
155
Member Avatar for faithful4ever

Hello all, Basically I'm trying to code a program that makes use of recursion to reverse an input integer, e.g. 123 will result in a display of 321. I've coded the program this far, but it just displays the last digit only. Where have I gone wrong? I.e. Instead of …

Member Avatar for histrungalot
0
742
Member Avatar for lena1990

hi i want to display column in jtable but the columns enter each other and reduce the size of the columns so how i can when i display larger number of columns apper with each column has itis own space

Member Avatar for mKorbel
0
76

The End.