199,114 Archived Topics
Remove Filter ![]() | |
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 … | |
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 … | |
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"> … | |
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 … | |
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. … | |
Hi friends, which are the JAVA API's available for to connect your application with LinkedIn. | |
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 = … | |
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 … | |
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 … | |
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 … | |
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 … | |
<?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 … | |
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! | |
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 … | |
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 … | |
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 … | |
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() … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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; … | |
Hello, I need to rotate images in a website based on the time of day. Please help out with this code. regards, michael | |
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 … | |
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] | |
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 … | |
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 … | |
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 … | |
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 … | |
I'm currently working on a project, but need the codes for watermarking the image. Can somebody help? | |
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... | |
Hi can anybody help me wth whats the diff b/w php and a cake PHP ? Plsssssssssssss | |
For Mobile Applications carbide C++ is better or j2me is better? | |
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 … | |
[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() … | |
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 … | |
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 … | |
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. … | |
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 … | |
I want to read some books about data structure written in c++, can anybody recommend some good books for me?Thx. | |
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 … | |
[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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … |
The End.