64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for drongo

Hi, Im undergoing a project at the moment and have stumbled onto an error which a could solve nor understand even with google help... So, the C program Im making is suppose to sort an array of surnames into alphabetical order, also the user can use the menu to pick …

Member Avatar for drongo
0
150
Member Avatar for ebanbury

Hi I am hoping someone can give me some advice. I have a user_registration table with the field 'ID' as the user ID field. I have another file (property_details) which is for users to insert their own records. What I need to do is to automatically assign their ID from …

Member Avatar for ebanbury
0
196
Member Avatar for tyop

This is something that worked a few months ago and now I don't know what I messed up when I made the mistake of trying to migrate it to a new host. It's nothing but a registration and login module and I'm trying to have a tight focus on security …

Member Avatar for tyop
0
3K
Member Avatar for Dorayaki

Hello, I got a problem, I can save my data to access database and in the access database field I set it to date/time. But problem is when I get the value out from the database.. the format is always month/day/year hour:minutes:seconds example today: 5/2/2011 12:00:00 How to get the …

Member Avatar for Unhnd_Exception
-1
3K
Member Avatar for Mr.BunyRabit

Hey there. So i started using crystal reports, and it works great. Ive just hit a wall.. So there are branches with students in those branches. Now what i want to accomplish, is i want the user to be able to choose what branches to show in the report. I …

Member Avatar for Mr.BunyRabit
0
356
Member Avatar for StevoLord

Hi all, I am using Eclipse to create a slideshow program. Currently have anything set up and it works fine. However I would like my BufferedIamges to be made into a video with a time frame of 15seconds for each picture. I only want to have maybe up to 4-5 …

Member Avatar for StevoLord
0
76
Member Avatar for xiiopao

does anyone here know how to insert form contents accomplished by a user to a database.., i have a code but it doesnt seem to work.. :confused:... here's my code ... it's in jstl but if there is a easier alternative then just spill it out [CODE] <sql:update dataSource="${orders}" var="updatedTable" …

Member Avatar for xiiopao
0
208
Member Avatar for AliRaiz

first my task was to write this program that checks that string t contained in string s or not and i successfully made it and now i have to change this program a little bit and now i have to use a bool function in this program any one can …

Member Avatar for AliRaiz
0
97
Member Avatar for moose333

Hello I currently have a program that collects data from a txt file and then works out the averages of each column. What I am now trying to do is use this data to draw a line Graph for each individual column contained within the txt file. This is the …

Member Avatar for moose333
0
863
Member Avatar for RewindPlay

hello, I just signed up to ask...How would I store the information from my code(see below) into a object? I'll be naming the object employees. The code I have now executes this:(please tell me if there are any mistakes on the code I have so far) 1.Ask the user to …

Member Avatar for woooee
0
136
Member Avatar for Trilby1992

Hi I'm trying to make a friend request feature like in a social networking site and I've been getting this Unknown Attribute error whenever I try to request a friendship with an another user. [url]http://s1042.photobucket.com/albums/b429/Kevin_Tang/?action=view&current=unknown_atrribute.png[/url] And this is the code of the friendship controller. [CODE]class FriendshipController < ApplicationController def req …

Member Avatar for Trilby1992
0
202
Member Avatar for caut_baia

[code] class A { virtual void func()=0; }; class B : public A { void func (); }; class C : virtual public B { void func(); }; //I receive an A* pointer through a function in an LPARAM type argument //and i must downcast from an A* to a …

0
64
Member Avatar for sirlink99

Is it possible to communicate with java to a usb that has been converted into an antenna, that sends and recieves signals to/from a remote controlled car?

Member Avatar for sirlink99
0
89
Member Avatar for zmoez

Hey Everyone, I'm new to this form, and I seem to like it so far. Anyways, I have this Project that i'm nearly done with but in the sub-class I'm getting 0.0 as an output instead of the actual calculation. Below is the project and the code: You are requested …

Member Avatar for tunlinaung
0
5K
Member Avatar for Julia25

Hello! i created a simple popup window using this script [CODE]function MyPopUp(c) { window.open(c, 'window', 'width=480,height=480,scrollbars=yes,status=yes'); }[/CODE] which works but is it possible to modify the size according to the browser with? like if (screen.width == 1024 size "" if (screen.width == 1280 size "" Thanks!

Member Avatar for twiss
0
98
Member Avatar for spunkywacko

[CODE]public string bob = "hello";[/CODE] This works [CODE]public string bob; bob = "hello";[/CODE] This does not? Thank you

Member Avatar for spunkywacko
0
95
Member Avatar for theighost

Hi, I have this strange problem, I select some data from the database, there is no problem in the query and even when I use mysql_num_rows on the query it gives me the right number of entries in the table I'm selecting from, but when I try to echo every …

Member Avatar for pritaeas
0
4K
Member Avatar for xanawa
Member Avatar for karthik_ppts

Hi Frendz, I have placed my custom marker on google map in my application. But it displays default marker. Whats going wrong with this code? [CODE=javascript] var icon = new GIcon(); icon.iconAnchor = new GPoint(6, 20); icon.infoWindowAnchor = new GPoint(5, 1); icon.image = 'images/car_blue.png'; var marker = new GMarker(point, icon); …

Member Avatar for karthik_ppts
0
301
Member Avatar for samueal

Hi, I am using HTTPRequest and HTTPResponse to get the page source of a site. and i'm getting a warning message "Enable JavaScript to view your site". Is there any request i should add to enable JavaScript

Member Avatar for samueal
0
206
Member Avatar for niranga

Hi, I am working on a project which requires to update a JEditorPane or JTextField simultaneously by multiple clients. It is something like this. [B][1]. There are several users( i.e a group) with the same application which contains a JEditorPane. [2]. There is a group leader for a group( note: …

Member Avatar for JamesCherrill
0
279
Member Avatar for munitjsr2

[CODE] #include <iostream> #include <vector> #include <algorithm> using namespace std; class A { public : void getData(vector< A > &); void putData(vector< A > &); private : int x; char name[90]; }; vector< A > v; void A :: getData(vector< A > &Aref) { cout << "id = "; cin …

Member Avatar for munitjsr2
0
243
Member Avatar for carinlynchin

here is my one class (controller) and the other (GUI) what is happening is inside the SearchListener inner class for the button, I am calling a method from the controller class (i have already tested the parameter sent and that part works fine) but when i click on a code …

Member Avatar for carinlynchin
0
3K
Member Avatar for Naruse

Hi, There are a way to separate the string by commas? Please Help. Best Regards

Member Avatar for Jx_Man
0
185
Member Avatar for Robbie Y.

Hey guys! I'm trying to write a program that involves a switch/case on Microsoft Visual Studion 2010. Unfortunately, some of my variables are not being initialized. I am a very novie programmer so please have mercy on me! Two of my options (1,4) are working but options (2,3) are not. …

Member Avatar for Robbie Y.
0
172
Member Avatar for APCompSci

Consider the following two classes. [CODE]public class Dog { public void act() { System.out.print("run"); eat(); } public void eat() { System.out.print("eat"); } } public class UnderDog extends Dog { public void act() { super.act(); System.out.print("sleep"); } public void eat() { super.eat(); System.out.print("bark"); } }[/CODE] Assume that the following declaration appears …

Member Avatar for jon.kiparsky
0
2K
Member Avatar for jowana

Hello, I have a line on my image and i want to find the maximim grey-level value on that line . so i need to scan the line and pick the pixel with the highest value how can I do this? should I calculat the gradient magnitude ? Thanks in …

Member Avatar for jowana
0
124
Member Avatar for ramizgirach

hey m a newbie in php i would love some help on this one i have a section of jokes in my page the problem is i want the two columns 'name' and 'content' to be extracted from database and automatically put in a table where name is a title …

Member Avatar for diafol
0
88
Member Avatar for blahbla

need some help with this lab this class is to draw a line with *'s i guess in the command prompt since it uses System.out to print i was given the function names and the comments that tells me what the function does i wrote the code in the functions …

0
101
Member Avatar for Mr. K
Member Avatar for ivan3510

Look this page: [URL="http://www.htmlcodetutorial.com/linking/linking_famsupp_75.html"]click[/URL]. How to do that with button?

Member Avatar for twiss
0
79
Member Avatar for turt2live

Ok, So I'm amking a game and need walls so you can't walk through walls (This is a top down view game, screenshot [URL="http://turt2live.servebeer.com/game_stuff/walls.png"]here[/URL]), although, my calculation for seeing if you are going to hit a wall slows down the game with the 3 walls I have (I stopped making …

Member Avatar for turt2live
0
196
Member Avatar for designalex

Please correct my syntax: im including a file with the following constants [CODE] define('IPADDRESS', $_SERVER['REMOTE_ADDR'] ); define('BROWSER', @$HTTP_USER_AGENT ); define('REFERER', @$HTTP_REFERER ); [/CODE] if i echo IPADDRESS; i get the ip address (127.0.2) so the include is fine. My mysql instruction is as follows: [CODE] $update = mysql_query("UPDATE login_errors SET …

Member Avatar for designalex
0
188
Member Avatar for ROTC89

Hi I am new to python. I am trying to get my fraction program to work but I keep getting this error message: Any advice would be helpful! [ICODE] File "main.py", line 5, in ? from fraction import* File "/home/students/bf133052/CS4223/fraction.py", line 10 def__init__(self,numerator,denominator=1): ^ SyntaxError: invalid syntax [/ICODE] here is …

Member Avatar for ROTC89
0
3K
Member Avatar for bibiki

hey there, I am trying to make my first connection to a mysql server with java. I took the following code from another thread: [CODE] import java.sql.Connection; import java.sql.DriverManager; public class Connect { public static Connection ConnectDB() { Connection conn = null; try { String userName = "root"; String password …

Member Avatar for bibiki
0
166
Member Avatar for munitjsr2

I am learning C/C++/oracle/Unix? I am thinking of developing some application on my own, but I have no Idea what else is required. If you take an example of C++.I have very basic knowledge of it(data types, oops concepts,vectors,file handling,exception handling etc) I am not an expert though. I have …

Member Avatar for munitjsr2
-2
334
Member Avatar for ak24

Hello. I'm learning C with "The C Programming Language" book, and I'm trying to solve exercise 1.13: "Write a program to print a histogram of the lengths of words in its input. It is easy to draw the histogram with the bars horizontal; a vertical orientation is more challenging." I …

Member Avatar for ak24
1
374
Member Avatar for vishalbhavsar

hi all, i tried following code for session management bt i dnt knw where it went wrong? can anyone please help me solve the problem. i want to restrict user going on the prevoius page after logging out when he clicks on the browser's BACK button. ****************************************************************** 1) i created …

Member Avatar for vishalbhavsar
0
407
Member Avatar for zebnoon

Hye dear ! please till how barcode reader read and put code in VB6 textbox.for example in the General store software.If you have any example please send me. zeb noon

Member Avatar for zebnoon
0
181
Member Avatar for Mr. K

I am trying to move a ball using time. What do I need to know to move the ball? How can I move the ball 20 pixel per second? [CODE]#include <allegro.h> int ballx = 320; int bally = 240; void ball(){ if(key[KEY_RIGHT]){ } else if(key[KEY_LEFT]) { } acquire_screen(); circlefill(screen,ballx,bally,5,makecol(255,255,255)); release_screen(); …

Member Avatar for Mr. K
0
193
Member Avatar for pseudorandom21

Hey I'm making a small application for my gaming buddies, and I have a picturebox that I'm drawing on. The problem is, it appears as though the Location property of the MouseEventArgs is wrong, and it becomes even more so toward the bottom + right portion of the picture, like …

Member Avatar for pseudorandom21
0
95
Member Avatar for sms5660

I can't make my array work. I have never encountered this error before and I am a beginner programmer, this is my homework assignment. Please help! I really don't understand/know a lot of terminology, so it would be most helpful if you showed me how to change my errors. Thank …

Member Avatar for sms5660
0
260
Member Avatar for warlord902
Member Avatar for warlord902
0
1K
Member Avatar for Archenemie

I have just started looking at simple cryptography in order to learn python better. Encryptions and decryptions should be speedy and accurate so im hoping it will improve my programming skills. I recently wrote this quick script for a shift cypher but i wasnt sure how to be able to …

Member Avatar for Archenemie
0
228
Member Avatar for ckdoublenecks

I'm trying to determine number of days difference between the due duedate and current date and really need help. [CODE]<?php mysql_connect("localhost", "root", ""); mysql_select_db(numbersdb) or die("Unable to select database"); $query = "SELECT taxrate FROM numbdata" ; $result = mysql_fetch_assoc(mysql_query($query)); $taxrate = $result['taxrate']; mysql_connect("localhost", "root", ""); mysql_select_db(oodb) or die("Unable to select …

Member Avatar for ckdoublenecks
0
89
Member Avatar for Venku Tur'Mukan

Hey, everybody, I'm a newbie at Python (2.7.1), and new to DaniWeb as well. and the apparent simplicity of Python got me interested in programming (seriously, the only thing before this was HTML). Anyway... I was taking a test and thought that after I was finished I could make an …

Member Avatar for vegaseat
0
44K
Member Avatar for Learner7

Hi, I put 4 buttons on my form. [B]cmdFirst cmdPrevious cmdNext cmdLast [/B] How can I navigate my MS Access database using these buttons. I don't want to use .ADO instead I would like to use my own buttons with code (OLEDB). Sample code for this purpose would be highly …

Member Avatar for pramodsajwan07
0
457
Member Avatar for UnitedForLife

Hey, I am new to python and was wondering how to import modules? I want to import the datetime module. Do i have to download it from a website? Thanks

Member Avatar for vegaseat
0
104
Member Avatar for novice20

Hi all, I need to set some variables via Pysnmp which take 'unsigned int' only. Is python int by default a 32 bit- signed int? How do I convert it into 16 and 8 bit- unsigned ints? I need to read two registers consequently( which are of 8 bits each) …

Member Avatar for vegaseat
0
9K
Member Avatar for david59

this is my program [CODE] using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { char[] d = new char[12]; string dd = "5Ed5v3a4r3d4"; for (int i = 0; i < dd.Length; i++) { d[i] = dd[i]; { if (d[i] >= …

Member Avatar for ddanbe
0
113

The End.