199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for _neo_

Hi all. I'm trying install python 3.1.2 on RHEL4 from source, but 'make' failed to build some necessary modules. Followings are from build log: *** WARNING: importing extension "_ctypes" failed with <class 'AttributeError'>: 'module' object has no attribute 'load_dynamic' Python build finished, but the necessary bits to build these modules …

Member Avatar for _neo_
0
759
Member Avatar for ash_ng

Hi,I am able to draw rectangles on the picture but I am not able to capture the co-ordinates of the picture box instead it capture the screen coordinates.So the rectangle that I draw on the picture box doesn't appear on the position that I desire. // Convert and normalize the …

Member Avatar for nick.crane
0
795
Member Avatar for ryan311

i have a problem in uploading multiple file can anyone help me to solve this problem? here is my index.php [CODE]<!DOCTYPE html> <head> <title>MySQL file upload example</title> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> </head> <body> <form action="add_file2.php" method="post" enctype="multipart/form-data"> <input type="file" name="uploaded_file[0]"><br> <input type="file" name="uploaded_file[1]"><br> <input type="file" name="uploaded_file[2]"><br> <input type="submit" value="Upload file"> …

Member Avatar for ryan311
0
190
Member Avatar for ravicisco2002

Dear All, I am new to korn scripts the below mention scripts for taking the system backup in NIM environment its looks okay but its not removing the old objects& system backup for more specific i am getting error on line number 83 Need help pls [code]#!/bin/ksh # # nim_mksysb …

Member Avatar for masijade
0
352
Member Avatar for AntonyLini

Hello All, It an urgent requirement. How can I use Google API for windows application. I am using visual studio 2010. and downloaded API and added the reference also. but on coding there is some translate client occurs and it requires some site. I just want to translate the text. …

Member Avatar for AntonyLini
0
507
Member Avatar for virendra_sharma

Hi friends, which are the JAVA API's available for to connect your application with LinkedIn.

Member Avatar for JamesCherrill
0
82
Member Avatar for tln26

I am trying to get the numbers in the array to give me a average out put. here is what I have so for: [COLOR=#0000ff][/COLOR] [CODE] #include "stdafx.h" #include <iostream> #include <cctype> using std::cout; using std::cin; using std::endl; int main() { int grade[10]; int count = 0; char reply = …

Member Avatar for hits86
0
380
Member Avatar for ktsangop

Hi everyone. I have an MFC project in Visual C++ 6 and was wondering in which way can i detect the level of audio output. I want to execute some code only when no sound is sent to the audio output. Could anyone please give me a clue of how …

Member Avatar for ktsangop
0
164
Member Avatar for lsmith93

Just wondering but is there a way to include the meta tags from one page to another? The reason why i ask this is that i built a website using PHP Includes and want to include the meta tags so when i load index.php?id=About , it will load the meta …

Member Avatar for Borzoi
0
157
Member Avatar for k_manimuthu

I have a table like below format. [CODE] CREATE TABLE Customer ( number VARCHAR(40) NOT NULL, --col 1 name VARCHAR(100) NOT NULL, --col 2 ssn VARCHAR(50) NOT NULL, --col 3 age INTEGER NOT NULL, --col 4 ) [/CODE] I want to add a new column in the table. If I …

Member Avatar for pritaeas
0
158
Member Avatar for Sunganani

Pretty new at php and working on my class project. I get this error code on my action page for my log in page plus, it does not redirect when the result is wrong. I still get into the members' area. Code below. Thanks "mysql_num_rows(): supplied argument is not a …

Member Avatar for Brianbc
0
179
Member Avatar for baheer

<?php mysql_connect("localhost","username","password") or die ("Cannot connect" . mysql_error()); $dbname=$_GET['database']; $tablname=$_GET['tabname']; ?> <div id="stylized" class="myform"> <?php echo "<span class='db'>Table:" . $tablname . "</span>"; ?> <?php mysql_select_db($dbname); $q=mysql_query("SELECT * FROM $tablname"); if(!$q){ die("Query Failed!"); } $fields_num=mysql_num_fields($q); echo "<table><tr>"; for($j=0;j<$fields_num;$j++){ $fields=mysql_fetch_field($q); echo "<th>{$field->name}</th>"; } echo "</tr>\n"; while($row=mysql_fetch_array($q)){ echo "<tr>"; foreach($row as $cell){ echo …

Member Avatar for tanha
0
141
Member Avatar for Dean_Grobler

Hi there, I just wanted to find out if one can have a actionListener() in one .class file and then have the actionEvent() in another .class file? If not, how would I go about to get the same effect? Thanks!

Member Avatar for Dean_Grobler
0
450
Member Avatar for Xufyan

Our teacher really sux, he just wrote this down on the board but didn't explain the program :(...after a lot of search i finally understand what is try and catch but what is the meaning of [iCODE]byte b=new byte[255];[/iCODE] in this program ? and why the program is not working …

Member Avatar for JamesCherrill
0
167
Member Avatar for facarroll

I know how to do basic forms. What I want to do is to pass a set value as a hidden field to accompany an input text value, and have both values entered in the database record. You can see in the code below that the form asks for names …

Member Avatar for facarroll
0
102
Member Avatar for noraz

hi all, just want an opinion from all of you out there on how to do descending sort. I got this sort example code from the net but it does ascending sort. Is the a possibility that if I change a few line inside the code it will come out …

Member Avatar for AndreRet
0
122
Member Avatar for JamStar

I Have To Write A Pseudo Code For A Unit Converter. I Have Written The Program Already But I've Not Really Written One Before. It Converts Miles To KM: Dim DataIn As Single Dim DataOut As Single Dim ConversionType As String Const M2KCoefficient As Single = 1.6 Private Sub UserForm_Activate() …

Member Avatar for AndreRet
0
564
Member Avatar for deleti0n

I see so many examples everywhere and none of them helped me fix these problems, so if anyone can help me I would greatly appreciate it. I have explained my errors in the red Highlighted sections in comment form.... [CODE] package lab41thestockclass; class ParkedCar { private String make; private String …

Member Avatar for javaAddict
0
114
Member Avatar for burcin erek

Pls check the code. for example during betting if you write "One" if the dice comes 1, you win. but when you write one it writes 2.28 1026 why. I dont want case sensitive and it would be perfect if the first and second character I write for input, it …

Member Avatar for burcin erek
0
147
Member Avatar for Claude2005

Hi there, I have this kind of sample table. [CODE] Name Math Science English ------------------------------- Ben 86 88 80 Peter 80 79 83 John 84 90 86 [/CODE] I want to save this result, dynamically, in a "table" in Java. I want it to have a sorting function. Some of …

Member Avatar for Claude2005
0
112
Member Avatar for Blastoise

Write a program to enter a score and a points possible for a test, computer the percent, display the percent to 1 decimal place and then display the letter grade (A – F) using a standard scale (90, 80, 70, 60) – use the if ... else if ... else …

Member Avatar for floatingDivs
0
131
Member Avatar for jogieglenmait

how can i put data from an access datafield to a datacombo?so that each time i click the data combo it will show the data that is stored in the access file it is connected. here is my code: Private Sub cboCustomerID_Change() On Error Resume Next If blnID = True …

Member Avatar for AndreRet
0
273
Member Avatar for sundeep_g

Helo guys....I am very happy to intract with you all. can any one suggest me how to upload a image...i trie so many web site..here is my code.. uploadimage.php <?php define ("MAX_SIZE","10000"); define ("WIDTH","150"); define ("HEIGHT","100"); function make_thumb($img_name,$filename,$new_w,$new_h) { $ext=getExtension($img_name); if(!strcmp("jpg",$ext) || !strcmp("jpeg",$ext)) $src_img=imagecreatefromjpeg($img_name); if(!strcmp("png",$ext)) $src_img=imagecreatefrompng($img_name); $old_x=imageSX($src_img); $old_y=imageSY($src_img); $ratio1=$old_x/$new_w; $ratio2=$old_y/$new_h; …

Member Avatar for sudeepjd
0
221
Member Avatar for pabzzmike

Hello, I need to rotate images in a website based on the time of day. Please help out with this code. regards, michael

Member Avatar for liamfriel
0
119
Member Avatar for lena13

2. Create a class Reals for performing integer arithmetic on real numbers. Each real number has a whole part and a decimal part; your class should contain data components representing both parts as integers and should contain methods to do the following: a. Default constructor b. set the two components …

Member Avatar for Xufyan
0
66
Member Avatar for j.shakthiyokesh

i am having problem in executing the following program.........when i execute it,it's getting hanged....pls gimme a gud solution [CODE]#include<stdio.h> main() { int n,x=0,y=1,z; printf("\nEnter a number of your choice:"); scanf("%d",&n); z=n; do { x=n%8; x=x+x*y; y=y*10; z=z/8; }while(z<8); printf("\nThe octal equivalent of the number entered is %d",x); }[/CODE]

Member Avatar for myk45
0
82
Member Avatar for The physicist

Hi all, I'm trying to convert a console application that I wrote in Codeblocks to a Windows Form application written in Visual Studio .NET 2003. I'm having trouble converting a piece of code that reads in a formatted text file line by line (the text in the file is always …

Member Avatar for jonsca
0
192
Member Avatar for star_lavender

Hi. I want to create a search form using the drop down list and checkbox. First, the users have to select from drop down list whether they want to search by date or id. After that, for example, a new pair of drop down list will display for the users …

Member Avatar for theausum
0
190
Member Avatar for johnnyturbo3

Hi I have a program that has Classes [LIST] [*]GUI [*]Upload [*]and a buffer between the 2 classes - ie used to communicate between the 2 classes . [/LIST] The Upload class uses Process to run an command line FTP app. I want to return what output produced by the …

Member Avatar for Ketsuekiame
0
712
Member Avatar for floatingDivs

Hi Daniweb, I have a question for you guys. I've been reading up on PHP security and want to get it down pat before embarking on some projects I wish to do. The question right now is about how to create a table with PHP that will enable SHA1 hashing …

Member Avatar for theausum
0
104
Member Avatar for konin

I'm currently working on a project, but need the codes for watermarking the image. Can somebody help?

Member Avatar for magdyalgamal
0
909
Member Avatar for ahmedeqbal

Friends, I’ve list of categories with url look like this ‘index.php?cat_id=1,2,3’ I want to rewrite my url as ‘demo-page.html’ However I want to be use here my page title in url page. How its possible? Waiting for reply...

Member Avatar for theausum
0
130
Member Avatar for mithesh

Hi can anybody help me wth whats the diff b/w php and a cake PHP ? Plsssssssssssss

Member Avatar for theausum
0
95
Member Avatar for theausum
Member Avatar for theausum
0
118
Member Avatar for muneer_alam

Hi,, My problem is that i have two table city and location.In city table i have 3 field city_id(Primary key),city_name,city_status where city_status is true or false.In location table i have 3 field also loc_id(Primary key),city_id,loc_city.i done a code in which city_name comes into drop down list from city table.my problem …

Member Avatar for xerilagang
0
3K
Member Avatar for trebor09

[code]#include <stdio.h> #define p printf #define s scanf int program,Y,N; do { p("Choose from the following program\n"); p("1 for program no.1"); p("2 for program no.2"); p("3 for program no.3"); p("4 for program no.4"); p("Continue (Y or N)?"); repeat = getchar(); putchar('\n'); }while(repeat == 'Y' || repeat == 'N'); } program1() …

Member Avatar for roottybrian
0
274
Member Avatar for amecily

Hi everyone, I have a form open (UpdateResponse) and the user wants to update a datagrid. So they click on a button to update the datagrid (and the database) and then they receive a message (ResponseUpdateConfirmation), which is another form, telling them that the update was successful. I want to …

Member Avatar for roottybrian
0
110
Member Avatar for himmat.m4

Hi, I working on OnlineTraveling project, here issue is whenever I choose source city from dropdownlist at that event only related cities would be comes in dropdownlist of Destination city. It should not need to goes to server, it would be happen on same page. I have done this by …

Member Avatar for himmat.m4
0
71
Member Avatar for rizla777

hey im just having a bit of a problem on reading input from a text file. I know that it is probably something simple but I keep overthinking it. Here is what I am trying to do: I'm trying to read in a line of text that contains musical notes. …

Member Avatar for new_programmer
0
149
Member Avatar for yuvi2288

Hi, I have write the code to upload a file to database. I checked it by uploading a text document which is in my desktop and it is working and successfully uploaded to database. [CODE]File tomcat.txt has been uploaded and inserted into Database.[/CODE] But when I tried to upload an …

Member Avatar for yuvi2288
0
330
Member Avatar for dspjm

I want to read some books about data structure written in c++, can anybody recommend some good books for me?Thx.

Member Avatar for dspjm
0
121
Member Avatar for Joestar

Hello. According to [URL="http://www.youtube.com/watch?v=GH8yBBC9n3Y"]this lecture[/URL](somewhere around 5:20) shifting order of quantifiers in first-order logic can create a formula which isn't equivalent to the preceding one. So, Ax Ey P(x,y) would not be the same as Ey Ax P(x,y). I don't understand why is that so and the lecture doesn't mention …

Member Avatar for Allan Joshua
0
141
Member Avatar for DocBreen

[CODE] b2 = raw_input("Select your action:") if b2 == "Attack": mgeHP = 2500 print "You have decided to attack the mage." while True: dmg = random.randrange(1, 125, 1) mgeHPN = mgeHP-dmg print "You did" , dmg , "damge to the mage, giving it" , mgeHPN , "left" mgeHP = mgeHPN …

Member Avatar for cghtkh
0
163
Member Avatar for Bombshock

Hey Daniweb, I'm starting out learning python and have been looking around and saw the thread on printing a line that starts with a specific word, I would like to create something similar except take numbers out of text and print them so I can graph them. So far I've …

Member Avatar for TrustyTony
0
149
Member Avatar for Ptap03

Hello, First I would like to say thank you for looking and any help will be greatly appreciated. I am trying to write a code which does the following: 1) Read a file (The file contains list of words) 2) The purpose of the program to ask the user to …

Member Avatar for Ancient Dragon
0
1K
Member Avatar for aaronmk2

I an trying to find the height in a binary search tree. I figured out how to count the leaves going directly left and directly right, but cannot figure out how to get he leaves in the middle. [CODE] int BST::height(){ int tall =0; int tall1=0; BinNodePtr ptr=myRoot; if (ptr->left …

Member Avatar for mrnutty
0
247
Member Avatar for devesh2222

how can i write code in c that the two programs are run one after another whithout the use of threads.

Member Avatar for myk45
0
83
Member Avatar for RykeTech

Hey everyone, been a while since I have been here but I need some advice in a bad way. Being new to PHP I am at wit's end with this one. I created a main website that displays images and info about the images. All of the images and info …

Member Avatar for RykeTech
0
159
Member Avatar for Agent Cosmic

Hi, I'm a beginner in the J2EE field. I've already learnt the basics of Java programming and now I'm moving on to web development. What I want to know is if I could skip learning JSP/JSF, servlets, EJB, JPA etc if I learn Wicket, Spring and Hibernate. I'm still not …

Member Avatar for Agent Cosmic
0
118
Member Avatar for centerline00

Why is it, when I compile this, the cout statement runs twice at first? It does not do that when I have the rest of the code in there that is int. Any thoughts of why or what I am doing wrong.. #include <iostream> #include <string> using namespace std; int …

Member Avatar for gerard4143
0
132

The End.